Using a Link State Advertisement (LSA) Options Bit to Prevent Looping in BGP/MPLS IP Virtual Private Networks (VPNs)
Extracted elements (10)
The DN bit is placed in the LSA Options field because a distinct tag value could be used in AS-external LSAs but is not available for summary LSAs. Since PEs must function as OSPF area 0 routers and may receive summary LSAs from other PEs, a mechanism applicable to both summary and AS-external LSAs is required.
The high-order options bit was chosen for this purpose (credited to Derek Yeung) because OSPFv2 LSAs do not otherwise carry the information needed for a PE to determine that the path to an address prefix in a CE-originated LSA actually passes through another PE router.
An LSA with the DN bit set is still put in the topological database, aged, flooded, and otherwise handled normally — the DN bit has no effect on LSA handling other than excluding the LSA from the OSPF route calculation on PE routers.
The DN-bit loop-prevention restriction is analogous to the standard OSPF restriction that inter-area routes learned from area 0 are not passed back to area 0, ensuring consistency with existing OSPF loop-prevention principles.
The DN bit MUST be ignored in all other LSA types (i.e., types other than 3, 5, and 7).
When a PE receives from a CE router a type 3, 5, or 7 LSA with the DN bit set, the information from that LSA MUST NOT be used during the OSPF route calculation, preventing it from being translated into a BGP route.
When a type 3, 5, or 7 LSA is sent from a PE to a CE, the DN bit MUST be set. The DN bit MUST be clear in all other LSA types.
The DN bit is defined as the high-order bit of the LSA Options field (a previously unused bit). It is used to indicate that an LSA is carrying information about an address prefix whose path includes a PE router.
An attacker may set the DN bit in an LSA traveling from CE to PE when it should be clear, causing address prefixes in that LSA to become unreachable from other VPN sites. Conversely, an attacker may clear the DN bit when it should be set, potentially causing routing loops. Both attacks can be mitigated by using OSPFv2 cryptographic authentication as specified in RFC 2328 Section D.
The DN bit occupies the high-order (leftmost) bit position of the 8-bit LSA Options field, as defined in RFC 2328 Section A.2. The layout is: DN | * | DC | EA | N/P | MC | E | *.