Even though ELC is a property of the node, in some cases it is advantageous to associate and advertise the ELC with a prefix. In multi-area networks, routers may not know the identity of the prefix originator in a remote area or may not know the capabilities of such an originator. Similarly, in a multi-domain network, the identity of the prefix originator and its capabilities may not be known to the ingress LSR.
If a router has multiple interfaces, the router
MUST NOT announce ELC unless all of its interfaces are capable of processing ELs.
If the router supports ELs on all of its interfaces, it
SHOULD advertise the ELC with every local host prefix it advertises in OSPF.
[
RFC 7684] defines the OSPFv2 Extended Prefix TLV to advertise additional attributes associated with a prefix. The OSPFv2 Extended Prefix TLV includes a one-octet Flags field. A new flag in the Flags field is used to signal the ELC for the prefix:
-
0x20 - E-Flag (ELC Flag):
-
Set by the advertising router to indicate that the prefix originator is capable of processing ELs.
The ELC signaling
MUST be preserved when an OSPF Area Border Router (ABR) distributes information between areas. To do so, an ABR
MUST originate an OSPFv2 Extended Prefix Opaque Link State Advertisement (LSA) [
RFC 7684] including the received ELC setting.
When an OSPF Autonomous System Border Router (ASBR) redistributes a prefix from another instance of OSPF or from some other protocol, it
SHOULD preserve the ELC signaling for the prefix if it exists. To do so, an ASBR
SHOULD originate an Extended Prefix Opaque LSA [
RFC 7684] including the ELC setting of the redistributed prefix. The flooding scope of the Extended Prefix Opaque LSA
MUST match the flooding scope of the LSA that an ASBR originates as a result of the redistribution. The exact mechanism used to exchange ELC between protocol instances on an ASBR is outside of the scope of this document.
[
RFC 5340] defines the OSPFv3 PrefixOptions field to indicate capabilities associated with a prefix. A new bit in the OSPFv3 PrefixOptions field is used to signal the ELC for the prefix:
-
0x40 - E-Flag (ELC Flag):
-
Set by the advertising router to indicate that the prefix originator is capable of processing ELs.
The ELC signaling
MUST be preserved when an OSPFv3 Area Border Router (ABR) distributes information between areas. The setting of the ELC Flag in the Inter-Area-Prefix-LSA [
RFC 5340] or in the Inter-Area-Prefix TLV [
RFC 8362], generated by an ABR,
MUST be the same as the value the ELC Flag associated with the prefix in the source area.
When an OSPFv3 Autonomous System Border Router (ASBR) redistributes a prefix from another instance of OSPFv3 or from some other protocol, it
SHOULD preserve the ELC signaling for the prefix if it exists. The setting of the ELC Flag in the AS-External-LSA, Not-So-Stubby Area LSA (NSSA-LSA) [
RFC 5340], or in the External-Prefix TLV [
RFC 8362], generated by an ASBR,
MUST be the same as the value of the ELC Flag associated with the prefix in the source domain. The exact mechanism used to exchange ELC between protocol instances on the ASBR is outside of the scope of this document.