Router id, Ospf packets, Lsa types – H3C Technologies H3C S12500 Series Switches User Manual

Page 72: Neighbor and adjacency

Advertising
background image

56

Router ID

An OSPF process running on a router must have its own router ID, which is a 32-bit unsigned integer, the

unique identifier of the router in the AS.

OSPF packets

OSPF uses the following packet types:

Hello—Periodically sent to find and maintain neighbors, containing the values of some timers,
information about the DR, BDR, and known neighbors.

Database description (DD)—Describes the digest of each LSA in the LSDB, exchanged between two
routers for data synchronization.

Link state request (LSR)—Requests needed LSAs from the neighbor. After exchanging the DD
packets, the two routers know which LSAs of the neighbor are missing from their LSDBs. They then

send an LSR packet to each other, requesting the missing LSAs. The LSA packet contains the digest
of the missing LSAs.

Link state update (LSU)—Transmits the requested LSAs to the neighbor.

Link state acknowledgment (LSAck)—Acknowledges received LSU packets. It contains the headers
of received LSAs (an LSAck packet can acknowledge multiple LSAs).

LSA types

OSPF advertises routing information in LSAs. The following describes some commonly used LSAs:

Router LSA—Type-1 LSA, originated by all routers, flooded throughout a single area only. This LSA
describes the collected states of the router's interfaces to an area.

Network LSA—Type-2 LSA, originated for broadcast and NBMA networks by the designated router,
flooded throughout a single area only. This LSA contains the list of routers connected to the network.

Network Summary LSA—Type-3 LSA, originated by Area Border Routers ABRs (ABRs), and flooded

throughout the LSA's associated area. Each summary-LSA describes a route to a destination outside
the area, yet still inside the AS (an inter-area route).

ASBR Summary LSA—Type-4 LSA, originated by ABRs and flooded throughout the LSA's
associated area. Type 4 summary-LSAs describe routes to Autonomous System Boundary Router

(ASBR).

AS External LSA—Type-5 LSA, originated by ASBRs, and flooded throughout the AS (except stub
and NSSA areas). Each AS-external-LSA describes a route to another AS.

NSSA LSA—Type-7 LSA, as defined in RFC 1587, originated by ASBRs in Not-So-Stubby Areas
(NSSAs) and flooded throughout a single NSSA. NSSA LSAs describe routes to other ASs.

Opaque LSA—A proposed type of LSA, the format consisting of a standard LSA header and
application specific information. Opaque LSAs are used by the OSPF protocol or by some

application to distribute information into the OSPF routing domain. The opaque LSA includes three

types, Type 9, Type 10, and Type 11, which are used to flood into different areas. The Type 9

opaque LSA is flooded into the local subnet, the Type 10 is flooded into the local area, and the Type

11 is flooded throughout the AS.

Neighbor and adjacency

In OSPF, neighbor and adjacency are different concepts.
Neighbor—After startup, OSPF sends a hello packet on each OSPF interface. A router that receives the

hello packet checks parameters in the packet. If the parameters match its own, the router considers the
sending router an OSPF neighbor.

Advertising