Ospf packet header, Hello packet – H3C Technologies H3C S12500 Series Switches User Manual

Page 79

Advertising
background image

63

OSPF packet header

OSPF packets are classified into five types that have the same packet header, as shown in

Figure 25

.

Figure 25 OSPF packet header

Major fields of the OSPF packet header are as follows:

Version—OSPF version number, which is 2 for OSPFv2.

Type—OSPF packet type from 1 to 5, corresponding to hello, DD, LSR, LSU, and LSAck.

Packet length—Total length of the OSPF packet in bytes, including the header.

Router ID—ID of the advertising router.

Area ID—ID of the area where the advertising router resides.

Checksum—Checksum of the message.

AuType—Authentication type from 0 to 2, corresponding to non-authentication, simple (plaintext)
authentication, and MD5 authentication.

Authentication—Information determined by authentication type. It is not defined for authentication
type 0. It is defined as password information for authentication type 1, and defined as Key ID, MD5

authentication data length, and sequence number for authentication type 2.

NOTE:

MD5 authentication data is added following an OSPF packet rather than contained in the Authentication
field.

Hello packet

A router sends hello packets periodically to find and maintain neighbor relationships, and to elect the DR
or BDR. A hello packet includes information about values of timers, DR, BDR, and neighbors already

known.

Advertising