Flow Control Flashcards
Some packets might be _____ or _______ during transmission
Lost, Corrupted
Combination of two mechanisms for reliable transmission
Acknowledgements and timeouts
Acknowledgement(ACK)
A small control frame that a protocol sends back to its peer saying that it has received an earlier frame
Timeout
The action of awaiting for a reasonable amount of time before retransmitting original frame(in case no ACK is received)
Two primary methods of flow control
Stop and Wait
Sliding window
Stop and wait ARQ consists of three parts
Stop and Wait
Timeout Timer
Sequence number
Main shortcoming of the stop and wait algorithm
It allows the sender to have only one outstanding frame on the link at a time
The sender should wait till it gets an ACK of previous frame before it sends the next frame
As a result, it wastes a substantial amount of network bandwidth
In sliding window flow control name three variables that sender maintains.
Sender Window Size[SWS] - Upper bound on the number of unacknowledged frames that the sender hopes to transmit
LAR - sequence number of the last acknowledgment received.
LFS- Sequence number of the last frame sent
In sliding window flow control name three variables that receiver maintains.
Receiver Window Size[SWS] - Upper bound on the number of out-of-order frames that the receiver is willing to accept.
LAF - sequence number of the largest acceptable frame
LFR - Sequence number of the last frame received.
When an acknowledgment arrives, the sender moves __________ to the right,
thereby allowing the sender to transmit another frame
LAR
Sender maintains the following invariant(Inequality)
LFS−LAR ≤ SWS