63
1 © 2006 Glcat,Zyuanli,. All rights reserved. 网网网网网网网 网网网网 网网网

Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

111© 2006 Glcat,Zyuanli,. All rights reserved.

网络分析与设计

计算机系:李志远

Page 2: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

222© 2006 Glcat,Zyuanli,. All rights reserved.

Chapter 6

• Enhanced IGRP(EIGRP) and Openhortest Path First(OSPF)

Page 3: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

333© 2006 Glcat,Zyuanli,. All rights reserved.

two most popular routing protocols

• Enhanced Interior Gateway Routing Protocol (EIGRP) is a proprietary Cisco protocol that runs on Cisco routers

• Open Shortest Path First (OSPF) routing protocol,which is the other most popular routing protocol in use today

Page 4: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

444© 2006 Glcat,Zyuanli,. All rights reserved.

EIGRP Features and Operation

• Enhanced IGRP (EIGRP) is a classless, enhanced distance-vector protocol

• EIGRP includes the subnet mask in its route updates.

Page 5: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

555© 2006 Glcat,Zyuanli,. All rights reserved.

• EIGRP is sometimes referred to as a hybrid routing protocol because it has characteristics of both distance-vector and link-state protocols

Page 6: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

666© 2006 Glcat,Zyuanli,. All rights reserved.

Protocol-Dependent Modules

• provides routing support for multiple Network layer protocols:– IP, IPX, and AppleTalk.

• EIGRP supports different Network layer protocols through the use of protocol-dependent modules (PDMs)

Page 7: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

777© 2006 Glcat,Zyuanli,. All rights reserved.

Neighbor Discovery

• Before EIGRP routers are willing to exchange routes with each other, they must become neighbors.There are three conditions that must be met for neighborship establishment:– Hello or ACK received– AS numbers match– Identical metrics (K values)

Page 8: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

888© 2006 Glcat,Zyuanli,. All rights reserved.

• use Hello messages to establish neighborship

• EIGRP routers that belong to different autonomous systems (ASes) don’t automatically share routing information and they don’t become neighbors.

Page 9: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

999© 2006 Glcat,Zyuanli,. All rights reserved.

• The only time EIGRP advertises its entire routing table is when it discovers a new neighbor and forms an adjacency with it through the exchange of Hello packets. When this happens, both neighbors advertise their entire routing tables to one another. After each has learned its neighbor’s routes, only changes to the routing table are propagated from then on.

Page 10: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

101010© 2006 Glcat,Zyuanli,. All rights reserved.

Some terms

• Feasible distance

• Reported distance

• Neighbor table

• Topology table

• Feasible successor

• Successor

Page 11: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

111111© 2006 Glcat,Zyuanli,. All rights reserved.

Reliable Transport Protocol (RTP)

• EIGRP uses a proprietary protocol, called Reliable Transport Protocol (RTP), to manage the communication of messages between EIGRP-speaking routers.

Page 12: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

121212© 2006 Glcat,Zyuanli,. All rights reserved.

Diffusing Update Algorithm (DUAL)

• This algorithm allows for the following:– Backup route determination if one is available– Support of Variable-Length Subnet Masks (VL

SMs)– Dynamic route recoveries– Queries for an alternate route if no route can b

e found

Page 13: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

131313© 2006 Glcat,Zyuanli,. All rights reserved.

The key to EIGRP’s speedy convergence is twofold

• First, EIGRP routers maintain a copy of all of their neighbors’ routes, which they use to calculate their own cost to each remote network.If the best path goes down, it may be as simple as examining the contents of the topology table to select the best replacement route.

Page 14: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

141414© 2006 Glcat,Zyuanli,. All rights reserved.

• Secondly, if there isn’t a good alternative in the local topology table, EIGRP routers very quickly ask their neighbors for help finding one

Page 15: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

151515© 2006 Glcat,Zyuanli,. All rights reserved.

Using EIGRP to Support Large Networks

• EIGRP includes a bunch of cool features that make it suitable for use in large networks:– Support for multiple ASes on a single router– Support for VLSM and summarization– Route discovery and maintenance

Page 16: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

161616© 2006 Glcat,Zyuanli,. All rights reserved.

What’s a discontiguous network?

• It’s one that has two or more subnetworks of a classful network connected together by different classful networks.

Page 17: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

171717© 2006 Glcat,Zyuanli,. All rights reserved.

Page 18: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

181818© 2006 Glcat,Zyuanli,. All rights reserved.

• EIGRP automatically summarizes networks at their classful boundaries

Page 19: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

191919© 2006 Glcat,Zyuanli,. All rights reserved.

Page 20: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

202020© 2006 Glcat,Zyuanli,. All rights reserved.

Route Discovery and Maintenance

• Given the huge amount of information that EIGRP routers have to collect

• EIGRP uses a series of tables to store important information about its environment:– Neighborship table– Topology table– Route table

Page 21: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

212121© 2006 Glcat,Zyuanli,. All rights reserved.

neighborship table

• The neighborship table (usually referred to as the neighbor table) records information about routers with whom neighborship relationships have been formed.

Page 22: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

222222© 2006 Glcat,Zyuanli,. All rights reserved.

topology table

• The topology table stores the route advertisements about every route in the internetwork received from each neighbor.

Page 23: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

232323© 2006 Glcat,Zyuanli,. All rights reserved.

route table

• The route table stores the routes that are currently used to make routing decisions. There would be separate copies of each of these tables for each protocol that is actively being supported by EIGRP, whether it’s IP, IPX, or AppleTalk.

Page 24: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

242424© 2006 Glcat,Zyuanli,. All rights reserved.

EIGRP Metrics

• Bandwidth

• Delay

• Load

• Reliability

Page 25: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

252525© 2006 Glcat,Zyuanli,. All rights reserved.

Maximum Paths and Hop Count

• By default, EIGRP (and IGRP) can provide unequal cost load balancing of up to four links.However, you can have EIGRP actually load balance across up to six links by using the following command:

• Pod1R1(config)#router eigrp 10

• Pod1R1(config-router)#maximum-paths ?

• <1-6> Number of paths

Page 26: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

262626© 2006 Glcat,Zyuanli,. All rights reserved.

• EIGRP (and again IGRP) has a maximum hop count of 100, but can be set up to 255

• Pod1R1(config)#router eigrp 10

• Pod1R1(config-router)#metric maximum-hops ?

• <1-255> Hop count

Page 27: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

272727© 2006 Glcat,Zyuanli,. All rights reserved.

Configuring EIGRP

• Let’s look at an example of enabling EIGRP for autonomous system 20 on a router connected to two networks, with the network numbers being 10.3.1.0/24 and 172.16.10.0/24:

• Router#config t• Router(config)#router eigrp 20• Router(config-router)#network 172.16.0.0• Router(config-router)#network 10.0.0.0

Page 28: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

282828© 2006 Glcat,Zyuanli,. All rights reserved.

• EIGRP has an AD of 90, IGRP is 100 and RIP is 120, so only EIGRP routes will populate the routing tables even if all three routing protocols are enabled.

Page 29: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

292929© 2006 Glcat,Zyuanli,. All rights reserved.

Page 30: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

303030© 2006 Glcat,Zyuanli,. All rights reserved.

Page 31: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

313131© 2006 Glcat,Zyuanli,. All rights reserved.

Lab_A

• Lab_A#config t• Enter configuration commands, one per line. En

d with CNTL/Z.• Lab_A(config)#router eigrp ?• <1-65535> Autonomous system number• Lab_A(config)#router eigrp 10• Lab_A(config-router)#netw 192.168.10.0• Lab_A(config-router)#netw 192.168.20.0• Lab_A(config-router)#^Z• Lab_A#

Page 32: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

323232© 2006 Glcat,Zyuanli,. All rights reserved.

Lab_B

• Lab_B#config t• Enter configuration commands, one per line. En

d with CNTL/Z.• Lab_B(config)#router eigrp 10• Lab_B(config-router)#netw 192.168.20.0• Lab_B(config-router)#netw 192.168.30.0• Lab_B(config-router)#netw 192.168.40.0• Lab_B(config-router)#^Z• Lab_B#

Page 33: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

333333© 2006 Glcat,Zyuanli,. All rights reserved.

Lab_C

• Lab_C#config t• Enter configuration commands, one per lin

e. End with CNTL/Z.• Lab_C(config)#router eigrp 10• Lab_C(config-router)#netw 192.168.40.0• Lab_C(config-router)#netw 192.168.50.0• Lab_C(config-router)#^Z• Lab_C#

Page 34: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

343434© 2006 Glcat,Zyuanli,. All rights reserved.

Configuring Discontiguous Networks

Page 35: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

353535© 2006 Glcat,Zyuanli,. All rights reserved.

• Lab_A#config t

• Lab_A(config)#router eigrp 100

• Lab_A(config-router)#network 172.16.0.0

• Lab_A(config-router)#network 10.0.0.0

• Lab_A(config-router)#no auto-summary

Page 36: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

363636© 2006 Glcat,Zyuanli,. All rights reserved.

• Lab_B#config t

• Lab_B(config)#router eigrp 100

• Lab_B(config-router)#network 172.16.0.0

• Lab_B(config-router)#network 10.0.0.0

• Lab_B(config-router)#no auto-summary

Page 37: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

373737© 2006 Glcat,Zyuanli,. All rights reserved.

Verifying EIGRP

Page 38: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

383838© 2006 Glcat,Zyuanli,. All rights reserved.

Open Shortest Path First (OSPF) Basics

• Open Shortest Path First (OSPF) is an open standards routing protocol that’s been implemented by a wide variety of network vendors, including Cisco.

Page 39: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

393939© 2006 Glcat,Zyuanli,. All rights reserved.

• This works by using the Dijkstra algorithm. First, a shortest path tree is constructed, and then the routing table is populated with the resulting best paths.

• it only supports IP routing

Page 40: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

404040© 2006 Glcat,Zyuanli,. All rights reserved.

OSPF provides the following features:

• Consists of areas and autonomous systems

• Minimizes routing update traffic

• Allows scalability

• Supports VLSM/CIDR

• Has unlimited hop count

• Allows multi-vendor deployment (open standard)

Page 41: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

414141© 2006 Glcat,Zyuanli,. All rights reserved.

OSPF and RIP comparison

Page 42: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

424242© 2006 Glcat,Zyuanli,. All rights reserved.

Page 43: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

434343© 2006 Glcat,Zyuanli,. All rights reserved.

The reasons for creating OSPF in a hierarchical design include:

• To decrease routing overhead

• To speed up convergence

• To confine network instability to single areas of the network

Page 44: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

444444© 2006 Glcat,Zyuanli,. All rights reserved.

OSPF design example

Page 45: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

454545© 2006 Glcat,Zyuanli,. All rights reserved.

OSPF Terminology

• Link A link is a network or router interface assigned to any given network.

• Router ID The Router ID (RID) is an IP address used to identify the router.

• Neighbors Neighbors are two or more routers that have an interface on a common network,such as two routers connected on a point-to-point serial link.

Page 46: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

464646© 2006 Glcat,Zyuanli,. All rights reserved.

• Neighbors Neighbors are two or more routers that have an interface on a common network,such as two routers connected on a point-to-point serial link.

• Adjacency An adjacency is a relationship between two OSPF routers that permits the direct exchange of route updates.

Page 47: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

474747© 2006 Glcat,Zyuanli,. All rights reserved.

• Hello protocol The OSPF Hello protocol provides dynamic neighbor discovery and maintains neighbor relationships

• Neighborship database The neighborship database is a list of all OSPF routers for which Hello packets have been seen.

• Topology database The topology database contains information from all of the Link State Advertisement packets that have been received for an area.

Page 48: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

484848© 2006 Glcat,Zyuanli,. All rights reserved.

• Link State Advertisement A Link State Advertisement (LSA) is an OSPF data packet containing link-state and routing information that’s shared among OSPF routers

Page 49: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

494949© 2006 Glcat,Zyuanli,. All rights reserved.

• Designated router A designated router (DR) is elected whenever OSPF routers are connected to the same multi-access network.

• Backup designated router A backup designated router (BDR) is a hot standby for the DR on multi-access links

Page 50: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

505050© 2006 Glcat,Zyuanli,. All rights reserved.

• OSPF areas An OSPF area is a grouping of contiguous networks and routers. All routers in the same area share a common Area ID

• Broadcast (multi-access)• Non-broadcast multi-access• Point-to-point Point-to-point refers to a type of n

etwork topology consisting of a direct connection between two routers that provides a single communication path.

Page 51: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

515151© 2006 Glcat,Zyuanli,. All rights reserved.

• Point-to-multipoint Point-to-multipoint refers to a type of network topology consisting of a series of connections between a single interface on one router and multiple destination routers.

Page 52: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

525252© 2006 Glcat,Zyuanli,. All rights reserved.

SPF Tree Calculation

• Within an area, each router calculates the best/shortest path to every network in that same area.This calculation is based upon the information collected in the topology database and an algorithm called shortest path first (SPF)

Page 53: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

535353© 2006 Glcat,Zyuanli,. All rights reserved.

Configuring OSPF

• the basic single area OSPF configuration.

• These two elements are the basic elements of OSPF configuration:– Enabling OSPF– Configuring OSPF areas

Page 54: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

545454© 2006 Glcat,Zyuanli,. All rights reserved.

Enabling OSPF

• Lab_A(config)#router ospf ?

• <1-65535>

• A value in the range 1–65,535 identifies the OSPF Process ID.

Page 55: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

555555© 2006 Glcat,Zyuanli,. All rights reserved.

Configuring OSPF Areas

• After identifying the OSPF process, you need to identify the interfaces that you want to activate OSPF communications on, as well as the area in which each resides. This will also configure the networks you’re going to advertise to others.

Page 56: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

565656© 2006 Glcat,Zyuanli,. All rights reserved.

• Lab_A#config t• Lab_A(config)#router ospf 1• Lab_A(config-router)#network 10.0.0.0 0.255.25

5.255 area ?• <0-4294967295> OSPF area ID as a decimal val

ue• A.B.C.D OSPF area ID in IP address format• Lab_A(config-router)#network 10.0.0.0 0.255.25

5.255 area 0

Page 57: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

575757© 2006 Glcat,Zyuanli,. All rights reserved.

A quick review of wildcards:

• A 0 octet in the wildcard mask indicates that the corresponding octet in the network must match exactly. On the other hand, a 255 indicates that you don’t care what the corresponding octet is in the network number.

Page 58: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

585858© 2006 Glcat,Zyuanli,. All rights reserved.

• See here

Page 59: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

595959© 2006 Glcat,Zyuanli,. All rights reserved.

Verifying OSPF Configuration

• sh ip route

• sho ip ospf

• sh ip ospf database

• show ip ospf interface

• sh ip ospf neighbor

• sh ip protocols

Page 60: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

606060© 2006 Glcat,Zyuanli,. All rights reserved.

OSPF and Loopback Interfaces

• Loopback interfaces are logical interfaces, which are virtual, software-only interfaces; they are not real router interfaces. Using loopback interfaces with your OSPF configuration ensures that an interface is always active for OSPF processes.

Page 61: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

616161© 2006 Glcat,Zyuanli,. All rights reserved.

• They can be used for diagnostic purposes as well as OSPF configuration. The reason you want to configure a loopback interface on a router is because if you don’t, the highest IP address on a router will become that router’s RID. The RID is used to advertise the routes as well as elect the DR and BDR.

Page 62: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

626262© 2006 Glcat,Zyuanli,. All rights reserved.

Configuring Loopback Interfaces

Page 63: Chapter 6 Enhanced IGRP(EIGRP) and Open Shortest Path

636363© 2006 Glcat,Zyuanli,. All rights reserved.

• Lab_A#config t• Enter configuration commands, one per line. En

d with CNTL/Z.• Lab_A(config)#int loopback 0• Lab_A(config-if)#ip address 172.16.10.1 255.25

5.255.255• Lab_A(config-if)#no shut• Lab_A(config-if)#^Z• Lab_A#