Skip to content

Latest commit

 

History

History
77 lines (55 loc) · 4.92 KB

File metadata and controls

77 lines (55 loc) · 4.92 KB
title Unit 4: Introduction to the Network Layer
id unit4-topic1
tags
unit4
network-layer
forwarding
routing
data-plane
control-plane
aliases
Network Layer Introduction

Unit 4, Topic 1: Introduction to the Network Layer

Welcome to Unit 4. We now move down the protocol stack to the Network Layer. While the Transport Layer provides logical communication between processes, the Network Layer is responsible for providing logical communication between hosts. Its primary role is to move packets, called datagrams, from a sending host to a receiving host, possibly across many intermediate routers.


1. Two Key Functions: Forwarding and Routing

The Network Layer has two fundamental functions, which are often confused but are distinct:

  1. Forwarding:

    • What it is: The local action a router takes to move an arriving packet from one of its input links to the appropriate output link. This decision is made by consulting a forwarding table.
    • Analogy: Forwarding is like a driver at a single intersection looking at road signs to decide which exit to take.
    • Where it happens: This is the primary job of the data plane. It needs to be extremely fast and is often implemented in hardware.
  2. Routing:

    • What it is: The network-wide process that determines the end-to-end paths that packets take from a source to a destination. Routing algorithms calculate the contents of the forwarding tables.
    • Analogy: Routing is the collective process of creating the map and all the road signs that drivers will use. It's the "GPS" of the network.
    • Where it happens: This is the primary job of the control plane. It's a more complex, slower process typically implemented in software (e.g., routing protocols running on a router's CPU).

[!summary] Forwarding is the local action of moving a packet from input to output. Routing is the global process of determining the paths to populate the tables that enable forwarding.


2. The Data Plane and the Control Plane

This separation of concerns is a critical concept in modern networking.

  • Data Plane:

    • Function: Per-router forwarding.
    • Timescale: Operates on the nanosecond timescale for each datagram.
    • Implementation: Typically hardware-based (e.g., ASICs) for speed.
    • In simple terms: The part of the router that actually moves the data packets.
  • Control Plane:

    • Function: Network-wide routing logic. Determines how forwarding tables are created and updated.
    • Timescale: Operates on the timescale of seconds or minutes. Routing algorithms are not run for every packet.
    • Implementation: Typically software-based, running on the router's main CPU or a centralized controller.
    • In simple terms: The "brain" of the network that determines the paths.

3. The Network Service Model

What service does the Network Layer provide to the Transport Layer above it?

A network layer could provide many different services, such as guaranteed delivery or guaranteed bandwidth. However, the Internet's network layer provides only one service, known as best-effort service.

Best-Effort Service

This means the network layer makes its "best effort" to deliver segments between hosts, but it makes no guarantees. Specifically:

  • No guaranteed delivery: Packets can be lost.
  • No guaranteed ordering: Packets can arrive out of order.
  • No guaranteed timing: Packets can experience long and variable delays (jitter).
  • No guaranteed bandwidth: There is no promise of a minimum throughput.

Why Best-Effort?

This model keeps the network core (the routers) simple, fast, and cheap. All the complexity required for reliability (like in TCP) is pushed to the "edges" of the network—the end systems. This design principle has been fundamental to the Internet's success and scalability.

Other network architectures, such as ATM (Asynchronous Transfer Mode), offered more complex services like Constant Bit Rate (CBR), which aimed to provide a guaranteed bandwidth and timing (like a virtual circuit). While useful for things like real-time voice, the complexity required in the routers made this approach less scalable and adaptable than the Internet's simple best-effort model.


Exam Focus

  • 2-Mark Questions:
    • What is the difference between forwarding and routing?
    • What is the data plane? What is the control plane?
    • What is "best-effort service" in the context of the Internet's network layer?
  • 10-Mark Question:
    • "Describe the two key functions of the network layer. In your answer, differentiate between the data plane and the control plane, explaining the role and typical implementation of each."
      • Tip: Use the intersection/map analogy for forwarding/routing. Clearly state that forwarding is a local data plane function (hardware, fast), while routing is a global control plane function (software, slower).