Computer network TCP and UDP
1.TCP
TCP is a connection-oriented, requires three-way handshake, needed four waved when disconnected.
TCP is a reliable service that TCP connection data to ensure error-free, is not lost, without duplication and orderly arrival.
TCP is a byte-oriented stream.
TCP has a congestion control mechanism, when a plurality of channels or extreme congestion, TCP will transmit a control terminal of the output.
TCP connections are point to point.
TCP header of 20 bytes.
2.UDP
UDP is a connectionless.
UDP is not reliable delivery, transmission, packet loss may occur.
UDP is a message-oriented.
UDP no congestion control, whether congestion, the transmission rate is not changed.
UDP is one to one, one to many, many to many.
UDP header 8 bytes needs.