OSPFv2 type 3 LSA filtering

OSPFv2 type 3 LSA filtering provides an ABR that is running the OSPFv2 protocol with the ability to filter type 3 link-state advertisements (LSAs) that are sent between different OSPFv2 areas. Filtering of routes can be defined using prefix-list filters to either permit or deny certain prefixes. Only specified prefixes can be sent from one area to another area and all other prefixes are prohibited. OSPFv2 type 3 LSA filtering can be applied for the LSAs coming into a specific OSPFv2 area or going out of a specific OSPFv2 area, or into and out of the same OSPFv2 areas concurrently. Any change in the prefix-list used for type 3 filtering may result in the advertisement of new summary LSAs or the withdrawal of previously advertised summary LSAs.

Type 3 LSAs refer to summary links and are sent by ABRs to advertise destinations outside the area. OSPFv2 type 3 LSA filtering gives the administrator improved control of route distribution between OSPFv2 areas.

In certain situations, reachability for some IP network prefixes from outside of an area or to a specific area should be restricted. Such a situation is illustrated in the figure below where a device called R3 is advertising stub networks that belong to the non-backbone area (Area1). An ABR, R2, will generate summary routes for these prefixes. If OSPFv2 type 3 LSA filtering is not configured, all the stub networks are seen as summary LSAs in the backbone area (Area 0) and are flooded to all applicable OSPFv2 devices. These type 3 LSAs can be filtered out using the OSPFv2 type3 LSA Filter.

Click to expand in new window
OSPFv2 type 3 LSA filtering

Usage and configuration guidelines

Table 1. Behavior for prefix list configurations

IP prefix list

OSPF area prefix list

Event

Filtering done

XXX

Not defined

None

No (permit all)

Not defined

Defined

None

Yes (deny all)

Not defined

Defined

IP prefix list defined

Recalculation

Defined (no rules configured)

Defined

None

Implicit deny (deny all)

Defined (rules configured)

Defined

IP prefix list deleted

Recalculation and deny all

Defined (rules configured)

Defined

IP prefix list rule added or modified or deleted

Recalculation

Defined (rules configured)

Defined

Area prefix list deleted

Recalculation and permit all