Supported Platforms
Related Documentation
- ACX, J, M, MX, QFX, SRX, T Series
- OSPF Overview
- ACX, M, MX, QFX, T Series
- OSPF Areas and Router Functionality Overview
- ACX, J, M, MX, SRX, T Series
- OSPF Configuration Overview
- Understanding OSPFv2 Authentication
- ACX, J, M, MX, PTX, QFX, SRX, T Series
- OSPF Designated Router Overview
- M, MX, T Series
- OSPF Timers Overview
Packets Overview
There are several types of link-state advertisement (LSA) packets.
This topic describes the following information:
OSPF Packet Header
All OSPFv2 packets have a common 24-byte header, and OSPFv3 packets have a common 16-byte header, that contains all information necessary to determine whether OSPF should accept the packet. The header consists of the following fields:
- Version number—The current OSPF version number. This can be either 2 or 3.
- Type—Type of OSPF packet.
- Packet length—Length of the packet, in bytes, including the header.
- Router ID—IP address of the router from which the packet originated.
- Area ID—Identifier of the area in which the packet is traveling. Each OSPF packet is associated with a single area. Packets traveling over a virtual link are labeled with the backbone area ID, 0.0.0.0. .
- Checksum—Fletcher checksum.
- Authentication—(OSPFv2 only) Authentication scheme and authentication information.
- Instance ID—(OSPFv3 only) Identifier used when there are multiple OSPFv3 realms configured on a link.
Hello Packets
Routers periodically send hello packets on all interfaces, including virtual links, to establish and maintain neighbor relationships. Hello packets are multicast on physical networks that have a multicast or broadcast capability, which enables dynamic discovery of neighboring routers. (On nonbroadcast networks, dynamic neighbor discovery is not possible, so you must configure all neighbors statically as described in Example: Configuring an OSPFv2 Interface on a Nonbroadcast Multiaccess Network.)
Hello packets consist of the OSPF header plus the following fields:
- Network mask—(OSPFv2 only) Network mask associated with the interface.
- Hello interval—How often the router sends hello packets. All routers on a shared network must use the same hello interval.
- Options—Optional capabilities of the router.
- Router priority—The router’s priority to become the designated router.
- Router dead interval—How long the router waits without receiving any OSPF packets from a router before declaring that router to be down. All routers on a shared network must use the same router dead interval.
- Designated router—IP address of the designated router.
- Backup designated router—IP address of the backup designated router.
- Neighbor—IP addresses of the routers from which valid hello packets have been received within the time specified by the router dead interval.
Database Description Packets
When initializing an adjacency, OSPF exchanges database description packets, which describe the contents of the topological database. These packets consist of the OSPF header, packet sequence number, and the link-state advertisement’s header.
Link-State Request Packets
When a router detects that portions of its topological database are out of date, it sends a link-state request packet to a neighbor requesting a precise instance of the database. These packets consist of the OSPF header plus fields that uniquely identify the database information that the router is seeking.
Link-State Update Packets
Link-state update packets carry one or more link-state advertisements one hop farther from their origin. The router multicasts (floods) these packets on physical networks that support multicast or broadcast mode. The router acknowledges all link-state update packets and, if retransmission is necessary, sends the retransmitted advertisements unicast.
Link-state update packets consist of the OSPF header plus the following fields:
- Number of advertisements—Number of link-state advertisements included in this packet.
- Link-state advertisements—The link-state advertisements themselves.
Link-State Acknowledgment Packets
The router sends link-state acknowledgment packets in response to link-state update packets to verify that the update packets have been received successfully. A single acknowledgment packet can include responses to multiple update packets.
Link-state acknowledgment packets consist of the OSPF header plus the link-state advertisement header.
Link-State Advertisement Packet Types
Link-state request, link-state update, and link-state acknowledgment packets are used to reliably flood link-state advertisement packets. OSPF sends the following types of link-state advertisements:
- Router link advertisements—Are sent by all routers to describe the state and cost of the router’s links to the area. These link-state advertisements are flooded throughout a single area only.
- Network link advertisements—Are sent by designated routers to describe all the routers attached to the network. These link-state advertisements are flooded throughout a single area only.
- Summary link advertisements—Are sent by area border routers to describe the routes that they know about in other areas. There are two types of summary link advertisements: those used when the destination is an IP network, and those used when the destination is an AS boundary router. Summary link advertisements describe interarea routes, that is, routes to destinations outside the area but within the AS. These link-state advertisements are flooded throughout the advertisement’s associated areas.
- AS external link advertisement—Are sent by AS boundary routers to describe external routes that they know about. These link-state advertisements are flooded throughout the AS (except for stub areas).
Each link-state advertisement type describes a portion of the OSPF routing domain. All link-state advertisements are flooded throughout the AS.
Each link-state advertisement packet begins with a common 20-byte header.
Related Documentation
- ACX, J, M, MX, QFX, SRX, T Series
- OSPF Overview
- ACX, M, MX, QFX, T Series
- OSPF Areas and Router Functionality Overview
- ACX, J, M, MX, SRX, T Series
- OSPF Configuration Overview
- Understanding OSPFv2 Authentication
- ACX, J, M, MX, PTX, QFX, SRX, T Series
- OSPF Designated Router Overview
- M, MX, T Series
- OSPF Timers Overview
Published: 2013-08-15
Supported Platforms
Related Documentation
- ACX, J, M, MX, QFX, SRX, T Series
- OSPF Overview
- ACX, M, MX, QFX, T Series
- OSPF Areas and Router Functionality Overview
- ACX, J, M, MX, SRX, T Series
- OSPF Configuration Overview
- Understanding OSPFv2 Authentication
- ACX, J, M, MX, PTX, QFX, SRX, T Series
- OSPF Designated Router Overview
- M, MX, T Series
- OSPF Timers Overview