Upload
amitava-nag
View
100
Download
5
Embed Size (px)
Citation preview
Routing Protocols:RIP, OSPF, and BGP
Amitava Nag
Assistant Professor
April 11, 2012
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 1 / 23
What is routing?
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 2 / 23
What is routing?
Finding a path to a destination address
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 2 / 23
What is routing?
Finding a path to a destination address
Routing is performed for many kinds of networks, including thetelephone network (Circuit switching) , electronic data networks (suchas the Internet).
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 2 / 23
What is routing?
Finding a path to a destination address
Routing is performed for many kinds of networks, including thetelephone network (Circuit switching) , electronic data networks (suchas 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
What is routing?
Finding a path to a destination address
Routing is performed for many kinds of networks, including thetelephone network (Circuit switching) , electronic data networks (suchas 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 computerthat lists the routes to particular network destinations.
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 2 / 23
What is routing?
Finding a path to a destination address
Routing is performed for many kinds of networks, including thetelephone network (Circuit switching) , electronic data networks (suchas 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 computerthat lists the routes to particular network destinations.
The routing table contains information about the topology of thenetwork immediately around it.
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 2 / 23
Common Fields Of Routing Table
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 3 / 23
IP Routing Basics
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 4 / 23
Static or Dynamic
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 5 / 23
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
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
Static or Dynamic
1 Static routing - YOU are defining the way packets are going
Entries are configured manuallyFixes routes at boot time
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 5 / 23
Static or Dynamic
1 Static routing - YOU are defining the way packets are going
Entries are configured manuallyFixes routes at boot timeUseful only for simplest cases
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 5 / 23
Static or Dynamic
1 Static routing - YOU are defining the way packets are going
Entries are configured manuallyFixes routes at boot timeUseful only for simplest cases
2 Dynamic Routing - A routing protocol is ”trying” to find the best wayto a given destination
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 5 / 23
Static or Dynamic
1 Static routing - YOU are defining the way packets are going
Entries are configured manuallyFixes routes at boot timeUseful only for simplest cases
2 Dynamic Routing - A routing protocol is ”trying” to find the best wayto a given destination
entries are learned by routing protocols
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 5 / 23
Static or Dynamic
1 Static routing - YOU are defining the way packets are going
Entries are configured manuallyFixes routes at boot timeUseful only for simplest cases
2 Dynamic Routing - A routing protocol is ”trying” to find the best wayto a given destination
entries are learned by routing protocolsTable initialized at boot time
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 5 / 23
Static or Dynamic
1 Static routing - YOU are defining the way packets are going
Entries are configured manuallyFixes routes at boot timeUseful only for simplest cases
2 Dynamic Routing - A routing protocol is ”trying” to find the best wayto a given destination
entries are learned by routing protocolsTable initialized at boot timeNecessary in large internets
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 5 / 23
INTRA- AND INTERDOMAIN ROUTING
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 6 / 23
INTRA- AND INTERDOMAIN ROUTING
An Autonomous system(AS) is a group of networks and routers underthe authority of a single administration.
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 6 / 23
INTRA- AND INTERDOMAIN ROUTING
An Autonomous system(AS) is a group of networks and routers underthe authority of a single administration.
Routing inside an autonomous system is referred to as intradomainrouting.
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 6 / 23
INTRA- AND INTERDOMAIN ROUTING
An Autonomous system(AS) is a group of networks and routers underthe authority of a single administration.
Routing inside an autonomous system is referred to as intradomainrouting.
Routing between autonomous systems is referred to as interdomainrouting.
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 6 / 23
Autonomous systems
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 7 / 23
Popular routing protocols
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 8 / 23
Intradomain (Intra-AS) Routing
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 9 / 23
Intradomain (Intra-AS) Routing
also known as Interior Gateway Protocols (IGP)
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 9 / 23
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
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
Intradomain (Intra-AS) Routing
also known as Interior Gateway Protocols (IGP)
most common Intradomain routing protocols:
RIP: Routing Information ProtocolOSPF: Open Shortest Path First
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 9 / 23
Intradomain (Intra-AS) Routing
also known as Interior Gateway Protocols (IGP)
most common Intradomain routing protocols:
RIP: Routing Information ProtocolOSPF: Open Shortest Path FirstIGRP: Interior Gateway Routing Protocol (Cisco proprietary)
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 9 / 23
DISTANCE VECTOR ROUTING
In distance vector routing,
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 10 / 23
DISTANCE VECTOR ROUTING
In distance vector routing,
The least cost route between any two nodes(routers) is the route withminimum distance.
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 10 / 23
DISTANCE VECTOR ROUTING
In distance vector routing,
The least cost route between any two nodes(routers) is the route withminimum distance.
Each router maintains a vector (table) of minimum distances to everynode
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 10 / 23
DISTANCE VECTOR ROUTING
In distance vector routing,
The least cost route between any two nodes(routers) is the route withminimum distance.
Each router maintains a vector (table) of minimum distances to everynode
After powering-up each router only knows about directly attachednetworks
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 10 / 23
DISTANCE VECTOR ROUTING
In distance vector routing,
The least cost route between any two nodes(routers) is the route withminimum distance.
Each router maintains a vector (table) of minimum distances to everynode
After powering-up each router only knows about directly attachednetworks
Routing table is sent periodically to all neighbour-routers
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 10 / 23
DISTANCE VECTOR ROUTING
In distance vector routing,
The least cost route between any two nodes(routers) is the route withminimum distance.
Each router maintains a vector (table) of minimum distances to everynode
After powering-up each router only knows about directly attachednetworks
Routing table is sent periodically to all neighbour-routers
Received updates are examined, changes are adopted in own routingtable
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 10 / 23
DISTANCE VECTOR ROUTING
In distance vector routing,
The least cost route between any two nodes(routers) is the route withminimum distance.
Each router maintains a vector (table) of minimum distances to everynode
After powering-up each router only knows about directly attachednetworks
Routing table is sent periodically to all neighbour-routers
Received updates are examined, changes are adopted in own routingtable
Metric information (originally) is number of hops
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 10 / 23
DISTANCE VECTOR ROUTING
In distance vector routing,
The least cost route between any two nodes(routers) is the route withminimum distance.
Each router maintains a vector (table) of minimum distances to everynode
After powering-up each router only knows about directly attachednetworks
Routing table is sent periodically to all neighbour-routers
Received updates are examined, changes are adopted in own routingtable
Metric information (originally) is number of hops
Use ”Bellman-Ford” algorithm
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 10 / 23
DISTANCE VECTOR ROUTING
In distance vector routing,
The least cost route between any two nodes(routers) is the route withminimum distance.
Each router maintains a vector (table) of minimum distances to everynode
After powering-up each router only knows about directly attachednetworks
Routing table is sent periodically to all neighbour-routers
Received updates are examined, changes are adopted in own routingtable
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
Initialization of tables in distance vector routing
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 11 / 23
Updating in distance vector routing
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 12 / 23
Distance vector routing tables
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 13 / 23
Two-node instability
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 14 / 23
Count to infinity
In this example we see what would happen if network link between router xand router A crashes. Immediately, router A has no more informationabout this net. What would happen if router B sends a routing updatenow?Now router A receives a routing update from router B including reachability information about router x. Because router A has no informationabout router x, A adds this information in his routing table and continuoussending his normal routing updates to router B, hereby increasing the hopcount by 1.Either router A or router B has information about the router x, bothrouter will increase the hop count by 1 every routing update. Count toinfinity occurs. Now Update packets are caught in a routing loop.
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 15 / 23
Example: Two-node instability
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 16 / 23
Example: Two-node instability
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 17 / 23
Split Horizon
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 18 / 23
Split Horizon
A router will not send information about routes through an interfaceover which the router has learned about those routes - Exactly THISis split horizon
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 18 / 23
Split Horizon
A router will not send information about routes through an interfaceover which the router has learned about those routes - Exactly THISis split horizon
Idea: ”Don’t tell neighbor of routes that you learned from thisneighbor”
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 18 / 23
Split Horizon
A router will not send information about routes through an interfaceover which the router has learned about those routes - Exactly THISis split horizon
Idea: ”Don’t tell neighbor of routes that you learned from thisneighbor”
That’s what humans (almost) always do: Don’t tell me what I’ve toldyou !
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 18 / 23
Split Horizon
A router will not send information about routes through an interfaceover which the router has learned about those routes - Exactly THISis split horizon
Idea: ”Don’t tell neighbor of routes that you learned from thisneighbor”
That’s what humans (almost) always do: Don’t tell me what I’ve toldyou !Cannot 100
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 18 / 23
Split Horizon with Poison Reverse
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 19 / 23
Split Horizon with Poison Reverse
Declare learned routes as unreachable
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 19 / 23
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
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
Example: Split Horizon With Poison Reverse
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 20 / 23
Link State Routing
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 21 / 23
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
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
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 itsneighborhood with all routers in the network when there is a change
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 21 / 23
Concept of Link State Routing
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 22 / 23
The End
Amitava Nag (Academy of Technology) Routing Protocols April 11, 2012 23 / 23