CSU07204.Lecture 8.Data Link Layer -Flow and Error Control
CSU07204.Lecture 8.Data Link Layer -Flow and Error Control
next frame.
Frame types
▪ Data: Contain information to be sent
▪ ACK: Acknowledges receipt of data
Rules:
▪ Source transmits Data frame
▪ Source waits for ACK frame before sending next Data frame
▪ Destination receives Data frame and replies with ACK frame
if ready for more
▪ Destination can stop flow of data by not sending ACK frame
Stop-And-Wait…..cont
▪ Disadvantage of Stop-and-Wait
Inefficiency: Stop-and-wait is slow. Each frame must travel all the
way to the receiver and the acknowledgement must travel all the
way back before the next frame can be sent
Sliding window
"Go-back-N" Protocols
Selective Reject
An alternative approach is to only repeat those frames received in
error. This is more complicated and is rarely implemented,
despite having the attraction of apparently greater efficiency.
Problems with selective reject include:
1. Receiver must have storage to save post-NAK frames until the
erroneous frame is received, and logic to re-insert it in the
correct sequence.
2. The sender must be able to send frames out of sequence.
3. The window size for a given size of sequence number is
somewhat less than for go-back-N.
Selective-reject, damage data frame
Lost Frames
Lost Acknowledgment
▪ Lost ACK and NAK frames are treated by selective-reject
ARQ just as they are by Go-back in ARQ.
➢ When the sending devices reaches either the capacity of
its window or the end of transmission, it sets a timer.
➢ If no acknowledgement arrives in the time allotted , the
sender retransmits all the frames that remain
unacknowledged.
➢ In case the receiver recognize any duplications, it will
discard them.