1 / 64

Routing Protocols and Concepts

Routing Protocols and Concepts. OSPF Chapter 11 Modified by Pete Brierley. What will we Learn from chapter 11?. Background of OSPF. Began in 1987 1989 OSPFv1 released in RFC 1131 This version was experimental & never deployed 1991 OSPFv2 released in RFC 1247

niesha
Download Presentation

Routing Protocols and Concepts

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Routing Protocols and Concepts OSPF Chapter 11 Modified by Pete Brierley

  2. What will we Learn from chapter 11?

  3. Background of OSPF • Began in 1987 • 1989 OSPFv1 released in RFC 1131 This version was experimental & never deployed • 1991 OSPFv2 released in RFC 1247 • 1998 OSPFv2 updated in RFC 2328 • 1999 OSPFv3 published in RFC 2740

  4. OSPF Message Encapsulation • Data link frame header • Contains - Source MAC address • Destination MAC address • IP packet header Contains - Source IP address, Destination IP address, & Protocol field set to 89 • OSPF packet header • Contains - Router ID and area ID, & • Type code for OSPF packet type • OSPF packet type - One of 5 types

  5. OSPF Packet Types Acknowledgment receipt

  6. Purpose of the OSPF Hello Packet • Discover OSPF neighbors & establish adjacency • Advertise guidelines on which routers must agree to become neighbors • Used by multi-access networks to elect a designated router and a backup designated router • DR • BDR

  7. OSPF • Hello Packets • Contents of a Hello type Packet • router ID of transmitting router • OSPF Hello Intervals • Usually multicast (224.0.0.5) • Sent every 30 seconds for NBMA segments • OSPF Dead Intervals • This is the time that must transpire before the neighbor is considered down • Default time is 4 times the “hello” interval

  8. OSPF • Hello protocol packets contain information that is used in electing • -Designated Router (DR) • This router is responsible for updating all other OSPF routers • -Backup Designated Router (BDR) • This router takes over DR’s responsibilities if DR fails

  9. OSPF Link-state Updates • Purpose of a Link State Update (LSU) - • Used to deliver link state advertisements • Purpose of a Link State Advertisement (LSA) - • Contains information about neighbors & path costs

  10. OSPF Algorithm • OSPF routers build & maintain a link-state database containing LSAs received from other routers • Information found in the database is utilized upon execution of Dijkstra SPF algorithm • SPF algorithm used to create SPF tree • SPF tree used to populate routing table

  11. Administrative Distance

  12. OSPF Authentication • Purpose is to encrypt & authenticate routing information • This is an interface specific configuration • Routers will only accept routing information from other routers that have been configured with the same password or authentication information

  13. Topology used in this chapter • Discontiguous IP addressing scheme • Since OSPF is a classless routing protocol the subnet mask is configured in each router

  14. The router OSPF command • To enable OSPF on a router use the following command • R1(config)#router ospf process-id • Where the Process id • Is a locally significant number between 1 and 65535

  15. OSPF network command • Requires: • network address • wildcard – NOT a subnet mask • area-id - refers to the OSPF area. • The OSPF area is a group of routers sharing link state information • Router(config-router)#networknetwork-address wildcard-ask areaarea-id

  16. Basic OSPF Configuration • Router ID • This is an IP address used to identify a router • Three criteria for deriving the router ID:[in order of selection] • Router-id IP address • Loopback IP address • Highest IP address on any active interface

  17. Commands used to verify current router ID • Show ip protocols • Show ip ospf • Show ip ospf interface

  18. Commands used to verify current router ID

  19. Commands used to verify current router ID • Show ip protocols • Show ip ospf • Show ip ospf interface

  20. Commands used to verify current router ID

  21. OSPF Router ID • Router ID & Loopback addresses • -Highest loopback address will be used as router ID if router-id command isn’t used • -Advantage of using loopback address • the loopback interface cannot fail  OSPF stability • The OSPF router-id command • Introduced in IOS 12.0 • Command syntax • Router(config)#router ospfprocess-id • Router(config-router)#router-idip-address • Modifying the Router ID • Use the commandRouter#clear ipospf process

  22. Verifying OSPF • Use the show ip ospf command to verify & trouble shoot OSPF networks • Command will display the following: • Neighbor adjacency • -No adjacency indicated if: • Neighboring router’s Router ID is not displayed • A state of full is not displayed • -Consequence of no adjacency: • No link state information exchanged • Inaccurate SPF trees & routing tables result

  23. Verifying OSPF - Additional Commands

  24. Examining the routing table • Use the show ip route command to display the routing table • NOTE - OSPF does not automatically summarize at major network boundaries

  25. OSPF Metric • OSPF uses cost as the metric for determining the best route • -The best route will have the lowest cost • -Costis based on bandwidth of an interface • Cost is calculated using the formula - 108 / bandwidth • -Reference bandwidth • defaults to 100Mbps • can be modified using the auto-cost reference-bandwidth command

  26. OSPF Metric • Usually the actual speed of a link is differentthan the default bandwidth • This makes it imperative that the bandwidth value reflects the link’s actual speed • Reason: • so routing table has best path information • The show interfacecommand will display the interface’s bandwidth • -Most serial link default to 1.544Mbps = T1

  27. Modifying the Cost of a link • Both sides of a serial link should be configured with the same bandwidth • Two commands used to modify bandwidth: • Bandwidth command • Example: • R1(config-if)#bandwidth bandwidth-kbps • ip ospf cost command – allows you to directly specify interface cost • -Example: R1(config)#interface serial 0/0/0 • R1(config-if)#ip ospf cost 1562

  28. Changing Bandwidth

  29. Changing Cost

  30. Modifying the Cost of the link • Difference between bandwidth command & the IP OSPF cost command • Bandwidth • Link cost is calculated • IP OSPF cost • Sets cost to a specific value

  31. Challenges in Multi-access Networks OSPF defines five network types: • Point-to-point • Broadcast Multi-access • Non-broadcast Multi-access (NBMA) • Point-to-multipoint • Virtual links

  32. Two challenges presented by multi-access networks • Multiple adjacencies • Extensive LSA flooding

  33. OSPF in Multiaccess Networks • Extensive flooding of LSAs • For every LSA sent out there must be an acknowledgement of receipt sent back to transmitting router. • consequence: lots of bandwidth consumed and chaotic traffic

  34. OSPF in Multiaccess Networks • Solution to LSA flooding issue is the use of • Designated router (DR) • Backup designated router (BDR) • DR & BDR selection • Routers are elected to send & receive LSA • Sending & Receiving LSA • DRothers send LSAs via multicastaddress224.0.0.6to DR & BDR • DR forward LSA via multicast address 224.0.0.5to all other routers

  35. OSPF in Multiaccess Networks

  36. DR/BDR Election Process • DR/BDR elections DO NOToccur in point to point networks

  37. OSPF in Multiaccess Networks • DR/BDR elections will take place on multiaccess networksas shown below

  38. OSPF in Multi-access Networks • Criteria for getting elected DR/BDR • DR: Router with the highest OSPF interface priority. • BDR: Router with the second highest OSPF interface priority. • If OSPF interface priorities are equal, then the • Highest router ID is used to break the tie.

  39. OSPF in Multi-access Networks

More Related