CH 07 - Dcc10e
CH 07 - Dcc10e
Data Communication
and Networking
CHAPTER 7
to arrive at
the other side
Damaged frames
- frame arrives
but some of
the bits are in
error
Automatic Repeat Request
(ARQ)
Collective name
for error control
mechanisms
Effect of ARQ is to
turn an unreliable
data link into a
reliable one
Stop and Wait ARQ
Go-Back-N ARQ
Most commonly used error control
Based on sliding-window
Use window size to control number of outstanding
frames
While no errors occur, the destination will
acknowledge incoming frames as usual
RR=receive ready, or piggybacked acknowledgment
If the destination station detects an error in a
frame, it may send a negative acknowledgment
REJ=reject
Destination will discard that frame and all future
frames until the frame in error is received correctly
Transmitter must go back and retransmit that frame
and all subsequent frames
Selective-Reject (ARQ)
Also called selective retransmission
Only rejected frames are retransmitted
Subsequent frames are accepted by the receiver
and buffered
Minimizes retransmission
Receiver must maintain large enough buffer
More complex logic in transmitter
Less widely used
Useful for satellite links with long propagation
delays
High Level Data Link Control
(HDLC)
HDLC Data Transfer Modes
Address Field
Identifies secondary station that transmitted or
will receive frame
Usually 8 bits long
May be extended to multiples of 7 bits
Leftmost bit indicates if is the last octet (1) or not (0)
Address 11111111 allows a primary to broadcast
a frame for reception by all secondaries
HDLC defines three types of frames, each with a different control field
format
Information frames (I-frames)
Carry the data to be transmitted for the user
Flow and error control data, using the ARQ mechanism, are piggybacked
on an information frame
Supervisory frames (S-frames)
• Provide the ARQ mechanism when piggybacking is not used
Unnumbered frames (U-frames)
• Provide supplemental link control functions
Control Field
Use of poll/final (P/F) bit depends on context
In command frames P bit is set to 1 to solicit
(poll) a response from the peer HDLC entity
In response frames F bit is set to 1 to indicate
the response frame transmitted as a result of a
soliciting command
The basic control field for S- and I-frames uses
3 bit sequence numbers
An extended control field can be used that employs
7-bit sequence numbers
U-frames always contain an 8-bit control field
Information and Frame Check
Sequence (FCS) Fields
Table 7.1
HDLC
Commands
and
Responses