当前位置:网站首页>Tcp/ip - transport layer

Tcp/ip - transport layer

2022-07-02 08:34:00 Defeat of Fujiwara Qianhua

TCP/IP— Transport layer

The application layer is the interface for applications to enter the network , After the application data is encapsulated, it enters the transport layer . The transport layer defines end-to-end connectivity between host applications . The two most common protocols in the transport layer are transmission control protocol TCP(Transmission Control Protocol) And user datagram protocol UDP(User Datagram Protocol).

What is the port number ?

 Insert picture description here
When the computer receives a packet , How to distinguish which application this packet belongs to ?
 Insert picture description here
Add a new port number in the transport layer , Used to distinguish different programs . Some web applications are extremely common , The port number is also used to distinguish different network services .( The port number corresponds to the upper layer protocol , The agreement corresponds to different services )
 Insert picture description here
Common port numbers ( be based on C/S Model services )
 Insert picture description here

Transport layer Overview

  • The transport layer provides End to end The connection of
  • The network layer provides Point to point The connection of
     Insert picture description here

Transport layer protocol

 Insert picture description here

TCP and UDP Packet structure comparison

 Insert picture description here

TCP Session creation — Three handshakes :

 Insert picture description here
 Insert picture description here
 Insert picture description here
 Insert picture description here

TCP Termination of session — Four waves

 Insert picture description here

TCP and UDP Comparison of

Transmission control protocol (TCP) User datagram protocol (UDP)
Connection oriented There is no connection
Reliable transmission Best effort transmission
Support flow control and window mechanism No flow control and window mechanism
HTTP、FTP etc. TFTP、DNS、DHCP etc.
原网站

版权声明
本文为[Defeat of Fujiwara Qianhua]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/183/202207020623336671.html