Skip to main content

VLAN (Virtual Local Area Network)


A VLAN (Virtual Local Area Network) is one of the most important Layer 2 (Data Link layer) networking concepts. It allows a single physical switch (or a VLAN-capable Wi-Fi router) to be divided into multiple logical networks, improving security, reducing broadcast traffic, and simplifying network management.


What is a VLAN?

A VLAN (Virtual Local Area Network) is a logical partition of a physical switch into multiple separate broadcast domains.

Imagine a company has one 48-port switch.

Without VLAN

            Switch

+---------------------------+

 PC1   PC2   PC3   PC4
 PC5   PC6   PC7   PC8

+---------------------------+

Everyone belongs to the same network.
Everyone receives broadcasts.

Problem Without VLAN

The company has three departments:

  • HR
  • Finance
  • IT

Without VLANs, all departments are in the same Layer 2 network.

          Same LAN

 HR ----\
 Finance ----> Same Broadcast Domain
 IT ----/
Every broadcast frame reaches every computer. This reduces performance and creates security concerns.

VLAN Solution

Create separate VLANs.

Switch

Ports 1-8     → VLAN 10 (HR)

Ports 9-16    → VLAN 20 (Finance)

Ports 17-24   → VLAN 30 (IT)

The physical switch now behaves like three independent switches.

           Physical Switch

+--------------------------------+

VLAN 10
 PC1
 PC2
 PC3

------------------------

VLAN 20
 PC4
 PC5

------------------------

VLAN 30
 PC6
 PC7

+--------------------------------+

Communication Example

PC1

MAC = AA-AA

Port 1

VLAN 10


PC2

MAC = BB-BB

Port 2

VLAN 10


PC3

MAC = CC-CC

Port 10

VLAN 20

PC1 sends a frame to PC2

Destination MAC = BB-BB
Switch checks:
Is BB-BB in VLAN 10?

YES

Forward Frame

PC1 sends a frame to PC3

Destination MAC = CC-CC
Switch checks:
CC-CC belongs to VLAN 20

Different VLAN

DROP
Devices in different VLANs cannot communicate directly.

Broadcast Domain

Without VLAN

Broadcast

↓

Everyone receives it

PC1
PC2
PC3
PC4
PC5
PC6

With VLAN

Broadcast from VLAN10

↓

Only VLAN10 receives it

PC1
PC2
PC3

NOT

PC4
PC5
PC6
Each VLAN is its own broadcast domain.


Inter-VLAN Communication

Question: Can VLAN 10 communicate with VLAN 20?

Answer: No.

VLAN 10

↓

Router / Layer 3 Switch

↓

VLAN 20

This process is called Inter-VLAN Routing.


Advantages of VLAN

  • Improves Security
  • Reduces Broadcast Traffic
  • Improves Network Performance
  • Simplifies Network Management
  • Allows logical separation without changing physical cabling

Frequently asked questions (FAQs)

Q1. Why do we use VLAN?

VLANs divide a physical switch into multiple logical Layer 2 networks. This improves security, reduces broadcast traffic, and simplifies network management.

Q2. Can devices in different VLANs communicate?

No. Devices in different VLANs are in different broadcast domains. Communication requires a Router or Layer 3 Switch.

Q3. Difference Between Access Port and Trunk Port

Access Port Trunk Port
Single VLAN Multiple VLANs
Connects PCs, printers Connects Switches or Routers
Frames are untagged toward end devices Frames use IEEE 802.1Q tagging (except native VLAN)

Q4. What is the Default VLAN?

On Cisco switches, VLAN 1 is the default VLAN. All switch ports belong to VLAN 1 until configured otherwise.

Q5. What is the biggest advantage of VLAN?

The biggest advantage is the creation of separate broadcast domains on the same physical switch, improving security, reducing unnecessary traffic, and increasing overall network efficiency.


Contact Us

Name

Email *

Message *

Popular Posts

GMSK BER vs SNR (with Simulation)

  GMSK Performance: Why the BER vs. SNR Curve Matters If you’ve ever wondered why GMSK (Gaussian Minimum Shift Keying) became the backbone of the global GSM revolution, the answer lies in its unique balance of spectral efficiency and power performance. But there is no free lunch in engineering. To get that sleek, narrow spectrum, you have to pay a price in Bit Error Rate (BER) . In this guide, we break down the theoretical BER vs. SNR performance of GMSK, the "magic" of the BT product, and how to optimize your link budget for real-world conditions. What is GMSK and Why Should You Care? GMSK is a derivative of MSK (Minimum Shift Keying) that uses a Gaussian pre-modulation filter. This filter "smooths" the phase transitions, significantly reducing sideband power. The result? A constant envelope signal that allows you to use high-efficiency Class-C amplifiers without distorting the signal. This is the secr...

UGC NET Electronic Science Previous Year Question Papers with Solutions

Download Papers and Solutions Exam Pattern Preparation Tips FAQs More Home / Engineering & Other Exams / UGC NET 2026 PYQ 📊 Exam Highlights: Electronic Science (88) Feature Details Junior Research Fellowship (JRF) ₹37,000 + HRA per month Eligibility M.Sc/M.Tech in Electronics (55%) Validity of Certificate JRF (3 Years) | Lectureship (Lifetime) 📥 Download UGC NET Electronics PDFs Complete collection of previous year question papers, answer keys and explanations for Subject Code 88. Start Downloading 📂 View All Question Papers June 2026 - Question Paper Download PDF June 202...

OFDM Symbols and Subcarriers Explained

This article explains how OFDM (Orthogonal Frequency Division Multiplexing) symbols and subcarriers work. It covers modulation, mapping symbols to subcarriers, subcarrier frequency spacing, IFFT synthesis, cyclic prefix, and transmission. Step 1: Modulation First, modulate the input bitstream. For example, with 16-QAM , each group of 4 bits maps to one QAM symbol. Suppose we generate a sequence of QAM symbols: s0, s1, s2, s3, s4, s5, …, s63 Step 2: Mapping Symbols to Subcarriers Assume N sub = 8 subcarriers. Each OFDM symbol in the frequency domain contains 8 QAM symbols (one per subcarrier): Mapping (example) OFDM symbol 1 → s0, s1, s2, s3, s4, s5, s6, s7 OFDM symbol 2 → s8, s9, s10, s11, s12, s13, s14, s15 … OFDM sym...

What is a Supernode?

  Circuit Analysis What Is a Supernode? A supernode is formed when an ideal voltage source connects two non-reference nodes. It allows us to apply Kirchhoff's Current Law (KCL) to the combined circuit boundary. 1. Understanding a Supernode In nodal analysis, a voltage source between two unknown-voltage nodes makes the current through that source difficult to express directly using Ohm's law. We combine the two nodes and the voltage source into one extended region called a supernode. Key idea Apply KCL around the outer boundary of the supernode, then use the voltage source to write an additional voltage equation. 2. Supernode Circuit Diagram The voltage source connects nodes V L an...

The cutoff frequency (in GHz) for the dominant TE10 mode of an air-filled rectangular waveguide of ...

  Q. The cutoff frequency (in GHz) for the dominant TE10 mode of an air-filled rectangular waveguide of inner dimension 0.28 inch×0.14 inch is __. (rounded off to two decimal places). Given Information Waveguide dimensions = 0.28 inch × 0.14 inch Wider dimension (a) = 0.28 inch Smaller dimension (b) = 0.14 inch Medium = Air Dominant mode = TE 10 Speed of light (c) = 3 × 10 8 m/s Step 1: Cutoff Frequency Formula The cutoff frequency of a rectangular waveguide is: f c = (c / 2) √[(m/a) 2 + (n/b) 2 ] For the dominant TE 10 mode: m = 1, n = 0 f c = c / 2a Step 2: Convert Inch into Meter We know that 1 inch = 0.0254 meter. a = 0.28 × 0.0254 a = 0.007112 m ...

A binary ripple counter is designed to count (0)₁₀ to (64)₁₀. Which of the following is/are the number of flip-flops required ...

  Q. A binary ripple counter is designed to count  (0)₁₀ to (64)₁₀ . Which of the following is/are the number of flip-flops required to design the counter?   (A) 6 (B) 7 (C) 4 (D) 5 Solution A binary ripple counter must count from (0)₁₀ to (64)₁₀ , including both endpoints. Step 1: Calculate the total number of states Since both 0 and 64 are included, add 1 to the difference: N = Last value − First value + 1 N = 64 − 0 + 1 = 65 states The counter visits every integer from 0 through 64: 0, 1, 2, 3, ..., 63, 64 There are 65 distinct states in total. Step 2: Calculate the number of flip-flops Each flip-flop stores one bit. With n flip-flops, the counter can represent 2ⁿ distinct states. 2⁶ = 64 states (not enough) 2⁷ = 128 states (eno...

SRAM, DRAM, EPROM, MRAM, and DDRAM Explained

Computer Fundamentals Types of Memory and Their Technologies Understand the fundamental relationship between different types of computer memory and the technologies used to implement them. Fundamental Matching Memory type, technology, and key characteristics Memory Type Technology Key Characteristic Cache Memory SRAM Very fast; stores frequently accessed data Main Memory DRAM Holds programs and data currently in use Au...