87
tagged
frame
l
TPID
Etype
a
DA: Destination Address
SA: Source Address
Tunnel TPID: Tag Protocol Identifier added on a tunnel port
P: 802.1p priority
VID: VLAN ID
Len or Etype: Length or Ethernet frame type
Data: Frame data
FCS: Frame Check Sequence
VLAN Stacking Port Roles
Each port can have three VLAN stacking “roles”, Normal, Access Port and Tunnel Port.
✓
Select
Normal
for “regular” (non-VLAN stacking) IEEE 802.1Q frame switching.
✓
Select
Access Port
for ingress ports on the service provider's edge devices. The incoming
frame is treated as "untagged", so a second VLAN tag (outer VLAN tag) can be added.
✓
Select
Tunnel Port
for egress ports at the edge of the service provider's network. All
VLANs belonging to a customer can be aggregated into a single service provider's VLAN
(using the outer VLAN tag defined by SP VID).
NOTE:
In order to have the double tagged frames switching correctly, user has to configure a
service provider’s VLAN (SPVLAN) on the Q-in-Q switch. Then, the double tagged frames can
be switched according to the SP VID. The SPVLAN should include all the related Tunnel and
Access ports. Also, user has to configure the Tunnel posts as tagged ports and the Access ports
as untagged ports.
Port-based Q-in-Q
Q-in-Q encapsulation is to convert a single tagged 802.1Q packet into a double tagged Q-in-Q
packet. The Q-in-Q encapsulation can be based on port or traffic. Port-based Q-in-Q is to
encapsulate all the packets incoming to a port with the same SPVID outer tag. The mode is more
inflexible.
In the following example figure, both
X
and
Y
are Service Provider’s Network (
SPN
) customers
with VPN tunnels between their head offices and branch offices respectively. Both have an
identical VLAN tag for their VLAN group. The service provider can separate these two VLANs
within its network by adding tag
100
to distinguish customer
X
and tag
200
to distinguish
customer
Y
at edge device A and then stripping those tags at edge device B as the data frames
leave the network.