Skip to main content

4.0 Security architecture

In OSPF, all protocol packet exchanges are authenticated. The OSPF packet header (which is common to all OSPF packets) contains a 16-bit Authentication type field, and 64-bits of Authentication data. Each particular OSPF area must run a single authentication scheme, as indicated by the Authentication type field. However, authentication keys can be configured by the system administrator on a per-network basis.

When an OSPF packet is received from a network, the OSPF router first verifies that it indicates the correct Authentication type. The router then authenticates the packet, running a verification algorithm using the configured authentication key, the 64-bits of Authentication data and the rest of the OSPF packet data as input. The precise algorithm used is dictated by the Authentication type. Packets failing the authentication algorithm are dropped, and the authentication failure is noted in a MIB-accessible variable (see [3]).

There are currently few Authentication types in use. The current assignments are:

Type codeAlgorithm
0No authentication performed.
1Simple (clear) password.
2-255Reserved for assignment by the IANA ([email protected])
> 255Available for local (per-AS) definition.

Table 2: Current OSPF Authentication types.

For more information on OSPF's authentication procedures, see Sections 8.1, 8.2, and Appendix E of [2].