• ↑↓ pour naviguer
  • pour ouvrir
  • pour sélectionner
  • ⌘ ⌥ ↵ pour ouvrir dans un panneau
  • ←→ pour naviguer
  • esc pour rejeter
⌘ '
raccourcis clavier

The Problem

A packet has destination IP — which next hop should router pick?

Formal Definition

Per Wikipedia: “Routing chooses next hop using tables built from protocols that exchange reachability and compute shortest path.”

Explanation

Routing is GPS for packets — each intersection consults map and forwards toward destination.

How It Works

  1. Router learns routes via protocol
  2. Builds forwarding table
  3. Looks up destination on arrival
  4. Forwards via best next hop
  5. Updates on topology change

Visual Explanation

routing_basics A Destination B Routing Table A->B step 1 C Next Hop B->C step 2

Semantic Network

semantic_routing_basics THIS Routing Basics REL1 Related THIS--REL1 related REL2 Prereq THIS--REL2 builds from

Key Properties

  • Decentralized — each router decides
  • Convergence time after failure
  • Longest prefix match for IP
  • May cause loops transiently

Real-World Example

ip route add 10.0.0.0/8 via 192.168.1.1

Connections

Edge Cases & Gotchas

  • Static routes stale after link fail
  • Loop without TTL — packet circles forever