Download as pdf or txt
Download as pdf or txt
You are on page 1of 50

Chapter 3 - Introduction to Dynamic Routing Protocol

CCNA Exploration 4.0

Objectives

Describe the role of dynamic routing protocols and place these protocols in the context of modern network design. Identify several ways to classify routing protocols. Describe how metrics are used by routing protocols and identify the metric types used by dynamic routing protocols. Determine the administrative distance of a route and describe its importance in the routing process. Identify the different elements of the routing table.

H c vi n m ng Bach Khoa - Website: www.bkacad.com

Introduction and Advantages

H c vi n m ng Bach Khoa - Website: www.bkacad.com

The Evolution of Dynamic Routing Protocols

H c vi n m ng Bach Khoa - Website: www.bkacad.com

The Role of Dynamic Routing Protocol


Routing protocols are used to facilitate the exchange of routing
information between routers. Routing protocols allow routers to dynamically share information about remote networks and automatically add this information to their own routing tables. Routing protocols determine the best path to each network which is then added to the routing table.

Animation 3.1.1.2

H c vi n m ng Bach Khoa - Website: www.bkacad.com

The purpose of a routing protocol

1. Discovery of remote networks 2. Maintaining up-to-date routing


information 3. Choosing the best path to destination networks 4. Ability to find a new best path if the current path is no longer available

H c vi n m ng Bach Khoa - Website: www.bkacad.com

Components of a routing protocol

1.Data structures 2.Algorithm 3.Routing protocol messages

H c vi n m ng Bach Khoa - Website: www.bkacad.com

Dynamic Routing Protocol Operation

The purpose: To learn about remote networks and to quickly adapt whenever there is a change in the topology.

Animation 3.1.2

H c vi n m ng Bach Khoa - Website: www.bkacad.com

Dynamic Routing Protocol Operation

In general, the operations of a dynamic routing


protocol can be described as follows: 1. The router sends and receives routing messages on its interfaces. 2. The router shares routing messages and routing information with other routers that are using the same routing protocol. 3. Routers exchange routing information to learn about remote networks. 4. When a router detects a topology change the routing protocol can advertise this change to other routers.
H c vi n m ng Bach Khoa - Website: www.bkacad.com 9

Dynamic Routing Protocol Operation

Note: Understanding dynamic routing protocol operation and concepts and using them in real networks requires a solid knowledge of IP addressing and subnetting.

H c vi n m ng Bach Khoa - Website: www.bkacad.com

10

Dynamic versus Static Routing

H c vi n m ng Bach Khoa - Website: www.bkacad.com

11

Static Routing

Advantages:
Minimal CPU processing. Easier for administrator to understand. Easy to configure. Disadvantages: Configuration and maintenance is time-consuming. Configuration is error-prone, especially in large networks. Administrator intervention is required to maintain changing route information. Does not scale well with growing networks; maintenance becomes cumbersome. Requires complete knowledge of the whole network for proper implementation.
H c vi n m ng Bach Khoa - Website: www.bkacad.com 12

Dynamic Routing

Advantages: Administrator has less work maintaining the configuration when adding or deleting networks. Protocols automatically react to the topology changes. Configuration is less error-prone. More scalable, growing the network usually does not present a problem. Disadvantages: Router resources are used (CPU cycles, memory and link bandwidth). More administrator knowledge is required for configuration, verification, and troubleshooting
H c vi n m ng Bach Khoa - Website: www.bkacad.com 13

Classifying Dynamic Routing Protocols

H c vi n m ng Bach Khoa - Website: www.bkacad.com

14

Dynamic Routing Protocols Classification

H c vi n m ng Bach Khoa - Website: www.bkacad.com

15

IGP and EGP

An autonomous system (AS) - otherwise known as a routing domain - is a collection of routers under a common administration. Two types of routing protocols are: interior and exterior gateway protocols. IGPs are used for intra-autonomous system routing - routing inside an AS EGPs are used for inter- AS routing: routing between autonomous systems

H c vi n m ng Bach Khoa - Website: www.bkacad.com

16

IGP and EGP

H c vi n m ng Bach Khoa - Website: www.bkacad.com

17

Extra: IGRP Process Domains

H c vi n m ng Bach Khoa - Website: www.bkacad.com

18

Distance Vector Routing Protocol

Distance vector means that routes are advertised as vectors of distance and direction. Distance is defined in terms of a metric such as hop count Direction is simply the next-hop router or exit interface Algorithm is Bellman-Ford Distance vector routing protocols do not have an actual map of the network topology.

H c vi n m ng Bach Khoa - Website: www.bkacad.com

19

Distance Vector Routing Protocol

Animation 3.2.3.1

H c vi n m ng Bach Khoa - Website: www.bkacad.com

20

Distance Vector Routing Protocol

Distance vector protocols work best in situations


where: 1. The network is simple and flat and does not require a special hierarchical design. 2. The administrators do not have enough knowledge to configure and troubleshoot linkstate protocols. 3. Specific types of networks, such as hub-andspoke networks, are being implemented. 4. Worst-case convergence times in a network are not a concern.
H c vi n m ng Bach Khoa - Website: www.bkacad.com 21

Link-state Routing Protocol


Animation 3.2.3.2

H c vi n m ng Bach Khoa - Website: www.bkacad.com

22

Link-state Routing Protocol

A link-state router uses the link-state information to create a topology map and to select the best path to all destination networks in the topology. Link-state protocols work best in situations where: 1. The network design is hierarchical, usually occurring in large networks. 2. The administrators have a good knowledge of the implemented 3. link-state routing protocol. 4. Fast convergence of the network is crucial.

H c vi n m ng Bach Khoa - Website: www.bkacad.com

23

Link State

Link: this is an interface on a router Information about the state of those links is known as linkstates.This information includes: The interface's IP address and subnet mask. The type of network, such as Ethernet (broadcast) or Serial point-to-point link. The cost of that link. Any neighbor routers on that link.

H c vi n m ng Bach Khoa - Website: www.bkacad.com

24

Classful Routing Protocols

H c vi n m ng Bach Khoa - Website: www.bkacad.com

25

Classful Routing Protocols

1. Classful routing protocols do not send


subnet mask information in routing updates. 2. Classful routing protocols cannot be used when a network is subnetted using more than one subnet mask, in other words classful routing protocols do not support variable length subnet masks (VLSM) and inability to support discontiguous networks. 3. Classful routing protocols include RIPv1 and IGRP.
H c vi n m ng Bach Khoa - Website: www.bkacad.com 26

Classless Routing Protocols

H c vi n m ng Bach Khoa - Website: www.bkacad.com

27

Classless Routing Protocols

1. Classless routing protocols include the


subnet mask with the network address in routing updates. 2. Classless routing protocols are required in most networks today because of their support for VLSM, discontiguous networks and other features which will be discussed in later chapters. 3. Classless routing protocols are RIPv2, EIGRP, OSPF, IS-IS, BGP.
H c vi n m ng Bach Khoa - Website: www.bkacad.com 28

Convergence

Convergence is when all routers' routing tables are at a state of consistency. The network has converged when all routers have complete and accurate information about the network. Convergence time is the time it takes routers to share information, calculate best paths, and update their routing tables. Convergence properties include the speed of propagation of routing information and the calculation of optimal paths.
H c vi n m ng Bach Khoa - Website: www.bkacad.com 29

Convergence

H c vi n m ng Bach Khoa - Website: www.bkacad.com

30

Metric

H c vi n m ng Bach Khoa - Website: www.bkacad.com

31

Purpose of a Metric

A metric is a value used by routing protocols to assign costs to reach remote networks. The metric is used to determine which path is most preferable when there are multiple paths to the same remote network. Each routing protocol uses its own metric.
H c vi n m ng Bach Khoa - Website: www.bkacad.com 32

Metrics and Routing Protocols

The Metric Parameters

Different routing protocols use different


metrics. Two different routing protocols might choose different paths to the same destination due to using different metrics. Metrics used in IP routing protocols include: Hop count, Bandwidth, Load, Delay, Reliability, Cost

H c vi n m ng Bach Khoa - Website: www.bkacad.com

33

Metrics and Routing Protocols

Animation 3.3.2.1

RIP OSPF

H c vi n m ng Bach Khoa - Website: www.bkacad.com

34

Metrics and Routing Protocols


The Metric Field in the Routing Table
RIP: Hop count IGRP and EIGRP: Bandwidth, Delay, Reliability, and Load IS-IS and OSPF: Cost

H c vi n m ng Bach Khoa - Website: www.bkacad.com

35

Load Balancing
But what happens when two or more routes to the same destination
have identical metric values? How will the router decide which path to use for packet forwarding? In this case, the router does not choose only one route. Instead, the router "load balances" between these equal cost paths. The packets are forwarded using all equal-cost paths.

Animation 3.3.3

H c vi n m ng Bach Khoa - Website: www.bkacad.com

36

Extra: Fast Switching - Process Switching


Fast Switching Process Switching

ping 10.0.0.2

ping 10.0.0.1

ping 10.0.0.2

ping 10.0.0.1

Router(config-if)# ip route-cache

Router(config-if)#no ip route-cache

Fast Switching Per Destination Load Balancing The default for most interfaces is Fast Switching. Load balancing is distributed according to the destination IP address. Process Switching Per Packet Load Balancing Given equal cost paths, per packet load sharing means that one packet to a destination is sent over one link, the next packet to the same destination is sent over the next link, and so on.
H c vi n m ng Bach Khoa - Website: www.bkacad.com 37

Administrative Distances

H c vi n m ng Bach Khoa - Website: www.bkacad.com

38

Purpose of Administrative Distance


Multiple Routing Sources

How does a router determine which route to install in the routing table when it has learned about the same network from more than one routing source? Administrative distance (AD) defines the preference of a routing source. Administrative distance is an integer value from 0 to 255. Each routing source - including specific routing protocols, static routes, and even directly connected networks - is prioritized in order of most- to least-preferable using an administrative distance value.
H c vi n m ng Bach Khoa - Website: www.bkacad.com 39

The Purpose of Administrative Distance

Purpose of Administrative Distance

Administrative distance refers to the trustworthiness of a particular route.


H c vi n m ng Bach Khoa - Website: www.bkacad.com 40

Purpose of Administrative Distance


Route source Connected interface Static EIGRP summary route eBGP EIGRP (Internal) IGRP OSPF IS-IS RIP EIGRP (External) iBGP Unknown 0 1 5 20 90 100 110 115 120 170 200 255
41

Default AD

H c vi n m ng Bach Khoa - Website: www.bkacad.com

Purpose of Administrative Distance



show ip route show ip rip database

H c vi n m ng Bach Khoa - Website: www.bkacad.com

42

Dynamic Routing Protocols

show ip route

show ip protocols

H c vi n m ng Bach Khoa - Website: www.bkacad.com

43

Static Routes

Static routes are entered by an administrator who wants to manually configure the best path to the destination. Static routes have a default AD value of 1. Directly connected networks, which have a default AD value of 0. A static route using either a next-hop IP address or an exit interface has a default AD value of 1.

H c vi n m ng Bach Khoa - Website: www.bkacad.com

44

Directly Connected Networks


Directly connected networks appear in the routing table as soon as the IP address on the interface is configured and the interface is enabled and operational. The AD value of directly connected networks is 0, meaning that this is the most preferred routing source. Administrative distance of a directly connected network cannot be changed and no other route source can have an administrative distance of 0.

H c vi n m ng Bach Khoa - Website: www.bkacad.com

45

Directly Connected Networks

H c vi n m ng Bach Khoa - Website: www.bkacad.com

46

Routing Protocols and Subnetting Activities

Identifying Elements of the Routing Table: 3.5.1.1 Subnetting Scenario 1: 3.5.2.1 Subnetting Scenario 2: 3.5.3.1 Subnetting Scenario 3: 3.5.4.1

H c vi n m ng Bach Khoa - Website: www.bkacad.com

47

Summary

H c vi n m ng Bach Khoa - Website: www.bkacad.com

48

Q/A
1. Why is fast convergence desirable in networks that use dynamic routing protocols? Routers may make incorrect forwarding decisions until the network has converged. 2. What is conditions must be met in order for a network to have converged? The routers in the network are operating with consistent routing knowledge.

H c vi n m ng Bach Khoa - Website: www.bkacad.com

49

H c vi n m ng Bach Khoa - Website: www.bkacad.com

50

You might also like