In rdt2.1, what is the 0 and 1 states in ACK/NAK
- User
In rdt2.1, what is the 0 and 1 states in ACK/NAK
- Assistant
In rdt 2.1 the names of the sender/receiver states contain a 0 or a 1 because the protocol uses an “alternating‑bit” sequence number (only two values: 0 and 1).
Those two numbers are carried in every data packet, ACK, and NAK, and they let each side know which packet a control message refers to and whether a newly arrived packet is the next one expected or a duplicate.Sender side
• Wait for ACK/NAK 0
– The sender has just transmitted a packet whose sequence number field = 0.
– It will stay here until it receives either ACK 0 (success) or NAK 0 (corrupt).
• Wait for ACK/NAK 1 – Same idea, but for the packet whose sequence number = 1.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.