This chapter explains protocols in the transport layer, which is the fourth layer of the Open Systems Interconnection (OSI) reference model. Transparent transfer of data between end users using services of the network layer is provided. The well-known protocols in this layer are Transmission Control Protocol (TCP), User Datagram Protocol (UDP), Stream Control Transmission Protocol (SCTP), and Real-time Transport Protocol (RTP).
Transmission Control Protocol is a connection-oriented, end-to-end, reliable protocol in the transport layer . Creation of connection is needed before sending the data. TCP has the advantage of transporting data reliably. Lost packets are resent by a TCP retransmission mechanism. There are many protocols that rely on TCP, such as FTP, HTTP, POP3, and SMTP. However, TCP is not suitable when transmission speed is more important than reliability, such as with telephone or video conferencing over the Internet.
Figure 2.1 shows the TCP header structure.