Welcome to QSFPTEK Global     Free shipping on orders over US$ 79.8     US and Poland Local warehouse

United States - English / $USD
United States -   English / $USD
  • Bosnia and Herzegovina - English / $USD
  • Benin - English / $USD
  • Bermuda - English / $USD
  • Bhutan - English / $USD
  • Bolivia - English / $USD
  • Botswana - English / $USD
  • Brazil - English / $USD
  • Brunei - English / $USD
  • Cambodia - English / $USD
  • Cameroon - English / $USD
  • Canada - English / $USD
  • Bulgaria - English / $USD
  • Chad - English / $USD
  • Chile - English / $USD
  • Colombia - English / $USD
  • Costa Rica - English / $USD
  • Djibouti - English / $USD
  • Dominica - English / $USD
  • Dominican Republic - English / $USD
  • Egypt - English / $USD
  • Fiji - English / $USD
  • Gabon - English / $USD
  • Canary Islands - English / $USD
  • The Gambia - English / $USD
  • Georgia - English / $USD
  • Ghana - English / $USD
  • Grenada - English / $USD
  • Guinea - English / $USD
  • Guyana - English / $USD
  • Hong Kong - English / $USD
  • India - English / $USD
  • Indonesia - English / $USD
  • Israel - English / $USD
  • Ceuta - English / $USD
  • Jamaica - English / $USD
  • Jordan - English / $USD
  • Kazakhstan - English / $USD
  • Kenya - English / $USD
  • Kiribati - English / $USD
  • Republic of Korea - English / $USD
  • Kuwait - English / $USD
  • Kyrgyzstan - English / $USD
  • Laos - English / $USD
  • Liberia - English / $USD
  • Croatia - English / $USD
  • Macao - English / $USD
  • Madagascar - English / $USD
  • Malawi - English / $USD
  • Malaysia - English / $USD
  • Maldives - English / $USD
  • Mali - English / $USD
  • Mauritania - English / $USD
  • Mauritius - English / $USD
  • Mexico - English / $USD
  • Mongolia - English / $USD
  • Cyprus - English / $USD
  • Montserrat - English / $USD
  • Morocco - English / $USD
  • Mozambique - English / $USD
  • Namibia - English / $USD
  • Nepal - English / $USD
  • Niger - English / $USD
  • Nigeria - English / $USD
  • Norfolk Island - English / $USD
  • Northern Ireland - English / $USD
  • Oman - English / $USD
  • Denmark - English / $USD
  • Pakistan - English / $USD
  • Panama - English / $USD
  • Papua New Guinea - English / $USD
  • Paraguay - English / $USD
  • Peru - English / $USD
  • Philippines - English / $USD
  • Qatar - English / $USD
  • Rwanda - English / $USD
  • Samoa[12] - English / $USD
  • Saudi Arabia - English / $USD
  • Estonia - English / $USD
  • Senegal - English / $USD
  • Seychelles - English / $USD
  • Sierra Leone - English / $USD
  • Singapore - English / $USD
  • Solomon Islands - English / $USD
  • South Africa - English / $USD
  • Sri Lanka - English / $USD
  • Saint Kitts and Nevis - English / $USD
  • Saint Lucia - English / $USD
  • Saint Vincent and the Grenadines - English / $USD
  • Finland - English / $USD
  • Suriname - English / $USD
  • Tajikistan - English / $USD
  • Tanzania - English / $USD
  • Thailand - English / $USD
  • Togo - English / $USD
  • Tonga - English / $USD
  • Trinidad and Tobago - English / $USD
  • Tunisia - English / $USD
  • Turkmenistan - English / $USD
  • United Arab Emirates - English / $USD
  • France - English / $USD
  • Uruguay - English / $USD
  • Uzbekistan - English / $USD
  • Vanuatu - English / $USD
  • Zambia - English / $USD
  • Vietnam - English / $USD
  • Antigua and Barbuda - English / $USD
  • Australia - English / $USD
  • Belarus - English / $USD
  • Belize - English / $USD
  • Burkina Faso - English / $USD
  • French Guiana - English / $USD
  • Burundi - English / $USD
  • Cape Verde Islands - English / $USD
  • Cayman Islands - English / $USD
  • Central African Republic - English / $USD
  • Democratic Republic of the Congo - English / $USD
  • Democratic Republic of the Congo[3] - English / $USD
  • Cook Islands - English / $USD
  • Cuba - English / $USD
  • England - English / $USD
  • Equatorial Guinea - English / $USD
  • Germany - English / $USD
  • Eritrea - English / $USD
  • Ethiopia - English / $USD
  • Faroe Islands - English / $USD
  • French Polynesia - English / $USD
  • Gibraltar - English / $USD
  • Guatemala - English / $USD
  • Guernsey - English / $USD
  • Guinea-Bissau - English / $USD
  • Honduras - English / $USD
  • Iraq - English / $USD
  • Greece - English / $USD
  • Cote d'Ivoire - English / $USD
  • Japan - English / $USD
  • Jersey - English / $USD
  • Lebanon - English / $USD
  • The Kingdom of Lesotho - English / $USD
  • Libya - English / $USD
  • Liechtenstein - English / $USD
  • New Caledonia - English / $USD
  • New Zealand - English / $USD
  • Nicaragua - English / $USD
  • Greenland - English / $USD
  • Russian Federation - English / $USD
  • Saba - English / $USD
  • São Tomé and Príncipe - English / $USD
  • Scotland - English / $USD
  • Saint Kitts - English / $USD
  • Sint Eustatius - English / $USD
  • Eswatini - English / $USD
  • Tahiti - English / $USD
  • Tuvalu - English / $USD
  • Uganda - English / $USD
  • Guadeloupe - English / $USD
  • Ukraine - English / $USD
  • Union Island - English / $USD
  • United Kingdom of Great Britain and Northern Ireland - English / $USD
  • Venezuela - English / $USD
  • Wales - English / $USD
  • Wallis and Futuna - English / $USD
  • Yemen - English / $USD
  • Zimbabwe - English / $USD
  • Hungary - English / $USD
  • Iceland - English / $USD
  • Italy - English / $USD
  • Kosovo - English / $USD
  • Latvia - English / $USD
  • Albania - English / $USD
  • Lithuania - English / $USD
  • Luxembourg - English / $USD
  • Macedonia - English / $USD
  • Madeira - English / $USD
  • Malta - English / $USD
  • Martinique - English / $USD
  • Mayotte - English / $USD
  • Melilla - English / $USD
  • Moldova - English / $USD
  • Monaco - English / $USD
  • Andorra - English / $USD
  • Montenegro - English / $USD
  • Netherlands - English / $USD
  • Norway - English / $USD
  • Poland - English / $USD
  • Portugal - English / $USD
  • Republic of Ireland - English / $USD
  • Reunion - English / $USD
  • Romania - English / $USD
  • Saint Barthelemy - English / $USD
  • San Marino - English / $USD
  • Aran Islands - English / $USD
  • Serbia - English / $USD
  • Slovakia - English / $USD
  • Slovenia - English / $USD
  • Spain - English / $USD
  • Sweden - English / $USD
  • Switzerland - English / $USD
  • The Czech Republic - English / $USD
  • Turkey - English / $USD
  • Vatican City State - English / $USD
  • Afghanistan - English / $USD
  • Aruba - English / $USD
  • American Samoa - English / $USD
  • Bonaire - English / $USD
  • British Virgin Islands - English / $USD
  • Comoros - English / $USD
  • Curacao - English / $USD
  • Timor-Leste - English / $USD
  • Ecuador - English / $USD
  • El Salvador - English / $USD
  • Guam - English / $USD
  • Kosrae - English / $USD
  • Austria - English / $USD
  • Marshall Islands - English / $USD
  • Federated States of Micronesia - English / $USD
  • Northern Mariana Islands - English / $USD
  • Palau - English / $USD
  • Pohnpei Island - English / $USD
  • Puerto Rico - English / $USD
  • Rota - English / $USD
  • Saipan - English / $USD
  • Santa Cruz - English / $USD
  • Saint John - English / $USD
  • Azores - English / $USD
  • saint martin - English / $USD
  • St. Thomas - English / $USD
  • Tinian Island - English / $USD
  • Tortola Island - English / $USD
  • Truk Islands - English / $USD
  • Turks and Caicos Islands - English / $USD
  • U.S. Virgin Islands - English / $USD
  • United States - English / $USD
  • Virgin Gorda - English / $USD
  • Yap Islands - English / $USD
  • Belgium - English / $USD
  • Algeria - English / $USD
  • Angola - English / $USD
  • Anguilla - English / $USD
  • Argentina - English / $USD
  • Armenia - English / $USD
  • Azerbaijan - English / $USD
  • The Bahamas - English / $USD
  • Bahrain - English / $USD
  • Bangladesh - English / $USD
  • Barbados - English / $USD
Search

Cart

0
Free shipping on orders over US$ 79.8
United States

QinQ vs. VLAN vs. VXLAN

Author Yana

Date 08/10/2023

This post is about QinQ vs. VLAN vs. VXLAN. Explore the differences between QinQ, VLAN, and VXLAN. Understand their unique advantages in network segmentation. QSFPTEK provides insights into these networking solutions.

VLAN (virtual local area network) technology removes distance and physical location restrictions, streamlining network management. However, as the number of devices and users grows in large-scale networks, VLAN faces limitations with a maximum of 4094 VLANs and inefficient network link utilization. To overcome these challenges, VXLAN (virtual extensible LAN) and QinQ technologies have emerged. This article will illustrate and compare these three technologies. In this article, these three technologies, QinQ vs. VLAN vs. VXLAN, will be illustrated and compared.

    

Overview of VLAN, VXLAN, and QinQ

  

What is VLAN (Virtual LAN)?

   

VLAN is a technology that divides a network into multiple broadcast domains. Within each broadcast domain, users can communicate freely. When it comes to establishing connections between distinct VLANs, there are two fundamental concepts to grasp: VLAN tagging and inter-VLAN routing.

   

VLAN tagging involves adding a unique identifier to frames as they pass through VLAN trunk ports, allowing frames from different VLANs to pass through. One of the methods for tagging is IEEE 802.1Q. Configuring VLANs is straightforward and user-friendly, both through CLI (Command Line Interface) and web-based user interfaces.

VLAN (Virtual LAN)

   

What is QinQ(802.1Q-in-802.1Q)?

    

QinQ, also referred to as VLAN stacking or double VLAN, is standardized under IEEE 802.1ad. It involves encapsulating the VLAN tag with dual layers—a private network's inner tag and a public network's outer tag. Q-in-Q is widely used in carrier backbone networks. By wrapping the VLAN tag of a private network within the VLAN tag of a public network, QinQ allows dual-VLAN-tagged packets to navigate through a carrier's backbone network (which is the public network). This mechanism expands the available VLAN capacity and facilitates more precise user management.

   

The IEEE 802.1Q standard specifies a 12-bit VLAN ID field that allows up to 4096 VLANs to be identified. However, as networks continue to expand, this limitation has become increasingly restrictive. In response, IEEE 802.1ad, an extension of the 802.1Q standard, introduces an additional 802.1Q tag (referred to as a VLAN tag) to packets originally tagged with 802.1Q. This innovation expands the potential number of VLANs to 4094 x 4094. Such dual-tagged packets are referred to as QinQ packets.

   

QinQ packets follow a standardized structure. Typically, an 802.1Q tagged packet is nested within an additional 802.1Q tag, hence the term "QinQ". As packets traverse the network, they are routed within the public network based on the outer VLAN tag. The inner VLAN tag is treated as data and traverses the public network along with it. This dual-tag configuration causes QinQ packets to have an additional four bytes compared to standard 802.1Q VLAN-tagged packets.

 QinQ(802.1Q-in-802.1Q)

   

There are two main types of QinQ implementations: Basic QinQ and Selective QinQ.

   

Basic QinQ uses a port-based tagging approach. When a packet arrives at an interface with VLAN VPN enabled, the switch tags the packet with its default VLAN tag. Whether the incoming packet is already tagged or not, the result is the same. If it's already tagged, it will possess dual VLAN tags; if not, it will have a VLAN tag with the switch port.

   

Selective QinQ includes the capabilities of basic QinQ while introducing a higher level of flexibility. It identifies the inner VLAN tag of a packet based on the MAC address, IP protocol, source IP address, and VLAN tag, and then determines which tag should be added.

  

What is VXLAN (Virtual Extensible LAN)?

   

VXLAN, also known as Virtual Extensible LAN, is a technology that enables Layer 2 overlay networks to be built on top of a Layer 3 network using MAC address-in-user datagram protocol (MAC-in-UDP) encapsulation. In the data center, VXLAN is emerging as the dominant protocol for creating overlay networks that sit on top of the physical network, facilitating the implementation of virtual networks. By leveraging the VXLAN protocol, data center networks can be effectively virtualized while meeting the needs of multi-tenant data centers by providing extensive segmentation capabilities at scale. In essence, VXLAN provides similar services to VLAN, but with enhanced extensibility and flexibility. Like QinQ, VXLAN packets follow a consistent format. Using VXLAN MAC-in-UDP encapsulation, the original packets are provided with a VXLAN header and then placed inside a UDP IP packet. Here's a simple diagram to illustrate the concept.

VXLAN (Virtual Extensible LAN)

  

VXLAN Header: Consists of a 24-bit Virtual Network Identifier (VNID) used to identify Layer 2 segments and maintain Layer 2 isolation between them. All 24 bits within the VNID define the maximum 16 million LAN segments that VXLAN can support.

  

Outer UDP Header: The VTEP (VXLAN Tunnel Endpoint) allocates the source port within the UDP header, with the destination port typically being UDP port 4789.

   

Outer IP Header: Contains a source IP address associated with the source VTEP and correlated to the source of the inner frame.

   

Outer Ethernet Header: The source MAC address within the outer Ethernet header corresponds to the VTEP linked with the source of the inner frame.

   

The QSFPTEK S5600 series and S7600 series layer 3 switches support VXLAN and other data center features designed to offer high performance.

   

Model

S7600-48X8C

S7600-48Y8C

S5600-48T4X

S5600-48S4X

Ports

48x 10Gb SFP+ ports and 8x 100Gb QSFP28 uplinks

48x 25Gb SFP28 ports and 8x 100Gb QSFP28 uplinks

48 xGE RJ45, with 4 x10GE SFP+ Uplinks

48-Port Gigabit Ethernet L3+ Switch, 48 xGE SFP, with 4 x10GE SFP+ Uplinks

Power Supply

2 (1+1 redundant) hot-swappable

2 (1+1 redundant) hot-swappable

2 (1+1 redundant)

2 (1+1 redundant)

Fan Number

4 hot-swappable

4 hot-swappable

3 build-in fans

3 build-in fans

Performance

Switching Capacity: 2.56 Tbps
Forwarding Rate: 1905 Mpps

Switching Capacity: 4 Tbps
Forwarding Rate: 2976 Mpps

Switching Capacity: 176 Gbps
Forwarding Rate: 130.94 Mpps

Switching Capacity: 176 Gbps
Forwarding Rate: 132 Mpps

Features

Support VARP, VXLAN, EVPN, GRE, and NVGRE.

Support VARP, VXLAN, EVPN, GRE, NVGRE

Support data center features including MLAG/VXLAN/EVPN/VARP/PFC

Support data center features including MLAG/VXLAN/EVPN/VARP/PFC

   

The Differences Between QinQ, VLAN, and VXLAN

      

VLANs have been used to address several issues, including isolating Layer 2 networks, preventing flooding, and acting as routing interfaces. The ability to support VLANs is now widely available in systems and network devices such as Ethernet switches, routers, and firewalls. However, the focus of this paper is primarily on VLAN tagging. VLAN tagging plays a key role in facilitating communication between different VLANs.

     

As mentioned earlier, VLAN tagging uses either the IEEE 802.1Q protocol or ISL (Inter-Switch Link) to attach tags to frames traversing different VLANs. Frames subject to this tagging method carry a single tag. In contrast, QinQ technology offers greater flexibility than VLAN. This is evident in its ability to selectively tag incoming frames or packets. In addition, the outer VLAN tag effectively addresses the limitations of finite VLAN IDs. At the same time, the unique inner tag mitigates conflicts between private and public VLAN IDs, providing a simple Layer 2 VPN solution suitable for both small and large enterprise networks. 

   

In terms of VXLAN, it offers similar functionality to QinQ to a certain extent, but its operational layer offers greater extensibility. VXLAN uses MAC-in-UDP encapsulation, which greatly expands the scope of Layer 2 networks. With the development of cloud computing, tenants' network infrastructure requirements have become more demanding, especially in virtualized data centers. This phenomenon increases the need for robust Layer 2 networks.

   

The MAC-in-UDP implementation supports the use of 24-bit VNIDs, facilitating the hosting of multiple tenants within a single data center while overcoming physical distance limitations and deployment barriers. As a result, VXLANs have gained traction in cloud computing and virtualization environments in recent years. However, compared to VLAN and QinQ, VXLAN technology is more expensive and complex. As a result, not all VLAN switches include this functionality. 

   

Conclusion

   

QinQ vs. VLAN vs. VXLAN, each technology meets unique network requirements. QinQ excels at stacking and extending VLANs. VLAN organizes networks, while VXLAN scales via MAC-in-UDP. The choice depends on the specifics: QinQ offers advanced VLANs, VLAN is basic, and VXLAN offers versatile virtualization. As VLAN technology and Layer 2/3 networks evolve, advanced solutions such as QinQ and VXLAN, address current challenges and improve efficiency for the future. 

share

Tags

#VLAN
#Switches
#Network Switches
Contact us