Routing refers to the way routing tables are created to help in forwarding (Ref. FOROUZAN DCN). This slide describes the delivery,forwarding and routing of IP packets.
1. Routing Protocols:RIP, OSPF, and BGP
Amitava Nag
Assistant Professor
amitava.nag@aot.edu.in
April 11, 2012
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 1 / 23
3. What is routing?
Finding a path to a destination address
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 2 / 23
4. What is routing?
Finding a path to a destination address
Routing is performed for many kinds of networks, including the
telephone network (Circuit switching) , electronic data networks (such
as the Internet).
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 2 / 23
5. What is routing?
Finding a path to a destination address
Routing is performed for many kinds of networks, including the
telephone network (Circuit switching) , electronic data networks (such
as the Internet).
In computer networking a Routing table, or Routing Information Base
(RIB), is a data structure in the form of a table-like object
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 2 / 23
6. What is routing?
Finding a path to a destination address
Routing is performed for many kinds of networks, including the
telephone network (Circuit switching) , electronic data networks (such
as the Internet).
In computer networking a Routing table, or Routing Information Base
(RIB), is a data structure in the form of a table-like object
A Routing table is stored either in a router or a networked computer
that lists the routes to particular network destinations.
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 2 / 23
7. What is routing?
Finding a path to a destination address
Routing is performed for many kinds of networks, including the
telephone network (Circuit switching) , electronic data networks (such
as the Internet).
In computer networking a Routing table, or Routing Information Base
(RIB), is a data structure in the form of a table-like object
A Routing table is stored either in a router or a networked computer
that lists the routes to particular network destinations.
The routing table contains information about the topology of the
network immediately around it.
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 2 / 23
8. Common Fields Of Routing Table
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 3 / 23
11. Static or Dynamic
1 Static routing - YOU are defining the way packets are going
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 5 / 23
12. Static or Dynamic
1 Static routing - YOU are defining the way packets are going
Entries are configured manually
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 5 / 23
13. Static or Dynamic
1 Static routing - YOU are defining the way packets are going
Entries are configured manually
Fixes routes at boot time
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 5 / 23
14. Static or Dynamic
1 Static routing - YOU are defining the way packets are going
Entries are configured manually
Fixes routes at boot time
Useful only for simplest cases
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 5 / 23
15. Static or Dynamic
1 Static routing - YOU are defining the way packets are going
Entries are configured manually
Fixes routes at boot time
Useful only for simplest cases
2 Dynamic Routing - A routing protocol is ”trying” to find the best way
to a given destination
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 5 / 23
16. Static or Dynamic
1 Static routing - YOU are defining the way packets are going
Entries are configured manually
Fixes routes at boot time
Useful only for simplest cases
2 Dynamic Routing - A routing protocol is ”trying” to find the best way
to a given destination
entries are learned by routing protocols
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 5 / 23
17. Static or Dynamic
1 Static routing - YOU are defining the way packets are going
Entries are configured manually
Fixes routes at boot time
Useful only for simplest cases
2 Dynamic Routing - A routing protocol is ”trying” to find the best way
to a given destination
entries are learned by routing protocols
Table initialized at boot time
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 5 / 23
18. Static or Dynamic
1 Static routing - YOU are defining the way packets are going
Entries are configured manually
Fixes routes at boot time
Useful only for simplest cases
2 Dynamic Routing - A routing protocol is ”trying” to find the best way
to a given destination
entries are learned by routing protocols
Table initialized at boot time
Necessary in large internets
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 5 / 23
19. INTRA- AND INTERDOMAIN ROUTING
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 6 / 23
20. INTRA- AND INTERDOMAIN ROUTING
An Autonomous system(AS) is a group of networks and routers under
the authority of a single administration.
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 6 / 23
21. INTRA- AND INTERDOMAIN ROUTING
An Autonomous system(AS) is a group of networks and routers under
the authority of a single administration.
Routing inside an autonomous system is referred to as intradomain
routing.
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 6 / 23
22. INTRA- AND INTERDOMAIN ROUTING
An Autonomous system(AS) is a group of networks and routers under
the authority of a single administration.
Routing inside an autonomous system is referred to as intradomain
routing.
Routing between autonomous systems is referred to as interdomain
routing.
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 6 / 23
26. Intradomain (Intra-AS) Routing
also known as Interior Gateway Protocols (IGP)
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 9 / 23
27. Intradomain (Intra-AS) Routing
also known as Interior Gateway Protocols (IGP)
most common Intradomain routing protocols:
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 9 / 23
28. Intradomain (Intra-AS) Routing
also known as Interior Gateway Protocols (IGP)
most common Intradomain routing protocols:
RIP: Routing Information Protocol
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 9 / 23
29. Intradomain (Intra-AS) Routing
also known as Interior Gateway Protocols (IGP)
most common Intradomain routing protocols:
RIP: Routing Information Protocol
OSPF: Open Shortest Path First
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 9 / 23
30. Intradomain (Intra-AS) Routing
also known as Interior Gateway Protocols (IGP)
most common Intradomain routing protocols:
RIP: Routing Information Protocol
OSPF: Open Shortest Path First
IGRP: Interior Gateway Routing Protocol (Cisco proprietary)
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 9 / 23
31. DISTANCE VECTOR ROUTING
In distance vector routing,
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 10 / 23
32. DISTANCE VECTOR ROUTING
In distance vector routing,
The least cost route between any two nodes(routers) is the route with
minimum distance.
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 10 / 23
33. DISTANCE VECTOR ROUTING
In distance vector routing,
The least cost route between any two nodes(routers) is the route with
minimum distance.
Each router maintains a vector (table) of minimum distances to every
node
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 10 / 23
34. DISTANCE VECTOR ROUTING
In distance vector routing,
The least cost route between any two nodes(routers) is the route with
minimum distance.
Each router maintains a vector (table) of minimum distances to every
node
After powering-up each router only knows about directly attached
networks
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 10 / 23
35. DISTANCE VECTOR ROUTING
In distance vector routing,
The least cost route between any two nodes(routers) is the route with
minimum distance.
Each router maintains a vector (table) of minimum distances to every
node
After powering-up each router only knows about directly attached
networks
Routing table is sent periodically to all neighbour-routers
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 10 / 23
36. DISTANCE VECTOR ROUTING
In distance vector routing,
The least cost route between any two nodes(routers) is the route with
minimum distance.
Each router maintains a vector (table) of minimum distances to every
node
After powering-up each router only knows about directly attached
networks
Routing table is sent periodically to all neighbour-routers
Received updates are examined, changes are adopted in own routing
table
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 10 / 23
37. DISTANCE VECTOR ROUTING
In distance vector routing,
The least cost route between any two nodes(routers) is the route with
minimum distance.
Each router maintains a vector (table) of minimum distances to every
node
After powering-up each router only knows about directly attached
networks
Routing table is sent periodically to all neighbour-routers
Received updates are examined, changes are adopted in own routing
table
Metric information (originally) is number of hops
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 10 / 23
38. DISTANCE VECTOR ROUTING
In distance vector routing,
The least cost route between any two nodes(routers) is the route with
minimum distance.
Each router maintains a vector (table) of minimum distances to every
node
After powering-up each router only knows about directly attached
networks
Routing table is sent periodically to all neighbour-routers
Received updates are examined, changes are adopted in own routing
table
Metric information (originally) is number of hops
Use ”Bellman-Ford” algorithm
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 10 / 23
39. DISTANCE VECTOR ROUTING
In distance vector routing,
The least cost route between any two nodes(routers) is the route with
minimum distance.
Each router maintains a vector (table) of minimum distances to every
node
After powering-up each router only knows about directly attached
networks
Routing table is sent periodically to all neighbour-routers
Received updates are examined, changes are adopted in own routing
table
Metric information (originally) is number of hops
Use ”Bellman-Ford” algorithm
Examples: RIP, RIPv2, IGRP (Cisco)
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 10 / 23
40. Initialization of tables in distance vector routing
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 11 / 23
41. Updating in distance vector routing
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 12 / 23
42. Distance vector routing tables
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 13 / 23
44. Count to infinity
In this example we see what would happen if network link between router x
and router A crashes. Immediately, router A has no more information
about this net. What would happen if router B sends a routing update
now?
Now router A receives a routing update from router B including reach
ability information about router x. Because router A has no information
about router x, A adds this information in his routing table and continuous
sending his normal routing updates to router B, hereby increasing the hop
count by 1.
Either router A or router B has information about the router x, both
router will increase the hop count by 1 every routing update. Count to
infinity occurs. Now Update packets are caught in a routing loop.
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 15 / 23
48. Split Horizon
A router will not send information about routes through an interface
over which the router has learned about those routes - Exactly THIS
is split horizon
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 18 / 23
49. Split Horizon
A router will not send information about routes through an interface
over which the router has learned about those routes - Exactly THIS
is split horizon
Idea: ”Don’t tell neighbor of routes that you learned from this
neighbor”
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 18 / 23
50. Split Horizon
A router will not send information about routes through an interface
over which the router has learned about those routes - Exactly THIS
is split horizon
Idea: ”Don’t tell neighbor of routes that you learned from this
neighbor”
That’s what humans (almost) always do: Don’t tell me what I’ve told
you !
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 18 / 23
51. Split Horizon
A router will not send information about routes through an interface
over which the router has learned about those routes - Exactly THIS
is split horizon
Idea: ”Don’t tell neighbor of routes that you learned from this
neighbor”
That’s what humans (almost) always do: Don’t tell me what I’ve told
you !
Cannot 100
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 18 / 23
52. Split Horizon with Poison Reverse
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 19 / 23
53. Split Horizon with Poison Reverse
Declare learned routes as unreachable
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 19 / 23
54. Split Horizon with Poison Reverse
Declare learned routes as unreachable
”Bad news is better than no news at all”
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 19 / 23
55. Split Horizon with Poison Reverse
Declare learned routes as unreachable
”Bad news is better than no news at all”
Stops potential loops due to corrupted routing updates
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 19 / 23
56. Example: Split Horizon With Poison Reverse
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 20 / 23
58. Link State Routing
Each node in the domain has the entire topology of the domain
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 21 / 23
59. Link State Routing
Each node in the domain has the entire topology of the domain
the node can use Dijkstras algorithm to build a routing table
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 21 / 23
60. Link State Routing
Each node in the domain has the entire topology of the domain
the node can use Dijkstras algorithm to build a routing table
link-state: each router exchanges information about its
neighborhood with all routers in the network when there is a change
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 21 / 23
61. Concept of Link State Routing
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 22 / 23
62. The End
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 23 / 23