Current location - Quotes Website - Collection of slogans - What is the difference and connection between TCP port and UDP port?
What is the difference and connection between TCP port and UDP port?
TCP port and UDP port are mainly different, and there is basically no connection:

1)TCP port transmission control protocol, which provides reliable connection-oriented byte stream service. Before the client and server exchange data with each other, a TCP connection must be established between them before data can be transmitted. TCP provides functions such as overtime retransmission, discarding duplicate data, data verification, flow control, etc. to ensure that data can be transmitted from one end to the other.

2)UDP port-user datagram protocol is a simple datagram-oriented transport layer protocol. UDP does not provide reliability, it just sends out datagrams sent by applications to the IP layer, but it does not guarantee that they will reach their destinations. Because UDP does not need to establish a connection between the client and the server before transmitting the datagram, and there is no mechanism such as overtime retransmission, the transmission speed is very fast.