Vol. I · No. 46The hardware sectionSat, 10 Oct 2026
Layer 3 · Network device

Router

the IP router

A router is the box that decides which network a packet belongs on next. It reads the destination IP address, looks it up in a table of known routes, and forwards the packet one hop closer — the join between one network and every other.

A router connects two different networks and forwards packets between them by IP address.

Operates at
Layer 3
Network
Forwards by
IP address
Longest-prefix match
Boundary
Separates
broadcast domains
Typical use
The edge
home, office, ISP core

How it works

Two different networks, joined by one router
Your laptop
10.0.0.9
Network A · 10.0.0.0/24
eth0
packet out
Router
sits on both networks
and passes traffic between them
eth1
packet in
A server
203.0.113.5
Network B · 203.0.113.0/24
How the router decides where it goes
10.0.0.0/24 (Network A)out eth0
203.0.113.0/24 ← matchout eth1
0.0.0.0/0 (everything else)out eth1

The laptop on Network A can’t reach the server on Network B directly — they’re on different networks. The router sits on both, matches the destination 203.0.113.5 to Network B, and forwards it out eth1.

The main points

What a router does, step by step

1
Read the destination

A frame arrives; the router strips the L2 header and reads the destination IP inside the packet.

2
Look up the route

It finds the most specific matching prefix in its routing table — the longest-prefix match — to pick an egress interface.

3
Decrement & rewrite

It drops the TTL by one (killing loops), then wraps the packet in a fresh L2 frame for the next hop.

4
Forward one hop

Out it goes on the chosen interface. Routing protocols like OSPF and BGP keep the table current in the background.

In cybersecurity

Because every packet between networks passes through it, the router is the network’s first line of defence — and, if left open, its first way in.

The gatekeeper

Access-control lists let it drop or allow traffic by IP and port before it ever reaches the LAN.

Hides the inside

NAT masks every internal address behind one public IP, so hosts aren’t directly reachable from outside.

Segments the blast radius

Routing between subnets keeps a breach in one segment from spreading freely across the whole network.

A prime target

Default passwords and stale firmware turn a router into an easy foothold — patch it and change the credentials.

Where you watch

Its logs and flow records are the vantage point for spotting scans, exfiltration and odd traffic patterns.

The VPN edge

It terminates encrypted tunnels, letting remote sites and workers join the network over a trusted link.

Protocols it runs

IPv4IPv6OSPFBGPICMPNAT

Sits beside

SwitchFirewallModemNAT Gateway

On the bench

Router — IP router