Using a QinQ Termination Sub-interface to Connect to a VPN
Using a QinQ Termination Sub-interface to Connect to a PWE3/VLL/VPLS Network
In Figure 8-5, different branches of an enterprise are interconnected through a carrier's PWE3/VLL/VPLS network. PEs serve as edge devices of the carrier's PWE3/VLL/VPLS network and connect to branch networks through sub-interfaces, and packets sent by CEs to PEs carry double VLAN tags. User hosts in different branches need to communicate with each other.
- PE1 checks the inner and outer VLAN tags of data packets sent from CE1. When these VLAN tags are the same as those specified in the QinQ termination configuration on Port1.1, PE1 encapsulates double MPLS labels into the packets and forwards the packets to the carrier's PWE3/VLL/VPLS network. VLAN tags are transparent to the carrier's PWE3/VLL/VPLS network.
- When receiving the packets, PE2 removes double MPLS labels from the packets, and forwards the packets to CE2 according to the QinQ termination configuration on Port1.1.
- CE2 forwards packets to user hosts to implement interworking of different branches.
Using a QinQ Termination Sub-interface to Connect to an L3VPN
In Figure 8-6, different branches of an enterprise are interconnected through a carrier's MPLS L3VPN. PEs serve as edge devices of the carrier's MPLS L3VPN and connect to branch networks through sub-interfaces, and packets sent by CEs to PEs carry double VLAN tags. Hosts in different branches need to use the same services.
- According to the Dot1q termination configuration on Port1.1, PE1 removes the outer VLAN tag of the packets sent from CE1.
- PE1 binds the inner and outer VLAN tags to the VPN instance VPN1, and forwards the packets to the L3VPN.
- After the packets reach PE2, PE2 determines that the packets are destined for CE3 based on the VPN instance.
- PE2 adds an outer VLAN tag to the packets according to the Dot1q termination configuration on Port1.1, and then forwards the packets to CE3.
- CE3 forwards the packets to the destination user host.