Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1Sender -> Receiver: DATA (timer starts) | AThe check failed, so the receiver asks the sender to send the data again | |
| 2Receiver -> Sender: NAK | BA failed check must get a NAK, not an ACK. An ACK would make the sender think the data arrived correctly, so the error would never be fixed. | |
| 3If no reply arrives before the timer ends, the sender assumes the data or reply was lost and resends | CThe sender transmits the data and starts a timer while it waits for a reply | |
| 4When the receiver's check passes it replies ACK, and the sender moves on to the next data | DThe sender should not resend after an ACK. An ACK means the data arrived correctly, so the sender sends the next data. Resending happens only on a NAK or a timeout. | |
| 5Receiver gets DATA, check fails -> Receiver sends ACK | EIF timer ends AND no reply THEN resend DATA | |
| 6Sender gets ACK -> Sender resends DATA until timer ends | FReceiver checks OK -> ACK -> send next DATA |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
ARQ — Sender sends data and starts a timer. Receiver checks it and replies ACK or NAK. Sender resends on a NAK or a timeout until an ACK arrives.SEND packet
START timer
WAIT for replyIF check passes THEN
SEND ACK
ELSE SEND NAKIF reply = NAK THEN
SEND packet againIF no reply BEFORE timeout THEN
RESEND packetREPEAT
SEND packet
UNTIL reply = ACK