Addressing in Protocol Layering

 

Addressing in Protocol Layering

Introduction

In computer networks, communication occurs between devices, processes, and applications.

For successful communication, every sender and receiver must be identified properly.

This identification is done using:

Addresses

In the TCP/IP protocol suite, different layers use different types of addresses.


Definition

Addressing is the process of uniquely identifying the sender and receiver at different layers of the TCP/IP protocol suite.

Each layer uses its own type of address according to its function.


Why Addressing is Needed

Any communication between two entities requires:

  • A source address
  • A destination address

These addresses help in:

  • Identifying communicating devices
  • Delivering data correctly
  • Routing packets through networks

Addressing in Different Layers

In TCP/IP, addressing exists in four layers:

Layer    Type of Address
Application Layer    Specific Names
Transport Layer    Port Numbers
Network Layer    IP Addresses
Data-Link Layer    MAC Addresses

The physical layer does not use addressing because it only transmits bits.


1. Application Layer Addressing

Type of Address

Names

Application layer addresses identify:

  • Websites
  • Users
  • Services

Examples

  • example.com
  • student@college.edu

Purpose

These names help users easily identify services and resources.


2. Transport Layer Addressing

Type of Address

Port Numbers

Port numbers identify:

  • Specific application programs running on a host

Examples

  • Port 80 → HTTP
  • Port 25 → SMTP
  • Port 53 → DNS

Purpose

Port numbers allow multiple applications to communicate simultaneously on the same computer.


3. Network Layer Addressing

Type of Address

IP Address

IP addresses uniquely identify:

  • Devices connected to the Internet

Examples

  • IPv4: 192.168.1.1
  • IPv6: 2001:db8::1

Purpose

IP addresses provide:

  • Global identification
  • Routing across networks

Routers use IP addresses to forward packets toward the destination.


4. Data-Link Layer Addressing

Type of Address

MAC Address

MAC (Media Access Control) addresses identify:

  • Devices within a local network

Example

00:1A:2B:3C:4D:5E

Purpose

MAC addresses are used for:

  • Local delivery within a LAN or WAN

Switches use MAC addresses for frame forwarding.


Physical Layer and Addressing

The physical layer:

  • Transmits bits/signals only
  • Does not use addresses

Because:

A bit itself cannot have an address.


Relationship Between Layers, Addresses, and Data Units

Layer        Address TypeData Unit
Application    Names        Message
Transport    Port Numbers        Segment/User Datagram
Network    IP Address        Datagram
Data-Link    MAC Address        Frame
Physical    No Address        Bits

Example of Addressing in Communication

Suppose a user opens a website:

LayerAddress Example
Application        www.example.com
TransportPort 80
Network192.168.1.10
Data-Link00:1A:2B:3C:4D:5E

Each layer uses its own address to perform its specific communication task.


Importance of Addressing

1. Correct Delivery

Ensures data reaches the correct destination.

2. Identification

Identifies devices, applications, and services.

3. Routing

Helps routers determine the best path.

4. Multiplexing

Allows multiple applications to communicate simultaneously.


Simple Analogy

Sending a postal letter:

Networking AddressReal-Life Equivalent
Application Name    Person’s name
Port Number    Apartment number
IP Address        City and street address
MAC Address    House identifier inside locality

Summary

Addressing in protocol layering is the method of identifying communicating entities at different layers of the TCP/IP protocol suite. The application layer uses names, the transport layer uses port numbers, the network layer uses IP addresses, and the data-link layer uses MAC addresses. These addresses ensure proper communication and delivery of data across networks.

Comments

Popular posts from this blog

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

Introduction to Computer Networks

Introduction to Local Area Network (LAN)