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 | |
|---|---|---|
| 1ACK 1042 | Aif no ACK before timeout: resend(packet) | |
| 2resend(packet 7) | BThe receiver confirms that packet 1042 arrived safely, so the sender can move on | |
| 3Guaranteed delivery: the sender waits for an acknowledgement and resends the packet if none arrives in time | CA received ACK means the packet arrived safely, so it should not be resent. Resending should happen when NO ACK arrives. | |
| 4The cost of guaranteed delivery is extra delay, because the sender must wait for confirmations and resend packets | DThe sender sends packet 7 again because it was lost or damaged on the way | |
| 5if ACK received: resend(packet) | EtotalTime = sendTime + waitForACK + resendTime | |
| 6Guaranteed delivery = fastest possible transfer, no waiting | FGuaranteed delivery is not faster. Waiting for acknowledgements and resending packets adds extra delay. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
guaranteed delivery — Every packet is confirmed as received (acknowledged). Missing or damaged packets are resent so no data is lost, but waiting and resending adds extra delay.SEND packet
WAIT FOR ACK
IF ackReceived THEN SEND nextPacketIF NOT ackReceived THEN
RESEND packet
ENDIFIF timer > timeout THEN
RESEND packet
ENDIFWHILE ackReceived = FALSE
SEND packet
ENDWHILEresends = 3
extraDelay = resends * roundTrip