Route distinguisher
Encyclopedia
A route distinguisher is an address qualifer used only within a single internet service provider
Internet service provider
An Internet service provider is a company that provides access to the Internet. Access ISPs directly connect customers to the Internet using copper wires, wireless or fiber-optic connections. Hosting ISPs lease server space for smaller businesses and host other people servers...

's Multi-Protocol Label Switching (MPLS) network. It is used to distinguish the distinct Virtual Private Network
Virtual private network
A virtual private network is a network that uses primarily public telecommunication infrastructure, such as the Internet, to provide remote offices or traveling users access to a central organizational network....

 (VPN) routes of separate customers who connect to the provider.

The route distinguisher is an 8-octet field prefixed to the customer's Internet Protocol address
IP address
An Internet Protocol address is a numerical label assigned to each device participating in a computer network that uses the Internet Protocol for communication. An IP address serves two principal functions: host or network interface identification and location addressing...

 (IPv4
IPv4
Internet Protocol version 4 is the fourth revision in the development of the Internet Protocol and the first version of the protocol to be widely deployed. Together with IPv6, it is at the core of standards-based internetworking methods of the Internet...

).
The resulting 12-octet field is a unique "VPN-IPv4" address. There is a more detailed description in RFC 4364.
At the edge of an MPLS provider's network, a router which connects to a customer's network is called a Provider Edge (PE) router. Similarly, the customer's edge router at the other end of the connection 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 IP forwarding 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 configure the PE to add a unique route distinguisher to each packet arriving from the CEs.

The route distinguisher (RD) is an 8-octet value consisting of 2 major fields, the Type Field (2 octets) and Value Field (6 octets). The type field determines how the value field should be interpreted.
The three Type values, as defined in the internet draft, are:

Type 0:
Type Field (2 octets)
Administrator subfield (2 octets)
Assigned number subfield (4 octets)
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:
Type Field (2 octets)
Administrator subfield (4 octets)
Assigned number subfield (2 octets)
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:
Type Field (2 octets)
Administrator subfield (4 octets)
Assigned number subfield (2 octets)
The administrator field must contain a 4-octet AS number (using private AS numbers is
discouraged). The Assigned field contains a number assigned by the service provider.

Normally the Border Gateway Protocol
Border Gateway Protocol
The Border Gateway Protocol is the protocol backing the core routing decisions on the Internet. It maintains a table of IP networks or 'prefixes' which designate network reachability among autonomous systems . It is described as a path vector protocol...

(BGP) used by the provider's routers only looks at the 4-octet IP address, but the BGP Multiprotocol Extensions allow BGP to view the entire 12-octet 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.

The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK