+ All Categories
Home > Documents > Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR...

Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR...

Date post: 16-Apr-2018
Category:
Upload: trannhi
View: 263 times
Download: 8 times
Share this document with a friend
26
1 ©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl , 2003 1 1 Chapter 13 Routing Protocols (RIP, OSPF, BGP) Part 3 INTERIOR AND EXTERIOR ROUTING RIP OSPF BGP
Transcript
Page 1: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

1©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200311

Chapter 13

Routing Protocols(RIP, OSPF, BGP)

Part 3

INTERIOR AND EXTERIOR ROUTINGRIPOSPFBGP

Page 2: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

2©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200322

Types of OSPF packets

Page 3: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

3©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200333

OSPF Packet Header

24-Byte common header

Area Identifier

1: Hello2: Database Description3: Link State request4: Link State Update5: Link State Ack

Including HeaderVer 2

0: none1: Pswd

Page 4: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

4©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200344

OSPF Packet 1: Hello packet

First step in Link State RoutingTo Create neighborhood relationships and test neighbor reachability

OSPF Packet Header

Secondsbetween Hellos

Secondsto

Neighbor's Death

List of my Neighbors

Page 5: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

5©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200355

OSPF Packet 2: Database Description packet

Sent by a router when it hears from a neighbor (via Hellos) for the first time, informing the new router of the outline of the existing network topology.Could be very long, so it may be divided into several messages.The new router may later request information on specific links.Two routers could exchange their DD packets in a master/slave fashion.

If AS Boundary

Router

If Area Boundary

Router

1: Master0: Slave

OSPF Packet Header

Page 6: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

6©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200366

OSPF Packet 3: Link State Request packet

Sent by a router that needs information about a specific route or routes.

For example, by a new router after receiving a Database Description packet.

Contains 3 fields from the route advertisement (LSA header)st

Database Description

1 Hello

OSPF Packet Header

Link State Request

Link State Update

Link State ACK

Page 7: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

7©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200377

OSPF Packet 4: Link State Update packet

The heart of OSPF: used by a router to advertise the states of its links.

May carry multiple Link State Advertisements (LSAs) of different types: router LSA, network LSA, summary link to network LSA, summary link to AS border router LSA, external LSA

OSPF Packet Header

Page 8: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

8©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200388

LSA Common Header

Type 1: router IPType 2: IP of DRType 3: network addressType 4: IP of ASBRType 5: net add of external network

1: router link2: network link3: sum lnk to net4: sum lnk to ASBR5: external linkIP

Seconds since

created

Page 9: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

9©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 200399

LSA 1: Router Link

Advertises ALL links of a TRUE router

Router AddressAddress of neighbor router4: Virtual Link

Network MaskNetwork Address3: Connection to stub network

Router addressAddress of designated router2: Connection to any-to-any network

Interface numberAddress of neighbor router1: Point-to-Point to another router

Link DataLink IDLink Type

Default TOS

Page 10: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

10©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031010

Example 5 Solution

This router has three links: two of type 1 (point-to-point) and one of type 3 (stub network). The router link LSA is shown

Give the router link LSA sent by router 10.24.7.9

LinkStateUpdate

Router Link

Page 11: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

11©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031111

LSA 2: Network Link

Page 12: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

12©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031212

Example 6

Give the network link LSA

SolutionThe network, for which the network link advertises, has three routers attached. The LSA shows the mask and the router addresses.Note that only one of the routers, the designated router, advertises the network link.

Page 13: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

13©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031313

LSA 3: Summary Link to Network

Used by Area Border Router to inform the area about networks from outside the areaOne network advertised per an LSAThe IP of the advertising Designated Router (found in the LSA header) & Network Mask = Network Address

Page 14: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

14©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031414

LSA 4: Summary Link to AS Boundary Router

Generated by Area Border Routers to flood their areasAnnounces the network to which the ASBR is connected.

Page 15: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

15©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031515

LSA 5: External Link

Generated by AS Border Router to flood its Autonomous SystemAnnounces an out-of-the AS network to the entire AS.

Page 16: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

16©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031616

OSPF Packet 5: Link State Acknowledgment packet

Page 17: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

17©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031717

OSPF Ecapsulation

OSPF packets are encapsulated in IP datagrams.They contain their own ACK mechanism for flow/error control

No need for a transport layer protocol to service them

Page 18: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

18©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031818

13.4 BGP: Border Gateway Protocol

Path vector packets

Page 19: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

19©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20031919

Types of BGP messages

Page 20: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

20©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20032020

BGP Packet Header

Page 21: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

21©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20032121

BGP Open Message

Page 22: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

22©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20032222

BGP Update Message

Page 23: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

23©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20032323

BGP KeepAlive Message

Page 24: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

24©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20032424

BGP Notification Message

Page 25: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

25©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20032525

BGP Encapsulation

BGP uses the services of TCP on port 179.

Page 26: Routing Protocols (RIP, OSPF, BGP) Protocols (RIP, OSPF, BGP) Part 3. 9. INTERIOR AND EXTERIOR ROUTING. 9. RIP. 9. OSPF.

26©The McGraw-Hill Companies, Inc., 2000 © Adapted for use at JMU by Mohamed Aboutabl, 20032626

Homework

Problems:


Recommended