TCP is a highly reliable transport layer protocol used for connection-oriented host-to-host communication. End applications that are very sensitive to data loss can leverage TCP as the transport layer protocol. Majority of the internet traffic is dominated by TCP. It is extensively used by many applications, including email, peer-to-peer file sharing, and the famous WWW applications. TCP receives data from the application layer and segments it into data units, which will be encapsulated with the TCP header. The protocol data unit with the TCP header encapsulated is known as a segments. As mentioned earlier, TCP is connection oriented so that a connection will be established between the endpoints using a three-way handshake. Reliability is achieved by acknowledging the recipient of each segments and any missing segment will be retransmitted.
The protocol...