0
0
Computer Networksknowledge~20 mins

Reliable data transfer mechanisms in Computer Networks - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Reliable Transfer Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
How does the Stop-and-Wait protocol ensure reliable data transfer?

Which mechanism in the Stop-and-Wait protocol guarantees that data is reliably received by the receiver?

AThe sender uses a checksum to detect errors but does not wait for acknowledgments.
BThe sender sends all packets continuously without waiting for any response.
CThe sender waits for an acknowledgment before sending the next packet.
DThe receiver sends data packets back to the sender to confirm receipt.
Attempts:
2 left
💡 Hint

Think about how the sender knows the receiver got the data correctly.

📋 Factual
intermediate
2:00remaining
What is the main disadvantage of the Go-Back-N protocol?

Which of the following best describes the main drawback of the Go-Back-N reliable data transfer protocol?

AIt retransmits all packets after a lost or corrupted packet, even if some were received correctly.
BIt requires the receiver to buffer out-of-order packets.
CIt sends only one packet at a time, causing low throughput.
DIt does not use sequence numbers, causing confusion in packet order.
Attempts:
2 left
💡 Hint

Consider what happens when a packet is lost in the middle of a sequence.

🔍 Analysis
advanced
2:00remaining
Comparing Selective Repeat and Go-Back-N protocols

Which statement correctly compares Selective Repeat and Go-Back-N protocols in terms of efficiency and complexity?

AGo-Back-N requires the receiver to buffer out-of-order packets, making it more complex than Selective Repeat.
BGo-Back-N is more efficient and simpler because it retransmits only lost packets without buffering.
CSelective Repeat is simpler because it sends one packet at a time and waits for acknowledgment.
DSelective Repeat is more efficient but more complex because it retransmits only erroneous packets and requires buffering out-of-order packets.
Attempts:
2 left
💡 Hint

Think about how each protocol handles lost or corrupted packets and buffering.

Reasoning
advanced
2:00remaining
Why is sequence numbering important in reliable data transfer?

What is the primary reason reliable data transfer protocols use sequence numbers for packets?

ATo detect duplicate packets and ensure correct ordering of received data.
BTo encrypt the data for security during transmission.
CTo increase the speed of data transmission by skipping acknowledgments.
DTo compress the data and reduce packet size.
Attempts:
2 left
💡 Hint

Consider what happens if packets arrive out of order or are repeated.

🚀 Application
expert
2:00remaining
Calculating throughput in a Stop-and-Wait protocol

Assume a Stop-and-Wait protocol is used over a link with a bandwidth of 1 Mbps and a round-trip time (RTT) of 100 ms. Each data packet is 1000 bits. What is the approximate throughput of this protocol?

A5,000 bits per second
B10,000 bits per second
C1,000,000 bits per second
D100,000 bits per second
Attempts:
2 left
💡 Hint

Throughput = Packet size / (RTT + Transmission time). Calculate transmission time as packet size divided by bandwidth.