Professional Documents
Culture Documents
1
4.1 OSPF Protocol Overview
4.2 OSPF Packet Types
4.3 Configuring Basic OSPF
4.4 OSPF Network Types
4.5 Types of OSPF Routers and LSAs
4.6 OSPF Route Summarization Techniques
4.7 OSPF Special Area Types
4.8 OSPF Virtual Links
4.9 Troubleshooting OSPF
• Neighbor table:
– Also known as the adjacency database
(list of recognized neighbors)
• Topology table:
– Typically referred to as LSDB (Link State Data Base)
(routers and links in the area or network)
– All routers within an area have an identical LSDB
• Routing table:
– Commonly named a forwarding database
(list of best paths to destinations)
•Router Priority = 8 bit number to set the priority of a router to decide DR and BDR
•Stub Area Flag = Should be same for routers belonging to a stub area
Interface MTU— This field contains the largest data size, in bytes, that can be send through the associated
interface.
Options— Represents the optional capabilities supported by the router
I Bit— When set to 1, this means that this is the first packet in DBD exchange.
M Bit— When set to 1, this means that more packets will follow.
MS Bit— Use this for master and slave. When this bit is set, it means that the router is a master in the DBD
exchange process. If this bit is set to 0, it means that the router is the slave.
DBD Sequence Number— This field contains a unique value set by the master. This sequence number is
used during database exchange. Only a master can increment the sequence number.
LSA Header— This field consists of a list of the link-state database headers.
© 2003, Cisco Systems, Inc. All rights reserved. BSCI 2.0—4-27
Establishing Bidirectional Communication
v: version of OSPF
t: type of packet, 1 = hello, 2 = DBD, 3 = LSR, 4 = LSU, 5 = LSAck
l: packet length in bytes
rid: router ID
aid: area ID
chk: checksum
aut: authentication type, 0 = no authentication, 1 = simple password, 2 = MD5
auk: authentication key
© 2003, Cisco Systems, Inc. All rights reserved. BSCI 2.0—4-43
Summary
Router#
show ip protocols
Router#
show ip ospf
Router#
show ip ospf neighbor [detail]
Router(config)#
interface loopback 0
Router(config-if)#
ip address 172.16.17.5 255.255.255.255
Router(config-if)#
ip ospf priority number
•All to all
•Redundancy
•Most no. of PVCs
•For n nodes, n(n-1)/2
PVCs will be needed
Router(config-if)#
ip ospf network [{broadcast | nonbroadcast | point-to-
multipoint | point-to-multipoint nonbroadcast}]
broadcast (Cisco)
•Makes a WAN interface appear to be a LAN
•One IP subnet
•Neighbors are auto-discovered
•DR/BDR elected
•Requires full mesh
• Treated as a broadcast
network by OSPF
(acts like a LAN)
• All serial ports are part of
the same IP subnet
• Frame Relay, X.25, and
ATM networks default to
NBMA operation
• Replicates LSA updates
•Neighbors are manually configured
• RFC 2328-compliant •If partial mesh DR/BDR elected
• Less overhead manually to have connectivity to all
other neighbor router
IP address of the
neighboring router Time in seconds an NBMA
interface waits before sending
hello packets to the neighbor
Priority for neighboring even if the neighbor is inactive
router to become DR
Frame Relay
•Broadcast
•Neighboring routers are statically listed
•Interface is set to broadcast and behaves as LAN
•DR/BDR are elected
•Point to point
•Between only two nodes
•Used only with point to point sub-interfaces
•DR/BDR are not elected
Router(config)#
interface serial 0.[x] point-to-point
©©2003,
2003,Cisco
CiscoSystems,
Systems,Inc.
Inc.All
Allrights
rightsreserved.
reserved. BSCI 2.0—4-89 89
Objectives
• ASBR sends type 1 LSA with E bit set to identify itself as ASBR
• When ABR (B bit set) receives it, converts to type 4
• Summary (type 4) LSAs are used to advertise an ASBR to all other areas in
the AS.
• They are generated by the ABR of the originating area.
• Type 4 LSAs flood throughout the AS.
• They are regenerated by all subsequent ABRs.
• Type 4 LSA contains the router ID of the ASBR only.
auto-cost reference-bandwidth
©©2003,
2003,Cisco
CiscoSystems,
Systems,Inc.
Inc.All
Allrights
rightsreserved.
reserved. BSCI 2.0—4-111 111
Objectives
Router(config-router)#
area area-id range address mask
Router(config-router)#
summary-address address mask
©©2003,
2003,Cisco
CiscoSystems,
Systems,Inc.
Inc.All
Allrights
rightsreserved.
reserved. BSCI 2.0—4-122 122
Objectives
• External LSAs
are stopped
• Default route
is advertised
into stub area
by the ABR
• All routers in
area 50 must
be configured
as stub
RouterA(config-router)#
router ospf 10
network 130.130.32.0 0.0.31.255 area 1
network 130.130.0.0 0.0.31.255 area 0
area 1 stub
1
y
ASBR ABR
All routers in NSSA To generate O*N2 default route (O*N2 0.0.0.0/0) into NSSA area
©©2003,
2003,Cisco
CiscoSystems,
Systems,Inc.
Inc.All
Allrights
rightsreserved.
reserved. BSCI 2.0—4-142 142
Objectives
Router(config-router)#
area area-id virtual-link router-id
© 2003, Cisco Systems, Inc. All rights reserved. BSCI 2.0—4-151 151
Objectives
This is called an optional capability mismatch. One side says that it can
allow external routes, and the other side says that it cannot allow external
routes, so OSPF neighbor relationships are not formed.
When a local router does not receive any revert for a link-
state request packet, the router will be stuck in the
LOADING state.
• Mismatched MTU
• Corrupted link-state request packet