Transport layer protocol-introduction of TCP protocol and the process of three-way handshake and four-time disconnection, and the difference with UDP protocol

TCP protocol introduction

TCP is a connection-oriented, reliable process-to-process communication protocol
TCP provides duplex services, and data can be transmitted in both directions at the same time

TCP segment

TCP divides several bytes into groups, called message segments,
TCP message segments are packaged in IP datagrams

TCP connection

Insert picture description here
Insert picture description here
Second handshake
Insert picture description here

Four disconnects

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

UDP protocol

Insert picture description here

The difference between TCP and UDP

Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/Houtieyu/article/details/107785001