The idea of a VLAN, or Virtual Local Area Network, is simple enough, right? Itโs hard to imagine any work in a modern networking/IT space without having encountered, set up, or managed a VLAN. Well if thatโs all you needed to know about VLANs, weโd be done here, but thereโs a bit more to it.
To cover our bases: In most modern networks the primary purpose of the LAN is to provide connectivity to a wider network, most notably the internet. When you think about all of the devices that you need to connect to your network today, the list can get quite long: laptops, servers, storage, mobile phones, IoT devices, security camerasโฆ And thatโs just the start.
This poses a potential issue. Do you really want all of these devices on the same LANโ all having equal access to the same set of resources? Should the IoT devices on my network, known to run rudimentary operating systems and to be susceptible to security vulnerabilities, reside on the same network as the laptops used by finance? And should those devices share a network with employees’ mobile phones?
Of course not!
The obvious solution is to start segmenting the network. This could mean running separate cables, separate switches, access point infrastructure, and more, to create separate local area networks for each device group. But thatโs a lot of extra work, itโs expensive, inefficient, and complex to manage.
How does a VLAN work?
Network engineers realized this a long time ago, too. A simpler way to solve this problem is to logically segment the same physical network. The most basic way to do that is to create virtual local area networks or VLANs. Instead of running separate cables, having separate switches, etc. for each local area network, VLANs on your network use the same underlying physical infrastructure but create separate spaces for the traffic of different types. Although traffic traversing your network at Layer 2 will use the same physical switches and cables, traffic within each VLAN stays within its own specific compartment.
Letโs look at a practical example. Say you have a switch with eight ports. Youโve configured two separate VLANs on the switch – VLAN 100 and VLAN 200 – and connected three PCs to three neighboring switch ports. Since Devices A and B are in the same VLAN, they would generally be able to communicate with one another over Layer 2. Although it may seem like PCs B and C are neighbors, they are in separate VLANsโ they have no direct links to each other at Layer 2. Instead, theyโd need to rely on higher-level protocols in the OSI model, such as Layer 3 (the Network Layer) to communicate.
VLANs and broadcast domains
If youโre familiar with VLANs from prior experience and are just here for a refresher, you may be thinking โThis isnโt quite what I learned in school!โ – and youโd be right. While Iโve described the typical reason VLANs are used in most small to mid-sized networks today, let’s not forget about the original reason VLANs were introduced. The original purpose of VLANs was to reduce the size of the broadcast domain, therefore decreasing the amount of bandwidth being effectively wasted with broadcast traffic. Along with spanning trees, the goal was to reduce or eliminate broadcast storms.
Back to the example above. PCs A and B are in the same broadcast domain, so any broadcast traffic sent by device A is seen by device B. PC C is in a different broadcast domain, so if A is transmitting broadcast traffic, PC C wonโt receive it. Prior to the introduction of VLANs, any devices connected to the same switch would see all broadcast traffic from each device within that LAN. And that can be a lot of traffic being processed by endpoints that donโt need to.
While these original concepts still apply, they are cited far less often as a reason to introduce VLANs into a network, since high broadcast traffic and broadcast storms donโt occur very often in a well-designed network.
If youโre looking for a way to get better visibility into how your network is connected both logically and physically, try Auvik risk-free for 14 days today. Youโll have a complete network map, showing all of your VLANs, in less time than it takes to grab lunch.
Your Guide to Selling Managed Network Services
Get templates for network assessment reports, presentations, pricing & moreโdesigned just for MSPs.