(TCP) is a connection-oriented communication protocol where data is sent via TCP ports, also known as TCP sockets.
A connection must be established before any data is sent or received. This makes TCP ideal for applications where there are long periods of inactivity followed by bursts of activity. A TCP connection consists of two communication endpoints (either client or server) and a TCP port number on each device. The two endpoints are identified by their IP addresses, which are used to route packets between them.