Академический Документы
Профессиональный Документы
Культура Документы
Open Shortest
Path First (OSPF)
Tariq Bader
CCIE # 35627
Security/VPN team
Cisco TAC
Presentation_ID © 2010 Cisco Systems, Inc. All rights reserved. Cisco Confidential 1
Agenda
OSPF Features &
Components
OSPF Configuration
& Verification
OSPF in Multiaccess
Networks
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 2
OSPF
OSPF Features & Components
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 3
Features of OSPF
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 4
Components of OSPF
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 5
Link-State Protocol Overview
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 6
Single-Area OSPF
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 7
Multi-Area OSPF
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 8
Single-Area and Multi-Area OSPF
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 9
OSPF
OSPF Operation & Messages
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 10
OSPF Exchanging Packets
OSPF Routers Exchange Packets - These packets are used to
discover neighboring routers and also to exchange routing
information to maintain accurate information about the
network
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 11
OSPF Operation
If a neighbor is
present, the OSPF-
enabled router
attempts to
establish a neighbor
adjacency with that
neighbor
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 12
OSPF Operation (Cont.)
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 13
OSPF Operation (Cont.)
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 14
OSPF Operation (Cont.)
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 15
Encapsulating OSPF Messages
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 16
Types of OSPF Packets
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 17
OSPF Messages – Hello Packet
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 18
OSPF Messages – Hello Packet
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 19
OSPF Messages – Hello Packet
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 20
OSPF Messages – Link-State Updates (LSU)
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 21
OSPF Operational States
When an OSPF router is
initially connected to a
network, it attempts to:
1. Create adjacencies with
neighbors
2. Exchange routing
information (using DBD)
3. Calculate the best routes
4. Reach convergence
OSPF progresses through
several states while
attempting to reach
convergence.
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 22
Establish Neighbor Adjacencies
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 23
Establish Neighbor Adjacencies (Cont.)
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 24
DR, BDR Election & Synchronizing OSPF Database
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 25
Adding the Link-State Entries
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 26
LSA Operation
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 27
OSPF Metric = Cost
Cost = reference bandwidth / interface bandwidth
o (default reference bandwidth is 10^8)
Cost = 100,000,000 bps / interface bandwidth in bps
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 28
OSPF Accumulates Costs
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 29
OSPF
OSPF Configuration & Verification
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 30
OSPF Configuration Mode
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 31
OSPF Router ID
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 32
The network Command
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 33
Passive Interface
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 34
Configuring Passive Interfaces
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 35
Single-Area OSPF Configuration Example
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 36
Verify OSPF Neighbors
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 37
Verify OSPF Protocol Settings
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 38
Verify OSPF Process Information
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 39
Verify OSPF Interface Settings
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 40
Clearing the OSPF Process
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 41
Default Route Propagation
The router connected to the Internet that is used to
propagate a default route is often called the edge, entrance
or gateway router. In an OSPF network, it may also be call
the autonomous system boundary router (ASBR).
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 42
OSPF
OSPF in Multiaccess Networks
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 43
Clearing the OSPF Process
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 45
OSPF Designated Router
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 46
OSPF Designated Router (Cont.)
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 47
Verifying DR/BDR Roles
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 48
Verifying DR/BDR Adjacencies
State of neighbors in multiaccess networks can be:
o FULL/DROTHER – This is a DR or BDR router that is fully adjacent
with a non-DR or BDR router.
o FULL/DR – The router is fully adjacent with the indicated DR
neighbor.
o FULL/BDR – The router is fully adjacent with the indicated BDR
neighbor.
o 2-WAY/DROTHER – The non-DR or BDR router has a neighbor
adjacency with another non-DR or BDR router.
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 49
Default DR/BDR Election Process
The router with the highest interface priority is elected as
the DR.
The router with the second highest interface priority is
elected as the BDR.
Priority can be configured between 0-255. (Priority of 0 -
router cannot become the DR.
If interface priorities are equal, then the router with
highest router ID is elected DR and second highest the BDR
Three ways to determine router ID:
o Router ID can be manually configured.
o If not configured, the ID determined by the highest
loopback IP address.
o If no loopbacks, the ID is determined by the highest
active IPv4 address.
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 50
DR/BDR Election Process
DR remains the DR until one of the following occurs:
o The DR fails.
o The OSPF process on the DR fails or is stopped.
o The multiaccess interface on the DR fails or is shutdown.
If the DR fails, the BDR is automatically promoted to DR.
o There is then a new BDR election and the DROTHER with the
higher priority or router ID is elected as the new BDR.
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 51
DR/BDR Election Process
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 52
Q&A
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 53
Presentation_ID © 2009 Cisco Systems, Inc. All rights reserved. Cisco Confidential 54