Data and Computer Communications: Tenth Edition by William Stallings
Data and Computer Communications: Tenth Edition by William Stallings
Communications
Tenth Edition
by William Stallings
Frame 1 Frame 1
Frame 1 Frame 1
Frame 2 Frame 2
Frame 2
Frame 3 Frame 3
Time
Frame 3 Frame 3
Frame 4 Frame 4
Frame 4 Garbled
frame
Frame 5 Frame 5
Frame 5 Frame 5
Frame
t0 + a T R t0 + 1 T R
t0 + 1 T R t0 + a T R
t0 + 1 + a T R t0 + 1 + a T R
ACK
t0 + 1 + 2a T R t0 + 1 + 2a T R
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
Window of frames
Frames already received that may be accepted
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 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
A B
Frame trans-
mission time
Propagation time
ACK trans-
mission time
Time
Time-out interval
Frame 0 lost;
A retransmits
Time-out interval
ACK0 lost;
A retransmits
B discards
duplicate frame
discarded by buffered by
receiver receiver
4 retransmitted
4, 5, and 6
retransmitted
Timeout
Timeout
8 8 8 or 16 variable 16 or 32 8
bits extendable
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8n
0 0 1
1 2 3 4 5 6 7 8
I: Information 0 N(S) P/F N(R)
N(S) = Send sequence number
N(R) = Receive sequence number
S: Supervisory 1 0 S P/F N(R) S = Supervisory function bits
M = Unnumbered function bits
P/F = Poll/final bit
U: Unnumbered 1 1 M P/F M
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Information 0 N(S) P/F N(R)
111111111111011111101111110
After bit-stuffing
1111101111101101111101011111010
8 8 8 or 16 variable 16 or 32 8
bits extendable
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 8n
0 0 1
1 2 3 4 5 6 7 8
I: Information 0 N(S) P/F N(R)
N(S) = Send sequence number
N(R) = Receive sequence number
S: Supervisory 1 0 S P/F N(R) S = Supervisory function bits
M = Unnumbered function bits
P/F = Poll/final bit
U: Unnumbered 1 1 M P/F M
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Information 0 N(S) P/F N(R)
HDLC defines three types of frames, each with a different control field format
Information frames (I-frames)
Time-
out
(a) Link setup and disconnect (b) Two-way data exchange (c) Busy condition
A B A B
Time-
out