Routing Protocols - Ccrm-2106
Routing Protocols - Ccrm-2106
- SAPNA BASSAN
INTRODUCTION
A routing protocol is the language a router speaks with other routers in order to share
information about the reach ability and status of network .It includes a procedure to
select the best path based on the reach ability information it has and for recording this
information in a route table. Regarding to select the best path, a routing metric will be
routers as a means of ranking them from the best to worst or from most preferred to
least preferred. Different routing protocols have different metrics. When there is more
than one route between two nodes, a router must determine a method of metrics by
ROUTING BASICS
To be able to route packets from source to the destination, a router should contain the
following information’s:
Destination Address
The router needs to prepare a routing table which is a map of the interconnectivity of
the nodes in the internetwork which contains details of which path to follow and how
to reach the remote network. Such a map is built on the basis of the information shared
among the nodes in the internetwork configured in the same routing protocol. The
administrator can also manually build the routing table. Each and every node in the
internetwork sends and receives updates to build up the topology. For the adjacent
nodes, the node has the path to reach it i.e. the exit interface to reach the neighbour
the node must find its way to the destination node. Such a node can find the required
requires manually creation and updating of the routing table by the administrator by
inserting all network information into each node. Dynamic Routing is better than
Static Routing. In the case of the Dynamic Routing, the nodes exchange details on the
basis of the routing protocol configured in the node. This information is updated in
the routing table. If any change occurs in the internetwork the sharing process starts
and the information is exchanged until all the nodes are converged to the same routing
table.
ADMINISTRATIVE DISTANCE
information. The value depends on the information that a router receives from its
neighbour routers. The Administrative Distance is a value which ranges from 0 to 255,
where 0 means it is the most trusted and 255 means that it doesn’t allows any traffic
to pass through it. If in case, a router receives more than one update from the same
network, and then the router which receives such updates checks for the AD value.
The AD value for each update will differ and the router accepts only that AD value
which is the lowest and this value are updated in the routing table of the router.
A connected interface 0
A Static Route 1
RIP 120
EIGRP 90
OSPF 100
If a network is directly connected to a router, then that router will use the interface
connected to the network always. If any routing protocol is configured in the router,
then also the router chooses the connected interface as default as its AD value is less.
If in the router multiple routing protocols are configured then on receiving updates
from the same network with similar routing protocols then it chooses the least AD
value. For example, if the router has a static route, a RIP route and also an OSPF route
to the same network, then the router will use the static route always by default.
ROUTING METRICS
1. Hop count: - The number of routers which a packet will pass before arriving at the
destination router.
4. Delay: - It measures the total time taken by a packet to move from the source router
link.
2. route management - keep track of all the possible destinations (for network
3. path determination - make dynamic decisions for where to send each network
message
A few routing protocols(called link state protocols) enable a router to build and track a
full map of all network links in a region while others (called distance vector
protocols) allow routers to work with less information about the network area. IP
routing is the process of moving data packets between different networks. By default
two different IP networks cannot communicate with each other. They need a mediator
device that can switch packet between them. Router takes this responsibility. Routers
interfaces are associated with different networks. This association is kept in routing
Static routing is simply the process of manually entering routes into a device’s routing
table via a configuration file that is loaded when the routing device starts up. In static
routing, all the changes in the logical network layout need to be manually done by the
routing. In static routing we have to add all network locations manually. If any change
It is easy to implement.
routers.
However, dynamic routing allows routers to select the best path when there is a real
time logical network layout change. In our project, we will discuss the difference
between the EIGRP, RIP and OSPF. All of them are belong to dynamic routing
protocols. When routers learn from neighbouring router through the routing
locations automatically form the routing information. If any change occurs in network,
It is hard to implement.
bandwidth.
routing. Even more we can use a combination of both dynamic and static routing.
Routing updates
a particular time duration router advertise its routing information through broadcast
or multicast. Different protocols have different time intervals. Some protocols use
broadcast for routing updates while some uses multicast. Routing updates contain all
necessary information for routing protocol such as learned network, timers, AS, AD,
Autonomous System
Autonomous System (AS) is a collection of routers that share same routing table
AS, Internet Assigned Numbers Authority (IANA) provides a range from 1 to 65535.
There are two types of AS, private and public. Private AS numbers are used for
Administrative Distance
a neighbour router. If a router receives two routing updates for same path from two
different routing protocols then router will check the AD value to choose the best path.
AD is a numeric value from 0 to 255. If one update has lower AD value than other,
then the route with the lowest AD will be placed in the routing table
Static route 1
EIGRP 90
IGRP 100
OSPF 110
RIP 120
Unknown 255
trustworthiness network while 255 is considered as invalid route and it will be never
used.
Metric
If two routing updates for same network have same AD value then metric will use to
choose the best path. Metric is a measurement to calculate best path. Route with the
lowest metric will be chosen. Different routing protocols use different metrics. It may
use single metric or multiple metrics. For example EIGRP uses bandwidth, delay, load,
MTU and reliability while RIP only uses hop count as metric.
Distance vector routing protocol is based on Bellman – Ford algorithm and Ford –
neighbouring routers to choose the best path. It requires that a router informs its
Link state routing protocols build a complete topology of the entire network are and
then calculating the best path from this topology of all the interconnected networks.
It requires more processing power and memory because it has a complete picture of
the network
The purpose of routing protocols is to learn of available routes that exist on the
enterprise network, build routing tables and make routing decisions. IP routing
protocols are divided into two classes: interior gateway protocols (IGPs) and exterior
gateway protocols (EGPs) The Interior Gateway Protocols Interior protocols are used
for routing networks that are under a common network administration. All IP interior
gateway protocols must be specified with a list of associated networks before routing
activities can begin. A routing process listens to updates from other routers on these
networks and broadcasts its own routing information on those same networks. The
EIGRP
Exterior protocols are used to exchange routing information between networks that
information
Which allow hosts to locate routers? GDP was developed by Cisco and is not an
industry standard.
You can configure multiple routing protocols in a single router to connect networks
that use different routing protocols. You can, for example, run RIP on one subnetted
between them in a controlled fashion. The available routing protocols were not
designed to interoperate with one another, so each protocol collects different types of
information and reacts to topology changes in its own way. Our routers can handle
Cisco systems for routing multiple protocols across small and medium sized Cisco
networks. It is proprietary which requires that you use Cisco routers. It is somewhat
more scalable than RIP since it supports a hop count of 100, only advertises every 90
seconds and uses a composite of five different metrics to select a best path destination.
It uses less bandwidth than RIP but converges much slower since it is 90 seconds
by Cisco systems for routing many protocols across an enterprise Cisco network. It
has characteristics of both distance vector routing protocols and link state routing
protocols. EIGRP will route the same protocols that IGRP routes (IP, IPX, Decnet and
Appletalk) and use the same composite metrics as IGRP to select a best path
destination. As well there is the option to load balance traffic across equal or unequal
metric cost paths. There is support for a hop count of 255 and variable length subnet
masks. Convergence with EIGRP is faster since it uses an algorithm called dual update
algorithm or DUAL, which is run when a router detects that a particular route is
unavailable. EIGRP will update its routing table with the new route and the associated
metric. Route changes are advertised only to affected routers when changes occur.
That utilizes bandwidth more efficiently than distance vector routing protocols. Key
Fast Convergence
1) Easy to configure.
5) Support Variable Length Subnet Mask (VLSM) and Classless Inter Domain Routing
(CIDR).
6) Supports authentication.
Configuring EIGRP: To start an EIGRP session on a router, use the router eigrp
with IGRP, we use the classful network address, which is all subnet and host bits
turned off.
R1#conf t
R1(config)#router eigrp 10
R1(config-router)#network 20.0.0.0
R1(config-router)#
R1(config-router)#end
R1#
The AS number, as you see can be any number from 1 to 65535. A router can be a
member of as many ASes as you want it to be. EIGRP works on the neighbour
discovery mechanism. There are three conditions that must be met before there will
Same metric
Hello message is used to establish the initial phase of neighbourship establishment.
EIGRP that belongs to different AS number do not share the routing automatically.
Reliable Transport Protocol (RTP) EIGRP uses a proprietary protocol called Reliable
speaking routers. And as the name suggests, reliability is a key concern of this
protocol. Cisco has designed a mechanism that leverages multi casts and uncast to
deliver updates quickly and to track the receipt of the data. VLSM Support in EIGRP
EIGRP supports the use of VLSM (Variable Length Subnet Masking). It allows the
conservation of address space through the use of subnet masks that more closely fit
the host requirement. EIGRP Metrics EIGRP uses a single factor to compare its routes
and select the best possible path EIGRP can use a combination of four, called a
composite metrics:
Open Shortest Path First is a true link state protocol developed as an open standard
for routing IP across large multi-vendor networks. A link state protocol will send link
route information. Each OSPF enabled router, when started, will send hello packets to
all directly connected OSPF routers. The hello packets contain information such as
router timers, router ID and subnet mask. If the routers agree on the information they
become OSPF neighbours. Once routers become neighbours they establish adjacencies
broadcast (Ethernet) and NBMA (Frame Relay) will use a designated router that
establishes those adjacencies. OSPF uses a hierarchy with assigned areas that connect
to a core backbone of routers. Each area is defined by one or more routers that have
established adjacencies.
Fast convergence is accomplished with the SPF (Dijkstra) algorithm which determines
a shortest path from source to destination. The routing table is built from running SPF
which determines all routes from neighbour routers. Since each OSPF router has a
copy of the topology database and routing table for its particular area, any route
changes are detected faster than with distance vector protocols and alternate routes
are determined.
Open Shortest Path First was created to overcome some of its limitations of RIP
including
As the name suggests, OSPF is an open public standard with widespread adoption
specific routing items rather than the entire routing table. It is the only link state
equal-cost routes to the same destination but OSPF doesn’t support IPv6 and IPv4
both at the same time. OSPF had following features which makes it one of the best
OSPF has five different packet types, where each packet in the route has a specific
purpose. The following types of packets are sent within these networks:
a. Hello packet
b. Database description
Based upon the information available in the topology table, each OSPF router runs
SPF (Shortest Path First) algorithm and calculates the shortest path to every prefix
within the same area. In case of any change in the state of a link, the OSPF router sends
it in a partial update and is flooded throughout the entire network. OSPF areas and
address aggregation are crucial in enabling OSPF to scale for AS domains comprising
1. Router Memory: For OSPF areas not directly connected to a router in the AS, the
aggregates rather than individual subnet addresses. In other words, a router stores
individual subnet addresses in its routing table only for the OSPF areas that are
directly linked to it. This observably leads to lesser routing table sizes and, thus,
much smaller, since it only needs to include summary information for subnets
belonging to OSPF areas not directly connected to the router. Consequently, the
3. Network Bandwidth: For subnets within each OSPF area, only aggregate address
information (rather than individual subnet addresses) is flooded into the rest of the
AS network. As a result, the volume of OSPF flooding traffic necessary to synchronize
1) Difficult to configure
CONFIGURING OSPF:
router tables from neighboring devices. Neighbour routers running RIP respond by
sending the full routing tables back to the requestor, whereupon the requestor follows
an algorithm to merge all of these updates into its own table. At scheduled intervals,
RIP routers then periodically send out their router tables to their neighbours so that
Traditional RIP supported only IPv4 networks but the newer RIPng standard also
supports IPv6. RIP utilizes either UDP ports 520 or 521 (RIPng) for its communication.
RIP is a standardized vector distance routing protocol and uses a form of distance as
hop count metric. It is a distance vector. Through limiting the number of hop counts
allowed in paths between sources and destinations, RIP prevents routing loops.
Typically, the maximum number of hops allowed for RIP is 15. However, by achieving
this routing loop prevention, the size of supporting networks is sacrificed. Since the
maximum number of hop counts allowed for RIP is 15, as long as the number goes
beyond 15, the route will be considered as unreachable. When first developed, RIP
only transmitted full updates every 30 seconds. In the early distributions, traffic was
not important because the routing tables were small enough. As networks become
larger, massive traffic burst becomes more likely during the 30 seconds period, even
if the routers had been initialized at different times. Because of this random
initialization, it is commonly understood that the routing updates would spread out
1. Update Timer (default 30 seconds): defines how often the router will send out
2. Invalid Timer (default 180 seconds): indicates how long a route will remain in a
routing table before being marked as invalid, if no new updates are heard about
this route. The invalid timer will be reset if an update is received for that particular
route before the timer expires. A route marked as invalid is not immediately
removed from the routing table. Instead, the route is marked with a metric of 16,
which means the route is unreachable, and will be placed in a hold down state.
3. Hold-down Timer (default 180 seconds): specifies how long RIP will keep a route
will not receive any new updates for routes until the hold-down timer expires.
4. Flush Timer (default 240 seconds): When no new updates are received about this
route, flush timer indicates how long a route can remain in a routing table before
getting flushed out. The flush timers operates simultaneously with the invalid
timer, so every 60 seconds, after it has been marked invalid, the route will get
flushed out. When RIP timer is not in sync with all routers on the RIP network,
system instability occurs. This timer must be set to a higher value than the invalid
timer.
RIP Versions:
1. RIPv1: RIPv1supports Class full routing; therefore variable length subnet masks
Configuring RIP:
To configure RIP routing, just turn on the protocol with the router rip command and
Router1> enable
1. It uses more bandwidth as updates are exchanged every 30 seconds where each
2. It does not uses bandwidth as the metric for calculation of the shortest path.
4. RIP is only applicable to small network and is inefficient for larger networks.
Integrated IS-IS
which is one of the most commonly used intra-domain internet routing protocols. It is
similar to the OSPF protocol, which is also a link state protocol. The traffic is routed
along shortest path to the destination. The weights of the links, and thereby the
shortest path routes, can be changed by the network operator. A simple default weight
setting suggested by Cisco is to make the weight of a link inversely proportional to its
capacities with resulting packet loss and back-off in TCP IS-IS does not use IP to carry
addresses for which it can route. OSPF version 2 on the other hand, was designed for
IPv4. This allowed IS-IS to be easily used to support IPv6. To operate with IPv6
networks, the OSPF protocol was rewritten in OSPF v3. IS-IS routers are designated
as being: Level 1 (intra-area); Level 2 (inter area); or Level 1-2 (both). Level 2 routers
are interarea routers that can only form relationships with other Level 2 routers.
Routing information is exchanged between Level 1 routers and other Level 1 routers,
and Level 2 routers only exchange information with other Level 2 routers. Level 1-2
routers exchange information with both levels and are used to connect the inter area
routers with the intra area routers Integrated Intermediate System - Intermediate
System routing protocol is a link state protocol similar to OSPF that is used with large
enterprise and ISP customers. An intermediate system is a router and IS-IS is the
routing protocol that routes packets between intermediate systems. IS-IS utilizes a link
state database and runs the SPF Dijkstra algorithm to select shortest paths routes.
Neighbour routers on point to point and point to multipoint links establish adjacencies
by sending hello packets and exchanging link state databases. IS-IS routers on
broadcast and NBMA networks select a designated router that establishes adjacencies
with all neighbour routers on that network. The designated router and each neighbour
router will establish an adjacency with all neighbour routers by multicasting link state
Border Gateway Protocol is an exterior gateway protocol, which is different from the
interior gateway protocols. The main difference is in the autonomous system used
somewhat differently with protocols such as EIGRP than it is with BGP. Exterior
gateway protocols such as BGP route between autonomous systems, which are
addresses, an associated AS-Path to reach that destination and a next hop router
address. The AS-Path is a collection of AS numbers that represent each office involved
with routing packets. An EIGRP network can configure many autonomous systems.
They are all managed by the company for defining route summarization,
redistribution and filtering. BGP is utilized a lot by Internet Service Providers (ISP)
and large enterprise companies that have dual homed internet connections with single
or dual routers homed to the same or different Internet Service Providers. BGP will
route packets across an ISP network, which is a separate routing domain that is
managed by them. The ISP has its own assigned AS number, which is assigned by
InterNIC. New customers can either request an AS assignment for their office from
the ISP or InterNIC. A unique AS number assignment is required for customers when
they connect using BGP. There are 10 defined attributes that have a particular order
or sequence, which BGP utilizes as metrics to determine the best path to a destination.
Types of BGP
Internal BGP (iBGP): When BGP runs between two peers in the same autonomous
system, it is referred to as Internal BGP (iBGP). This BGP provides each AS a means
External BGP (eBGP): When BGP runs between different autonomous systems, it is
called External BGP (eBGP). This BGP provides each AS a means to obtain subnet
Operation of BGP:
A router may learn about more than one route to the destination AS. In such a case,
Shortest AS-Path
Additional criteria
The BGP messages exchanged between peers over TCP connection could be any of the
following:
a. Open: Opens TCP connection to peer and authenticates sender
Open request
connection
BGP sessions are established between border routers that reside at the edges of an AS
and border routers in neighbouring autonomous systems. These sessions are used to
distribute routes learned on these sessions to non border (internal) routers as well as
other border routers in the same AS using internal-BGP (iBGP). In addition, the
routers in an AS usually run an Interior Gateway Protocol (IGP) to learn the internal
network topology and compute paths from one router to another. Each router
combines the BGP and IGP information to construct a forwarding table that maps each
destination prefix to one or more outgoing links along shortest paths through the
BGP Characteristics
BGP is different from other routing protocols in several ways. Most important being
that BGP is neither a pure distance vector protocol nor a pure link state protocol. Let’s
have a look at some of the characteristics that stands BGP apart from other protocols.
destination.
Autonomous system has multiple routers each communicating with a peer in other
autonomous system, BGP can be used to coordinate among these routers, in order to
• Path information: BGP advertisements also include path information, along with the
reachable destination and next destination pair, which allows a receiver to learn a
• Policy support: Unlike most of the distance-vector based routing, BGP can
implement policies that can be configured by the administrator. For Example, a router
running BGP can be configured to distinguish between the routes that are known from
within the Autonomous system and that which are known from outside the
autonomous system.
• Runs over TCP: BGP uses TCP for all communication. So the reliability issues are
• Conserve network bandwidth: BGP doesn’t pass full information in each update
message. Instead full information is just passed on once and thereafter successive
messages only carries the incremental changes called deltas. By doing so a lot of
aggregate route information and send single entry to represent multiple, related
destinations.
• Support for CIDR: BGP supports classless addressing (CIDR). That it supports a
The job of the Border Gateway Protocol is to facilitate the exchange of route
information between BGP devices, so that each router can determine efficient routes
are the key data that BGP devices work with. But in a broader aspect, BGP peers
The First function consists of initial peer acquisition and authentication. Both the peers
establish a TCP connection and perform message exchange that guarantees both sides
The second function primarily focus on sending of negative or positive reach ability
The Third function provides ongoing verification that the peers and the network
connection between them are functioning correctly. Every BGP speaker is responsible
BGP standards.
• Route Storage: Each BGP stores information about how to reach networks in a set
of special databases. It also uses databases to hold routing information received from
other devices.
• Route Update: When a BGP device receives an Update from one of its peers, it must
decide how to use this information. Special techniques are applied to determine when
and how to use the information received from peers to properly update the device's
knowledge of routes.
• Route Selection: Each BGP uses the information in its route databases to select good
• Route Advertisement: Each BGP speaker regularly tells its peers what it knows
about various networks and methods to reach them. This is called route advertisement
BGP Attributes
BGP Attributes are the properties associated with the routes that are learned from
BGP and used to determine the best route to a destination, when multiple routes are
required for the design of robust networks. This section describes the attributes that
Next hop: The EBGP next-hop attribute is the IP address that is used to
reach the advertising router. For EBGP peers, the next-hop address is the
IP address of the connection between the peers. For IBGP, the EBGP
point from the local autonomous system (AS). Unlike the weight
local AS. If there are multiple exit points from the AS, the local
preference attribute is used to select the exit point for a specific route.
preferred route into the AS that is advertising the metric. The term
particular route. The origin attribute can have one of three possible
values:
Protocol (EBGP).
selection.
Community: The community attribute provides a way of grouping
Salient Features
3. Routes are advertised at the prefix level, so an AS would send a separate update
4. BGP update messages may contain several fields, including a list of prefixes
BGP could possibly receive multiple advertisements for the same route from
multiple sources. BGP selects only one path as the best path. When the path is
selected, BGP puts the selected path in the IP routing table and propagates the path
to its neighbors. BGP uses the following criteria, in the order presented, to select a
If the path specifies a next hop that is inaccessible, drop the update.
If the weights are the same, prefer the path with the largest local preference.
If the local preferences are the same, prefer the path that was originated by
If no route was originated, prefer the route that has the shortest AS_path.
If all paths have the same AS_path length, prefer the path with the lowest
origin type (where IGP is lower than EGP, and EGP is lower than
incomplete).
If the origin codes are the same, prefer the path with the lowest MED
attribute.
If the paths have the same MED, prefer the external path to the internal path.
If the paths are still the same, prefer the path through the closest IGP
neighbor.
Prefer the path with the lowest IP address, as specified by the BGP router
ID.
e e s t Type
RIP IGP Slow Distanc 120 Hop No UDP
e Vector count
State Protocol
89
State
y 100 88
90
internal
170
external
200 e
internal
Routing in IP Network
In a large IP network such as the global Internet, routers need to exchange routing
are under different responsibilities. The Internet is composed on more than 40,000
different domains and this number is still growing. A domain can be a small enterprise
that manages a few routers in a single building, a larger enterprise with a hundred
routers at multiple locations, or a large Internet Service Provider managing thousands
of routers. Two classes of routing protocols are used to allow these domains to
The first class of routing protocols are the intradomain routing protocols (sometimes also
called the interior gateway protocols or IGP). An intradomain routing protocol is used
by all routers inside a domain to exchange routing information about the destinations
that are reachable inside the domain. There are several intradomain routing protocols.
Some domains use RIP, which is a distance vector protocol. Other domains use link-
state routing protocols such as OSPF or IS-IS. Finally, some domains use static routing
These intradomain routing protocols usually have two objectives. First, they distribute
routing information that corresponds to the shortest path between two routers in the
domain. Second, they should allow the routers to quickly recover from link and router
failures.
The second class of routing protocols are the interdomain routing protocols (sometimes
also called the exterior gateway protocols or EGP). The objective of an interdomain
the routing policies that are used by each domain. Inside a single domain, all routers
are considered equal, and when several routes are available to reach a given
destination prefix, the best route is selected based on technical criteria such as the
route with the shortest delay, the route with the minimum number of hops or the route
organisations, this is no longer true. Each domain implements its own routing policy.
A routing policy is composed of three elements: an import filter that specifies which
routes can be accepted by a domain, an export filter that specifies which routes can be
advertised by a domain and a ranking algorithm that selects the best route when a
domain knows several routes towards the same destination prefix. As we will see
later, another important difference is that the objective of the interdomain routing
protocol is to find the cheapest route towards each destination. There is only one
Modern operating systems contain built-in software services that implement support
for some network protocols. Applications like Web browsers contain software
libraries that support the high level protocols necessary for that application to
function. For some lower level TCP/IP and routing protocols, support is implemented
Each packet transmitted and received over a network contains binary data (ones and
zeros that encode the contents of each message). Most protocols add a small header at
the beginning of each packet to store information about the message's sender and its
intended destination. Some protocols also add footer at the end. Each network
protocol has the ability to identify messages of its own kind and process the headers
A protocol family. Students of networking traditionally learn about the OSI model that
group of network protocols that work together at higher and lower levels are often
called a conceptually organizes network protocol families into specific layers for
teaching purposes.
REREFERENCES
Nigam, Md. Samil Farouqui , Gunjan Gandhi , Volume 4, Issue 2, February 2014
[4] www.ciscopress.com/articles/article.asp?p=2180210&seqNum=7
[5] P. Kalamani, M. Venkatesh Kumar , M. Chithambarathanu, RejiThomas,