Today we will attempt to simplify understanding of the various MP-BGP types. We will discuss various acronyms, address families and modifiers.
Definitions
Acronym | Phrase | Usage |
---|---|---|
VRF | Virtual routing and forwarding | Multiple virtual routers with unique address space |
MP-BGP | Multiprotocol Extensions for BGP | Allows for different types of address families to be distributed. |
AFI | Address Family Numbers | ? |
SAFI | Subsequent Address Family Identifiers | ? |
NLRI | Network Layer Reachability Information | Destination information. For example, IP + mask. |
RD | Route Distinguisher | Used to identify which VRF a route belongs. |
RT | Route Target | BGP extended community attribute used to define import and exports. |
Table
Address family
Number | Description |
---|---|
1 | IPv4 |
2 | IPv6 |
11 | IPX |
12 | AppleTalk |
25 | L2VPN |
Cisco IOS:
1 | (config-router)#address-family ? |
Address Family Modifier
Number | Description |
---|---|
1 | Unicast (U) |
2 | Multicast |
4 | MPLS Labels (L) |
65 | VPLS |
70 | EVPN |
128 | MPLS VPN (L3VPN / VPN) |
129 | Multicast VPN |
Cisco IPv4:
1 | (config-router)#address-family ipv4 ? |
Cisco L2VPN:
1 | (config-router)#address-family l2vpn ? |
Cisco VPNv4:
1 | (config-router)#address-family vpnv4 ? |
IP Unicast Family
Basic internet routing. Interchangeable with BGP-4.
AFI | SAFI | Name |
---|---|---|
1 (IPv4) | 1 (Unicast) | IPv4 Unicast |
2 (IPv6) | 1 (Unicast) | IPv6 Unicast |
1 (IPv4) | 2 (Multicast) | IPv4 Multicast |
2 (IPv6) | 2 (Multicast) | IPv6 Multicast |
Topology Example:
Cisco Configuration Example:
1 | r1# |
1 | #r2 |
Packet Capture:
1 | Border Gateway Protocol - UPDATE Message |
IP L3VPN Family
BGP L3VPN is used to exchange VPN (VRF) routes. Also called VPNv4 and VPNv6.
AFI | SAFI | Name |
---|---|---|
1 (IPv4) | 128 (Labeled VPN Unicast) | IPv4 L3VPN Unicast (VPNv4) |
2 (IPv6) | 128 (Labeled VPN Unicast) | IPv4 L3VPN Unicast (VPNv6) |
1 (IPv4) | 129 (Labeled VPN Multicast) | IPv4 L3VPN Multicast |
2 (IPv6) | 129 (Labeled VPN Multicast) | IPv6 L3VPN Multicast |
Topology Example:
Cisco Configuration Example:
1 | #r1 |
1 | #r2 |
Packet Capture:
1 | Border Gateway Protocol - UPDATE Message |
EVPN Family
MPLS-Based Ethernet VPN (BGP EVPN) can provide L2VPN services such as data-center interconnection (DCI). Designed as an alternative for VPLS.
IP tunneling such as Virtual Extensible LAN protocol (VXLAN) can provide L2 and L3 overlay networks with EVPN. (VXLAN BGP EVPN)
EVPN Virtual Private Wire Service (EVPN VPWS)
AFI | SAFI | Name |
---|---|---|
25 (L2VPN) | 70 (EVPN) | VPN EVPN BGP |
Topology Example:
Cisco Configuration Example:
1 | #r1 |
1 | #r2 |
Packet Capture:
1 | Border Gateway Protocol - UPDATE Message |
IP Labeled Unicast Family
BGP-LU used to distribute a MPLS label mapped to a route. Not available on IOSv image. Allows for sending IP Unicast routes with MPLS tag information.
AFI | SAFI | Name |
---|---|---|
1 (IPv4) | 4 (Labeled Unicast) | IPv4 Labeled Unicast |
2 (IPv6) | 4 (Labeled Unicast) | IPv6 Labeled Unicast |
Cisco Configuration Example:
1 | router bgp 1 |
Visual Combinations
Sources
- Juniper - Understanding MBGP Address Families
- IANA - Address Family Numbers
- IANA - Subsequent Address Family Identifiers (SAFI) Parameters
- OpenDaylight - BGP User Guide
- Indeni - VXLAN with MP-BGP EVPN control plane
- Cisco - VXLAN Lab
TODO:
Unicast IPv4
Unicast IPv6
Multicast IPv4
Multicast IPv6
VPN IPv4
VPN IPv6
L2VPN
Route-target
VPLS
VPWS
xconnect
pseudowire
IP Unicast Family
IP Labeled Unicast Family
IP L3VPN Family
Link-State Family
Flow Specification Family
MCAST-VPN Family
EVPN Family
Route Target Constrain Family
VPLS ?