Describe the role and function of a router in a network

2.1 Networks including the Internet

What is a Router?

A router is like a traffic cop for data packets. It decides which way a packet should go to reach its destination.

How Does a Router Work?

Routers use a routing table to store information about the best paths to different networks.

  1. Packet arrives at the router.
  2. Router reads the destination IP address.
  3. Router looks up the address in its routing table.
  4. Router forwards the packet to the next hop.

Routing Table Example

Destination Subnet Mask Next Hop Interface
192.168.1.0 255.255.255.0 0.0.0.0 eth0
10.0.0.0 255.0.0.0 10.0.0.1 eth1

Analogy: The Post Office

Think of a router as a post office. When you send a letter (data packet), the post office checks the address (IP) and forwards it to the correct delivery route.

Key Functions of a Router

  • Connects multiple networks together.
  • Forwards data between devices.
  • Provides security by filtering traffic.
  • Can perform Network Address Translation (NAT) to share a single public IP.

Why Are Routers Important?

Without routers, all devices would need a direct connection to each other, which is impractical. Routers make the Internet possible by linking millions of devices worldwide.

💡 Remember: A router is the smart traffic controller that keeps data moving efficiently across the network.

An IP address looks like $192.168.1.1$.

$$\text{Routing Table Entry} = \{ \text{Destination}, \text{Subnet Mask}, \text{Next Hop}, \text{Interface} \}$$

Revision

Log in to practice.

2 views 0 suggestions