Vous êtes sur la page 1sur 32

LAN and VLAN: some considerations

LAN and VLAN: some considerations

Contents
1
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8

LAN and VLAN


Definitions
Domains in a traditional LAN
Domains in a VLAN
Traffic separation by VLAN
Tagging
Scheduling algorithms
VLAN Aware / Unaware
Links Types

FT42823EN02GLA0
2010 Nokia Siemens Networks

3
4
5
9
12
13
20
24
25

LAN and VLAN: some considerations

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

LAN and VLAN

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

1.1

Definitions

A LAN or Local Area Network is a computer network (or data communications


network) which is confined in a limited geographical location.
A Virtual (or logical) LAN is a local area network with a definition that maps
workstations/PCs on some other basis than geographic location (for example, by
department, type of user or primary application)

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

1.2

Domains in a traditional LAN

In a traditional Ethernet LAN, stations connected to the same media, share a domain.
In this domain, every station hears broadcast frames transmitted by every other
station.
As the number of stations grows, contention and broadcast traffic increase a lot.
At some point, the Ethernet becomes saturated.
To operate efficiently, the LAN must be divided into smaller pieces.
In a traditional LAN, stations are connected to each other by means of HUBS or
REPEATERS.

One collision Domain


One Broadcast Domain
HUB

HUB

Fig. 1 Domains in a traditional LAN (1)

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

A BRIDGE (or a L2 SWITCH) is able to divide one collision domain in different


collision domains.

Fig. 2 Domains in a traditional LAN (2)

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

A BRIDGE (or a L2 SWITCH) do not forward collisions, but allows broadcast and
multicast passing through.
Broadcast domain refers to a part of network where a single broadcast packet is
transmitted to all segments of the network (i.e. ARP request, NETBIOS name
request).
This type of traffic, affects the whole network because each device receiving a
broadcast frame must analyze it.
If broadcast frames increases in frequency, available bandwidth decrease up to be
exhaust (BROADCAST STORM).

SWITCH = MULTIPORT BRIDGE

L2 SWITCH

Fig. 3 Domains in a traditional LAN (3)

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

A ROUTER may be used to prevent Broadcast and Multicast from traveling through
the network because it is able to segment a LAN in different Broadcast domains.

Two collision Domains


Two Broadcast Domain

HUB

ROUTER

HUB

Fig. 4 Domains in a traditional LAN

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

1.3

Domains in a VLAN

VLANs allow a network manager to logically segment a LAN into different broadcast
domains without using routers.
Bridging software is used to define which workstations are to be included in the
broadcast domain.

VLAN 1 Broadcast
VLAN 1 Broadcast
Domain
Domain

VLAN22Broadcast
Broadcast
VLAN
Damain
Damain

L2 SWITCH

L2 SWITCH

Fig. 5 Domains in a VLAN (1)

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

ROUTERS are necessary only to make possible communication between different


VLANs.
VLAN IS A LOGICALLY DEFINED BROADCAST DOMAIN.

VLAN11Broadcast
Broadcast
VLAN
Domain
Domain

VLAN22Broadcast
Broadcast
VLAN
Damain
Damain

L2 SWITCH

L2 SWITCH
ROUTER

Fig. 6 Domains in a VLAN (2)

10

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

The advantages of VLANs as regards to traditional LANs are shown in Fig. 7.

PERFORMANCE

Better control of broadcast

VIRTUAL WORKGROUPS

Independent from the physical wiring

SIMPLIFIED
ADMINISTRATION

Simply moves, adds and changes

REDUCED COSTS

Routers are only used to interconnect


different broadcast domains

SECURITY

Periodically, sensitive data may be


broadcast on a network. Placing only those
users who can have access to have access to
that data on a VLAN can reduce the
chances of an outsider gaining access to the
data

Fig. 7 Domains in a VLAN (3)

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.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.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

11

LAN and VLAN: some considerations

1.4

Traffic separation by VLAN

With VLANs it is possible to separate different logical networks on one physical


infrastructure supporting the traffic separation.
Figure Fig. 8 shows a Traffic Separation Example by VLAN.

RNC

Flexi BTS Nr.1

Ethernet Network
Flexi BTS Nr.2

Traffic over same physical port


separated by VLAN.

VLAN1 -> Voice from Flexi BTS Nr.1


to RNC

VLAN2 -> Data from Flexi BTS Nr.1


to RNC

VLAN3 -> Voice from Flexi BTS Nr.2


to RNC

VLAN4 -> Data from Flexi BTS Nr.1


to RNC

Fig. 8 Traffic separation by VLAN

12

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

1.5

Tagging

Tagging is a process used to identify the VLAN originating.


The VLAN tagging scheme in 802.1q results in four bytes of information being added
to the frame following the source address and preceding the type/length field.
This increases the maximum frame size in Ethernet to 1522 bytes.
Fig. 9 reports a IEEE 802.3 untagged frame
Fig. 10and Fig. 11 explain theTAG fields.

Basic IEEE 802.3 Ethernet Frame:


minimum length 64 bytes, maximum length 1518 bytes
Preamble
+SD
8 bytes

MAC DA
6 bytes

MAC SA
6 bytes

Length/Type
Payload
FCS
2 bytes
46-1500 bytes 4 bytes

64-1518 bytes

Interframe
Gap
12 bytes

VLAN tags may be added here

Destination & Source MAC Addresses:


The Destination MAC Address field identifies the station or stations that are to receive the
frame.
The Source MAC Address identifies the station that originated the frame. A Destination
Address may be a unicast destined for a single station, or a "multicast address" destined for a
group of stations. A Destination Address of all 1 bits refers to all stations on the LAN and is
called a "broadcast address".
Length/Type:
If the value of this field is less than or equal to 1500, then the Length/Type field indicates
the number of bytes in the Payload field. If the value of this field is greater than or equal to
1536, then the Length/Type field indicates protocol type.
Payload (MAC Client Data):
This field contains the data transferred from the source station to the destination station or
stations.
Frame Check Sequence:
This field contains a 4-byte cyclical redundancy check (CRC) value used for error checking.

Fig. 9 IEEE 802.3 Untagged Frame

FT42823EN02GLA0
2010 Nokia Siemens Networks

13

LAN and VLAN: some considerations

802.1Q VLAN (single tagged)


4 bytes are added in the Ethernet frame between the MAC Source Address and
the Type-Field.
IEEE 802.3 Frame without VLAN Tag Header
Preamble
+SD
8 bytes

MAC DA
6 bytes

MAC SA
6 bytes

Length/Type
Payload
FCS
2 bytes
48-1500 bytes 4 bytes

Interframe
Gap
12 bytes

IEEE 802.3 with 802.1Q 4-Byte VLAN Tag Header


Preamble
+SD
8 bytes

MAC DA
6 bytes

MAC SA
6 bytes

TPID TCI

Length/Type
Payload
FCS
2 bytes
48-1500 bytes 4 bytes

Interframe
Gap
12 bytes

4 bytes

TPID
TAG Protocol Identifier

TCI
Tag Control Identifier

2 bytes
TAG Protocol Identifier TPID
0x8100
16 bits

2 bytes
C

Priority F
I

3bits 1bit
User priority

CFI (Canonical
format identifier)

VLAN ID
12 bits
VLAN ID <= 4094)

Fig. 10 802.1Q Single Tagged Frame (1)

14

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

TC FIELD

DESCRIPTION

Tag Protocol IDentifier

It Indicates that it will follow a 802.1q TAG and


not the payload; the Default TPID value in IEEE
802.1Q, is 0x8100

user Priority

It allows priority information to be encoded in the


frame. Eight levels of priority are allowed

Canonical Format Indicator

Always 0 if Ethernet.It is used to make


compatibility between Ethernet and Token Ring

Vlan IDentifier

Is used to uniquely identify the VLAN to which the


frame belongs. There can be a maximum of 212 -1
VLANs. Zero is used to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
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

15

LAN and VLAN: some considerations

1.5.1

Class of Service (CoS) IEEE 802.1p

The IEEE 802.1p provides a standard and interoperable way to set the priority bits in
a frames header and to map these settings to TRAFFIC CLASSES.
There are 8 TRAFFIC CLASSES (3 Bits) according to the table reported in Fig. 12.

NETWORK CONTROL TRAFFIC

NC

111

VOICE TRAFFIC

VO

110

VIDEO TRAFFIC

VI

101

CONTROLLED LOAD TRAFFIC

CL

100

EXCELLENT EFFORT TRAFFIC

EE

011

RESERVRD FOR FUTURE USE

010

BACKGROUND

BK

001

BEST EFFORT

BE

000

Fig. 12 Quality Of Service IEEE 802.1p (1)

WARNING
Of course, network operators may choose to implement traffic differentiation
on a per VLAN-ID basis rather than using the three CoS bits.

16

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

The TRAFFIC CLASSES are assigned to separate queues with different priorities.

Priority bits

map to

Traffic classes

queues

outgoing

Fig. 13 Quality Of Service IEEE 802.1p (2)

If a switch provides 8 queues for the 8 priorities settings, each queue will store
frames with a specific priority setting to provide complete differentiated services.

Fig. 14 Switch with 8 queues; each priority has one queue

FT42823EN02GLA0
2010 Nokia Siemens Networks

17

LAN and VLAN: some considerations

To minimize costs, however, fewer queues may be provided in such switches.


Frames from several priority settings may be stored together in one queue.

Fig. 15 Switch with less than 8 queues; more than one priority in one queue

18

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

When 4 queues are available, like in the FlexiPacket ODU, the 8 CoS codes could be
associated to four priority values as reported in Fig. 16 (FlexiPacket ODU default).

CoS

Queue Priority
Value

Fig. 16 FlexiPacket ODU Priority Code Point Configuration

When 5 queues are available, like in FlexiPacket HUB 2200/1200, the 8 CoS codes
could be associated to five priority values as reported in Fig. 16 (HUB 1200/2200
configuration).

CoS

Queue Priority
Value

Fig. 17 FlexiPacket HUB (2200/1200) Priority Code Point Configuration

FT42823EN02GLA0
2010 Nokia Siemens Networks

19

LAN and VLAN: some considerations

1.6

Scheduling algorithms

By means of scheduling algorithms is possible to decide which frames forward first


based on its priority and how to manage the shared available bandwidth in case of
congestion.
Four strategies can be considered:
1) Without QoS management: FIFO (First In First Out) queuing (Fig. 18)

Only one queue


Frames are transmitted in the same order they arrive
In case of congestion:

All frames experience queue delay irrespective of their class of service


Frames may be discarded irrespective of their class of service

First In First Out

Fig. 18 FIFO Queuing

20

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

2) Strict priority queuing (Fig. 19)

One queue for each class


Queues are processed in descending order (highest to lowest).
Queues assigned as high priority are serviced until they are empty.
Low priority queues potentially can be starved; in order to avoid it, high priority traffic
should be kept small.

Strict Priority Queuing (SPQ)


SPQ Uses multiple queues
Allows prioritization
Always empties higher priority queue before going to the next queue:
Empty Queue Q3
If Queue Q3 empty, then dispatch from Queue no. 2
If both Queue Q3 and Queue Q2 empty, then dispatch from Queue Q0

Queue

Priority

Q3

Q2

6,5

Q1

3,4

Q0

1,2

Until Queue 3 is emptied


Queues
Q3

Q2

Q1

Q0

7
6

7
6

7
1

3
1
Direction of Data flow

Fig. 19 Strict Priority Queuing

FT42823EN02GLA0
2010 Nokia Siemens Networks

21

LAN and VLAN: some considerations

3) Weighted Fair Queuing (Fig. 20)

Each queue has a percentage of capacity.


The weight is used to ensure that more important queues get serviced more often
than other less important queues

The choice of the weights also depends on the amount of traffic in each class

Weighted Fair Queuing (WFQ)


The scheduler will empty all four queues
simultaneously according to their weights.
Queuing algorithm shares the bandwidth fairly
among flows.
Weights are introduced to give proportionately
more bandwidth to flows with higher CoS

Q3

7
Q2

Q1

Q0

WFQ
Scheduler

Queue

Priority

Weight

BW

Q3

80 Mbps

Q2

5,6

40 Mbps

Q1

3,4

20 Mbps

Q0

1,2

10 Mbps

7
6

80 Mbps

40 Mbps

20 Mbps

1
1

10 Mbps

Fig. 20 Weighted Fair Queuing

22

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

4) Multi stage: Weighted Fair Queuing + Strict Priority (Fig. 21)


The last two strategies can be combined together.

SP High
SP Low
Z%
W%

SP high
SP low
Z%
W%

Fig. 21 Weighted Fair Queuing + Strict Priority

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
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
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

23

LAN and VLAN: some considerations

1.7

VLAN Aware / Unaware

VLAN AWARE
If the data is to go to a device that knows about VLAN implementation (VLAN Aware),
the VLAN identifier is added to the data.
VLAN UNAWARE
If it is to go to a device that has no knowledge of VLAN implementation (VLAN
Unaware), the BRIDGE sends the data without the VLAN identifier.

Fig. 22 VLAN Aware/Anaware

24

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

1.8

Links Types

Devices on a VLAN can be connected in three ways based on whether the connected
devices are VLAN Aware or VLAN Unaware as reported in Fig. 23, Fig. 24, Fig. 25
and Fig. 26.
Recall that a VLAN aware device is one which understands VLAN memberships (i.e.
which users belong to a VLAN) and VLAN formats.

DESCRIPTION

LINK TYPE

All the devices connected to a trunk link, including workstations, must


be VLAN Aware.
All frames on a trunk link must have a special header attached. These
special frames are called TAGGED FRAMES.

Trunk Link

An access link connects a VLAN Unaware device to the port of a VLAN


Aware Bridge.

Access Link

This is a combination of the previous two links. This is a link where


both VLAN aware and VLAN Unaware devices are attached.
A hybrid link can have both tagged and untagged frames, but all the
frames for a specific VLAN must be either tagged or untagged.

Hybrid Link

Fig. 23 Link Types

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

FT42823EN02GLA0
2010 Nokia Siemens Networks

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

25

LAN and VLAN: some considerations

VLAN-aware Workstation

Trunk Link

L2-Switch

L2-Switch
VLAN-aware
Bridge/L2-Switch

VLAN-aware
Bridge/L2-Switch

Trunk Link

Fig. 24 Trunk Link

26

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

VLAN-unaware Device

Access Link

L2-Switch
VLAN-aware
Bridge/L2-Switch

Fig. 25 Access Link

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

FT42823EN02GLA0
2010 Nokia Siemens Networks

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

27

LAN and VLAN: some considerations

VLAN anaware
Switch

VLAN anaware
Stations

S3

VLAN red

VLAN aware
Switches
and Stations

VLAN gray
S2

VLAN yellow
configure VLAN-ID per
port

VLAN green
S1

VLAN red
VLAN-ID VLAN red

IEEE 802.1Q
VLAN yellow
configure VLAN-ID
per port

Si

Server yellow
Server red
Server gray

Server for all


VLAN

IEEE 802.1Q

Server green

Fig. 26 VLAN Scenario

28

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

1.8.1

Q-in-Q

In the VLAN tag field defined in IEEE 802.1Q, only 12 bits are used for VLAN IDs, so
a device can support a maximum of 4,094 VLANs.
In actual applications, however, a large number of VLAN are required to isolate
users, especially in metropolitan area networks, and 4,094 VLANs are far from
satisfying such requirements.
The so called Q-in-Q (IEEE 802.1ad) feature enables the encapsulation of double
VLAN tags within an Ethernet frame, with the inner VLAN tag being the customer
network VLAN tag while the outer one being the VLAN tag assigned by the service
provider to the customer.
In the backbone network of the service provider (the public network), frames are
forwarded based on the outer VLAN tag only, while the customer network VLAN tag
is shielded during data transmission.
The Q-in-Q feature enables a device to support up to 4,094 x 4,094 VLANs.

Bytes

DA

SA

LEN/
Etype

2
DA

SA

TPID

2
DA

SA

TPID

46 to 1500

Data

FCS

Untagged Ethernet Frame

Single Tagged Ethernet Frame

2
TAG

LEN/
Etype

Data

Double Tagged Ethernet Frame

2
TAG

FCS

TPID

TAG

LEN/
Etype

Data

FCS

Service Provider Customer Tagging


Tagging

Fig. 27 Untagged, Single Tagged and Double Tagged Ethernet Frames

FT42823EN02GLA0
2010 Nokia Siemens Networks

29

LAN and VLAN: some considerations

30

FT42823EN02GLA0
2010 Nokia Siemens Networks

LAN and VLAN: some considerations

Double Tag Example

B
A

S-VLAN 2
C-VLAN 2
1

S-VLAN 2
C-VLAN 2

S-VLAN 2
C-VLAN 2

S= Service Provider
C= Customer

2
3
S-VLAN14

C-VLAN 2

A-Port

VLAN Inner
Tag

VLAN Outer
Tag

Forwarding Decision

Swap outer with 4 and forward


to D- port 2

Fig. 28 Double TAG Example

FT42823EN02GLA0
2010 Nokia Siemens Networks

31

LAN and VLAN: some considerations

1.8.1.1

Q in Q TPID

The QinQ frame contains the modified tag protocol identifier (TPID) value of VLAN
Tags. By default, the VLAN tag uses the TPID field to identify the protocol type of the
tag. The value of this field, as defined in IEEE 802.1Q, is 0x8100.
The device determines whether a received frame carries a service provider VLAN tag
or a customer VLAN tag by checking the corresponding TPID value.
After receiving a frame, the device compares the configured TPID value with the
value of the TPID field in the frame.
If the two match, the frame carries the corresponding VLAN tag. For example, if a
frame carries VLAN tags with the TPID values of 0x88a8 and 0x8100, respectively,
while the configured TPID value of the service provider VLAN tag is 0x88a8 and that
of the VLAN tag for a customer network is 0x8200, the device considers that the
frame carries only the service provider VLAN tag but not the customer VLAN tag.
In addition, the systems of different vendors might set the TPID of the outer VLAN tag
of QinQ frames to different values.
For compatibility with these systems, you can modify the TPID value so that the QinQ
frames, when sent to the public network, carry the TPID value identical to the value of
a particular vendor to allow interoperability with the devices of that vendor.
The TPID in an Ethernet frame has the same position with the protocol type field in a
frame without a VLAN tag.

32

FT42823EN02GLA0
2010 Nokia Siemens Networks

Vous aimerez peut-être aussi