chapter 6 enhanced igrp(eigrp) and open shortest path

Post on 18-Dec-2014

2.163 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

TRANSCRIPT

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

网络分析与设计

计算机系:李志远

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

Chapter 6

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

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

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.

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

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)

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)

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.

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.

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

Some terms

• Feasible distance

• Reported distance

• Neighbor table

• Topology table

• Feasible successor

• Successor

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.

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

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.

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

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

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.

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

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

• EIGRP automatically summarizes networks at their classful boundaries

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

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

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.

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.

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.

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

EIGRP Metrics

• Bandwidth

• Delay

• Load

• Reliability

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

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

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

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.

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

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

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#

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#

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#

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

Configuring Discontiguous Networks

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

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

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

Verifying EIGRP

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.

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

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)

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

OSPF and RIP comparison

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

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

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

OSPF design example

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.

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.

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.

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

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

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.

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.

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)

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

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.

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.

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

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.

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

• See here

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

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.

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.

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

Configuring Loopback Interfaces

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#

top related