Network Layer

Overview

Two Key Functions

Forwarding

Routing

Analogy: Taking a trip

Forwarding

  • Process of getting through single interchange
    Routing
  • Process of planning trip from source to destination

Data Plane

Control Plane

Router Architecture

Pasted image 20241213140318.png

Input Port Functions

Pasted image 20241213140411.png

Decentralized Switching

Destination-based forwarding

Forward based only on destination IP address

Longest prefix matching

When looking for forwarding table entry for given destination address, use longest address prefix that matches destination address
Pasted image 20241213140803.png

Switching Fabrics

Switching via memory

First generation routers:

Switching via bus

Switching via interconnection network

Import port queuing

Fabric slower than input ports combined

Output port queuing

Buffering: Required when datagrams arrive from fabric faster than link transmission rate
Scheduling discipline: Chooses among queued datagrams for transmission
Pasted image 20241213144920.png

Packet Scheduling

Deciding which packet to send next on link

Internet Protocol (IP)

IPv4 and IPv6

Network Address Translation (NAT)

Generalized Forwarding

Control Plane

Routing: Determine route taken by packets from source to destination