π Communication between switches VLAN tagging 802.1Q (10 MCQs)
Carrying Multiple VLANs Across an Ethernet Trunk
IEEE 802.1Q VLAN tagging allows Ethernet switches to carry traffic from several virtual LANs over one physical trunk link. A tag inserted into the Ethernet frame identifies the VLAN associated with that frame. Receiving switches read this information and forward the frame only to ports that belong to the identified VLAN, preserving configured logical separation across interconnected Ethernet switches.
Tag Control Information and VLAN Identification
The 802.1Q tag adds a four-byte field between the source MAC address and the original EtherType or length field. It contains a Tag Protocol Identifier and Tag Control Information, including priority bits, a drop-eligible indicator, and a 12-bit VLAN Identifier. The VID identifies the VLAN, with certain values reserved.
Tag Insertion, Switching and Removal
When a switch sends a frame across a configured trunk, it inserts an 802.1Q tag for the relevant VLAN, except where native VLAN handling uses untagged frames. The next switch reads the tag, maintains VLAN context while forwarding, and removes the tag when sending the frame through an access port to an endpoint.
Tracing a VLAN 20 Frame Between Two Switches
A computer sends an untagged frame into an access port assigned to VLAN 20. The first switch adds a VLAN 20 tag before sending the frame over its trunk. The second switch reads VID 20 and forwards the frame only toward eligible VLAN 20 ports, removing the tag on an access egress.
VLAN Trunks and Consistent Layer 2 Connectivity
802.1Q trunking extends multiple broadcast domains across interconnected switches without requiring a separate physical cable for every VLAN. It works with access-port configuration and VLAN membership to preserve logical segmentation. Trunks do not route between VLANs; a Layer 3 interface is still needed when devices in different VLANs must communicate.
Misconceptions About 802.1Q Frame Tags
'The VLAN tag replaces the destination MAC address' is incorrect because it is an additional field. 'All Ethernet frames are always tagged' is incorrect because access traffic and native VLAN handling can be untagged. '802.1Q performs inter-VLAN routing' is incorrect because it identifies Layer 2 VLAN membership rather than routing IP packets.
Interpreting 802.1Q Tags and Trunk Behaviour
Students should carefully locate the tag within the Ethernet frame, identify the 12-bit VLAN Identifier, and explain why a trunk carries several VLANs. Trace when a switch inserts or removes a tag, distinguish tagged traffic from native VLAN traffic, and state why routing is required for communication between separate VLANs.
IEEE 802.1Q Tagging and Trunk Terms
- 802.1Q - IEEE standard for VLAN tagging.
- Trunk - Link carrying several VLANs.
- TPID - Identifies an 802.1Q tag.
- TCI - Contains priority, drop eligibility and VLAN ID.
- VID - Twelve-bit VLAN identifier field.
- Untagged - Frame transmitted without a VLAN tag.
π All Communication between switches VLAN tagging 802.1Q MCQs
Q1. Which of the following is NOT one of the three criteria that a system with transparent switches must satisfy according to the 802.1d specification?
π Explanation: The 802.1d specification requires automatic learning, proper forwarding, and loop prevention. Manual configuration of the forwarding table contradicts the automatic learning requirement, making option B the statement that does NOT belong among the three criteria.
Q2. If a station never transmits any frame, what is the most likely result regarding its entry in a switchβs dynamic MAC table?
π Explanation: Dynamic learning relies on observing source MAC addresses in incoming frames. When a station never sends a frame, the switch never sees its source address, so it cannot create a mapping. Consequently, the station will have no entry in the MAC table, which matches option C.
Q3. In a network with two redundant switches forming a loop, what is the immediate effect when a broadcast frame is sent from a host?
π Explanation: Because transparent switches do not alter MAC addresses, a broadcast frame received on one side of the loop is forwarded out the other side, reβentering the first switch and repeating the process. This endless circulation creates a broadcast storm, which is described by option A.
Q4. Which statement best contrasts static MAC address tables with dynamic learning tables in switches?
π Explanation: Static tables are built by an administrator who manually enters each MACβport mapping, making them inflexible when devices change. Dynamic tables, by contrast, observe source addresses in passing frames and automatically create or update entries, providing adaptability. Option C captures this fundamental contrast.
Q5. Why is the Spanning Tree Protocol (STP) essential in a network that employs redundant transparent switches?
π Explanation: STP builds a logical tree by electing a root bridge and disabling certain ports (blocking them) so that only one active path exists between any two LAN segments. This eliminates loops while still allowing the redundant links to be reβenabled automatically if a primary link fails, matching option C.
Q6. When a switch receives a frame whose destination MAC address is unknown, what action does it take according to the learning process?
π Explanation: If the destination MAC is not found in the forwarding table, the switch cannot make a directed forwarding decision. The standard behavior is to flood the frame out of every port except the inbound one, ensuring the frame reaches its destination if reachable. This behavior is described by option C.
Q7. Assume a network has 5 stations (AβE) each connected to a single switch. Each station sends one frame to a different station before any entries exist. After these frames, how many MAC entries will the switch have?
π Explanation: During each transmission, the switch learns the source MAC address and associates it with the incoming port. Five stations each send a frame, providing five distinct source MACs. Destinations are not learned from the frameβs destination field, so only the five source addresses are stored, yielding five entries as stated in option A.
Q8. If a switch already has an entry mapping MAC address X to port 2, and later receives a frame with source MAC X arriving on port 3, what will the switch do?
π Explanation: Switches continuously refresh their MAC tables. When the same source MAC appears on a different port, the switch assumes the device has moved and updates the existing entry to reflect the new port. This dynamic updating prevents stale mappings and matches option B.
Q9. What is the primary difference between flooding a frame and forwarding it based on a learned MAC entry?
π Explanation: When a destination MAC is unknown, the switch floods the frame out every port except the inbound one, ensuring it reaches the correct destination. Once the MAC is learned, the switch forwards the frame solely through the port mapped to that address, which is precisely the distinction described in option A.
Q10. Explain why loops cause broadcast storms in a network of transparent switches that do not modify MAC addresses.
π Explanation: Transparent switches forward frames unchanged; when a broadcast frame enters a loop, each switch repeatedly forwards it out all other ports, causing the same frame to reβenter the loop multiple times. This recursive forwarding multiplies the number of copies exponentially, generating a broadcast storm as described in option A.