Consica Labs

Consica Labs
Chapter 8

Routers and Data Paths

How data finds its way across the Internet

Data doesn't travel randomly. It follows paths.

Routers help decide the best path.

What Is a Router?

A router directs packets to their destination.

Think of it as a traffic police officer.

It decides:

  • Which road to use
  • Which route is fastest
  • How to avoid congestion

Example

Traveling from Nepal to Japan.

You might use:

Kathmandu
Delhi
Singapore
Tokyo

Data packets also pass through multiple locations.

Interactive Diagram

Launch the interactive diagram to see this in action.

Open Interactive Diagram
Your device
Home Router (NAT)
ISP Router
Regional Router (BGP)
Destination Server

A packet traverses multiple routers from source to destination.

Introduction

The internet is a massive network of interconnected devices. But how does your data find the right destination?

Routers are the traffic directors of the internet — they examine each packet and forward it along the best available path.

How It Works

Imagine you are mailing a letter. The post office looks at the address and decides which truck should carry it.

A router does the same for data — it reads the destination and sends the packet the right way.

Key Idea: Routers are like postal workers for the internet.


Deeper Dive

Every packet traveling across the internet contains a source and destination IP address. Routers use routing tables to decide where to send each packet.

These tables are constantly updated using protocols like BGP (Border Gateway Protocol) and OSPF (Open Shortest Path First).

If one path goes down, routers automatically re-route traffic through an alternate path.


Advanced

Routers operate at Layer 3 (Network Layer) of the OSI model. They examine the IP header of each packet, perform a longest-prefix match against the routing table, and forward the packet to the next hop.

Core internet routers use BGP to exchange reachability information between Autonomous Systems (AS). Interior gateway protocols like OSPF or IS-IS handle routing within an AS.

Features like NAT, ACLs, QoS, and VPN termination are commonly handled by enterprise-grade routers.

Vocabulary Table

Term Definition
RouterDevice that forwards data packets between networks
PacketSmall unit of data transmitted over a network
Routing TableDatabase of routes used by a router to forward packets
HopOne leg of a packet's journey between routers
BGPBorder Gateway Protocol — routes between autonomous systems
OSPFOpen Shortest Path First — interior gateway protocol
LatencyTime delay for data to travel from source to destination
NATNetwork Address Translation — maps private IPs to public IPs
Autonomous SystemLarge network under a single administrative control
Next HopThe next router a packet is sent to on its path

Fun Facts

  • The first router was built in 1969 as part of the ARPANET project.
  • Core internet routers can handle over 100 billion packets per second.
  • The BGP routing table has grown to over 950,000 routes as of 2025.
  • Routers use something called "split horizon" to prevent routing loops.
  • A packet can take a completely different return path than its outbound path.

Misconceptions

A router and a modem are the same thing

A modem connects to your ISP; a router distributes that connection to devices. Many home devices combine both.

Data always takes the shortest path

Routers consider speed, congestion, and policies — not just distance.

More hops always means slower speed

A shorter path through congested links can be slower than a longer path with high-speed fiber.

Routers only forward data

Modern routers also filter traffic, enforce security rules, translate addresses, and manage bandwidth.

Knowledge Check

1. What does a router use to decide where to send a packet?

2. Which protocol is used for routing between different autonomous systems?

3. At which OSI layer do routers operate?

4. True or False: A packet always takes the same path for both directions.

5. True or False: Routers can filter traffic based on security rules.

6. Match: NAT stands for ___ .

7. Fill in the blank: A router uses a ___ to store known routes.

8. Fill in the blank: The time delay for data to travel is called ___ .

Show Answers

1. Routing table

2. BGP

3. Layer 3 (Network)

4. False

5. True

6. Network Address Translation

7. routing table

8. latency

Critical Thinking

1. What happens to a packet if a router along its path fails?

Consider how routing protocols handle failures and reconvergence.

2. Why might a network administrator prefer a longer path with less latency over a shorter but congested path?

Think about the trade-offs between distance, speed, and reliability.

3. How does NAT allow multiple devices to share a single public IP address?

Explore how routers map private addresses to public ones.

Mini Projects

Project 1: Traceroute

Run tracert google.com (Windows) or traceroute google.com (macOS/Linux). Count the hops and note the IPs.

Project 2: Map Your Home Network

Draw a diagram of all devices connected to your home router. Identify which ones use wired vs wireless connections.

Teacher Notes

Learning Objectives: Students should understand the role of routers, how routing tables work, and basic routing protocols.

Discussion Prompts: Use the postal service analogy. Ask students what happens when a road is closed and traffic is re-routed.

Assessment Ideas: Have students trace a route to a distant server and document each hop. Use the knowledge check for review.

Extensions: Introduce concepts like BGP hijacking, anycast routing, and software-defined networking (SDN).