Ospf
Ospf
OSPF and IS-IS are the only routing protocols MPLS has
got traffic engineering extensions for.
Note: on a BMA network, Hello packets are sent out, and each
listening router then adds the originating router to its neighbor
database. The responding routers will reply with all their Hello
information so that the originating router can add them to its own
neighbor databse.
OSPF Adjacencies for BMA
Networks
DR DROther DROther
Ethernet
DROther BDR
OSPF Adjacencies for BMA
Networks
3 types of routers as show:
DR
BDR
DROther
The cost of the whole path = the sum of the costs of the
outgoing interfaces along that path.
DR DROther
NBMA Environments
Each router has a PVC (Permanent Virtual Circuit) with all the
other routers.
This guarantees all routers have a connection to each other and
can participate in a DR/BDR election.
Once the election is complete, the meshed network will act as a
BMA network.
All LSA’s are sent to the DR and BDR. The DR then floods the
updates out every interface.
Non-broadcast
All OSPF neighbors should be manually configured (which is the
router’s default setting).
Ensures OSPF knows which neighbors need to participate and
which neighbor has been identified as a DR.
NBMA Environments
Communications between the neighbors is done via unicast, and
not multicast.
This configuration requires a full mesh, and has the same
weaknesses as a broadcast environment.
For NBMA networks, the default Hello interval is 30 seconds.
The Dead interval is 4x the Hello interval which is 120 seconds.
NBMA networks also elect a DR and BDR.
Type 2 LSA
Called NLA (Network Link Advertisement)
Generated by the DR
DR uses this to send information about the state of other routers
that are part of the network.
Only sent to routers in the area containing the specific network.
OSPF LSA Types
Type 3 and 4 LSA’s
Called SLA’s (Summary Link Advertisements).
Generated by ABR’s – they send these LSA’s to all routers in an
area.
advertise intra-area routes to Area 0.
Advertise both intra and inter-area routes to non-backbone
areas.
They only differ between Type 3 and 4:
Type 3 advertises networks outside an area, into an area.
Type 4 advertises information about ASBR’s into an area.
OSPF LSA Types
Type 5 LSA
Called AS ELA (AS External Link Advertisements).
Sent by ASBR’s.
Advertises routes external to the OSPF AS, or the default route
to the OSPF AS is reachable through them.
Type 7 LSA
Called NSSA (Not-So-Stubby-Area) external LSA.
Help overcome limitations of an ASBR not being able to belong
to a stub area.
Only generated by an ASBR in a NSSA.
The LSA propagates across the area to the ASBR.
When it gets to the ABR, the ABR converts the Type 7 LSA to a
Type 5 LSA and propagates it to the backbone.
Advertises routes external to the OSPF AS.
OSPF Virtual Links
When running multi-area OSPF networks, all areas
should be connected to Area 0 (backbone area). But
sometimes, one area may need to cross one or more
other areas to get to Area 0.
Totally-Stub-Area (TSA)
Don’t propagate Type 3, 4 and 5 LSA’s, except for one Type 3
LSA that advertises the default route of the area.
The only way a router in the TSA can reach the external AS is
through the ABR.
This is a purely Cisco-specific function, and may not be available
on other vendors’ equipment.
OSPF LSA Types
Not-So-Stubby-Area (NSSA)
Don’t propagate Type 5 LSA. So an ASBR can’t be a part of a
stub area.
Sometimes, though, there is limited need to import external
routes into an area, which is where the NSSA’s that allow an
ASBR to take part in an area, are useful.
Rather than have the ASBR send out a Type 5 LSA, it will send
out a Type 7 NSSA External LSA.
Type 7 LSA can’t be advertised into another OSPF area. So, the
ABR in the NSSA gets the Type 7 LSA and translates it into a
Type 5 LSA.
The Type 5 LSA is then allowed to flood the OSPF AS.
OSPF Route Authentication
• Now recommended to use route authentication
for OSPF
– …and all other routing protocols
• Susceptible to denial of service attacks
– OSPF runs on TCP/IP
– Automatic neighbour discovery
• Route authentication – Cisco example:
router ospf <pid>
network 192.0.2.0 0.0.0.255 area 0
area 0 authentication
interface ethernet 0/0
ip ospf authentication-key <password>
Verifying & Troubleshooting
OSPF
Route Information:
sh ip route
O = OSPF in routing table
IA = OSPF inter-area
N1 = OSPF NSSA External Type 1
N2 = OSPF NSSA External Type 2
E1 = OSPF External Type 1
E2 = OSPF External Type 2
sh ip route ospf
Will show ONLY the routes learned through OSPF
Verifying & Troubleshooting OSPF
sh ip route
O IA 172.16.20.0 (110/113) via 10.10.10.1
110 = the AD (Administrative Distance)
113 = Metric (Cost)
sh ip ospf border-routers
Shows routing information known by the ABR and ASBR
sh ip ospf interface
Shows all interfaces on the router configured for OSPF