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

Configuration Guide - Ethernet Switching

S7700 and S9700 V200R012C00

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, VLAN aggregation, MUX VLAN, VLAN termination, Voice VLAN, VLAN mapping, QinQ, GVRP, VCMP, STP/RSTP/MSTP, VBST, SEP, RRPP, ERPS, LBDT, HVRP, and Layer 2 protocol transparent transmission.
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 with a specified VLAN tag.

  • After receiving a packet, a sub-interface replaces the VLAN tag of the 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.

It 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:
  • New and old sites use conflicting VLAN IDs 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 one end of the public network different from those on the other end.

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

    This mode maps the VLAN tag contained in a single-tagged packet received on a sub-interface to a specified tag.

  • 2-to-1 mapping

    This mode maps the outer VLAN tag contained in a double-tagged packet received on a sub-interface to a specified tag and leaves the inner VLAN tag intact.

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 carrier 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 leaves the inner tag intact. 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-01-18

Document ID: EDOC1100038843

Views: 107333

Downloads: 71

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