Ethernet frames have no hop limit, so a layer two loop lets broadcasts circulate and multiply until links and switch CPUs are saturated, which is a broadcast storm, while MAC tables flap. Spanning tree prevents this by electing a root bridge and blocking redundant paths, keeping them ready to take over if an active link fails. Rapid versions converge in seconds. Edge protections such as BPDU guard stop loops caused by user devices.
Why interviewers ask this
Redundant switch links are normal, so loops are always a risk, and a layer two loop can take down a whole site in seconds. The interviewer wants to know that you understand why loops are so destructive, how spanning tree elects a root and decides which ports to block, and how you protect the edge. Setting the root bridge deliberately rather than leaving it to chance is a detail experienced engineers always mention.
How to structure your answer
- Explain why loops are catastrophic at layer two.
- Describe root bridge election and port roles.
- Mention rapid spanning tree and convergence.
- Cover edge protection and setting the root deliberately.
Example answer
At layer two there is no time-to-live field, so if there are two paths between switches and nothing blocks one, a single broadcast frame loops forever and gets copied at every switch. Within seconds, links saturate, switch CPUs spike, MAC tables flap and the whole site can go down. Spanning tree prevents that by building a loop-free tree. Switches exchange bridge protocol data units and elect a root bridge, the one with the lowest bridge ID, which is a priority plus a MAC address. Every other switch picks its best path to the root, and redundant ports go into a blocking or discarding state, ready to take over if an active link fails. The rapid version converges in seconds rather than the best part of a minute. I always set the root deliberately on the core switches by lowering their priority, otherwise an old switch with a low MAC address might win. On access ports I enable PortFast with BPDU guard, so a user who creates a loop with a small switch has their port shut down instead of taking out the floor.
Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.
See how it worksFollow-up questions to expect
- How is the root bridge elected, and how would you influence it?
- What does BPDU guard do, and where would you enable it?
- How would you find the source of a broadcast storm?
Related network engineer questions
Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.
Predict my questions