Internet Transport-Layer Protocols

 

Internet Transport-Layer Protocols

Introduction

After understanding the general principles of the transport layer, we now study the transport-layer protocols used in the Internet. Although the Internet supports several transport-layer protocols, this chapter mainly focuses on the two most widely used protocols:

  • User Datagram Protocol (UDP)
  • Transmission Control Protocol (TCP)

These protocols are located between the Application Layer and the Network Layer in the TCP/IP protocol suite. They act as an intermediary between application programs and the network, providing process-to-process communication between applications running on different hosts.

  • UDP (User Datagram Protocol) is an unreliable, connectionless transport-layer protocol. It is simple, fast, and has low overhead, making it suitable for applications where speed is more important than reliability, and error control can be handled by the application itself.
  • TCP (Transmission Control Protocol) is a reliable, connection-oriented transport-layer protocol. It provides reliable, ordered, and error-free delivery of data, making it suitable for applications where data integrity is essential.

Apart from UDP and TCP, the Internet also supports other transport-layer protocols such as SCTP (Stream Control Transmission Protocol), which are discussed separately.

One of the primary responsibilities of the transport layer is to provide process-to-process communication. This is achieved using port numbers, which uniquely identify the application or process running on a host.


Port Numbers

A port number is a 16-bit logical address used by the transport layer to identify a specific application or service on a computer.

  • The IP address identifies the destination host.
  • The port number identifies the destination application (process) on that host.

For example, when you access a website, the IP address identifies the web server, while port 80 (HTTP) or port 443 (HTTPS) identifies the web service running on that server.


Types of Port Numbers

Port RangeNamePurpose
0 – 1023    Well-Known Ports    Reserved for standard Internet services
1024 – 49151    Registered Ports    Used by registered applications
49152 – 65535    Dynamic (Private/Ephemeral) Ports    Temporarily assigned to client applications

Well-Known Port Numbers

The following table lists some commonly used well-known ports used by UDP and TCP.

Port NumberProtocolUDPTCPDescription
7Echo✓Echoes back the received datagram
9Discard✓Discards received datagrams
11Users✓✓Returns information about active users
13Daytime✓✓Returns the current date and time
17Quote✓✓Returns the "Quote of the Day"
19Chargen✓✓Generates a stream of characters for testing
20, 21FTP✓File Transfer Protocol (File Transfer)
23TELNET✓Remote terminal login
25SMTP✓Simple Mail Transfer Protocol (Email Sending)
53DNS✓✓Domain Name System (Name Resolution)
67DHCP✓✓Dynamic Host Configuration Protocol (IP Address Assignment)
69TFTP✓Trivial File Transfer Protocol
80HTTP✓Hypertext Transfer Protocol (Web Browsing)
111RPC✓✓Remote Procedure Call
123NTP✓✓Network Time Protocol (Time Synchronization)
161, 162SNMP✓Simple Network Management Protocol

Commonly Used Port Numbers

PortServiceTransport ProtocolPurpose
20, 21FTPTCPFile transfer
22SSHTCPSecure remote login
23TELNETTCPRemote login
25SMTPTCPSending e-mail
53DNSUDP/TCPDomain name resolution
67, 68DHCPUDPAutomatic IP address assignment
69TFTPUDPSimple file transfer
80HTTPTCPWeb browsing
110POP3TCPReceiving e-mail
123NTPUDPTime synchronization
143IMAPTCPAccessing e-mail
161, 162SNMPUDPNetwork management
443HTTPSTCPSecure web browsing



Importance of Port Numbers

Port numbers help the transport layer to:

  • Identify the correct application or process on a host.
  • Enable multiple applications to use the network simultaneously.
  • Support multiplexing and demultiplexing of data.
  • Establish process-to-process communication between client and server applications.

Key Points to Remember

  • UDP is an unreliable, connectionless transport protocol that offers low overhead and high speed.
  • TCP is a reliable, connection-oriented transport protocol that guarantees ordered and error-free delivery.
  • Both protocols use port numbers to identify application processes.
  • A port number is a 16-bit identifier used by the transport layer for process-to-process communication.
  • Well-known ports (0–1023) are reserved for standard Internet services such as HTTP (80), FTP (20/21), DNS (53), SMTP (25), and DHCP (67).

Comments

Popular posts from this blog

Computer Networks PCCST501 Semester 5 KTU CS 2024 Scheme - Dr Binu V P

Model Question Paper Computer Networks PCCST501 KTU 2024 Scheme and Answer Key

Introduction to Computer Networks