Chapter 3
Chapter 3
Chapter 3
Routing Protocols
2.1
Chapter_3 Syllabus
Routing Algorithms: Types of routing algorithm,
Multicast Addressing
Protocols
2.2
Routing Algorithms
2.3
Introduction
An internet is a network of networks which are connected by
routers
2.4
Introduction . . .
• Routing Algorithm is
2.5
Functions of a Router
Why Routing?
• The router is responsible for the routing of
traffic between networks.
Functions of a Router
Send a Packet
Switching Packets between Networks
Packet Routing
Switching Packets between Networks
Routing Decisions
The Routing Table
• Two Categories
– Based on Routing Table Updating
– Based on Forwarding Principle
Examples: BGP
2.19
Based on Routing Table Updating . . .
Example. 1
The cost of passing through each network is the same: one hop count
Open Shortest Path First (OSPF)
Allow administrator to assign a cost for passing through a network
based on the type of serviced required
For example, maximum throughput or minimum delay
Border Gateway Protocol (BGP)
The criterion is the policy, which can be set by the administrator
2.21
Based on Forwarding Principle
Internet,
» Unicasting
» Multicasting
» Broadcasting.
2.22
Based on Forwarding Principle . . .
• Unicasting
– One source, one destination
discovery
– Limited Group
The administrator can use the AS number (x.y) and choose an
address between 239.x.y.0 and 239.x.y.255 (Administratively
Scoped Block) that is not used by any other group as the multicast
address for that particular group.
– Larger Group
» If the group is spread beyond an AS territory, the previous solution
does not work. The group needs to choose an address from the SSM
block (232.0.0.0/8). 2.28
Unicast Routing Algorithms
2.29
RIP:
Routing Information Protocol
2.30
RIP
RIP: Routing Information Protocol
Request
2.33
RIP - Message Types . . .
2.35
RIP - Message Types . . .
Solution
R1 can advertise three networks 144.2.7.0, 144.2.9.0, and
144.2.12.0.
2.36
RIP - Routing Table Updating
Initializing the Routing Table
When a router is added to a network
2.37
Distance Vector Routing Tables
Initialization of Tables in Distance
Vector Routing
Updating in Distance Vector Routing
• In distance vector routing, each node shares its
routing table with its immediate neighbors
periodically and when there is a change.
RIP - Routing table Updating . . .
Add one hop to the hop count for each advertised destination
Using the RIP updating message algorithm shown below
Repeat the following steps for each advertised destination
Periodic timer
Expiration timer
Garbage collection timer
Periodic timer
Control the advertising of regular update message
Although protocol specifies 30s, the working model uses a random
number between 25 and 35s.
Prevent routers update simultaneously
2.44
RIP – Timers . . .
Expiration Timer
When the count reaches zero, the route is purged from the table
and allow neighbors to become aware of the invalidity of a
route prior to purging.
2.46
RIP – Timers . . .
Example 2
A routing table has 20 entries.
It does not receive information about five routes for 200
seconds.
How many timers are running at this time?
Solution
The timers are listed below:
Periodic timer: 1
Expiration timer: 20 - 5 = 15
RIP - Problems
Slow Convergence
Instability
2.48
BGP:
Border Gateway Protocol
2.49
2.50
BGP
First appeared in 1989
An inter-autonomous system routing protocol
Based on the path vector routing method
2.51
2.52
2.53
BGP
2.54
2.55
BGP . . .
Autonomous boundary routers advertise the reachability of
networks in their own AS to neighbor autonomous boundary
routers
Each router receives a path vector message
2.57
2.58
BGP . . .
Path vector routing can solve
2.59
BGP . . .
Policy Routing can be easily implemented through path vector
routing
Once a router receives a message, it can check the path.
If one of the AS listed in the path is against its policy,
It can ignore that path and that destination
Does not update its routing table with this path
Does not send this message to its neighbors
Thus, path vector routing are not based on the smallest hop count
or the minimum metric. Based on the policy imposed on the router
by the administrator
2.60
BGP - Packet Format
All BGP packets share the same common header
Header format
Marker: 16-bit
Reserved for authentication
Length: 2-bytes
2.63
2.64
BGP - Types of Messages . . .
1. Open Message
2.65
BGP - Types of Messages . . .
Used by a router to
2.67
BGP - Types of Messages . . .
Sent by a router
Whenever an error condition is detected
A router wants to close the connection
place in a session.
2.71
BGP – Sessions . . .
BGP can have two types of sessions.
• External BGP (E-BGP)
Used to exchange information between two speaker
nodes belonging to two different autonomous systems.
• Internal BGP (I-BGP)
Used to exchange routing information between two
routers inside an autonomous system.
2.73
2.74