Professional Documents
Culture Documents
OSPF
What Is OSPF?
Open Shortest Path First (OSPF) refers to an Interior Gateway Protocol (IGP). As a
link-state protocol, OSPF maintains a large network topology database and uses
the SPF algorithm to calculate the optimum route.
Packets
I'm 10.0.0.1.
2 Adjacency Establishment
3 Route Calculation
1 1 1
2 2 2
DR and BDR
For the broadcast and NBMA networks, if there are N routers, N x(N-1)/2
adjacencies need to be established, which thereby wastes bandwidth resources.
To solve this problem, OSPF designates a router as the Designated Router (DR).
All routers except the DR send information only to the DR, which then sends
routing information to all the other routers in the network segment.
My routing table is
large, but my
memory is too
small.
Area1 Area2
Principle of area division: The backbone area (Area 0) must not be partitioned by
non-backbone areas, and non-backbone areas must be connected to the
backbone area (the virtual links are not recommended).
Advantages of area division: only routers in the same area keep the
synchronization of link-state databases and routes are aggregated on ABRs,
thereby reducing the number of LSAs to other areas.
Router Types in an OSPF Network
ABR
Area0
IAR ASBR
Area1 Area2
Internal Area Router (IAR): All the interfaces belong to the same OSPF area.
Area Border Router (ABR): This router belongs to more than two areas at the
same time.
Autonomous System Boundary Router (ASBR): This router introduces routes
discovered by other routing protocols.
LSA Types
For OSPF, all the descriptions about routing information are encapsulated in
LSAs. LSAs can be divided into six types in accordance with their different uses.
LSA 2
1 LSA1
LSA1 is also referred to as the Router LSA and is generated by all the
routers running OSPF. LSA1 is used to describe the link status, costs, and
other information of OSPF interfaces of the router.
Area0
LSA1
LSA1
ABR
LSA1 LSA1
Area1
2 LSA2
LSA2 is also referred to as the Network LSA, and is generated by a DR.
LSA2 is used to describe all the routers that establish adjacencies with the
DR (by listing the router IDs).
DR BDR
LSA2
3 LSA3
LSA3 is also referred to as the Network Summary LSA, and is generated by
an ABR. LSA3 is used to describe routing information of the area where the
ABR belongs.
LSA3
Area0
ABR
Area1
4 LSA4
LSA4 is also referred to as the ASBR Summary LSA and is generated by an
ABR.
LSA4
Area0
ABR
ASBR
Area1
LSA4 is used to describe ASBR routing information that reaches the area.
Because LSA4 describes the destination address of an ASBR, which is a
host route, the mask is 0.0.0.0.
5 LSA5
LSA5
Area0
ABR
LSA5
ASBR
Area1
6 LSA7
LSA7 is applied to a Not-So-Stubby Area (NSSA).
An ABR converts LSA7 generated in an NSSA area into LSA5, sends LSA5
out, and changes the LSA originator to the ABR itself.
LSA5
Area0
ABR
LSA7
ASBR
Area1
(NSSA)
LSA5
Area0 Area0 Area0
Tel: +86-755-26771900
E-mail: doc@zte.com.cn
URL: http://supporthk.zte.com.cn