Transport Control Protocol (TCP) is the transport layer protocol in the TCP/IP protocol stack. It provides reliable data stream transmission and virtual connection services to applications through the sequence validation and packet re-transmission mechanism. Combined with the IP protocol, TCP forms the core of the Internet protocol. Since most network applications run on the same machine, the computer must be able to ensure that software programs on the machine at the destination can obtain data packets from the machine at the source address, and the source computer can receive the correct response. This is done by using the TCP "port number. The network IP address and port number are combined into a unique identifier, which is called "socket" or "endpoint ". TCP establishes a connection or virtual circuit between the endpoints for reliable communication. The TCP Service provides data stream transmission, reliability, effective traffic control, full duplex operations, and Multiplexing technologies. For stream data transmission, TCP delivers a non-structured byte stream defined by the serial number. This service is advantageous to the application because the application does not need to divide the data into blocks before it is sent to TCP. TCP can combine bytes into fields and then send the data to the IP address for sending. TCP ensures reliability through connection-oriented, end-to-end reliable datagram transmission. TCP adds a progressive validation serial number to the byte to tell the receiver the next byte that the sender expects to receive. If no response to this package is received within the specified time, resend the package. TCP's reliable mechanism allows devices to process lost, delayed, duplicated, and read-error packets. The timeout mechanism allows devices to monitor lost packets and request re-sending. TCP provides effective traffic control. When a confirmation response is returned to the sender, the receiving TCP process indicates the highest serial number that can receive and ensure that the cache will not overflow. Full-duplex operation: the TCP process can send and receive packets simultaneously. Multiplexing Technology in TCP: a large number of concurrent upper-layer sessions can be multiplexing on a single connection. |