ENTS 749D: Network Design and Configuration Lab
ENTS 749D: Network Design and Configuration Lab
OSPF Routing
MS in Telecommunications Program
Department of Electrical and Computer Engineering
University of Maryland, College Park, MD, USA
OSPF Overview
Link-state protocol
IPv4: OSPF v2
Runs directly on IPv4 with Protocol ID 89
Operation:
1. The local router sends Hello messages to its neighbors
2. The neighboring routers form adjacencies
3. The routers advertise summary link-state database
information to each other to compare their databases
4. If needed, the routers request database updates from
each other until both routers have identical databases
5. The routers run Dijkstra's shortest path algorithm to
find the best route to each destination
BDR election:
After the DR election
Similar to the DR election
Stub areas:
May be configured for areas that have no external connection
(connected only to the backbone area/area 0)
The ABR does not flood AS-external and ASBR summary
LSAs into the area
The ABR floods a summary LSA for the default route 0.0.0.0/0
instead
Stub areas cannot connect to external (non-OSPF) networks
(cannot contain an ASBR)
Unit 0
is assumed
zsafar@router001>
zsafar@router001>
zsafar@router003>
LSA Options
LSA
Router ID sequence field from the
Link-state length
of the router number OSPF header
LSA ID LSA
type originating OSPF
age in
the LSA packet
seconds
checksum
MS in Telecommunications, University of Maryland, College Park, MD, USA [20]
Monitoring OSPF 5/5
To check the routes generated by the OSPF shortest path
algorithm
Type: show ospf route
zsafar@router003> show ospf route
Topology default Route Table:
zsafar@router003>
10 Gbit/sec
MS in Telecommunications, University of Maryland, College Park, MD, USA [23]
Configuring OSPF Authentication
Options: a) no authentication, b) simple (plain-text) password,
c) MD5 cryptographic authentication recommended!
MD5 authentication configuration steps:
1. Configure MD5 authentication for the whole area
2. Set the key/password for each interface
Type: set authentication md5 <key-ID> key <key/password>
Key ID Key/password
MS in Telecommunications, University of Maryland, College Park, MD, USA [24]