This section describes some use cases for the Overlay Index types used with the IP Prefix route. Although the examples use IPv4 prefixes and subnets, the descriptions of the RT-5 are valid for the same cases with IPv6, except that IP Prefixes, IPL, and GW IP are replaced by the corresponding IPv6 values.
Figure 5 illustrates an example of inter-subnet forwarding for subnets sitting behind VAs (on TS2 and TS3).
IP4---+ NVE2 DGW1
| +-----------+ +---------+ +-------------+
SN2---TS2(VA)--| (BD-10) |-| |----| (BD-10) |
| M2/IP2 +-----------+ | | | IRB1\ |
-+---+ | | | (IP-VRF)|---+
| | | +-------------+ _|_
SN1 | VXLAN/ | ( )
| | GENEVE | DGW2 ( WAN )
-+---+ NVE3 | | +-------------+ (___)
| M3/IP3 +-----------+ | |----| (BD-10) | |
SN3---TS3(VA)--| (BD-10) |-| | | IRB2\ | |
| +-----------+ +---------+ | (IP-VRF)|---+
IP5---+ +-------------+
An example of inter-subnet forwarding between subnet SN1, which uses a 24-bit IP prefix (written as SN1/24 in the future), and a subnet sitting in the WAN is described below. NVE2, NVE3, DGW1, and DGW2 are running BGP EVPN. TS2 and TS3 do not participate in dynamic routing protocols, and they only have a static route to forward the traffic to the WAN. SN1/24 is dual-homed to NVE2 and NVE3.
In this case, a GW IP is used as an Overlay Index. Although a different Overlay Index type could have been used, this use case assumes that the operator knows the VA's IP addresses beforehand, whereas the VA's MAC address is unknown and the VA's ESI is zero. Because of this, the GW IP is the suitable Overlay Index to be used with the RT-5s. The NVEs know the GW IP to be used for a given prefix by policy.
- (1)
-
NVE2 advertises the following BGP routes on behalf of TS2:
-
Route type 2 (MAC/IP Advertisement route) containing: ML = 48 (MAC address length), M = M2 (MAC address), IPL = 32 (IP prefix length), IP = IP2, and BGP Encapsulation Extended Community [RFC 9012] with the corresponding tunnel type. The MAC and IP addresses may be learned via ARP snooping.
-
Route type 5 (IP Prefix route) containing: IPL = 24, IP = SN1, ESI = 0, and GW IP address = IP2. The prefix and GW IP are learned by policy.
- (2)
-
Similarly, NVE3 advertises the following BGP routes on behalf of TS3:
-
Route type 2 (MAC/IP Advertisement route) containing: ML = 48, M = M3, IPL = 32, IP = IP3 (and BGP Encapsulation Extended Community).
-
Route type 5 (IP Prefix route) containing: IPL = 24, IP = SN1, ESI = 0, and GW IP address = IP3.
- (3)
-
DGW1 and DGW2 import both received routes based on the Route Targets:
-
Based on the BD-10 Route Target in DGW1 and DGW2, the MAC/IP Advertisement route is imported, and M2 is added to the BD-10 along with its corresponding tunnel information. For instance, if VXLAN is used, the VTEP will be derived from the MAC/IP Advertisement route BGP next hop and VNI from the MPLS Label1 field. M2/IP2 is added to the ARP table. Similarly, M3 is added to BD-10, and M3/IP3 is added to the ARP table.
-
Based on the BD-10 Route Target in DGW1 and DGW2, the IP Prefix route is also imported, and SN1/24 is added to the IP-VRF with Overlay Index IP2 pointing at the local BD-10. In this example, it is assumed that the RT-5 from NVE2 is preferred over the RT-5 from NVE3. If both routes were equally preferable and ECMP enabled, SN1/24 would also be added to the routing table with Overlay Index IP3.
- (4)
-
When DGW1 receives a packet from the WAN with destination IPx, where IPx belongs to SN1/24:
-
A destination IP lookup is performed on the DGW1 IP-VRF table, and Overlay Index = IP2 is found. Since IP2 is an Overlay Index, a recursive route resolution is required for IP2.
-
IP2 is resolved to M2 in the ARP table, and M2 is resolved to the tunnel information given by the BD FIB (e.g., remote VTEP and VNI for the VXLAN case).
-
The IP packet destined to IPx is encapsulated with:
-
Inner source MAC = IRB1 MAC.
-
Inner destination MAC = M2.
-
Tunnel information provided by the BD (VNI, VTEP IPs, and MACs for the VXLAN case).
- (5)
-
When the packet arrives at NVE2:
-
Based on the tunnel information (VNI for the VXLAN case), the BD-10 context is identified for a MAC lookup.
-
Encapsulation is stripped off and, based on a MAC lookup (assuming MAC forwarding on the egress NVE), the packet is forwarded to TS2, where it will be properly routed.
- (6)
- Should TS2 move from NVE2 to NVE3, MAC Mobility procedures will be applied to the MAC route M2/IP2, as defined in [RFC 7432]. Route type 5 prefixes are not subject to MAC Mobility procedures; hence, no changes in the DGW IP-VRF table will occur for TS2 mobility -- i.e., all the prefixes will still be pointing at IP2 as the Overlay Index. There is an indirection for, e.g., SN1/24, which still points at Overlay Index IP2 in the routing table, but IP2 will be simply resolved to a different tunnel based on the outcome of the MAC Mobility procedures for the MAC/IP Advertisement route M2/IP2.
Note that in the opposite direction, TS2 will send traffic based on its static-route next-hop information (IRB1 and/or IRB2), and regular EVPN procedures will be applied.
Sometimes TSs work in active/standby mode where an upstream floating IP owned by the active TS is used as the Overlay Index to get to some subnets behind the TS. This redundancy mode, already introduced in Sections [
2.1] and [
2.2], is illustrated in
Figure 6.
NVE2 DGW1
+-----------+ +---------+ +-------------+
+---TS2(VA)--| (BD-10) |-| |----| (BD-10) |
| M2/IP2 +-----------+ | | | IRB1\ |
| <-+ | | | (IP-VRF)|---+
| | | | +-------------+ _|_
SN1 vIP23 (floating) | VXLAN/ | ( )
| | | GENEVE | DGW2 ( WAN )
| <-+ NVE3 | | +-------------+ (___)
| M3/IP3 +-----------+ | |----| (BD-10) | |
+---TS3(VA)--| (BD-10) |-| | | IRB2\ | |
+-----------+ +---------+ | (IP-VRF)|---+
+-------------+
In this use case, a GW IP is used as an Overlay Index for the same reasons as in
Section 4.1. However, this GW IP is a floating IP that belongs to the active TS. Assuming TS2 is the active TS and owns vIP23:
- (1)
-
NVE2 advertises the following BGP routes for TS2:
-
Route type 2 (MAC/IP Advertisement route) containing: ML = 48, M = M2, IPL = 32, and IP = vIP23 (as well as BGP Encapsulation Extended Community). The MAC and IP addresses may be learned via ARP snooping.
-
Route type 5 (IP Prefix route) containing: IPL = 24, IP = SN1, ESI = 0, and GW IP address = vIP23. The prefix and GW IP are learned by policy.
- (2)
-
NVE3 advertises the following BGP route for TS3 (it does not advertise an RT-2 for M3/vIP23):
-
Route type 5 (IP Prefix route) containing: IPL = 24, IP = SN1, ESI = 0, and GW IP address = vIP23. The prefix and GW IP are learned by policy.
- (3)
-
DGW1 and DGW2 import both received routes based on the Route Target:
-
M2 is added to the BD-10 FIB along with its corresponding tunnel information. For the VXLAN use case, the VTEP will be derived from the MAC/IP Advertisement route BGP next hop and VNI from the VNI field. M2/vIP23 is added to the ARP table.
-
SN1/24 is added to the IP-VRF in DGW1 and DGW2 with Overlay Index vIP23 pointing at M2 in the local BD-10.
- (4)
-
When DGW1 receives a packet from the WAN with destination IPx, where IPx belongs to SN1/24:
-
A destination IP lookup is performed on the DGW1 IP-VRF table, and Overlay Index = vIP23 is found. Since vIP23 is an Overlay Index, a recursive route resolution for vIP23 is required.
-
vIP23 is resolved to M2 in the ARP table, and M2 is resolved to the tunnel information given by the BD (remote VTEP and VNI for the VXLAN case).
-
The IP packet destined to IPx is encapsulated with:
-
Inner source MAC = IRB1 MAC.
-
Inner destination MAC = M2.
-
Tunnel information provided by the BD FIB (VNI, VTEP IPs, and MACs for the VXLAN case).
- (5)
-
When the packet arrives at NVE2:
-
Based on the tunnel information (VNI for the VXLAN case), the BD-10 context is identified for a MAC lookup.
-
Encapsulation is stripped off and, based on a MAC lookup (assuming MAC forwarding on the egress NVE), the packet is forwarded to TS2, where it will be properly routed.
- (6)
- When the redundancy protocol running between TS2 and TS3 appoints TS3 as the new active TS for SN1, TS3 will now own the floating vIP23 and will signal this new ownership using a gratuitous ARP REPLY message (explained in [RFC 5227]) or similar. Upon receiving the new owner's notification, NVE3 will issue a route type 2 for M3/vIP23, and NVE2 will withdraw the RT-2 for M2/vIP23. DGW1 and DGW2 will update their ARP tables with the new MAC resolving the floating IP. No changes are made in the IP-VRF table.
Figure 7 illustrates an example of inter-subnet forwarding for an IP Prefix route that carries subnet SN1. In this use case, TS2 and TS3 are Layer 2 VA devices without any IP addresses that can be included as an Overlay Index in the GW IP field of the IP Prefix route. Their MAC addresses are M2 and M3, respectively, and are connected to BD-10. Note that IRB1 and IRB2 (in DGW1 and DGW2, respectively) have IP addresses in a subnet different than SN1.
NVE2 DGW1
M2 +-----------+ +---------+ +-------------+
+---TS2(VA)--| (BD-10) |-| |----| (BD-10) |
| ESI23 +-----------+ | | | IRB1\ |
| + | | | (IP-VRF)|---+
| | | | +-------------+ _|_
SN1 | | VXLAN/ | ( )
| | | GENEVE | DGW2 ( WAN )
| + NVE3 | | +-------------+ (___)
| ESI23 +-----------+ | |----| (BD-10) | |
+---TS3(VA)--| (BD-10) |-| | | IRB2\ | |
M3 +-----------+ +---------+ | (IP-VRF)|---+
+-------------+
Since TS2 and TS3 cannot participate in any dynamic routing protocol and neither has an IP address assigned, there are two potential Overlay Index types that can be used when advertising SN1:
- a)
- an ESI, i.e., ESI23, that can be provisioned on the attachment ports of NVE2 and NVE3, as shown in Figure 7 or
- b)
- the VA's MAC address, which can be added to NVE2 and NVE3 by policy.
The advantage of using an ESI as the Overlay Index as opposed to the VA's MAC address is that the forwarding to the egress NVE can be done purely based on the state of the AC in the Ethernet segment (notified by the Ethernet A-D per EVI route), and all the EVPN multihoming redundancy mechanisms can be reused. For instance, the mass withdrawal mechanism described in [
RFC 7432] for fast failure detection and propagation can be used. It is assumed per this section that an ESI Overlay Index is used in this use case, but this use case does not preclude the use of the VA's MAC address as an Overlay Index. If a MAC is used as the Overlay Index, the control plane must follow the procedures described in
Section 4.4.3.
The model supports VA redundancy in a similar way to the one described in
Section 4.2 for the floating IP Overlay Index use case, except that it uses the EVPN Ethernet A-D per EVI route instead of the MAC advertisement route to advertise the location of the Overlay Index. The procedure is explained below:
- (1)
-
Assuming TS2 is the active TS in ESI23, NVE2 advertises the following BGP routes:
-
Route type 1 (Ethernet A-D route for BD-10) containing: ESI = ESI23 and the corresponding tunnel information (VNI field), as well as the BGP Encapsulation Extended Community as per [RFC 8365].
-
Route type 5 (IP Prefix route) containing: IPL = 24, IP = SN1, ESI = ESI23, and GW IP address = 0. The EVPN Router's MAC Extended Community defined in [RFC 9135] is added and carries the MAC address (M2) associated with the TS behind which SN1 sits. M2 may be learned by policy; however, the MAC in the Extended Community is preferred if sent with the route.
- (2)
-
NVE3 advertises the following BGP route for TS3 (no AD per EVI route is advertised):
-
Route type 5 (IP Prefix route) containing: IPL = 24, IP = SN1, ESI = 23, and GW IP address = 0. The EVPN Router's MAC Extended Community is added and carries the MAC address (M3) associated with the TS behind which SN1 sits. M3 may be learned by policy; however, the MAC in the Extended Community is preferred if sent with the route.
- (3)
-
DGW1 and DGW2 import the received routes based on the Route Target:
-
The tunnel information to get to ESI23 is installed in DGW1 and DGW2. For the VXLAN use case, the VTEP will be derived from the Ethernet A-D route BGP next hop and VNI from the VNI/VSID field (see [RFC 8365]).
-
The RT-5 coming from the NVE that advertised the RT-1 is selected, and SN1/24 is added to the IP-VRF in DGW1 and DGW2 with Overlay Index ESI23 and MAC = M2.
- (4)
-
When DGW1 receives a packet from the WAN with destination IPx, where IPx belongs to SN1/24:
-
A destination IP lookup is performed on the DGW1 IP-VRF table, and Overlay Index = ESI23 is found. Since ESI23 is an Overlay Index, a recursive route resolution is required to find the egress NVE where ESI23 resides.
-
The IP packet destined to IPx is encapsulated with:
-
Inner source MAC = IRB1 MAC.
-
Inner destination MAC = M2 (this MAC will be obtained from the EVPN Router's MAC Extended Community received along with the RT-5 for SN1). Note that the EVPN Router's MAC Extended Community is used in this case to carry the TS's MAC address, as opposed to the MAC address of the NVE/PE.
-
Tunnel information for the NVO tunnel is provided by the Ethernet A-D route per EVI for ESI23 (VNI and VTEP IP for the VXLAN case).
- (5)
-
When the packet arrives at NVE2:
-
Based on the tunnel demultiplexer information (VNI for the VXLAN case), the BD-10 context is identified for a MAC lookup (assuming a MAC-based disposition model [RFC 7432]), or the VNI may directly identify the egress interface (for an MPLS-based disposition model, which in this context is a VNI-based disposition model).
-
Encapsulation is stripped off and, based on a MAC lookup (assuming MAC forwarding on the egress NVE) or a VNI lookup (in case of VNI forwarding), the packet is forwarded to TS2, where it will be forwarded to SN1.
- (6)
- If the redundancy protocol running between TS2 and TS3 follows an active/standby model and there is a failure, TS3 is appointed as the new active TS for SN1. TS3 will now own the connectivity to SN1 and will signal this new ownership. Upon receiving the new owner's notification, NVE3's AC will become active and issue a route type 1 for ESI23, whereas NVE2 will withdraw its Ethernet A-D route for ESI23. DGW1 and DGW2 will update their tunnel information to resolve ESI23. The inner destination MAC will be changed to M3.
This use case is similar to the scenario described in
Section 9.1 of
RFC 9135; however, the new requirement here is the advertisement of IP prefixes as opposed to only host routes.
In the examples described in Sections [
4.1], [
4.2], and [
4.3], the BD instance can connect IRB interfaces and any other Tenant Systems connected to it. EVPN provides connectivity for:
-
Traffic destined to the IRB or TS IP interfaces, as well as
-
Traffic destined to IP subnets sitting behind the TS, e.g., SN1 or SN2.
In order to provide connectivity for
(1), MAC/IP Advertisement routes (RT-2) are needed so that IRB or TS MACs and IPs can be distributed. Connectivity type
(2) is accomplished by the exchange of IP Prefix routes (RT-5) for IPs and subnets sitting behind certain Overlay Indexes, e.g., GW IP, ESI, or TS MAC.
In some cases, IP Prefix routes may be advertised for subnets and IPs sitting behind an IRB. This use case is referred to as the "IP-VRF-to-IP-VRF" model.
[
RFC 9135] defines an asymmetric IRB model and a symmetric IRB model based on the required lookups at the ingress and egress NVE. The asymmetric model requires an IP lookup and a MAC lookup at the ingress NVE, whereas only a MAC lookup is needed at the egress NVE; the symmetric model requires IP and MAC lookups at both the ingress and egress NVE. From that perspective, the IP-VRF-to-IP-VRF use case described in this section is a symmetric IRB model.
Note that in an IP-VRF-to-IP-VRF scenario, out of the many subnets that a tenant may have, it may be the case that only a few are attached to a given IP-VRF of the NVE/PE. In order to provide inter-subnet connectivity among the set of NVE/PEs where the tenant is connected, a new SBD is created on all of them if a recursive resolution is needed. This SBD is instantiated as a regular BD (with no ACs) in each NVE/PE and has an IRB interface that connects the SBD to the IP-VRF. The IRB interface's IP or MAC address is used as the Overlay Index for a recursive resolution.
Depending on the existence and characteristics of the SBD and IRB interfaces for the IP-VRFs, there are three different IP-VRF-to-IP-VRF scenarios identified and described in this document:
-
Interface-less model: no SBD and no Overlay Indexes required.
-
Interface-ful with an SBD IRB model: requires SBD as well as GW IP addresses as Overlay Indexes.
-
Interface-ful with an unnumbered SBD IRB model: requires SBD as well as MAC addresses as Overlay Indexes.
Inter-subnet IP multicast is outside the scope of this document.
Figure 8 depicts the Interface-less IP-VRF-to-IP-VRF model.
NVE1(M1)
+------------+
IP1+----| (BD-1) | DGW1(M3)
| \ | +---------+ +--------+
| (IP-VRF)|----| |-|(IP-VRF)|----+
| / | | | +--------+ |
+---| (BD-2) | | | _+_
| +------------+ | | ( )
SN1| | VXLAN/ | ( WAN )--H1
| NVE2(M2) | GENEVE/| (___)
| +------------+ | MPLS | +
+---| (BD-2) | | | DGW2(M4) |
| \ | | | +--------+ |
| (IP-VRF)|----| |-|(IP-VRF)|----+
| / | +---------+ +--------+
SN2+----| (BD-3) |
+------------+
In this case:
- a)
- The NVEs and DGWs must provide connectivity between hosts in SN1, SN2, and IP1 and hosts sitting at the other end of the WAN -- for example, H1. It is assumed that the DGWs import/export IP and/or VPN-IP routes to/from the WAN.
- b)
- The IP-VRF instances in the NVE/DGWs are directly connected through NVO tunnels, and no IRBs and/or BD instances are instantiated to connect the IP-VRFs.
- c)
- The solution must provide Layer 3 connectivity among the IP-VRFs for Ethernet NVO tunnels -- for instance, VXLAN or GENEVE.
- d)
- The solution may provide Layer 3 connectivity among the IP-VRFs for IP NVO tunnels -- for example, GENEVE (with IP payload).
In order to meet the above requirements, the EVPN route type 5 will be used to advertise the IP prefixes, along with the EVPN Router's MAC Extended Community as defined in [
RFC 9135] if the advertising NVE/DGW uses Ethernet NVO tunnels. Each NVE/DGW will advertise an RT-5 for each of its prefixes with the following fields:
-
RD as per [RFC 7432].
-
Ethernet Tag ID = 0.
-
IP prefix length and IP address, as explained in the previous sections.
-
GW IP address = 0.
-
ESI = 0.
-
MPLS label or VNI corresponding to the IP-VRF.
Each RT-5 will be sent with a Route Target identifying the tenant (IP-VRF) and may be sent with two BGP extended communities:
-
The first one is the BGP Encapsulation Extended Community, as per [RFC 9012], identifying the tunnel type.
-
The second one is the EVPN Router's MAC Extended Community, as per [RFC 9135], containing the MAC address associated with the NVE advertising the route. This MAC address identifies the NVE/DGW and MAY be reused for all the IP-VRFs in the NVE. The EVPN Router's MAC Extended Community must be sent if the route is associated with an Ethernet NVO tunnel -- for instance, VXLAN. If the route is associated with an IP NVO tunnel -- for instance, GENEVE with an IP payload -- the EVPN Router's MAC Extended Community should not be sent.
The following example illustrates the procedure to advertise and forward packets to SN1/24 (IPv4 prefix advertised from NVE1):
- (1)
-
NVE1 advertises the following BGP route:
-
Route type 5 (IP Prefix route) containing:
-
IPL = 24, IP = SN1, Label = 10.
-
GW IP = set to 0.
-
BGP Encapsulation Extended Community [RFC 9012].
-
EVPN Router's MAC Extended Community that contains M1.
-
Route Target identifying the tenant (IP-VRF).
- (2)
-
DGW1 imports the received routes from NVE1:
-
DGW1 installs SN1/24 in the IP-VRF identified by the RT-5 Route Target.
-
Since GW IP = ESI = 0, the label is a non-zero value, and the local policy indicates this interface-less model, DGW1, will use the label and next hop of the RT-5, as well as the MAC address conveyed in the EVPN Router's MAC Extended Community (as the inner destination MAC address) to set up the forwarding state and later encapsulate the routed IP packets.
- (3)
-
When DGW1 receives a packet from the WAN with destination IPx, where IPx belongs to SN1/24:
-
A destination IP lookup is performed on the DGW1 IP-VRF table. The lookup yields SN1/24.
-
Since the RT-5 for SN1/24 had a GW IP = ESI = 0, a non-zero label, and a next hop, and since the model is interface-less, DGW1 will not need a recursive lookup to resolve the route.
-
The IP packet destined to IPx is encapsulated with: inner source MAC = DGW1 MAC, inner destination MAC = M1, outer source IP (tunnel source IP) = DGW1 IP, and outer destination IP (tunnel destination IP) = NVE1 IP. The source and inner destination MAC addresses are not needed if IP NVO tunnels are used.
- (4)
-
When the packet arrives at NVE1:
-
NVE1 will identify the IP-VRF for an IP lookup based on the label (the inner destination MAC is not needed to identify the IP-VRF).
-
An IP lookup is performed in the routing context, where SN1 turns out to be a local subnet associated with BD-2. A subsequent lookup in the ARP table and the BD FIB will provide the forwarding information for the packet in BD-2.
The model described above is called an "interface-less" model since the IP-VRFs are connected directly through tunnels, and they don't require those tunnels to be terminated in SBDs instead, as in Sections [
4.4.2] or [
4.4.3].
Figure 9 depicts the Interface-ful IP-VRF-to-IP-VRF with SBD IRB model.
NVE1
+------------+ DGW1
IP10+---+(BD-1) | +---------------+ +------------+
| \ | | | | |
|(IP-VRF)-(SBD)| |(SBD)-(IP-VRF)|-----+
| / IRB(M1/IP1) IRB(M3/IP3) | |
+---+(BD-2) | | | +------------+ _+_
| +------------+ | | ( )
SN1| | VXLAN/ | ( WAN )--H1
| NVE2 | GENEVE/ | (___)
| +------------+ | MPLS | DGW2 +
+---+(BD-2) | | | +------------+ |
| \ | | | | | |
|(IP-VRF)-(SBD)| |(SBD)-(IP-VRF)|-----+
| / IRB(M2/IP2) IRB(M4/IP4) |
SN2+----+(BD-3) | +---------------+ +------------+
+------------+
In this model:
- a)
- As in Section 4.4.1, the NVEs and DGWs must provide connectivity between hosts in SN1, SN2, and IP10 and in hosts sitting at the other end of the WAN.
- b)
- However, the NVE/DGWs are now connected through Ethernet NVO tunnels terminated in the SBD instance. The IP-VRFs use IRB interfaces for their connectivity to the SBD.
- c)
- Each SBD IRB has an IP and a MAC address, where the IP address must be reachable from other NVEs or DGWs.
- d)
- The SBD is attached to all the NVE/DGWs in the tenant domain BDs.
- e)
- The solution must provide Layer 3 connectivity for Ethernet NVO tunnels -- for instance, VXLAN or GENEVE (with Ethernet payload).
EVPN type 5 routes will be used to advertise the IP prefixes, whereas EVPN RT-2 routes will advertise the MAC/IP addresses of each SBD IRB interface. Each NVE/DGW will advertise an RT-5 for each of its prefixes with the following fields:
-
RD as per [RFC 7432].
-
Ethernet Tag ID = 0.
-
IP prefix length and IP address, as explained in the previous sections.
-
GW IP address = IRB-IP of the SBD (this is the Overlay Index that will be used for the recursive route resolution).
-
ESI = 0.
-
Label value should be zero since the RT-5 route requires a recursive lookup resolution to an RT-2 route. It is ignored on reception, and the MPLS label or VNI from the RT-2's MPLS Label1 field is used when forwarding packets.
Each RT-5 will be sent with a Route Target identifying the tenant (IP-VRF). The EVPN Router's MAC Extended Community should not be sent in this case.
The following example illustrates the procedure to advertise and forward packets to SN1/24 (IPv4 prefix advertised from NVE1):
- (1)
-
NVE1 advertises the following BGP routes:
-
Route type 5 (IP Prefix route) containing:
-
IPL = 24, IP = SN1, Label = SHOULD be set to 0.
-
GW IP = IP1 (SBD IRB's IP).
-
Route Target identifying the tenant (IP-VRF).
-
Route type 2 (MAC/IP Advertisement route for the SBD IRB) containing:
-
ML = 48, M = M1, IPL = 32, IP = IP1, Label = 10.
-
A BGP Encapsulation Extended Community [RFC 9012].
-
Route Target identifying the SBD. This Route Target may be the same as the one used with the RT-5.
- (2)
-
DGW1 imports the received routes from NVE1:
-
DGW1 installs SN1/24 in the IP-VRF identified by the RT-5 Route Target.
-
Since GW IP is different from zero, the GW IP (IP1) will be used as the Overlay Index for the recursive route resolution to the RT-2 carrying IP1.
- (3)
-
When DGW1 receives a packet from the WAN with destination IPx, where IPx belongs to SN1/24:
-
A destination IP lookup is performed on the DGW1 IP-VRF table. The lookup yields SN1/24, which is associated with the Overlay Index IP1. The forwarding information is derived from the RT-2 received for IP1.
-
The IP packet destined to IPx is encapsulated with: inner source MAC = M3, inner destination MAC = M1, outer source IP (source VTEP) = DGW1 IP, and outer destination IP (destination VTEP) = NVE1 IP.
- (4)
-
When the packet arrives at NVE1:
-
NVE1 will identify the IP-VRF for an IP lookup based on the label and the inner MAC DA.
-
An IP lookup is performed in the routing context, where SN1 turns out to be a local subnet associated with BD-2. A subsequent lookup in the ARP table and the BD FIB will provide the forwarding information for the packet in BD-2.
The model described above is called an "interface-ful with SBD IRB" model because the tunnels connecting the DGWs and NVEs need to be terminated into the SBD. The SBD is connected to the IP-VRFs via SBD IRB interfaces, and that allows the recursive resolution of RT-5s to GW IP addresses.
Figure 10 depicts the Interface-ful IP-VRF-to-IP-VRF with unnumbered SBD IRB model. Note that this model is similar to the one described in
Section 4.4.2, only without IP addresses on the SBD IRB interfaces.
NVE1
+------------+ DGW1
IP1+----+(BD-1) | +---------------+ +------------+
| \ | | | | |
|(IP-VRF)-(SBD)| (SBD)-(IP-VRF) |-----+
| / IRB(M1)| | IRB(M3) | |
+---+(BD-2) | | | +------------+ _+_
| +------------+ | | ( )
SN1| | VXLAN/ | ( WAN )--H1
| NVE2 | GENEVE/ | (___)
| +------------+ | MPLS | DGW2 +
+---+(BD-2) | | | +------------+ |
| \ | | | | | |
|(IP-VRF)-(SBD)| (SBD)-(IP-VRF) |-----+
| / IRB(M2)| | IRB(M4) |
SN2+----+(BD-3) | +---------------+ +------------+
+------------+
In this model:
- a)
- As in Sections [4.4.1] and [4.4.2], the NVEs and DGWs must provide connectivity between hosts in SN1, SN2, and IP1 and in hosts sitting at the other end of the WAN.
- b)
- As in Section 4.4.2, the NVE/DGWs are connected through Ethernet NVO tunnels terminated in the SBD instance. The IP-VRFs use IRB interfaces for their connectivity to the SBD.
- c)
- However, each SBD IRB has a MAC address only and no IP address (which is why the model refers to an "unnumbered" SBD IRB). In this model, there is no need to have IP reachability to the SBD IRB interfaces themselves, and there is a requirement to limit the number of IP addresses used.
- d)
- As in Section 4.4.2, the SBD is composed of all the NVE/DGW BDs of the tenant that need inter-subnet forwarding.
- e)
- As in Section 4.4.2, the solution must provide Layer 3 connectivity for Ethernet NVO tunnels -- for instance, VXLAN or GENEVE (with Ethernet payload).
This model will also make use of the RT-5 recursive resolution. EVPN type 5 routes will advertise the IP prefixes along with the EVPN Router's MAC Extended Community used for the recursive lookup, whereas EVPN RT-2 routes will advertise the MAC addresses of each SBD IRB interface (this time without an IP).
Each NVE/DGW will advertise an RT-5 for each of its prefixes with the same fields as described in
Section 4.4.2, except:
-
GW IP address = set to 0.
Each RT-5 will be sent with a Route Target identifying the tenant (IP-VRF) and the EVPN Router's MAC Extended Community containing the MAC address associated with the SBD IRB interface. This MAC address may be reused for all the IP-VRFs in the NVE.
The example is similar to the one in
Section 4.4.2:
- (1)
-
NVE1 advertises the following BGP routes:
-
Route type 5 (IP Prefix route) containing the same values as in the example in Section 4.4.2, except:
-
GW IP = SHOULD be set to 0.
-
EVPN Router's MAC Extended Community containing M1 (this will be used for the recursive lookup to an RT-2).
-
Route type 2 (MAC route for the SBD IRB) with the same values as in Section 4.4.2, except:
-
ML = 48, M = M1, IPL = 0, Label = 10.
- (2)
-
DGW1 imports the received routes from NVE1:
-
DGW1 installs SN1/24 in the IP-VRF identified by the RT-5 Route Target.
-
The MAC contained in the EVPN Router's MAC Extended Community sent along with the RT-5 (M1) will be used as the Overlay Index for the recursive route resolution to the RT-2 carrying M1.
- (3)
-
When DGW1 receives a packet from the WAN with destination IPx, where IPx belongs to SN1/24:
-
A destination IP lookup is performed on the DGW1 IP-VRF table. The lookup yields SN1/24, which is associated with the Overlay Index M1. The forwarding information is derived from the RT-2 received for M1.
-
The IP packet destined to IPx is encapsulated with: inner source MAC = M3, inner destination MAC = M1, outer source IP (source VTEP) = DGW1 IP, and outer destination IP (destination VTEP) = NVE1 IP.
- (4)
-
When the packet arrives at NVE1:
-
NVE1 will identify the IP-VRF for an IP lookup based on the label and the inner MAC DA.
-
An IP lookup is performed in the routing context, where SN1 turns out to be a local subnet associated with BD-2. A subsequent lookup in the ARP table and the BD FIB will provide the forwarding information for the packet in BD-2.
The model described above is called an "interface-ful with unnumbered SBD IRB" model (as in
Section 4.4.2) but without the SBD IRB having an IP address.