About EVPN Null Route
A Distributed Denial of Service (DDoS) attack on a host in an EVPN Fabric consumes the network bandwidth resources and in turn impacts legitimate traffic to other hosts.
The DDoS attack can be from any of the following setups:
-
Host connected to a leaf switch within the local site
-
Host connected to a leaf switch in a remote site
-
External networks such as WAN
The DDoS attack can be intra-subnets (MAC based) or inter-subnets (Host-based – IPv4/IPv6)
Null route filtering has been traditionally used in mitigating DDoS attacks especially in service provider networks.
A null route is a network route (routing table entry) that goes nowhere. Matching packets are dropped (ignored or redirected) rather than forwarded, acting as a kind of limited firewall. The act of using null routes is often called null route filtering.
NX-OS already has mechanisms to configure the null/drop route for IPv4/IPv6/MAC. The null route will be required to be configured on all VTEPs in the fabric.
For IPv4/IPv6 based attacks, use the following commands to configure an IPv4/IPv6 static route with null interface:
-
ip route x.x.x.x/y Null0
-
ipv6 route X:X:X::X/Y Null0
For MAC-based attacks, use the following command to configure MAC address with drop adjacency to drop the packets:
-
mac address-table static xxxx.yyyy.zzzz vlan <VLAN-ID> drop
In a fabric with large number of VTEPs and across multiple sites, manually configuring and administering the drop route on all VTEPs is difficult task in the absence of Nexus Dashboard Fabric Controller (NDFC) or other Orchestrator.
The EVPN null routing feature is used when you do not have a way to configure and inject a null route from a central location such as with NDFC or other Orchestrators.
EVPN null routing feature enables a VTEP within the network to send Type-2 and Type-5 routes tagged with a specific community.
Other VTEPs (Borders and Leafs) in the single-site and multi-site can install an entry in MAC or IP (IPv4/IPv6) table such that any traffic destined to MAC or IP respectively is dropped at the Edge or leaf switch which prevents the usage of bandwidth within the site and across the site.
The programmed null route entry can be a Host IP (/32 or /128), a Prefix (VLSM) or a MAC.