Virtual LAN: Applications and Technology
Virtual LAN: Applications and Technology
Virtual LAN: Applications and Technology
Micrel, Incorporated
www.micrel.com
TEL: +1 (408)-944-0800
CONTENTS
Introduction..............................................................................................................................................................3
What is a VLAN? .....................................................................................................................................................3
Port-based VLAN.....................................................................................................................................................4
MAC Address-based VLAN.....................................................................................................................................4
Layer 3-based VLANs .............................................................................................................................................4
IP Multicast Groups as VLANs ................................................................................................................................5
VLAN and QoS ........................................................................................................................................................5
VLAN in WAN/MAN (Provider VLAN)......................................................................................................................6
Security and Segregation ........................................................................................................................................6
Conclusion...............................................................................................................................................................7
Copyright 2004 Micrel, Inc. All Rights Reserved. Micrel is a registered trademark of Micrel, Inc. in the United States and certain other countries. All
other products or services, trademarks, service marks, registered trademarks, or registered service marks mentioned in this document are the
trademarks, service marks, registered trademarks, or registered service marks of their respective owners. Printed in the United States.
WHITE PAPER
Introduction
Virtual LANs (VLANs) have recently developed into an integral feature of Ethernet switch solutions.
One of the reasons for the importance placed on VLAN functionality today is the trend of using
Ethernet LAN switches as a replacement for networking hubs.
Broadcast packets perform a number of behind-the-scenes, yet indispensable, network functions.
For example, whenever an IP host or router needs to find the physical destination of an IP address,
it generates an Address Resolution Protocol (ARP) broadcast packet, which asks something like,
"Will the node with IP address x please send me your MAC address, so I can address this packet to
you?" (These addresses are stored in an ARP cache for a couple of hours or so - subsequent traffic
may not require broadcasts.)
On a single-segment Ethernet network (half duplex shared medium), the broadcast domain is the
same as the collision domain. Multiple Ethernet segments connected via a switch form an extended
broadcast domain made up of multiple collision domains. The switch forwards broadcast packets out
to every port, and they also forward frames with unknown destination addresses to every port. The
unicast traffic local to a collision domain remains in the same domain and is invisible to the rest of
the broadcast domain, while broadcast frame and frames with unknown destinations are flooded to
every other node on the broadcast domain. Thousands of nodes could be affected by this
architecture.
With the emergence of low-cost switches, each network segment now contains only one user
(desktop LAN switching), while broadcast domains can be still be as large as 1,000 users or more.
These large, completely flat networks can become unworkable because of broadcast traffic.
Segmenting networks with switches can extend indefinitely the bandwidth available for unicast
messages; however, the broadcast traffic will eventually swamp the whole network. And in some
cases, a broadcast storm could require shutting down part of the network in order to recover its
operational state.
Therefore, in order for the network to operate properly, LAN broadcast domain cannot be very large.
In a typical network implementation, Layer 2 switches and collapsed backbone routers are used to
segment the network at Layer 3 and thus also contain broadcast traffic. VLANs represent an
alternative solution to expensive routers for broadcast containment, since VLANs allow switches to
contain broadcast traffic.
What is a VLAN?
A VLAN can be roughly equated to a broadcast domain. More specifically, VLANs can be seen as
analogous to a group of end-stations, perhaps on multiple physical LAN segments that are not
constrained by their physical locations and can communicate as if they were on a common LAN.
VLANs are set up between switches by inserting a tag into each Ethernet frame (see Figure 1). A tag
field containing VLAN (and/or 802.1p priority) information can be inserted into an Ethernet frame. If a
port has an 802.1q-compliant device attached (such as another switch), these tagged frames can
carry VLAN membership information between switches, thus letting a VLAN span multiple switches.
8
Preamble
DA
SA
VPID
TCI
length
Bits
802.1q VLAN Tag
16
Tagged Packet Type
(8100 for Ethernet)
802.1p
CFI
Bytes
46-1500
LLC
Data
4
FCS
12
VLAN ID
WHITE PAPER
Port-based VLAN
VLAN membership can be defined in several different ways, which is one of the reasons they can be
confusing. The simplest way is to assign specific ports on a switch to VLANs. For example, ports 1,
2, 7, and 8 on an 8-port switch make up VLAN A, while ports 3, 4, 5, and 6 make up VLAN B. If an
assigned switch port is connected to a shared segment - one with multiple nodes - all those nodes
will be part of the VLAN, along with the nodes on other ports assigned to that VLAN. This VLAN
segmentation is basically a matter of electronically isolating the ports of each VLAN.
Port grouping is the most popular method of defining VLAN membership, and configuration is fairly
straightforward. However, the primary limitation of defining VLANs by port is that the network
manager may have to reconfigure VLAN membership when a user moves from one port to another.
MAC Address-based VLAN
MAC address-based VLAN has a different set of advantages and disadvantages. In this method,
switches maintain tables of MAC addresses with their VLAN membership. With this form of
membership, the nodes on a shared segment need not belong to the same VLAN. Because MAC
addresses are hardwired into the Network Information Cards (NICs), this Layer 2 VLAN definition
has the advantage of portability. Wherever a workstation or laptop is plugged in across the switched
network, the switches will recognize it as a member of the assigned VLAN. This is especially useful
for a WIFI connected switch port.
The disadvantage of MAC address-based VLAN solutions is the requirement that all users must
initially be configured to be in at least one VLAN. Only after that initial manual configuration, the
automatic VLAN grouping of users is possible. The manual VLAN configuration has to be repeated,
if more than one switch is used. The disadvantage of having to configure VLAN membership
becomes apparent in very large networks where thousands of users must each be explicitly
assigned to a particular VLAN.
MAC address-based VLANs that are implemented in shared-media environments (e.g. WIFI) run into
serious performance degradation as members of different VLANs coexist on a single switch port.
This occurs because several broadcast domains coexist on the same shared-media that is to
become one broadcast domain.
Layer 3-based VLANs
VLANs can also be defined by their network or Layer 3 addresses. Many network managers,
frustrated by the administrative overhead that comes with highly changeable networks configured
with IP, could happily replace their existing subnet structure with VLANs. Once the node's VLAN
membership is defined, the VLAN handles everything, even if the node is moved to a port connected
to a different subnet or if the IP addresses need to be reassigned.
Layer 3-based VLANs take into account protocol type (if multiple protocols are supported) or
network-layer address (for example, subnet address for TCP/IP networks) in determining VLAN
membership.
There are several advantages to defining VLANs at Layer 3. First, it enables partitioning by protocol
type. This may be an attractive option for network managers who are dedicated to a service - or
application-based VLAN strategy. Second, users can physically move their workstations without
having to reconfigure each workstations network addressa benefit primarily for TCP/IP users.
Third, defining VLANs at Layer 3 can eliminate the need for frame-tagging in order to communicate
VLAN membership between switches, reducing transport overhead.
One of the disadvantages of defining VLANs at Layer 3 (versus MAC - or port-based VLANs) can be
performance. Inspecting Layer 3 addresses in packets is more time consuming than looking at MAC
addresses in frames. For this reason, switches that use Layer 3 information for VLAN definition are
generally slower than those that use Layer 2 information.
WHITE PAPER
Application Class
Network Control
Characterized by a must get there requirement to maintain and support the network
infrastructure.
Voice
Characterized by less than a 10ms delay, and hence maximum jitter (one-way transmission
through the LAN infrastructure of a single campus).
Video or Audio
Characterized by less than 100ms delay.
Controlled Load
Important business applications subject to some form of admission control, be that preplanning of the network requirement at one extreme to bandwidth reservation per flow at the
time the flow is started at the other.
Excellent Effort
Or CEOs best effort, the best-effort type services that an information services organization
would deliver to its most important customers.
Best Effort
LAN traffic, as we know it today.
Background
Bulk transfers and other activities that are permitted on the network that should not impact the
use of the network by other users and applications.
WHITE PAPER
The mapping of the priority to traffic classes (number of transmit queues) is given as follows:
801.2D (1998) Section H.2.4
Number of Available Traffic
Classes
User
Priority
0
(Default)
WHITE PAPER
for that user). It would be impossible to ease drop to any communication in that private LAN
segment, because the traffic can not physically cross the VLAN boundary. In addition, the service
provider can provision bandwidth, access and set priority through the use VLAN. This is especially
important when VLANs are implemented in conjunction with private port switching in a public
network.
A very similar requirement is needed in applications like a Web-hosting data center. Many
independent customers share the servers in the data server. It would be prudent to segregate the
traffic of each customers server to prevent unlawful intrusion, virus infection, or attack launching
from one server to the neighboring server.
Conclusion
With the deployment large numbers of switch ports, VLAN has become an indispensable tool for the
network administration to segment the network to increase bandwidth per user, provide security, and
provision multimedia service. The evolution of VLAN as a simple broadcast containment device to a
necessary function in the network, propel VLAN to be the number 1 tool in an IT professionals bag
of tricks. New standards involving VLAN are being created today. New function like Q-in Q and STP
per VLAN should prove to be very helpful in IP VPN, VPLS and metro area network.
Micrel switch family (KS8993, KS8995 and KS8695) is fully compliant with IEEE802.1p and 802.1q.
It provides the most comprehensive VLAN and priority-based QoS solutions today in the Ethernet
switch market.