MPLS L3VPN packet forwarding

In a basic MPLS L3VPN (within a single AS), a PE adds the following information into VPN packets:

Figure 45: VPN packet forwarding

As shown in Figure 45, a VPN packet is forwarded from Site 1 to Site 2 by using the following process:

  1. Site 1 sends an IP packet with the destination address 1.1.1.2. CE 1 transmits the packet to PE 1.

  2. PE 1 performs the following operations:

    1. Finds the matching VPN route based on the inbound interface and destination address of the packet.

    2. Labels the packet with both the inner label and the outer tag.

    3. Forwards the packet to the public tunnel.

  3. P devices forward the packet to PE 2 by the outer tag.

    The MPLS label is removed from the packet at the penultimate hop.

  4. PE 2 performs the following operations:

    1. Uses the inner label to find the matching VPN instance to which the destination address of the packet belongs.

    2. Looks up the routing table of the VPN instance for the output interface.

    3. Removes the inner label and forwards the packet out of the interface to CE 2.

  5. CE 2 transmits the packet to the destination through IP forwarding.

When two sites of a VPN are connected to the same PE, the PE directly forwards packets between the two sites through the VPN routing table without adding any tag or label.