Datalink Layer Flow and Error Control Flashcards
What is the problem with an error detection and correction approach?
Adds too much overhead.
What alternative is there to detection and correction? What is this called.
Send frames, find out if there is error, resend if not.
ARQ - Automatic Repeat reQuest Schemes
How are errors detected in ARQ?
Using CRC.
What is done in ARQ is CRC is (a) ok (b) not ok.
(a) Send an ACK to transmitter
(b) Send a NAK to transmitter
What happens if we miss a frame in ARQ?
Timer kicks in.
How long does it take to receive an ACK?
RTT
What is a? What is the formula for a?
The size of the link
a = RTT / transmission time
What is flow control?
Specifies how much data the Sender can transmit before receiving permission to continue from Receiver.
What is error control?
Allows the receiver to tell the sender about frames damaged or lost during transmission, and coordinates the re-transmission of those frames by the Sender.
T or F. After ARQ in datalink layer frames are passed to Network layer in order.
True.
Explain stop and wait flow control.
Sender waits for ACK back before sending next data.
Explain sliding window flow control.
Sender can transmit several frames continuously before needing an ACK. Each ACK’s number is the number of the next frame expected at the receiver and states that all previous were received correctly.
What is the length of the window in sliding window flow control?
Number of frames that can be transmitted without receiving an ACK.
Explain Go-Back-N ARQ.
N outstanding frames at most on link. When data is lost, we discard data above its sequence number and re-transmit from the first loss. When ACK is lost we have to transmit all data until last ACK and then we discard copies.
T or F. In Go-Back-N scheme. ARQ only accepts frames in the correct order.
True.
What rule must be applied in a Go-Back-N scheme to avoid sequence number starvation?
a < N
When is selective repeat better than go-back-N?
When a is large and there is likely to be an outstanding frame in error.
How is selective repeat worse?
More complicated
Frames out of order.
What happens in Go-Back-N as r goes toward 0?
Efficiency goes toward 1.
T or F. Selective repeat is more efficient than Go-Back-N.
True.
T or F. Under best conditions, Go-Back-N and Selective repeat are twice as efficient as Stop and Wait.
True.
What does HDLC stand for?
High Level Data Link Control Protocol
Explain HDLC.
3 types of frames.
I-Frame (User data from upper layer)
S-Frame (Supervisory frame transport control. E.g. ACK)
U-Frame (Unnumbered frame reserved for system management)
T or F. In back-to-back frame transmissions, the end flag of one frame can be used as the start flag of the next frame.
True.
How big is window size in HDLC?
2^N(S) - 1
or
2^N(R) - 1
What does FCS stand for?
Frame Check Sequence
What is N(S)? What is N(R)?
Sequence number of frame sent.
Sequence number of next frame expected.
What does (a) an I frame (b) an S frame and (c) a U frame contain?
(a) N(s) and N(R)
(b) CRC and N(R)
(c) Two CRC’s