Documentos de Académico
Documentos de Profesional
Documentos de Cultura
The Problem
-
data in data out
→ →
Tx - Rx
-
I
-
N+1
ACK
N+1
idle RQ
Tx waits after each I(N) until it receives ACK(N) or NAK(N) or times out
also called stop-and-wait or synchronous
continuous RQ
Tx sends continuous stream of I-frames
can send I(N+1) before receiving ACK(N)
also called asynchronous
5
I
Tx N
⇒ time
Rx
R=N
6
I
Tx N
⇒ time
N
I
Rx N
R=N =N+1
7
I
Tx N
⇒ time
N
I ACK
Rx N N
R=N =N+1
8
I ACK
Tx N N
⇒ time
N
I ACK
Rx N N
R=N =N+1
9
I ACK I
Tx N N N+1
⇒ time
N
I ACK
Rx N N
R=N =N+1
10
I ACK I ACK I
Tx N N N+1 N+1 N+2
⇒ time
N N N
I ACK I ACK I ACK
Rx N N N+1 N+1 N+2 N+2
Rx
12
TR -
I ACK I ACK I
Tx N N N+1 N+1 N+2
⇒ time
N N N
I ACK I ACK I ACK
Rx N N N+1 N+1 N+2 N+2
- --
--
TP TI TD TA TP
TR = TI + 2TP + TD + TA
TI
ρs =
TI + 2TP + TD + TA
13
TI
ρs =
TI + 2TP + TD + TA
Increase ρs ?
Three factors cause the raw bit-rate of a channel to be wasted (i=no I-frame bits,
c=control bits in I-frame, a=no ACK-frame bits)
i−c
ρc =
i+a
Overall efficiency ρi = ρs ρe ρc
16
I-frames of 10000 bits; hosts separated by 500km over a 1Mbs−1 link. The
I-frames consist of 1000 bits of header and 9000 bits of data. The signal
propagation speed is 200 × 106 ms−1 , and the BER is 10−5
N N
I ACK I ACK
Rx N N N+1 N+1
I ACK I NAK I
Tx N N N+1 N+1 N+1
⇒ time
N NI N
I ACK NAK I ACK
Rx N N N+1 (error) N+1 N+1 N+1
N N N
I ACK I ACK I ACK
Rx N N N+1 N+1 N+1 N+1
Continuous RQ
I I I I I
Retransmission N+1 N+2 N+3 N+4 N+5
I I I I I I
List
N N N+1 N+2 N+3 N+4
T=N =N+1 =N+2 =N+3 =N+4 =N+5 =N+6
I I I I I I I
Tx N N+1 N+2 N+3 N+4 N+5 N+6
ACK ACK ACK ACK ACK
⇒ time N N+1 N+2 N+3 N+4
^I ^I ^I ^I ^I ^I
Rx N N+1 N+2 N+3 N+4 N+5
R=N =N+1 =N+2 =N+3 =N+4 =N+5 =N+6
21
I I
N+4 N+4
I I I I I
Retransmission N+1 N+2 N+3 N+3 N+3
I I I I I I
List
N N N+1 N+2 N+2 N+2
T=N =N+1 =N+2 =N+3 =N+4 =N+5 =N+5
I I I I I I I
Tx N N+1 N+2 N+3 N+4 N+2 N+3
ACK ACK NAK
⇒ time N N+1 N+2
^I ^I ^I ^I ^I
Rx N N+1 N+3 (ignore) N+4 (ignore) N+2
R=N =N+1 =N+2 =N+2 =N+2 =N+2 =N+3
22
^I ^I ^I ^I ^I
Rx N N+1 N+3 (ignore) N+4 (ignore) N+5 (ignore)
1
ρe ≈
1+p
protocol efficiency:
1
ρs =
r
combined efficiency:
1
ρ=
r + rp
24
Go-back-N: Efficiency
ρs = 1
send r = ⌈ TTRI ⌉ I-frames for each erroneous I-frame
1
ρe ≈
1 + pr
ρc same as idle RQ
25
Go-Back-N system uses I-frames of 10000 bits; hosts separated by 500km over a
10Mbs−1 link. Signal propagation speed is 200 × 106 ms−1 .
4. What would have been the throughput if Idle RQ had been used?
27
Go-Back-N: Efficiency
1
r=1
r = 10
0.8 r = 100
r = 1000
0.6
ρe
0.4
0.2
0
0 0.02 0.04 0.06 0.08 0.1
p
28
^I ^I ^I ^I ^I
Rx N N+1 N+3 N+4 N+2
R=N =N+1 =N+2 =N+2 =N+2 =N+2 =N+5
I I
Receiver N+3 N+4
Buffer I
N+3
29
^I ^I ^I ^I ^I
Rx N N+1 N+3 N+4 N+5
R=N =N+1 =N+2 =N+2 =N+2 =N+2 =N+2
I I
Receiver N+3 N+4
Buffer I
N+3
30
protocol efficieny ρs = 1
error efficiency as idle request
1
ρe ≈
1+p
ρc same as idle RQ
31
i−c
ρc =
i+a
33
1
r=1
r = 10
0.8
0.6
ρe ρc
0.4
0.2
0
0 100 200 300 400 500
number of data bits per frame
r = 1 graph corresponds to that for Selective Repeat
34
Duplex Operation
I I ACK I ACK
Tx N N+1 M N+2 M+1
I I ACK I ACK
Rx M M+1 N M+2 N+1
⇒ time
I
^ I ACK
^ I
^
ACK
Tx M M+1 N M+2 N+1
I I ACK I ACK
Rx N N+1 M N+2 M+1
I ACK I ACK I
Tx N N N+1 N+1 N+2
⇒ time
N N N
I ACK I ACK I ACK
Rx N N N+1 N+1 N+2 N+2
I I I I I
Retransmission N+1 N+2 N+3 N+4 N+5
I I I I I I
List
N N N+1 N+2 N+3 N+4
T=N =N+1 =N+2 =N+3 =N+4 =N+5 =N+6
I I I I I I I
Tx N N+1 N+2 N+3 N+4 N+5 N+6
ACK ACK ACK ACK ACK
⇒ time N N+1 N+2 N+3 N+4
^I ^I ^I ^I ^I ^I
Rx N N+1 N+2 N+3 N+4 N+5
R=N =N+1 =N+2 =N+3 =N+4 =N+5 =N+6
^I ^I ^I ^I ^I
Rx N N+1 N+3 N+4 N+2
R=N =N+1 =N+2 =N+2 =N+2 =N+2 =N+5
I I
Receiver N+3 N+4
Buffer I
N+3
Sliding Windows