Unit-3 Routing Protocol
Unit-3 Routing Protocol
Routing is the process of moving information from a source to a destination across the
internetwork. Typically, at least one intermediary node is encountered along the path.
Routing takes place at Layer 3 (the network layer) of the OSI model. Typically, networks
employ a combination of static and dynamic routing. Static routing is preferable for small
networks, whereas dynamic routing is ideal for large networks.
Routing protocols are mechanisms for exchanging routing information between routers
to make routing decisions. Routing protocols can facilitate e ective and e icient
communication between computer networks. Regardless of the scale of the network,
these protocols facilitate the secure delivery of data to its destination. Understanding the
various categories and types helps determine which routing method will best meet your
goals.
Depending on their properties, routing protocols can be categorized into distinct classes.
In particular, routing protocols can be categorized according to
their behavior, purpose and operation.
IGRP: IGRP (legacy) is Cisco's IGP, distance vector, classy protocol (deprecated
from 12.2 IOS and later)
EGP
The Routing Information System (RIP) was first defined in RFC 1058 as a first-generation
routing protocol for IPv4. RIP is a distance-vector routing protocol that uses the metric
hop count. RIP is straightforward to configure, making it an excellent option for small
networks.
Greater than 15 hops is considered infinite (too far). This 15th hop router would
not transmit the routing update to the following router.
In 1993, RIPv1 evolved into RIP version 2, a classless routing protocol (RIPv2). RIPv2
brought the subsequent enhancements:
Classless routing protocol support: It supports VLSM and CIDR because routing
updates include the subnet mask.
RIP updates are contained in a UDP segment with both the source and
destination ports set to UDP port 520.
The IPv6-enabled version of RIP was introduced in 1997. RIPng is an extension of RIPv2
restricted to 15 hops, the administrative distance is 120. This hop count limitation
renders RIP unsuitable for larger networks.
Open Shortest Path First (OSPF) is the most prevalent link-state routing protocol. OSPF
is the most common protocol that routers use to determine the optimal path to forward
tra ic. The OSPF Working Group of the Internet Engineering Task Force (IETF) designed
it. OSPF development began in 1987, and there are currently two active versions:
OSPFv2: OSPF for IPv4 networks (RFC 1247 and RFC 2328)
OSPFv3 now supports both IPv4 and IPv6 thanks to the Address Families functionality.
OSPF implements the link state routing algorithm and is utilized in medium- to large-sized
networks. OSPF is an intradomain routing protocol that only operates within a specific
routing domain. OSPF is also a hierarchical routing protocol that may be used in a single
autonomous system. OSPF emerged from the intermediate-system-to-system (IS-IS)
routing protocol of the Open Systems Interconnection (OSI) reference model. OSPF
enables multipath routing and uses one or more routing metrics, including dependability,
bandwidth, latency, load, and maximum transmission unit (MTU). If OSPF utilizes many
metrics, it also allows type-of-service (TOS) requests for tra ic di erentiation.
OSPF, is a link-state, interior gateway, and classless protocol that uses the shortest path
first (SPF) algorithm to ensure e icient data transmission. Internally, this type maintains
numerous databases containing topology tables and network-wide information.
Typically, the data is derived from link state advertising transmitted by individual routers.
The advertising, which resembles reports, provides thorough details of the path's length
and the resources that may be necessary.
OSPF utilizes the Dijkstra algorithm to recalculate paths when topology changes occur. It
also employs authentication procedures to maintain the security of its data throughout
network modifications and intrusions. Due to its scalability, OSPF may be advantageous
for both small and large network enterprises.
The capacity to manage many "types of services" with a single set of data
Low overhead, indicating that IGRP should not consume more bandwidth than it
needs for its own operation
Bandwidth of the path section with the smallest bandwidth. The transmission
rate in bits per second.
Topological delay time. The time it would take for a packet to reach its
destination if the network were not crowded. If there is network tra ic on the
network, you may experience additional delays.
Dependability of the route. Indicates the path's reliability based on the number
of packets that really arrive at the destination, relative to the total number of
packets transmitted.
Hold-downs, Split horizons, and Poison-reverse updates are further significant stability
characteristics of IGRP.
Split horizons: Used to prevent routing loops from occurring between two routers.
It is never advantageous to relay route information back in the direction from
whence a packet was sent.
Poison-reverse updates: Used to reduce loops between many routers. When the
metric rises dramatically, it may suggest a routing loop. The router is subsequently
placed on hold-down by sending it a poison-reverse update.
Utilizing timers and variables containing time intervals is another characteristic of IGRP's
stability. Included among the timers are as follows:
Update Timer: The update timer specifies how frequently update messages are
transmitted. The IGRP default update interval is 90 seconds.
Invalid Timer: The invalid timer specifies how long a router will wait before
declaring a route invalid if it is not receiving routing update messages. The default
value for the IGRP invalid timer is three times the update timer.
Hold-time Period: The hold-time period (also known as the hold-down period) will
indicate the duration of the hold-down period. The default hold-time for IGRP is
three times the update interval plus ten seconds.
Flush Timer: The flush timer specifies the amount of time that must elapse before
a route is removed from a routing database. The default value of the IGRP flush
timer is seven times the update interval.
Sleep Timer: The sleep timer specifies how long update messages will be delayed.
The sleep value should be less than the update timer; otherwise, the routing tables
will never be synchronized.
Bounded triggered updates: This type of update does not transmit frequent
updates. Only updates to the routing table are propagated whenever a change
occurs. This decreases the network load imposed by the routing protocol. Bound
triggered updates allow EIGRP to only deliver updates to neighbors that require
them. It uses less bandwidth, particularly in big networks with several routes.
Multiple network layer protocol support: EIGRP is the only protocol that
supports protocols other than IPv4 and IPv6, including legacy IPX and AppleTalk,
because it employs Protocol Dependent Modules (PDM).
The Exterior Gateway Protocol (EGP) was a routing protocol used to connect autonomous
systems on the Internet from the mid-1980s to the mid-1990s when it was replaced by
the Border Gateway Protocol (BGP). EGP was created by Bolt, Beranek, and Newman in
the early 1980s. It was first mentioned in RFC 827 and stated formally in RFC 904. RFC
1772 outlined an EGP to BGP migration path. EGP does not utilize routing metrics;
instead, it merely tracks which networks are currently accessible via a given router.
Route costs
Identified routers
EGP maintains network databases close to one another to route the various paths data
may travel to reach its destination. The databases then distribute the information to the
connected routers so that all routers' tables are current. The updated routing tables can
assist in determining the optimal data route.
This protocol has gone out of favor since it cannot operate in multipath networking
situations. The EGP protocol functions by maintaining a database of neighboring
networks and the possible routing pathways to reach them. These route details are
transmitted to connected routers. Once it comes, the devices can update their routing
tables and select network paths based on more accurate information.
BGP is an alternative exterior gateway protocol that was created to replace EGP. BGP is
the routing protocol used to exchange routes between internet service providers and
autonomous systems (AS) on the internet. BGP employs the optimal path selection
technique for data package transfers, making it a distance vector protocol. To
automatically find the optimal route, BGP refers to the following variables:
Adjacent IP addresses
Router designation
Path distance
Origin type
The BGP Best Path Selection Algorithm is utilized to determine the optimal paths for data
packet transfers. If no special parameters have been configured, BGP will select routes
with the shortest path to the destination.
BGP enables administrators to modify transfer routes based on their requirements and
provides extensive security measures to ensure that only authorized routers can
exchange data and information. The algorithm for selecting the optimal route path can be
modified by modifying the BGP cost community attribute. BGP is able to make routing
decisions based on factors including weight, local preference, locally generated, AS Path
length, origin type, multi-exit discriminator, eBGP over iBGP, IGP metric, router ID, cluster
list, and neighbor IP address.
BGP only transmits updated routing table data when a change occurs. Therefore, there is
no auto-discovery of topology changes, and the user must manually set up BGP.
Regarding security, the BGP protocol can be verified so that only authorized routers can
exchange data.
BGP was chosen over OSPF because BGP allows device designers and owners greater
flexibility and control than OSPF. BGP processes include options for which routes should
be broadcast and which alerts the device will accept. It provides extra options for route
choosing. This allows us greater flexibility to avoid overloading specific lines that OSPF
would automatically presume to be the fastest path.
IS-IS was originally built for the OSI protocol suite and not TCP/IP. Later, Integrated IS-IS
or Dual IS-IS added IP network capability. IS-IS was formerly known as the routing
protocol used mostly by ISPs and carriers, although enterprise networks are increasingly
adopting it.
IS-IS protocol employs a modified form of the Dijkstra algorithm. Typically, the protocol
groups routers together to build bigger domains and connects routers for data transport.
IS-IS employs these two network types frequently:
Routers utilize dynamic routing protocols to allow the transmission of routing information
between routers. The objective of dynamic routing protocols comprises the discovery of
remote networks, the maintenance of up-to-date routing information, the selection of the
optimal way to destination networks, and the capacity to discover a new optimal path if
the present path is no longer available. While dynamic routing protocols require less
administrative overhead than static routing, they nonetheless demand a portion of a
router's resources, including CPU time and network link bandwidth, for protocol
execution.
The discovery of remote networks and the maintenance of reliable network information
are the responsibilities of routing protocols. When there is a change in topology, routing
protocols notify the entire routing domain. Convergence is the process of bringing all
routing tables to a consistent state when all routers in the same routing domain or area
have complete and accurate network information. Certain routing protocols converge
more quickly than others.
Classifications for routing protocols include classful or classless, distance vector or link-
state, and Interior Gateway Protocol or Exterior Gateway Protocol.
Distance vector protocols utilize routers as "sign posts" on the way to the final
destination. The only information a router has about a distant network is the distance or
metric required to reach it, as well as the way or interface used to reach it. Distance
vector routing techniques lack a true network topology diagram.
By collecting data from all of the other routers, a router configured with a link-state
routing protocol is able to construct a comprehensive network topology by collecting
data from all of the other routers.
Routing protocols use metrics to identify the optimal or shortest path to a destination
network. Various routing protocols may have distinct metrics. Generally, a lower metric
indicates a superior path. Hops, bandwidth, delay, reliability, and load can be used to
determine a metric's value.
Multiple routes to the same network may be learned by routers via both static and
dynamic routing protocols. When multiple routing sources provide information on a
target network, routers use the administrative distance value to select which source to
use. Along with static routes and directly connected networks, each dynamic routing
protocol has a distinct administrative value. The less administrative value a route source
has, the more desired it is. Directly connected networks are always preferable over static
and dynamic routing methods.
Algorithm: An algorithm is a finite list of steps that are utilized to complete a task.
Routing protocols utilize algorithms to facilitate routing information and to
determine the optimal path.
2. The router exchanges routing messages and routing data with other routers
employing the same routing protocol.
4. When a router detects a change in topology, the routing protocol might broadcast
this information to other routers.
Dynamic routing protocols are more expensive in terms of CPU and bandwidth usage and
less secure as compared to default and static routing.
Features RIP V1 RIP V2 IGRP OSPF EIGRP
Compo
Composite site,
Bandwi
Metric Hop Hop Bandwidth, Bandwi
dth
Delay dth,
Delay
30 30
Periodic 30 seconds secon 90 seconds None second
ds s
224.0.0
Advertising [Link] 223.0. [Link] .5 224.0.0.
Address 55.255 0.9 55.255 224.0.0 10
.6
Distan
Distance Distance Link
Category ce Hybrid
Vector Vector State
Vector
Default Dista
120 120 200 110 170
nce
1982 - EGP
1985 - IGRP
1988 - RIPv1
1990 - IS-IS
1991 - OSPFv2
1992 - EIGRP
1994 - RIPv2
1995 - BGP
1997 - RIPng
2000 - IS-ISv6
A network protocol is an agreed collection of rules that govern the transmission of data
between devices on the same network. A network protocol enables connected devices
to communicate despite internal processes, structure, or design variances. Network
protocols play a crucial part in current digital communications because they make it
possible to communicate with people all over the world.
The Internet protocols are the most widely used open-system (nonproprietary) protocol
suite in the world because they can be used to communicate across any set of
interconnected networks and are suitable for both LAN and WAN communications. The
two most well-known Internet protocols are the Transmission Control Protocol (TCP) and
the Internet Protocol (IP). The Internet protocols are a suite of communication protocols,
of which the Transmission Control Protocol (TCP) and the Internet Protocol (IP) are the
best. In addition to lower-layer protocols (such as TCP and IP), the Internet protocol suite
also specifies typical applications such as electronic mail, terminal emulation, and file
transfer.
The data networks we use to learn, play and work in our daily lives ranging from small,
local networks to enormous, global networks. Multiple routers and switches may serve
the data connectivity needs of hundreds or thousands of PCs within an enterprise.
In a big network consisting of several networks and subnets, designing and maintaining
static routes between these networks takes a substantial amount of administrative and
operational overhead. This operational burden is particularly burdensome when network
changes occur, such as a downlink or the implementation of a new subnet. Implementing
dynamic routing protocols can lighten the load of configuration and maintenance duties
and provide scalability to the network.
Dynamic routing protocols demand less administrative work than static routing.
However, dynamic routing protocols require a portion of a router's resources, including
CPU time and network link bandwidth, for protocol execution. Despite the advantages of
dynamic routing, there is still a role for static routing. There are instances where static
routing is preferable and others when dynamic routing is preferable. In networks with a
modest degree of complexity, both static and dynamic routing may be established.
A rapid convergence
Easy to configure
Adapts to alterations
Due to the fact that the Internet is based on the AS idea, two types of routing protocols
are required:
Interior Gateway Protocols (IGP): These are protocols used for routing within an
AS. This is also known as the intra-AS route. Internal networks of businesses,
organizations and even service providers use an IGP. RIP, IGRP, EIGRP, OSPF, and
IS-IS are IGPs.
Exterior Gateway Protocols (EGP): Used for routing between autonomous
systems. This is also known as the inter-AS route. Using an EGP, service providers
and huge corporations can interconnect. The Border Gateway Protocol (BGP) is
the Internet's o icial routing protocol and the only EGP that is currently
operational. Since BGP is the sole available EGP, the word EGP is rarely used;
instead, engineers typically refer to BGP.
There are instances in which a routing protocol discovers many routes to the same
destination. For the routing protocol to select the optimal path, it must be able to analyze
and di erentiate amongst the available paths. This is achieved with the use of routing
metrics.
A metric is a quantitative value assigned to di erent routes by the routing protocol based
on the usefulness of that route. In instances where numerous paths exist to the same
remote network, routing metrics are used to calculate the "cost" of a path from source to
destination. Routing protocols find the optimal path based on the least expensive route.
Various routing protocols employ distinct metrics. One routing protocol's metric cannot
be compared to the metric of another routing protocol. Two distinct routing protocols
may select distinct routes to the same destination.
Reliability: Reliability is a metric factor that may be given a constant value. Its
value is dynamically measured and is dependent on the network links. Some
networks experience outages more frequently than others. Some network links
are easier to repair than others after a network breakdown. Any dependability
element may be considered when assigning reliability ratings, which are typically
issued by the system administrator as numeric values.
Delay: The amount of time a router needs to process, queue, and transmit
a datagram to an interface. This measure is used by the protocols to determine the
delay values for all links along the end-to-end path. The route with the lowest
delay value will be considered the optimal route.
Hop count: Hop count is a measure that specifies the number of internetworking
devices, such as a router, through which a packet must pass in order to go from
source to destination. If the hop is considered a major metric value by the routing
protocol, then the path with the fewest hops will be deemed the optimal way from
source to destination.
Load: Load is the degree to which a network resource, such as a router or network
link, is utilized. A load can be determined in numerous ways, including CPU use
and packets processed per second. If the volume of tra ic increases, so will the
load value. The load value adapts to the fluctuating volume of tra ic.
Bandwidth: The capacity of the link is referred to as its bandwidth. The bandwidth
is quantified in bits per second. The connection with a higher transfer rate, such
as gigabit, is chosen over the connection with a smaller capacity, such as 56 kb.
The protocol will assess the bandwidth capacity of each link along the route, and
the route with the highest bandwidth will be deemed the optimal one.
Speed of convergence: The speed of convergence is the rate at which the routers
in a network architecture share routing information and attain a state of consistent
knowledge. The more rapidly a protocol converges, the more desirable it is. When
inconsistent routing tables are not updated due to poor convergence in a dynamic
network, routing loops can arise.
Classful vs Classless: Classful routing protocols do not include the subnet mask
and cannot support variable-length subnet mask (VLSM). Updates for classless
routing protocols include the subnet mask. Classless routing techniques support
VLSM and provide for improved route summarization.
Scalibility/Size
Small Small Small Large Large Large
of Network
Resource
Low Low Low Medium High High
Usage
Implementatio
Simpl Simpl Simpl Comple Comple Comple
n &
e e e x x x
Maintenance
The IP address is accountable for identifying and routing network systems. Each device
has a unique Internet protocol address.
No. VPN stands for Virtual Private Network, which enables a user to connect to a private
network securely and privately over the Internet. VPN creates an encrypted connection
known as a VPN tunnel, through which all Internet tra ic and conversation are routed.
Some VPN protocols are as follows:
IPsec
L2TP
PPTP
OpenVPN
WireGuard
No. If you install a VPN on your router, you might anticipate speed and performance
issues. Since deploying a VPN on your router imposes new network management
responsibilities such as tra ic encryption/decryption that is memory-intensive and CPU-
intensive operations. Additionally, the router must periodically connect to a certain VPN
server, which requires processing power.
Yes, next-generation firewall(NGFW) solutions support IPv4 and IPv6 routing protocols.
For instance, OPNsense powered with Zenarmor next-generation firewall plugin o ers
dynamic routing protocols, like RIP v1 and v2, OSPFv2 and v3, and BGPv4. In order to use
one or more of the dynamic routing protocols included, OPNsense firewall
administrators must install os-frr, FRRouting Protocol Suite plugin.
OSPF and EIGRP are the most used Interior routing protocols. And the most
used Exterior routing protocol is BGP.
Among the most popular dynamic routing algorithms are Link State Routing and Distance
Vector Routing. Both of these fall under the category of intradomain routing, which deals
with device routing inside a single network.
A router uses the variable Distance Vector Routing algorithm to determine the distances
to all potential destinations based simply on its near neighbors; at regular intervals, the
router's routing database is shared with routers that are immediately linked.
As a dynamic routing algorithm, Link State Routing di ers from Distance Vector Routing
in that each router keeps track of the entire network. Rather than sharing information with
neighbors, routers share their link state information throughout the network to ensure
that every router has the same view of the network topology.
The cloud-based tools that let you control and keep an eye on your routing for cloud
connectivity are called routing services. In addition to providing insight and analytics into
the health and performance of your network, they may make it easier to configure and
maintain routing protocols, rules, and devices.
Furthermore, the sending of data packets from a source to a destination across networks
is made possible by routing services, which are crucial parts of network architecture.
Based on di erent routing protocols, policies, and network circumstances, these
services are in charge of figuring out the optimal route for tra ic. Whether networks are
on-premises, over the internet, or in cloud settings, these routing services and protocols
are essential to maintaining dependable and e ective communication both inside and
between them. In this regard, you may improve the e ectiveness, security, and scalability
of your network and eventually further your career in computer networking by studying
and using the best routing methods for cloud connection.
A network's overall e iciency, dependability, and user experience can all be impacted by
a number of factors that a ect routing performance. Routing protocols are one of them.
Routing performance may be greatly impacted by the way routing protocols are
configured, including characteristics like timers, metrics, and path selection algorithms.
Slow convergence, less-than-ideal path selection, or even routing loops might result from
improper setup.
Choosing the correct routing method may maximize a number of aspects, including
throughput, fault tolerance, overhead, jitter, packet loss, and load balancing. By doing
this, the user experience and service quality will improve. Therefore, you can guarantee
that your network performs at its best and provides the performance and dependability
that your customers and applications want by proactively addressing routing issues and
putting suitable solutions in place.
Using the best network routing practices keeps your network operating at peak
performance. We outline a few ways that sound routing protocols contribute to e icient
network operation below.
Steer clear of downed gadgets: Despite your e orts to keep your network's
nodes up and running, they aren't always accessible. You require data to be
redirected in case of an unexpected event or accident that disables a node.
Network routing tables give your routers a backup channel for data in the event
that a node is inaccessible by storing information about where data can go. This
implies that the performance of your network won't be significantly impacted by
broken or otherwise unavailable equipment.
Avoiding excessive bandwidth: There is a limit to how much tra ic your network
can manage at once. The highest data transfer rate that a network can achieve is
known as its bandwidth. Networks choose data packet routes according to the
available bandwidth space to prevent overloading. The network will send packets
along a di erent path if a route is currently clogged with too many data transfers.
Networks can easily identify a backup route if necessary since they are made up
of several nodes with di erent pathways connecting them.
Quick access to data: Faster data access is the most evident performance
benefit of network routing. The network must decide the best path for the
information to go when a device requests access to it. Based on the location of
the device requesting the data and the place where the data is kept, it determines
the optimal path. The network can send the data as quickly as possible by
mapping out the path it should take.
The scale of the network, the need for power consumption, the need for data transfer,
and the particular application all influence the routing protocol selection in the Internet
of Things. Because every protocol has advantages and disadvantages, it is crucial to
select the best one for the given use case and environment.
A number of network layer routing protocols are especially made to address the
particular di iculties presented by Internet of Things (IoT) contexts, including low power
consumption, constrained bandwidth, and the requirement for scalability. Several well-
known network layer routing protocols for the Internet of Things (IoT) are as follows.
1. Routing Protocol for Lossy and Low-Power Networks, or RPL: RPL was created
especially for lossy and low-power networks (LLNs), which are prevalent in
Internet of Things applications. Both point-to-point and point-to-multipoint
communication are supported.
o Use a number of parameters, such as hop count, energy, and latency, for
route selection.
3. Zigbee: Using low-power digital radios, Zigbee is a specification for a set of high-
level communication protocols. It is extensively utilized in industrial and home
automation applications.
o Operates over a range of frequency bands, including 2.4 GHz and 915 MHz.
4. Long Range Wide Area Network, or LoRaWAN: LoRaWAN is intended for wide-
area, low-power networks. Applications needing low power consumption and
long-range communication can use it.
o Makes use of gateways that connect to several end devices using a star
architecture.
Routing algorithms determine the best path for data, classified into static (non-adaptive)
and dynamic (adaptive) types. Key dynamic protocols include Distance Vector (DV) and
Link State (LS) routing. DV (e.g., RIP) uses the Bellman-Ford algorithm to share routing
tables with neighbors, whereas LS (e.g., OSPF) uses Dijkstra’s algorithm to flood network
topology information for faster convergence.
o Distance Vector (DV) Routing: Routers share their full routing table with
neighbors periodically.
o Link State (LS) Routing: Routers flood the status of their direct links to all
routers, creating a complete map.
Knowledge Knows only distance & next hop Knows complete network map
Scaling Good for small networks Best for large, complex networks
Key Di erences
3. Update Content: DV shares full routing tables with neighbors, while LS only
shares incremental link state changes.
SPF is the core logic used by link-state protocols to determine the most e icient
path through a network.
Dijkstra’s Algorithm: The primary SPF algorithm. Each router views itself as the
"root" of a tree and calculates the least-cost path to every other node based on a
complete map of the network.
Flooding Mechanism: To build this map, routers use "flooding." When a change
occurs, a router sends Link State Advertisements (LSAs) to all neighbors, who
then forward them to their own neighbors until every router in the area has an
identical Link State Database (LSDB).
Benefits: Rapid convergence and loop-free topology because every router has the
full "picture" of the network.
o Updates: Broadcasts its entire routing table every 30 seconds, which can
be ine icient for large networks.
Multi-Area OSPF:
o Area 0 (Backbone): The core of the OSPF network. All other areas must
connect to it to exchange routing info.
o Area Border Router (ABR): Routers that sit on the boundary of two areas.
They summarize routes from one area before passing them to the next,
reducing the size of routing tables.
Benefits of Hierarchy:
o Scalability: Limits the scope of LSAs; a link failure in one area doesn't force
routers in another area to recalculate their entire SPF tree.