No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S12700 V200R010C00 Configuration Guide - Ethernet Switching

This document describes the configuration of Ethernet services, including configuring link aggregation, VLANs, Voice VLAN, VLAN mapping, QinQ, GVRP, MAC table, STP/RSTP/MSTP, SEP, and so on.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
QinQ Mapping

QinQ Mapping

Implementation

QinQ mapping is performed after packets are received on the inbound interface and before packets are forwarded through the outbound interface.

  • Before sending a packet from a local VLAN, a sub-interface replaces the VLAN tag of the packet sent with a specified VLAN tag.

  • After receiving a packet, a sub-interface replaces the VLAN tag of packet with a local VLAN tag.

In real-world applications, QinQ mapping can map customer VLAN (C-VLAN) tags to a service VLAN (S-VLAN) tag to shield different customer VLANs.

QinQ mapping is generally deployed on edge devices of a metro Ethernet and often used to map a VLAN tag carried in a packet to a specified VLAN tag before the packet is transmitted on the public network. QinQ mapping applies to the following scenarios:
  • The VLAN IDs deployed in new sites and old sites conflict, but new sites need to communicate with old sites.

  • Sites connected to the public network use conflicting VLAN IDs but do not need to communicate with one another.

  • The VLAN IDs on both ends of the public network are different.

Currently, the device supports the following QinQ mapping modes:
  • 1-to-1 mapping

    When a sub-interface receives a single-tagged packet, it maps the VLAN tag to a specified tag.

  • 2-to-1 mapping

    When a sub-interface receives a double-tagged packet, it maps the outer VLAN tag to a specified tag and retains the inner VLAN tag.

Figure 10-6  QinQ mapping

In Figure 10-6, 1-to-1 QinQ mapping is configured on GE1/0/1.1 interfaces of Device2 and Device3. Frames sent from PC1 to PC2 are processed as follows:

  1. PC1 sends an untagged frame to Device1. After receiving the frame, Device1 adds VLAN tag 20 to the frame.

  2. Device1 forwards the frame with VLAN tag 20 to Device2. Device2 replaces VLAN tag 20 with S-VLAN tag 50 on sub-interface GE1/0/1.1.

  3. Device2 sends the frame with S-VLAN tag 50 through GE1/0/2.

  4. The frame is transparently transmitted on the ISP network.

  5. When the frame arrives at GE1/0/1.1 of Device3, Device3 replaces VLAN tag 50 with VLAN tag 40.

Frames sent from PC2 to PC1 are processed in a similar way.

QinQ mapping allows PC1 to communicate with PC2.

Comparison Between QinQ Mapping and VLAN Mapping

Table 10-4 compares QinQ mapping and VLAN mapping.

Table 10-4  Comparison between QinQ mapping and VLAN mapping

Mapping

Similarity

Difference

1-to-1

The interface maps the tag in a received single-tagged packet to a specified tag.

  • QinQ mapping is performed on sub-interfaces and used for VPLS access.

  • VLAN mapping is performed on main interfaces and applies to Layer 2 networks where packets are forwarded based on VLANs.

2-to-1

The interface maps the outer tag of a received double-tagged packet to a specified tag and retains the inner tag. The inner tag is transparently transmitted as service data.

  • QinQ mapping is performed on sub-interfaces and used for VPLS access.

  • VLAN mapping is performed on main interfaces and applies to Layer 2 networks where packets are forwarded based on VLANs.

Translation
Download
Updated: 2019-08-21

Document ID: EDOC1000142081

Views: 255243

Downloads: 408

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next