Dynamic Routing Protocols
Dynamic Routing Protocols
Exterior Routing Protocols or Exterior Gateway Protocols (EGP) Border Gateway Protocol (BGP) is now used between Internet service providers (ISP) as well as between ISPs and their larger private clients to exchange routing information.
Dynamic Routing Protocols: Exchange of routing information between routers with the same routing protocol Dynamically learn information about remote networks Determines the best path to each network Adds routes to routing tables Automatically learn about new networks Automatically finds alternate paths if needed (link failure in current path)
6
Compared to Static Routes: Advantages of Dynamic Routing Protocols: Less administrative overhead (change modifications) Configuration is less error-prone Scales better with larger networks Disadvantage of Dynamic Routing Protocols More CPU and memory requirements This is not that big an issue in most networks and with modern routers. Less secure if routing updates are sent unencrypted. Most networks use both dynamic and static routes
The operations of a dynamic routing protocol vary depending on the type of routing protocol, but in general: 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.
9
Static Routing
Primary uses: Smaller networks that are not expected to grow significantly. Routing to and from stub networks Default route
10
Routing Protocols can be classified by: IGP or EGP Distance vector or link-state Classful or classless
12
An autonomous system (AS)otherwise known as a routing domainis a collection of routers under a common administration. Companys internal network An ISPs network. Because the Internet is based on the autonomous system concept, two types of routing protocols are required: Interior routing protocols Exterior routing protocols
13
Interior gateway protocols (IGP): Used for intra-autonomous system routing Routing inside an autonomous system Exterior gateway protocols (EGP): Used for inter-autonomous system routing Routing between autonomous systems
14
Interior gateway protocols (IGP) can be classified as two types: Distance vector routing protocols Link-state routing protocols
15
16
17
18
19
20
All routing protocols can also be classified as either Classful routing protocols Classless routing protocols IPv6 routing protocols are classless
21
Classful routing protocols do not send subnet mask information in routing updates. The first routing protocols, such as RIP When network addresses were allocated based on classes. Class A, B, or C. Routing protocol did not need to include the subnet mask in the routing update. Network mask determined based on value of first octet of the network address.
22
172.16.136.0/30
Classless routing protocols include the subnet mask with the network address in routing updates. Todays networks are no longer allocated based on classes Subnet mask cannot be determined by the value of the first octet. Classless routing protocols are required in most networks today because of their support for: VLSM CIDR Discontiguous networks.
23
An important characteristic of a routing protocol: How quickly it converges when there is a change in the topology. Convergence is when the routing tables of all routers 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 update their routing tables. A network is not completely operable until the network has converged; therefore, most networks require short convergence times.
24
Generally, convergence time: Slow: RIP and IGRP Faster: EIGRP, OSPF, and IS-IS
25
Metrics
Purpose of the Metric Metrics and Routing Protocols Load Balancing
Purpose of a Metric
?
Metrics are a way to measure or compare. Determine which route is the best path. Assign costs to reach remote networks. Routing protocol learns multiple routes to the same destination. Metric is used to determine which path is most preferable
27
Purpose of a Metric
Routing protocol metrics: RIP: Hop count IGRP and EIGRP: Bandwidth, delay, reliability and load OSPF (Ciscos version): Bandwidth IS-IS: Four values (Cisco uses default) Covered in CCNP BGP: Attributes Covered in CCNP
28
Metric Parameters
56 Kbps
R1 to reach the 172.16.1.0/24 network. RIP: Fewest number of hops via R2. OSPF: Path with the highest cumulative bandwidth through R3. This results in faster packet delivery.
29
The routing table displays the metric for each dynamic and static route. Static routes always have a metric of 0. Routing protocols install route in routing table with the lowest metric.
30
R2# show ip route <output omitted> Gateway of last resort is not set R 192.168.1.0/24 [120/1] via 192.168.2.1, 00:00:24, Serial0/0/0 C 192.168.2.0/24 is directly connected, Serial0/0/0 C 192.168.3.0/24 is directly connected, FastEthernet0/0 C 192.168.4.0/24 is directly connected, Serial0/0/1 R 192.168.5.0/24 [120/1] via 192.168.4.1, 00:00:26, Serial0/0/1 R 192.168.6.0/24 [120/1] via 192.168.2.1, 00:00:24, Serial0/0/0 [120/1] via 192.168.4.1, 00:00:26, Serial0/0/1 R 192.168.7.0/24 [120/1] via 192.168.4.1, 00:00:26, Serial0/0/1 R 192.168.8.0/24 [120/2] via 192.168.4.1, 00:00:26, Serial0/0/1
All routers running RIP R2 has a route to the 192.168.8.0/24 network that is 2 hops away. The 2 in the command output is where the routing metric is displayed. 120 is the Administrative Distance (later)
31
Load Balancing
What happens when two or more routes to the same destination have identical metric values? The router load balances between these equal-cost paths. The packets are forwarded using all equal-cost paths.
32
Load Balancing
R2# show ip route <output omitted> R 192.168.6.0/24 [120/1] via 192.168.2.1, 00:00:24, Serial0/0/0 [120/1] via 192.168.4.1, 00:00:26, Serial0/0/1
All the routing protocols discussed in this course are capable of automatically load balancing traffic for up to four equal-cost routes by default. EIGRP is also capable of load balancing across unequal-cost paths. This feature of EIGRP is discussed in the CCNP courses.
33
Administrative Distance
Purpose of Administrative Distance Dynamic Routing Protocols and Administrative Distance Static Routes and Administrative Distance Directly Connected Networks and Administrative Distance
35
37
R2 has learned of the 192.168.6.0/24 route from both: R1 through EIGRP updates R3 through RIP updates. RIP: AD = 120, EIGRP: AD = 90 (lower, more preferred AD) R2 adds the route learned using EIGRP to the routing table and forwards all packets for the 192.168.6.0/24 network to Router R1.
39
40
Static routes Default AD = 1 After directly connected networks (AD = 0), static routes are the most preferred route source.
43
C C S C S
172.16.0.0/24 is subnetted, 3 subnets 172.16.1.0 is directly connected, FastEthernet0/0 172.16.2.0 is directly connected, Serial0/0/0 172.16.3.0 is directly connected, Serial0/0/0 192.168.1.0/24 is directly connected, Serial0/0/1 192.168.2.0/24 [1/0] via 192.168.1.1
Next-hop: ip route 192.168.2.0 255.255.255.0 192.168.1.1 Static route: default AD = 1 (never 0) Exit-interface: AD = 1 Next-hop IP address: AD = 1
44
C C S C S
172.16.0.0/24 is subnetted, 3 subnets 172.16.1.0 is directly connected, FastEthernet0/0 172.16.2.0 is directly connected, Serial0/0/0 172.16.3.0 is directly connected, Serial0/0/0 192.168.1.0/24 is directly connected, Serial0/0/1 192.168.2.0/24 [1/0] via 192.168.1.1
Next-hop: ip route 192.168.2.0 255.255.255.0 192.168.1.1 The static route to 172.16.3.0 is listed as directly connected. It is common misconception to assume that the AD value of this route must be 0 because it states directly connected a - false assumption.
45
R2# show ip route 172.16.3.0 Routing entry for 172.16.3.0/24 Known via static, distance 1, metric 0 (connected) Routing Descriptor Blocks: * directly connected, via Serial0/0/0 Route metric is 0, traffic share count is 1
View AD value this static route with an exit-interface, use command show ip route [route] option.
46
C C S C S
Directly connected networks Appear in the routing table as soon as the interface is active with IP address/mask (up and up). AD = 0, most preferred route. Cannot be changed and no other route can have AD = 0. There is no better route for a router than having one of its interfaces directly connected to that network.
47
R2: ip route 192.168.8.0 255.255.255.0 192.168.4.1 R2: ip route 192.168.8.0 255.255.255.0 192.168.2.1 5 There are situations when an administrator will configure a static route to the same destination that is learned using a dynamic routing protocol, but using a different path. The static route will be configured with an AD greater than that of the routing protocol. If there is a link failure in the path used by the dynamic routing protocol, the route entered by the routing protocol is removed from the routing table. The static route will then become the only source and will automatically be added to the routing table. This is known as a floating static route and is discussed in CCNP courses.
48