📝 Congestion control mechanisms open loop and closed loop (23 MCQs)
Preventing and Responding to Network Overload
Congestion occurs when the traffic offered to network resources exceeds their capacity, producing queues, delay, and packet loss. Congestion-control approaches are often classified as open-loop or closed-loop. Open-loop methods aim to prevent congestion through design and policy, while closed-loop methods monitor network conditions and react using feedback. Such services allow hosts on different physical links to communicate through intermediate network devices.
Preventive Policies Without Runtime Feedback
Open-loop congestion control attempts to avoid overload before it develops. Policies may regulate admission, retransmission behavior, window size, acknowledgement frequency, or traffic shaping. These approaches do not rely on continuous feedback about current congestion, so their effectiveness depends on suitable planning and traffic assumptions. Implementation details may vary, but addressing and forwarding principles remain consistent across participating routers.
Feedback-Based Detection and Adjustment
Closed-loop congestion control observes network conditions and uses feedback to adjust traffic. Indicators can include packet loss, queue length, delay, or explicit congestion notifications. A sender may reduce its sending rate, while a router may signal congestion or manage queues. The control cycle repeats as conditions change. The process continues until the packet reaches a directly connected destination network or final host.
TCP Responding to Congestion
A TCP sender increases its congestion window during suitable periods, then reduces its sending rate after congestion signals such as packet loss or explicit notification. The exact response depends on the TCP congestion-control algorithm. This is a closed-loop approach because the sender adjusts behavior using feedback from network delivery. The values show the practical outcome of the rule and the role of the network device.
Relationship to Flow Control and Queue Management
Congestion control protects the network from excessive offered load, whereas flow control protects a receiver from being overwhelmed. TCP uses both a congestion window and a receiver-advertised window, with the usable sending limit constrained by both. Router queue management and traffic shaping can complement endpoint congestion-control behavior. The design allows different underlying link technologies to carry the same network-layer packet.
Misconceptions About Open- and Closed-Loop Control
'Flow control and congestion control are the same' is incorrect because they protect different resources. 'Open-loop methods react to packet-loss feedback' is incorrect because they are preventive rather than feedback-driven. 'Closed-loop control always eliminates congestion' is incorrect because feedback can arrive late and capacity may remain insufficient. Accurate interpretation depends on identifying both the protocol layer and the device performing the operation.
Classifying Congestion-Control Scenarios
Classify a method as preventive or feedback-based, then identify its control signal and response. Explain how TCP congestion windows differ from receiver flow-control windows. Be able to interpret packet loss, queue growth, explicit notifications, traffic shaping, and admission control, and state the limits of each approach. Use the given prefix, protocol fields, and units consistently when working through a scenario.
Congestion Control Terminology
- Congestion - offered load exceeds capacity
- Open-loop control - prevents overload without feedback
- Closed-loop control - adjusts using network feedback
- Congestion window - limits outstanding TCP data
- Traffic shaping - regulates traffic sending rate
- Flow control - protects receiver from overload
📝 All Congestion control mechanisms open loop and closed loop MCQs
Q1. Switch S1 has ID 1001, S2 has ID 1005, S3 has ID 0999. Which switch becomes the root bridge in the spanning‑tree algorithm?
📖 Explanation: The root bridge is the switch with the smallest identifier. Among the given IDs, 0999 (S3) is the lowest, so S3 is elected as the root bridge. The algorithm discards higher IDs, ensuring a unique root for the spanning‑tree.
Q2. In spanning‑tree terminology, what does the term 'blocking port' refer to?
📖 Explanation: A blocking port is deliberately placed in a non‑forwarding state so that any frames it receives are dropped. This prevents the formation of loops in the network while still allowing the port to listen for BPDUs that might change its role later.
Q3. Given three LANs connected as follows: cost S1‑S2 = 4, S2‑S3 = 2, S1‑S3 = 7. Using Dijkstra from root S1, which LAN will use the path S1‑S2‑S3 as its shortest route?
📖 Explanation: Starting at S1, the path cost to S3 via S2 is , which is less than the direct cost of 7. Therefore the shortest‑path tree includes the route S1‑S2‑S3, making the LAN attached to S3 use that path.
Q4. How does a blocking port differ from a forwarding port in terms of network traffic and loop prevention?
📖 Explanation: A forwarding port actively forwards data frames and BPDUs, contributing to normal traffic flow. In contrast, a blocking port does not forward regular frames; it discards them to stop potential loops, thereby preserving network stability.
Q5. If a new switch S4 with ID 0950 joins the network after the spanning tree has been built, what immediate change occurs?
📖 Explanation: The spanning‑tree algorithm always selects the switch with the lowest ID as the root. Since 0950 is lower than the current root’s ID, S4 takes over as the root bridge, triggering a recomputation of the tree to reflect the new hierarchy.
Q6. Why is the hop count from a switch to its directly attached LAN defined as 1, while the reverse direction is 0?
📖 Explanation: When a frame is sent from a switch toward a LAN, the switch adds one to represent the hop to the medium. In the opposite direction, the LAN is already the destination, so no additional hop is counted, resulting in a reverse count of zero.
Q7. Compare the information carried in a Bridge Protocol Data Unit (BPDU) with that in a regular Ethernet frame.
📖 Explanation: A BPDU is a special control frame that includes fields such as root bridge ID, path cost, and port role. Regular Ethernet frames primarily contain the MAC addresses and the payload data. The distinct purpose of BPDUs is to exchange topology information for the spanning‑tree algorithm.
Q8. Which of the following best evaluates the trade‑off between classic STP and Rapid STP (RSTP) regarding convergence time after a topology change?
📖 Explanation: RSTP improves convergence by allowing ports to transition to forwarding state without waiting for multiple BPDU cycles, reducing the time needed after a change. It also lowers the number of BPDUs exchanged, making the process more efficient than classic STP.
Q9. A link between S2 and S3 fails. Prior to failure, S2‑port‑to‑S3 was a blocking port. After failure, which port role is most likely to change?
📖 Explanation: When the physical link fails, the blocked port on S2 no longer has an alternate path and must assume the role of a designated (forwarding) port to maintain connectivity, while the opposite side simply loses the link.
Q10. In a network where multiple VLANs share the same physical switch, how does the spanning‑tree algorithm ensure that frames from VLAN 10 do not cause loops in VLAN 20?
📖 Explanation: Multiple Spanning Tree (MST) allows each VLAN to have its own logical tree while sharing the same hardware. This isolation prevents frames that could create a loop in one VLAN from affecting another, preserving loop‑free operation across all VLANs.
Q11. What is the effect of assigning a higher cost to a link on the selection of the spanning‑tree ports?
📖 Explanation: Spanning‑tree selects the lowest‑cost paths from the root to each switch. By increasing a link’s cost, the algorithm prefers alternative lower‑cost links, making the high‑cost link more likely to be placed in a blocking state or excluded from the tree.
Q12. When the root bridge changes from S1 to S4, what happens to the role of the port that was previously the root port on S2?
📖 Explanation: The root port on a non‑root switch is the port that provides the lowest‑cost path to the root bridge. When the root changes, the former root port no longer leads to the root and is re‑evaluated, typically becoming a designated (forwarding) port on the new tree.
Q13. Explain how the principle of “only one path between any two LANs” in a spanning‑tree eliminates broadcast storms.
📖 Explanation: Having a single logical path means a broadcast frame can travel only once to each LAN. Any duplicate copies that would have traversed a loop are suppressed because the blocked ports stop forwarding them, thereby preventing the exponential growth characteristic of broadcast storms.
Q14. If the cost of link S1‑S2 is increased from 1 to 10, which impact is most likely on the spanning‑tree topology?
📖 Explanation: Raising the cost makes the S1‑S2 link less attractive for the lowest‑cost path. The algorithm will therefore look for an alternate route with a lower total cost, potentially changing which ports are designated or blocked to maintain the minimal‑cost tree.
Q15. Suppose two switches accidentally broadcast identical IDs during BPDU exchange. What inference can be drawn about the algorithm's behavior?
📖 Explanation: The spanning‑tree protocol includes a tie‑breaking rule that uses the MAC address when bridge IDs are identical. This ensures a deterministic selection of a single root bridge, avoiding ambiguity and preventing loops.
Q16. Synthesize the steps required to manually configure a spanning‑tree versus allowing switches to run the protocol dynamically. Which step is eliminated by dynamic operation?
📖 Explanation: When switches run the spanning‑tree protocol automatically, they exchange BPDUs to discover IDs, compute costs, elect the root bridge, and assign port roles without human intervention. Consequently, every manual step—cost assignment, root selection, and port marking—is performed by the protocol itself.
Q17. Under what condition does a previously blocked port transition to forwarding after a topology change?
📖 Explanation: A blocked port monitors incoming BPDUs. If a BPDU arrives indicating a lower‑cost path to the root than the current tree, the port re‑evaluates its role and may become a designated forwarding port to restore optimal connectivity.
Q18. Given the cost matrix: S1‑S2 = 2, S1‑S3 = 4, S2‑S4 = 1, S3‑S4 = 3. Which LAN pair will use the path S1‑S2‑S4 as its shortest route?
📖 Explanation: The total cost from S1 to S4 via S2 is , which is lower than the direct cost of 4 via S3. Therefore the shortest‑path tree connects S1 to S4 through S2, making the LANs on S1 and S4 use that route.
Q19. How does the spanning‑tree mechanism contribute to congestion control in a LAN environment?
📖 Explanation: Spanning‑tree removes redundant paths, ensuring that only a single logical route exists between any two points. This reduces the chance of duplicate frames and excessive traffic, which indirectly helps keep congestion levels manageable, especially under heavy broadcast or multicast loads.
Q20. What term describes the role of a port that participates in forwarding frames in the spanning‑tree algorithm?
📖 Explanation: A designated port is the forwarding port for a given LAN segment. It is responsible for transmitting frames toward the rest of the network while other ports on the same segment may be placed in a blocking state to avoid loops.
Q21. Compare the effectiveness of spanning‑tree versus link‑layer flow control (e.g., IEEE 802.3x) in preventing congestion.
📖 Explanation: Spanning‑tree’s purpose is to eliminate loops; it does not address buffer overrun or queuing issues. In contrast, link‑layer flow control can temporarily halt transmission from a congested sender, directly mitigating congestion at the physical layer.
Q22. If the hop count from a switch to its attached LAN is defined as 1, what does a hop count of 0 in the reverse direction indicate about frame processing?
📖 Explanation: A hop count of 0 when moving from the LAN back to the switch signifies that the frame has arrived at its final destination; no additional traversal is required, so the count remains zero.
Q23. Design a network of five switches (S1‑S5) with link costs such that the total cost of the spanning‑tree is minimized while still providing a backup path for each LAN. Which of the following cost assignments best meets the criteria?
📖 Explanation: Assigning low costs to the four sequential links creates a low‑cost primary tree, while the high‑cost link S5‑S1 provides a backup path without significantly raising the total cost of the primary spanning‑tree. This balances minimal cost with redundancy.