tcp udp protocol agreements and the contrast of the advantages and disadvantages

Advantages and disadvantages of the agreement tcp and udp protocols of the contrast?

TCP connection-oriented; the UDP is connectionless, i.e. without establishing a connection before sending data.

TCP provides reliable service. In other words, the data transfer connection of TCP, error-free, not lost, not repeat, and arrive out of order; UDP best effort, that does not guarantee reliable delivery.

UDP has better real-time, high work efficiency than TCP, suitable for high-speed transmission and real-time communications have a higher or broadcast communications.

Each TCP connection can only point to point; UDP support one to one, one to many, and many-to-many interactive communication.

TCP more demanding on system resources, UDP less demanding on system resources.

UDP its simple, fast transport advantages, instead of TCP in more and more scenes.

(1) to a lifting speed stability UDP provides a reliable network protection, packet loss rate is low, if the application layer retransmission, the transmission reliability can be ensured.

(2) In order to achieve reliable TCP communications network, uses a complex congestion control algorithm, the tedious process of handshake, Since TCP protocol stack built-in system is extremely difficult to improve it.

Guess you like

Origin www.cnblogs.com/jitianxuan/p/11944620.html
Recommended