OSPFv3 (ospfv3)
- Layer: L3 (network)
- Header: 16 octets (fixed)
- Notes: Routing protocols
Reached from
| Lower layer | Selector | Value |
|---|---|---|
ipv6 | next_header | 89 (0x59) |
ipv6_hopopts | next_header | 89 (0x59) |
ipv6_route | next_header | 89 (0x59) |
ipv6_srh | next_header | 89 (0x59) |
ipv6_frag | next_header | 89 (0x59) |
ipv6_dstopts | next_header | 89 (0x59) |
Fields
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
version | uint(8) | 3 | OSPF version (2 = OSPFv2, 3 = OSPFv3). | |
type | enum(8) | 1 (hello) | Protocol number of the next layer (see Next layer) | OSPF packet type (Hello / DB Description / LS Request / LS Update / LS Ack; Auto from the next layer). |
packet_length | uint(16) | Length of the header and payload in octets | Length of the OSPF packet including the header, in octets (Auto). | |
router_id | ipv4 | 192.0.2.1 | Router ID of the sending router. | |
area_id | ipv4 | 0.0.0.0 | Area the packet belongs to (0.0.0.0 = backbone). | |
checksum | uint(16) | Internet checksum with pseudo header over the header and everything after it | Internet checksum over the OSPFv3 packet with the IPv6 pseudo header (Auto). | |
instance_id | uint(8) | 0 | Instance ID (separates OSPFv3 instances on one link). | |
reserved | uint(8) | 0 |
type
| Value | Name |
|---|---|
| 1 (0x01) | hello |
| 2 (0x02) | db_description |
| 3 (0x03) | ls_request |
| 4 (0x04) | ls_update |
| 5 (0x05) | ls_ack |
Next layer
The next layer is selected by type; when the field is Auto the builder writes the value of the protocol stacked above.
| Value | Protocol | Note |
|---|---|---|
| 1 (0x01) | ospfv3_hello | |
| 2 (0x02) | ospfv3_dbd | |
| 3 (0x03) | ospfv3_lsr | |
| 4 (0x04) | ospfv3_lsu | |
| 5 (0x05) | ospfv3_lsack |
Constraints
| Level | Rule |
|---|---|
| warning | version = 3 |
Sample templates
- ospfv3-dbd —
templates/protocols/routing/ospfv3-dbd.wpg.yaml - ospfv3-hello —
templates/protocols/routing/ospfv3-hello.wpg.yaml - ospfv3-lsack —
templates/protocols/routing/ospfv3-lsack.wpg.yaml - ospfv3-lsr —
templates/protocols/routing/ospfv3-lsr.wpg.yaml - ospfv3-lsu-as-external-lsa —
templates/protocols/routing/ospfv3-lsu-as-external.wpg.yaml - ospfv3-lsu-inter-area-prefix-lsa —
templates/protocols/routing/ospfv3-lsu-inter-area-prefix.wpg.yaml - ospfv3-lsu-intra-area-prefix-lsa —
templates/protocols/routing/ospfv3-lsu-intra-area-prefix.wpg.yaml - ospfv3-lsu-link-lsa —
templates/protocols/routing/ospfv3-lsu-link.wpg.yaml - ospfv3-lsu-network-lsa —
templates/protocols/routing/ospfv3-lsu-network.wpg.yaml - ospfv3-lsu-router-lsa —
templates/protocols/routing/ospfv3-lsu-router.wpg.yaml