Objective 4
Objective 4
Routing is the process of determining paths through a network for sending data
packets. It ensures that data moves effectively from source to destination,
making the best use of network resources and ensuring consistent
communication. Routing performed by layer 3 (or network layer) devices to
deliver the packet by choosing an optimal path from one network to another. It
is an autonomous process handled by the network devices to direct a data packet
to its intended destination. The node here refers to a network device called
Router.
Routing is classified into Static Routing, Default Routing, and Dynamic Routing.
In this article, we will see types of routing in detail.
Types of Routing
Routing is typically of 3 types, each serving its purpose and offering different
functionalities.
Static Routing
Definition:
No Router CPU Overhead: Since no dynamic calculations are done, the router
can use cheaper hardware.
Security: The administrator has full control over the network paths, restricting
access to particular networks.
Example Configuration:
Router R1:
IP Addresses:
Static Routes:
Router R2:
IP Addresses:
Static Routes:
Router R3:
IP Addresses:
Static Routes:
2. Default Routing
This is the method where the router is configured to send all packets toward a
single router (next hop). It doesn’t matter to which network the packet belongs,
it is forwarded out to the router which is configured for default routing. It is
generally used with stub routers. A stub router is a router that has only one
route to reach all other networks.
Advantages of Default Routing
Default routing provides a “last resort” route for packets that don’t match any
specific route in the routing table. It ensures that packets are not dropped and
can reach their intended destination.
Using the same topology which we have used for static routing before.
3. Dynamic Routing
Dynamic routing makes automatic adjustments of the routes according to the
current state of the route in the routing table. Dynamic routing uses protocols to
discover network destinations and the routes to reach them. RIP and OSPF are
the best examples of dynamic routing protocols. Automatic adjustments will be
made to reach the network destination if one route goes down. A dynamic
protocol has the following features:
The routers should have the same dynamic protocol running in order to
exchange routes.
When a router finds a change in the topology then the router advertises it to all
other routers.
Easy to configure.
More effective at selecting the best route to a destination remote network and
also for discovering remote networks.
SUMMARY :