In-depth understanding of TCP / IP transport layer

Transport Layer: responsible for data can be transmitted to the receiving end from a transmitting end (transmitting only need to focus point, intermediate transmission not a matter)

UDP and TCP

UDP (full duplex):
1. No connection, unreliable 2, 3 for the datagram. 

TCP (full duplex, is a more complex protocol)
1. reliable transmission connection 2. 3. byte stream and 

Transmission reliability sender can sense failure (comparative calls and texting)
byte stream oriented, file operations (I / O stream)
Full-duplex: the transmission can accept both

UDP, though not reliable, but higher transmission efficiency than TCP

TCP
whether the reply message sent by the determination, to determine whether reliable transmission of
a confirmed response (reliability core mechanism)
number, the manner for each byte number.
Acknowledgment sequence, a number that represents the current prior the data has been correctly received, the next peer should give me a confirmation number data begins

 

Guess you like

Origin www.cnblogs.com/hetaoyuan/p/11237195.html