TCP (Transmission Control Protocol ):
1) provide reliable data transmission in the IP environment (the byte stream sent by A computer will be sent to other computers on the network without errors, and when computer A receives data packets, data packets are also sent back to computer B, which also generates part of the traffic), effective traffic control, full duplex operations (data can be transferred simultaneously in both directions), multiplexing services, is connection-oriented, end-to-end transmission;
2) connection orientation: before formal communication, you must establish a connection with the other party. Establish a connection channel for the sent data before sending the data, such as making a call.
3) Application Protocols Supported by TCP: Telnet (Remote logon), FTP (file transfer protocol), and SMTP (Simple Mail Transfer Protocol ). TCP is used for applications with high data transmission capacity and reliability requirements.
UDP (User Data Protocol)
1) Non-connection-oriented (you do not need to establish a connection with the other party before the formal communication, regardless of the other Party's status, directly sent, such as SMS, QQ), cannot provide reliability, flow control, error recovery functions. UDP is used for applications that transmit only a small amount of data at a time with low reliability requirements and economic transmission.
2) UDP-supported application protocols: NFS (Network File System), SNMP (Simple Network Management System), DNS (Primary Domain Name System), and TFTP (General File Transfer Protocol.
Summary:
TCP: connection-oriented, reliable transmission (ensuring data correctness and Data Order), used to transmit a large amount of data (stream mode), slow speed, and costly connection establishment (time, system Resources ).
UDP: for non-connection, unreliable transmission, for transmitting a small amount of data (packet mode), fast.