QinQ Mapping

Created: Jan 24, 2020 20:29:35Latest reply: Jan 24, 2020 20:51:22 62 2 0 0
  Rewarded Hi-coins: 0 (problem resolved)
Hello
I would like to know what are the principles of QinQ Mapping and what is the difference compared to VLAN Mapping.
Thanks
  • x
  • convention:

Featured Answers
wissal
MVE Created Jan 24, 2020 20:44:28 Helpful(2) Helpful(2)

Hello,

Please find below the answer for your questions

QinQ Mapping

Principles

QinQ mapping maps VLAN tags in user packets to specified tags before the user packets are transmitted across the public network.

  • Before sending local VLAN frames, a sub-interface replaces the tags in the local frames with external VLAN tags.

  • Before receiving frames from external VLANs, a sub-interface replaces the tags in the external VLANs with local VLAN tags.

QinQ mapping allows a device to map a user VLAN tag to a carrier VLAN tag, shielding different user VLAN IDs in packets.

QinQ mapping is deployed on edge devices of a Metro Ethernet. It is applied in but not limited to the following scenarios:

  • VLAN IDs deployed at new sites and old sites conflict, but new sites need to communicate with old sites.

  • VLAN IDs planned by each site on the public network conflict. These sites do not need to communicate.

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

Currently, only 1 to 1 QinQ mapping is supported. When a QinQ mapping-enabled sub-interface receives a single-tagged packet, the sub-interface replaces the VLAN ID in the frame with a specified VLAN ID.

Figure 7-8 QinQ mapping
imgDownload?uuid=4402391882494f24bacff41

As shown in Figure 7-8, 1 to 1 QinQ mapping is configured on Sub-interfaces 1 on Switch 2 and Switch 3. If PC1 wants to communicate with PC2:

  1. PC1 sends a frame to Switch 1.

  2. Upon receipt, Switch 1 adds VLAN ID 10 to the frame, and forwards the frame to Switch 2. After Sub-interface1 on Switch 2 receives the frame with VLAN ID 10, Sub-interface 1 on Switch 2 replaces VLAN ID 10 with carrier VLAN ID 50. Interface 2 on Switch 2 then sends the frame with carrier VLAN ID 50 to the Internet service provider (ISP) network.

  3. The ISP network transparently transmits the frame.

  4. After Sub-interface 1 on Switch 3 receives the tagged frame from Switch 2, Sub-interface 1 on Switch 3 replaces the carrier VLAN ID 50 with VLAN ID 30.

PC2 communicates with PC1 in a similar manner.

Comparison Between QinQ Mapping and VLAN Mapping

Table 7-3 describes the comparison between QinQ mapping and VLAN mapping.

Table 7-3 Comparison between QinQ mapping and VLAN mapping

Mapping Type

Similarity

Difference

1 to 1

An interface maps the tag of a received single-tagged frame to the specified tag.

  • QinQ mapping

    • Performed on a sub-interface

    • Used for VPLS access

  • VLAN mapping

    • Performed on an interface

    • Used on Layer 2 networks where VLAN frames are forwarded



Thanks

  • x
  • convention:

All Answers
wissal
wissal MVE Created Jan 24, 2020 20:44:28 Helpful(2) Helpful(2)

Hello,

Please find below the answer for your questions

QinQ Mapping

Principles

QinQ mapping maps VLAN tags in user packets to specified tags before the user packets are transmitted across the public network.

  • Before sending local VLAN frames, a sub-interface replaces the tags in the local frames with external VLAN tags.

  • Before receiving frames from external VLANs, a sub-interface replaces the tags in the external VLANs with local VLAN tags.

QinQ mapping allows a device to map a user VLAN tag to a carrier VLAN tag, shielding different user VLAN IDs in packets.

QinQ mapping is deployed on edge devices of a Metro Ethernet. It is applied in but not limited to the following scenarios:

  • VLAN IDs deployed at new sites and old sites conflict, but new sites need to communicate with old sites.

  • VLAN IDs planned by each site on the public network conflict. These sites do not need to communicate.

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

Currently, only 1 to 1 QinQ mapping is supported. When a QinQ mapping-enabled sub-interface receives a single-tagged packet, the sub-interface replaces the VLAN ID in the frame with a specified VLAN ID.

Figure 7-8 QinQ mapping
imgDownload?uuid=4402391882494f24bacff41

As shown in Figure 7-8, 1 to 1 QinQ mapping is configured on Sub-interfaces 1 on Switch 2 and Switch 3. If PC1 wants to communicate with PC2:

  1. PC1 sends a frame to Switch 1.

  2. Upon receipt, Switch 1 adds VLAN ID 10 to the frame, and forwards the frame to Switch 2. After Sub-interface1 on Switch 2 receives the frame with VLAN ID 10, Sub-interface 1 on Switch 2 replaces VLAN ID 10 with carrier VLAN ID 50. Interface 2 on Switch 2 then sends the frame with carrier VLAN ID 50 to the Internet service provider (ISP) network.

  3. The ISP network transparently transmits the frame.

  4. After Sub-interface 1 on Switch 3 receives the tagged frame from Switch 2, Sub-interface 1 on Switch 3 replaces the carrier VLAN ID 50 with VLAN ID 30.

PC2 communicates with PC1 in a similar manner.

Comparison Between QinQ Mapping and VLAN Mapping

Table 7-3 describes the comparison between QinQ mapping and VLAN mapping.

Table 7-3 Comparison between QinQ mapping and VLAN mapping

Mapping Type

Similarity

Difference

1 to 1

An interface maps the tag of a received single-tagged frame to the specified tag.

  • QinQ mapping

    • Performed on a sub-interface

    • Used for VPLS access

  • VLAN mapping

    • Performed on an interface

    • Used on Layer 2 networks where VLAN frames are forwarded



Thanks

  • x
  • convention:

gabo.lr
gabo.lr MVE Created Jan 24, 2020 20:51:22 Helpful(0) Helpful(0)

Posted by wissal at 2020-01-24 07:44 Hello,Please find below the answer for your questionsQinQ MappingPrinciplesQinQ mapping maps VLAN ta ...
Thanks for your answer!!
  • x
  • convention:

Telecommunications%20and%20Electronics%20Engineer%2C%20with%208%20years%20of%20experience%20working%20with%20Huawei%20equipment.

Comment

Reply
You need to log in to reply to the post Login | Register

Notice Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Login and enjoy all the member benefits

Login and enjoy all the member benefits

Login