Lecture 2 Routing Protocol
Lecture 2 Routing Protocol
Introduction to
Dynamic Routing Protocols
[email protected]
Introduction to Dynamic Routing Protocols
Introduction to
Dynamic Routing Protocols
Perspective and Background
• Distance Vector:
• Routes are advertised as vectors of distance and
direction.
• Distance:
• Is defined in terms of a metric.
• Hop Count: The number of routers between the
source and destination networks.
• Direction:
• Is simply the next-hop router or exit interface.
• Routing updates usually consist of periodic updates of the
entire routing table.
Distance Vector and Link State
• Link State:
• A Link State routing protocol can create a complete map
of the network topology.
• A link-state router:
• Receives an update.
• Builds a topology database.
• Uses a Shortest Path First (SPF) algorithm to create
its view of the network.
• Builds the routing table.
• Routing updates (not the entire table) are only sent to
neighbouring routers when the topology changes.
Distance Vector and Link State
• Link State:
• The network design is
hierarchical, usually
occurring in large
networks.
• The administrators have
a good knowledge of the
implemented link-state routing protocol.
• Fast convergence of the network is crucial.
Classful and Classless
• Classful Protocols:
• Do not send subnet mask information in routing updates .
• The subnet mask must be the same throughout the entire topology.
• IP Addresses were first allocated based on classes (A, B or C).
• The first routing protocols (RIP) did not need to transmit the
subnet mask because of the address class distinction.
• Network mask could be determined based on value of first octet
of the network address.
• VLSM and CIDR are not possible.
Classful and Classless
• Classless Protocols:
• Include subnet mask information in routing updates .
• The subnet mask does not have to be the same throughout the
entire topology.
• Today’s networks are no longer allocated based on the
address class.
• The subnet mask can no longer be determined by the first
octet of the IP Address.
• VLSM and CIDR are possible.
Purpose of a Metric
To route to..
?
• There are times when a router will have multiple paths to the
same destination.
• Metrics are a way to measure and/or compare routes to
determine which route is the best path.
Purpose of a Metric
To route to..
?
• The route chosen will depend on two things:
• The routing protocol in use.
• The metric used by the routing protocol.
Metrics and Routing Protocols
172.16.2.0/24
Network
This172.16.2.0
is the is:
1 hopIvia
route willR2
use.
2 hops via R3
172.16.2.0/24
• The routing table displays the metric for each dynamic and
static route.
• Dynamic routes with the lowest metric are installed by
routing protocols.
• Static routes always have a metric of 0.
Metric Field in the Routing Table