Chapter 4: Network Layer

4.1: Introduction

Key Network-Layer functions

  1. Routing: determine the path taken by packets from source to dest
    1. Build a minimum-cost table at each router
    2. Table has next-hop neighbor for each possible destination
    3. Goal: send packet along the least-expensive path
  2. Forwarding: move packets from a router’s input port to the router’s output port (physical interface (NIC) inside router, not a TCP/UDP port!)
    1. Table lookup
    2. Port-to-port transfer
    3. Goal: efficiency
    4. Note this is within a single router!

Screen Shot 2022-11-08 at 23.30.27.png

  1. Connection setup in certain network architectures, e.g. ATM (Asynchronous Transfer Mode):
    1. Before datagrams flow in such networks, two hosts and intermediate routers establish virtual circuit (VC). Routers get involved to set up a path

4.2: Virtual Circuit and Datagram Networks

Virtual Circuits

If this was a forwarding table for a datagram network, then the 2 columns would be destination address and outgoing interface.

If this was a forwarding table for a datagram network, then the 2 columns would be destination address and outgoing interface.

Screen Shot 2022-11-08 at 23.38.29.png

Datagram Networks