IEEE 802.1Q is a standard for Virtual LANs (VLANs) and is a part of the IEEE 802.1 group of networking protocols. It allows for the creation of multiple virtual LANs on a single physical network infrastructure, enabling network segmentation and improved traffic management. IEEE 802.1Q, also known as Dot1Q.
IEEE 802.1Q (Dot1Q) Overview
Purpose
- Provides a method for adding VLAN identification information to Ethernet frames.
- Facilitates the creation of logical networks within a physical network, allowing better traffic segregation, improved security, and simplified network management.
Key Components
- Tagged Frames: Regular Ethernet frames are augmented with additional information known as VLAN tags.
- VLAN Identifier (VLAN ID): A numeric value assigned to each VLAN, used to differentiate between different VLANs.
- VLAN Trunking: Allows switches to carry traffic for multiple VLANs over a single physical link.

- Destination Address and Source Address: MAC addresses of the destination and source devices, respectively.
- VLAN Tag: Four bytes added between the source MAC address and the Ethernet payload.
- Tag Protocol ID (TPID): 16-bit field identifying the frame as an IEEE 802.1Q-tagged frame (usually set to 0x8100).
- VLAN Identifier (VID): A 12-bit field specifying the VLAN to which the frame belongs. Allows up to 4096 VLANs.
- Ethernet Payload: The actual data being transmitted.
Operation
- Frame Tagging: Before transmission, switches tag Ethernet frames with appropriate VLAN IDs.
- VLAN Membership: Each port on a switch can be configured to belong to one or more VLANs.
- VLAN Trunking: Switches use trunk links to carry traffic for multiple VLANs between them.
- VLAN Filtering: Switches filter incoming frames based on their VLAN IDs, forwarding them only to ports assigned to the corresponding VLANs.
- VLAN Tag Removal: Before forwarding frames to end devices, switches remove the VLAN tags.
Short Summary
802.1Q, also known as Dot1Q, is a standard for tagging frames on a network. It is used in VLANs to identify which VLAN a frame belongs to as it travels over a trunk link between switches.
- Purpose: Dot1Q tagging allows multiple VLANs to be carried over a single trunk link, facilitating efficient use of network resources.
- Implementation: Each frame is tagged with a VLAN identifier (VLAN ID) inserted into the Ethernet frame header, indicating the VLAN to which it belongs.
- Benefits: Dot1Q tagging enables better traffic segmentation, reduces the number of physical links needed for VLANs, and enhances network security by isolating traffic.
- Compatibility: It is a widely supported standard and is used in most modern Ethernet networks that implement VLANs.
- Configuration: Administrators configure trunk ports on switches to use Dot1Q tagging to ensure proper VLAN identification and communication between switches.
Useful Links
https://sanchitgurukul.com/basic-networking
https://sanchitgurukul.com/network-security
