Unit 3

1. Network Layer (Layer 3)

The Network Layer sits at Layer 3 of the OSI model, between the Transport Layer (Layer 4) and the Data Link Layer (Layer 2). Its main job is to move packets from the source host to the destination host, possibly across multiple networks and routers.

Key Responsibilities

Common Network-Layer Protocols

2. Logical Addressing (IP Addresses)

Logical addressing means assigning software-based, globally meaningful addresses (like IP addresses) to hosts and routers, instead of fixed hardware addresses. These addresses are used by the Network Layer to find the right path across the Internet.

Main Points

3. Routing Protocols

Routing protocols are the rules routers use to discover networks and build routing tables so they know how to send packets.

Main Types

Type Description Examples
Distance-Vector Each router tells neighbors: "I can reach network X in N hops"
Share full routing table periodically
RIP, IGRP
Link-State Flood Link-State Packets (LSPs) to whole network
Build complete topology map + Dijkstra's SPF
OSPF, IS-IS
Hybrid Combine distance-vector + link-state for fast convergence EIGRP (Cisco)
Exterior Gateway Between Autonomous Systems (AS)
Internet backbone protocol
BGP

4. ICMP (Internet Control Message Protocol)

ICMP is a Network-Layer protocol that runs on top of IP (protocol number 1). It sends control messages and error reports to help diagnose and manage IP communication.

Key Functions

5. IGMP (Internet Group Management Protocol)

IGMP manages IPv4 multicast group memberships on local networks between hosts and local multicast router.

How It Works

Use Cases: Live streaming, IPTV, distributed applications

6. TCP (Transmission Control Protocol)

TCP is Layer 4, connection-oriented, reliable, ordered, flow-controlled protocol running on top of IP.

Key Features

Common Uses: HTTP/HTTPS, FTP, SMTP/POP/IMAP, SSH/Telnet

7. UDP (User Datagram Protocol)

UDP is Layer 4, connectionless, lightweight protocol with 8-byte header.

Characteristics

8. UDP & Congestion Control

UDP has NO congestion control unlike TCP, so high-rate UDP can congest networks.

Solutions

9. Big Picture Integration

Layer Protocols Key Functions
Network Layer IP + ICMP + IGMP Logical addressing, Routing, Multicast
Transport Layer TCP vs UDP TCP: Reliable, ordered
UDP: Fast, real-time

Network Layer: End-to-end packet delivery across networks
Transport Layer: Process-to-process reliable vs real-time communication