TCP&UDP

  • TCP (Transmission Control Protocol) ------ similar call

1.1 establishing a connection, the data transmission path is formed

1.2 for large data transfers (in the connection data is not limited in size )

1.3 handshake complete the connection by three times, it is a reliable protocol, security service

1.4 connection must be established, efficiency will be slightly lower

  • UDP (User Datagram Protocol) ----- similar to texting

2.1 and the source and destination data encapsulated into packets, without establishing a connection

2.2 the size of each packet within the limit of 64K

2.3 because no connection, therefore unreliable protocol

2.4 without establishing a connection, fast

Guess you like

Origin www.cnblogs.com/pioneerMax/p/6696339.html