Escolar Documentos
Profissional Documentos
Cultura Documentos
OSPF
Objectives
Describe the background and basic features of OSPF
Identify and apply the basic OSPF configuration
commands
Describe, modify and calculate the metric used by
OSPF
Describe the Designated Router/Backup Designated
Router (DR/BDR) election process in multiaccess
networks.
Configure and propagate a default route in OSPF.
Introduction to OSPF
Background of OSPF
Hello Protocol
Type: OSPF Packet Type: Hello (1), DD (2), LS Request (3), LS Update (4), LS ACK (5)
Router ID: ID of the originating router
Area ID: area from which the packet originated
Network Mask: Subnet mask associated with the sending interface
Hello Interval: number of seconds between the sending router's hellos
Router Priority: Used in DR/BDR election (discussed later)
Designated Router (DR): Router ID of the DR, if any
Backup Designated Router (BDR): Router ID of the BDR, if any
List of Neighbors: lists the OSPF Router ID of the neighboring router(s)
Hello Protocol
OSPF Hello Packet are sent
every 10 seconds on
multiaccess networks and
point-to-point segment
OSPF Algorithm
OSPF Uses Dijsktras SPF Algorithm
10
Administrative Distance
11
Authentication
Lab Topology
14
process-id is:
a number between 1 and 65535
locally significant
does not have to match other OSPF routers
2. Propagate Routers networks:
Router(config-router)#network network-address wildcard-mask area area-id
15
OSPF Router ID
17
OSPF Router ID
Verifying Router ID
18
Verifying OSPF
Verifying Neighbor Adjacency
19
Verifying OSPF
The show ip protocols Command
20
Verifying OSPF
The show ip ospf Command
21
Verifying OSPF
The show ip ospf interface Command
22
Use the show ip route command to display the routing table which:
O at the beginning of a route indicates that the router source is
OSPF
Unlike RIPv2 and EIGRP, OSPF does not automatically summarize at
major network boundaries. OSPF is inherently classless
23
OSPF Metric
Cisco OSPF Cost Value
OSPF uses cost as the metric for determining the best route:
Cost = 108/bandwidth (bps)
The Cisco IOS uses the cumulative bandwidths of the outgoing
interfaces from the router to the destination network as the cost value
25
OSPF Metric
26
OSPF Metric
27
28
29
Multiaccess network is a
network with more than two
devices on the same shared
media
31
32
33
35
37
DR/BDR Election
1. DR: Router with the highest OSPF interface priority.
2. BDR: Router with the second highest OSPF interface priority.
3. If OSPF interface priorities are equal, the highest router ID is used to break the tie.
38
New DR
New
BDR
The DR and BDR election process takes place as soon as the first router with an
OSPF enabled interface is active on the multiaccess network
And when the DR is elected, it still remains the DR until one of the following
conditions occurs:
The DR itself fails.
The OSPF process on the DR itself fails.
The multiaccess interface on the DR itself fails.
If the DR fails, the BDR assumes the role of DR and an election is held to choose
a new BDR
39
40
Former DR
42
44
46
47
48
Fine-Tuning OSPF
49
Fine-Tuning OSPF
Before
After
50
Fine-Tuning OSPF
Note:
OSPF requires that the Hello and Dead intervals match between two
routers for them to become adjacent.
51
Fine-Tuning OSPF
52