0
0
Computer Networksknowledge~20 mins

Flow control (stop-and-wait, sliding window) in Computer Networks - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Flow Control Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Stop-and-Wait Flow Control

In a stop-and-wait flow control protocol, what happens immediately after the sender transmits a data frame?

AThe sender sends multiple frames at once and waits for acknowledgments.
BThe sender immediately sends the next frame without waiting.
CThe sender waits for an acknowledgment before sending the next frame.
DThe sender closes the connection after sending one frame.
Attempts:
2 left
💡 Hint

Think about how the sender ensures the receiver got the data before continuing.

📋 Factual
intermediate
2:00remaining
Sliding Window Protocol Window Size

What is the main advantage of using a sliding window protocol with a window size greater than one?

AIt allows multiple frames to be sent before waiting for acknowledgments, increasing throughput.
BIt reduces the number of frames sent to one per connection.
CIt guarantees zero packet loss in the network.
DIt requires the sender to wait for each acknowledgment before sending any frame.
Attempts:
2 left
💡 Hint

Consider how sending multiple frames without waiting affects data flow.

🔍 Analysis
advanced
2:00remaining
Effect of Window Size on Network Utilization

Given a network with a high round-trip time (RTT), which sliding window size will maximize utilization without causing buffer overflow at the receiver?

AA window size larger than the receiver's buffer size.
BA window size equal to the bandwidth-delay product of the network.
CA window size of 1, to avoid any congestion.
DA window size of zero, to stop all transmissions.
Attempts:
2 left
💡 Hint

Think about how the bandwidth-delay product relates to data in transit.

Comparison
advanced
2:00remaining
Comparing Stop-and-Wait and Sliding Window Protocols

Which statement correctly compares stop-and-wait and sliding window flow control protocols?

AStop-and-wait sends one frame at a time and waits for acknowledgment; sliding window sends multiple frames before waiting.
BStop-and-wait uses a window size greater than one; sliding window uses a window size of one.
CBoth protocols send multiple frames without waiting for acknowledgments.
DSliding window sends one frame at a time; stop-and-wait sends multiple frames before waiting.
Attempts:
2 left
💡 Hint

Focus on how many frames each protocol sends before waiting.

Reasoning
expert
2:00remaining
Impact of Lost Acknowledgments in Sliding Window

In a sliding window protocol, if an acknowledgment for a frame is lost but the frame was received correctly, what is the most likely outcome?

AThe sender will ignore the lost acknowledgment and continue sending new frames.
BThe sender will stop sending any further frames permanently.
CThe receiver will discard all future frames until the acknowledgment is received.
DThe sender will retransmit the frame, causing a duplicate at the receiver.
Attempts:
2 left
💡 Hint

Consider how the sender detects lost acknowledgments and what it does next.