Route distinguisher
From Wikipedia, the free encyclopedia
A route distinguisher is an address qualifer used only within a single internet service provider's Multi-Protocol Label Switching (MPLS) network. It is used to distinguish the distinct Virtual Private Network (VPN) routes of separate customers who connect to the provider.
The route distinguisher is an 8-byte field prefixed to the customer's Internet Protocol address (IPv4). The resulting 12-byte field is a unique "VPN-IPv4" address. In a single provider's network, a router which connects to a customer is called a Provider Edge (PE) router, and the customer's router it connects to is called a Customer Edge (CE) router. Within an MPLS network, a PE router needs to be configured to associate each route distinguisher with routes which lead to a particular CE router. The PE router may be configured to associate all routes leading to the same CE router with the same route distinguisher, or it may be configured to associate different routes with different route distinguishers, even if they lead to the same CE router.
The route distinguisher has only one purpose: to make IPv4 prefixes globally unique. It is not used for routing by the provider's core (non-edge) routers (within the MPLS cloud), but it is used by the edge routers to identify which VPN a packet belongs to. For example, for a PE router to be able to distinguish between the IP address 10.0.0.0 of one customer from the 10.0.0.0 of another customer, the network administrator must add a unique route distinguisher to each.
The route distinguisher (RD) is an 8-byte value consisting of 2 major fields, the Type Field (2 bytes) and Value Field (6 bytes). The type field determines how the value field should be interpreted. The three Type values, as defined in the internet draft, are:
Type 0:
Value Field (2 bytes) Administrator subfield (2 bytes) Assigned number subfield (4 bytes)
The administrator field must contain an AS number (using private AS numbers is discouraged). The Assigned field contains a number assigned by the service provider.
Type 1:
Value Field (2 bytes) Administrator subfield (4 bytes) Assigned number subfield (2 bytes)
The administrator field must contain an IP address (using private IP address space is discouraged). The Assigned field contains a number assigned by the service provider.
Type 2:
Value Field (2 bytes) Administrator subfield (4 bytes) Assigned number subfield (2 bytes)
The administrator field must contain a 4-byte AS number (using private AS numbers is discouraged). The Assigned field contains a number assigned by the service provider.
Normally the Border Gateway Protocol (BGP) used by the provider's routers only looks at the 4-byte IP address, but the BGP Multiprotocol Extensions allow BGP to view the entire 12-byte VPN-IPv4 address, and carry routes from multiple "address families". If the route distinguisher Administrator subfield and the Assigned Number subfield of a VPN-IPv4 address are both set to all zeroes, the VPN-IPv4 address is considered to have exactly the same meaning as the corresponding globally unique IPv4 address. In particular, this VPN-IPv4 address and the corresponding globally unique IPv4 address will be considered comparable by BGP. In all other cases, a VPN-IPv4 address and its corresponding globally unique IPv4 address will be considered noncomparable by BGP. A given per-site forwarding table will only have one VPN-IPv4 route for any given IPv4 address prefix. When a packet's destination address is matched against a VPN-IPv4 route, only the IPv4 part is actually matched.