Logo

How Routers Work [Routing Table + Process]

First of all, it has the two given information for routing:

  1. A [source IP] address
  2. A [destination IP] address

It has the following three cases that it works on:

  • [CASE 1]: IP in local Network -> Forward

  • [CASE 2:] IP nowhere -> Drop

  • [CASE 3]: IP in GW's Network -> Store & Forward

Every-time the router forwards packets, it stores information in a table called “Routing Table”

Example of a routing table:

DestinationSubnet MaskInterface
128.75.43.0255.255.255.0Eth0
128.75.43.0255.255.255.128Eth1
192.12.17.5255.255.255.255Eth2

Default Gateway

Pasted image 20241013184253.png

A default gateway is a route to which information is passed when the device does not know where the destination is present.

[Example:] A PC uses a router to be its default network to make all unknown packets be forwarded through the router

© 2025 All rights reservedBuilt with DataHub Cloud

Built with LogoDataHub Cloud