网络第四次作业6

 

传输层:①数据分段  服务0-65535,静态端口号(著名端口号) 1-1023,动态端口号

②1024-65535,通过端口号区分不同的服务

MSS最大段长度 1500B   

MTU最大传输单元 1480B  (多了20B报头)

HTTPS 443, talent 520

网络层:通过IP地址进行逻辑寻址

数据链路层:①MAC媒介访问控制层

②LLC逻辑链路层 为上层提供FCS校验

物理层:定义电器电压接口规范光学特性

TCP面向连接的可靠传输协议    面向连接体现在三次握手  可靠体现在确认,重传,排序,流控(滑动窗口)

UDP非面向连接的不可靠传输协议

 

8bite一个字节 16比特

报头要记住

TCP三次握手

Seq序列号:记录发送次数

Ack=seq+1

MTU有最大传输单元 报头:做记录的作用

TCP

  1. BIt ack number确认序列号 ack=seq+1

ack包 置位

保留:给qos做预留,可以插队

URG:为1时,为紧急数据,可以先走做优先处理

ACK(为0时是没有建立):确认ACK,TCP规定,建立后所在报文的传输都为1

PSH希望立刻收到对方的应答:推送PSH 立刻收到相应时为1

RST 为1时出错,确认重连排序流控

SYN 同步序列号(序列号是记录发送次数的)

FIN 断开请求 释放连接的,FIN=1时 发完

窗口:告诉你可以发几个包 不用再重传

校验和 校验首部和数据

紧急指针 本段报文里的紧急字节从哪到哪

选项 (可以加密什么的)

正在建立会话,但是包丢了,服务器断开请求 TIMW WAIT状态

用户端继续向server端发送ACK报文

保证让迟来的TCP报文段有足够的时间被识别和丢弃,连接结束了,网络中的延迟报文页应该被丢掉,以免影响立刻建立的新连接

 

为什么三次握手?因为TCP可靠传输协议,可以保证数据可靠传输又能提高传输速率

“三次握手” 的目的是 “为了防止已失效的连接请求报文段突然又传送到了服务端,因而产生错误”

网络延迟没有收到服务器发的确认包 就重发 延迟的SYN又发送给服务端 客户端误以为这是新的同步报文又回一个ACK

 

 

SCTP:是一种传输协议,是TCP与UDP协议各自优点的组合后的产物。

SCTP和TCP的区别:

1. TCP是以字节为单位传输的,SCTP是以数据块为单位传输的

2. TCP通常是单路径传输,SCTP可以多路径传输

3. TCP是单流有序传输,SCTP可以多流独立有序/无序传输

4. TCP连接的建立过程需要三步握手,SCTP连接的建立过程需要四步握手

5. SCTP有heartbeat机制来管理路径的可用性

 

经典计算机网络教材 Computer Networks, Fourth Edition By Andrew S. Tanenbaum Table of Contents Chapter 1. Introduction Section 1.1. Uses of Computer Networks Section 1.2. Network Hardware Section 1.3. Network Software Section 1.4. Reference Models Section 1.5. Example Networks Section 1.6. Network Standardization Section 1.7. Metric Units Section 1.8. Outline of the Rest of the Book Section 1.9. Summary Chapter 2. The Physical Layer Section 2.1. The Theoretical Basis for Data Communication Section 2.2. Guided Transmission Media Section 2.3. Wireless Transmission Section 2.4. Communication Satellites Section 2.5. The Public Switched Telephone Network Section 2.6. The Mobile Telephone System Section 2.7. Cable Television Section 2.8. Summary Chapter 3. The Data Link Layer Section 3.1. Data Link Layer Design Issues Section 3.2. Error Detection and Correction Section 3.3. Elementary Data Link Protocols Section 3.4. Sliding Window Protocols Section 3.5. Protocol Verification Section 3.6. Example Data Link Protocols Section 3.7. Summary Chapter 4. The Medium Access Control Sublayer Section 4.1. The Channel Allocation Problem Section 4.2. Multiple Access Protocols Section 4.3. Ethernet Section 4.4. Wireless LANs Section 4.5. Broadband Wireless Section 4.6. Bluetooth Section 4.7. Data Link Layer Switching Section 4.8. Summary Chapter 5. The Network Layer Section 5.1. Network Layer Design Issues Section 5.2. Routing Algorithms Section 5.3. Congestion Control Algorithms Section 5.4. Quality of Service Section 5.5. Internetworking Section 5.6. The Network Layer in the Internet Section 5.7. Summary Chapter 6. The Transport Layer Section 6.1. The Transport Service Section 6.2. Elements of Transport Protocols Section 6.3. A Simple Transport Protocol Section 6.4. The Internet Transport Protocols: UDP Section 6.5. The Internet Transport Protocols: TCP Section 6.6. Performance Issues Section 6.7. Summary Chapter 7. The Application Layer Section 7.1. DNS—The Domain Name System Section 7.2. Electronic Mail Section 7.3. The World Wide Web Section 7.4. Multimedia Section 7.5. Summary Chapter 8. Network Security Section 8.1. Cryptography Section 8.2. Symmetric-Key Algorithms Section 8.3. Public-Key Algorithms Section 8.4. Digital Signatures Section 8.5. Management of Public Keys Section 8.6. Communication Security Section 8.7. Authentication Protocols Section 8.8. E-Mail Security Section 8.9. Web Security Section 8.10. Social Issues Section 8.11. Summary Chapter 9. Reading List and Bibliography Section 9.1. Suggestions for Further Reading Section 9.1.1. Introduction and General Works Section 9.2. Alphabetical Bibliography
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值