Routing
Routing
o A Router is a process of selecting path along which the data can be transferred from source to
the destination. Routing is performed by a special device known as a router.
o A Router works at the network layer in the OSI model and internet layer in TCP/IP model
o A router is a networking device that forwards the packet based on the information available in
the packet header and forwarding table.
o The routing algorithms are used for routing the packets. The routing algorithm is nothing but a
software responsible for deciding the optimal path through which packet can be transmitted.
o The routing protocols use the metric to determine the best path for the packet delivery. The
metric is the standard of measurement such as hop count, bandwidth, delay, current load on the
path, etc. used by the routing algorithm to determine the optimal path to the destination.
o The routing algorithm initializes and maintains the routing table for the process of path
determination.
Routing metrics and costs are used for determining the best route to the destination. The factors used
by the protocols to determine the shortest path, these factors are known as a metric.
Metrics are the network variables used to determine the best route to the destination. For some protocols
use the static metrics means that their value cannot be changed and for some other routing protocols use
the dynamic metrics means that their value can be assigned by the system administrator.
o Hop count: Hop count is defined as a metric that specifies the number of passes through
internetworking devices such as a router, a packet must travel in a route to move from source
to the destination. If the routing protocol considers the hop as a primary metric value, then the
path with the least hop count will be considered as the best path to move from source to the
destination.
o Delay: It is a time taken by the router to process, queue and transmit a datagram to an interface.
The protocols use this metric to determine the delay values for all the links along the path end-
to-end. The path having the lowest delay value will be considered as the best path.
o Bandwidth: The capacity of the link is known as a bandwidth of the link. The bandwidth is
measured in terms of bits per second. The link that has a higher transfer rate like gigabit is
preferred over the link that has the lower capacity like 56 kb. The protocol will determine the
bandwidth capacity for all the links along the path, and the overall higher bandwidth will be
considered as the best route.
o Load: Load refers to the degree to which the network resource such as a router or network link
is busy. A Load can be calculated in a variety of ways such as CPU utilization, packets
processed per second. If the traffic increases, then the load value will also be increased. The
load value changes with respect to the change in the traffic.
o Reliability: Reliability is a metric factor may be composed of a fixed value. It depends on the
network links, and its value is measured dynamically. Some networks go down more often than
others. After network failure, some network links repaired more easily than other network links.
Any reliability factor can be considered for the assignment of reliability ratings, which are
generally numeric values assigned by the system administrator.
Types of Routing
o Static Routing
o Default Routing
o Dynamic Routing
Static Routing
o No Overhead: It has ho overhead on the CPU usage of the router. Therefore, the cheaper router
can be used to obtain static routing.
o Bandwidth: It has not bandwidth usage between the routers.
o Security: It provides security as the system administrator is allowed only to have control over
the routing to a particular network.
o For a large network, it becomes a very difficult task to add each route manually to the routing
table.
o The system administrator should have a good knowledge of a topology as he has to add each
route manually.
Default Routing
o Default Routing is a technique in which a router is configured to send all the packets to the
same hop device, and it doesn't matter whether it belongs to a particular network or not. A
Packet is transmitted to the device for which it is configured in default routing.
o Default Routing is used when networks deal with the single exit point.
o It is also useful when the bulk of transmission networks have to transmit the data to the same
hp device.
o When a specific route is mentioned in the routing table, the router will choose the specific route
rather than the default route. The default route is chosen only when a specific route is not
mentioned in the routing table.
Dynamic Routing
o All the routers must have the same dynamic routing protocol in order to exchange the routes.
o If the router discovers any change in the condition or topology, then router broadcast this
information to all other routers.
o It is easier to configure.
o It is more effective in selecting the best route in response to the changes in the condition or
topology.
Difference between Static and Dynamic Routing: Static routing and dynamic routing are two
fundamental concepts in network communication. Static routing uses preconfigured paths, while
dynamic routing automatically adjusts paths based on current network conditions.
Static routing provides high or more security. Dynamic routing provides less security.
Static routing is implemented in small networks. Dynamic routing is implemented in large networks.
In static routing, failure of the link disrupts the In dynamic routing, failure of the link does not interrupt
rerouting. the rerouting.
Less Bandwidth is required in Static Routing. More Bandwidth is required in Dynamic Routing.
Static Routing Dynamic Routing