COMPUTER NETWORKS COURSE
OSI LAYER 3

Network Layer

Logical addressing, routing, and packet forwarding across interconnected networks. The backbone of internetworking.

IP Protocol Routing Algorithms Packet Switching Logical Addressing

Primary Functions

  • Logical Addressing: Assigns IP addresses to identify devices across networks
  • Routing: Determines optimal paths for packet delivery between different networks
  • Packet Forwarding: Moves packets from input to appropriate output interface
  • Fragmentation & Reassembly: Breaks large packets to fit MTU limits

Key Characteristics

PDU (Protocol Data Unit) Packet
Data encapsulated with IP header containing source/destination addresses
Addressing Type Logical (IP)
Hierarchical addressing scheme (Network + Host portions)
Connection Type Connectionless
Each packet routed independently (best-effort delivery)

Network Layer in OSI Context

Application
Data
Layer 7
Transport
Segment
Layer 4
Network
PACKET (IP Header + Data)
Layer 3
Data Link
Frame
Layer 2
Physical
Bits
Layer 1

The Network Layer encapsulates segments from Layer 4 into packets by adding IP headers with logical addressing information

End-to-End Data Flow Through Network Layer

📱

Source Host

Creates packet with destination IP address. Uses ARP to find next-hop MAC address.

🖥️

Destination Host

Receives packet, decapsulates IP header, delivers payload to Transport Layer.