XGS-5240-Series User Manual

Table Of Contents
Configuration Guide of XGS-5240-Series
30-1
Chapter 30 Flexible QinQ
Configuration
30.1 Introduction to Flexible QinQ
30.1.1
QinQ Technique
Dot1q-tunnel is also called QinQ (802.1Q-in-802.1Q), which is an expansion of 802.1Q.
Its dominating idea is encapsulating the customer VLAN tag (CVLAN tag) to the service
provider VLAN tag (SPVLAN tag). The packet with two VLAN tags is transmitted through the
backbone network of the ISP internet to provide a simple layer-2 tunnel for the users. It is
simple and easy to manage, applicable only by static configuration, and especially adaptive to
small office network or small metropolitan area network using layer-3 switch as backbone
equipment.
There are two kinds of QinQ: basic QinQ and flexible QinQ, the priority of flexible QinQ is
higher than basic QinQ.
30.1.2 Basic QinQ
Basic QinQ based the port. After a port configures QinQ, whether the received packet with
tag or not, the device still packs the default VLAN tag for the packet. Using basic QinQ is
simple, but the setting method of VLAN tag is inflexible.
30.1.3 Flexible QinQ
Flexible QinQ based data flow. It selects whether pack the external tag and packs what
kind of the external tag by matching the material flow. For example: implement the property of
flexible QinQ according to the users VLAN tag, MAC address, IPv4/IPv6 address, IPv4/IPv6
protocol and the port ID of the application, etc. So, it can encapsulate the external tag for the
packet and implements different scheme by different users or methods.
30.2 Flexible QinQ Configuration Task List
The match of flexible QinQ data flow uses policy-map rule of QoS to be sent, the configuration
task list is as follows:
1. Create class-map to classify different data flows