A VLAN or Virtual Local Area Network maps devices on a basis other than geographic location, for example, by department, type of user, or primary application, simplifying your network and increasing security and traffic management.
A VLAN is a virtual local area network that maps devices on a basis other than geographic location, for example, by department, type of user, or primary application.
VLANs are created to reduce the amount of hardware needed for a full network, while still maintaining the separation of various networks in a complete business network which reduces strain on the network and increases scalability, as well as lowering the cost.
VLANs exist on switches; network devices such as workstations, printers, or servers are plugged into switches so data can be transferred between them. A switch with devices plugged into it is essentially a LAN or Local Area Network, the devices connected to it can only transfer data between other devices in the same LAN which is why it’s local.
A router transfers data between networks, which allows one LAN to communicate with another LAN. A router is required to send data from one VLAN to another VLAN.
A VLAN is a port on a switch with a number assigned to it. For example, you could assign VLAN 1 to a port, VLAN 2 to another, and VLAN 3 to another, and devices connected to those ports can only communicate with devices connected to other ports assigned with each respective number (a PC connected to a VLAN 1 port can only communicate with a printer connected to a VLAN 1 port), unless there is a router present, in which case the traffic can go from VLAN 1 to VLAN 2 or VLAN 3 through the router just like it could do in a normal LAN.
This is important because it means you can set up several networks with a single switch, utilizing less hardware which saves money and allows for much more scalability since you can extend the same VLANs onto another switch.
In order for multiple switches to use the same VLAN, a trunk needs to be set up. Normally, a port can only belong to one VLAN, meaning that it can only transfer data from that VLAN to and from another port that belongs to the same VLAN. This is a problem because it essentially would mean that each switch would have to have a port dedicated to connecting to the other switch for each VLAN (in our case, Switch 1 would need 3 ports to connect to Switch 2, which would also need 3 ports, one port for VLAN 1, VLAN 2, and VLAN 3). However, a trunk is able to transfer data from any VLAN between switches or routers, which reduces the amount of needed ports to 1 on each switch instead of 3 on each switch in our case. Trunks are able to do this by assigning tags to each frame of data sent that tell the switch or router the traffic is going to what VLAN the frame belongs to.
The last important concept is Tagging. Frames of data that come from any non-network device (a pc or printer for example) come into the switch at an access point. When the switch receives the frame from the port it assigns it a tag based on the VLAN the port is associated with. For example, if a device connected to the switch on a VLAN 2 port sends data to the switch, the data frame gets a VLAN 2 tag added to it. This tag determines what devices can receive data from the starting device.
In summary, VLANs have a number of advantages including: