|
|
|
Notes:
|
|
Observations:
|
|
|
U
Snon-persistent CSMA = ------ ...... (1)
B + I
|
All we need to do now is to find U, B, and I :-)
|
Notes:
|
Ҏ[ I ≤ x ] = 1 - Ҏ[ I > x ]
= 1 - Ҏ[ no packet arrives in x sec ]
(gx)0 Ҏ[ I ≤ x ] = 1 - ---- e-gx 0! <=> Ҏ[ I ≤ x ] = 1 - e-gx ...... (2) |
d Ҏ[ I ≤ x ]
fI(x) = ---------------
d x
d (1 - e-gx)
<==> fI(x) = --------------
d x
<==> fI(x) = g e-gx ...... (3)
|
I = 0∫∞ x fI(x) dx (= the definition of expected value)
<=> I = 0∫∞ x g e-gx dx
1 | x = ∞
<=> I = -x e-gx - --- e-gx |
g | x = 0
1
<=> I = ( 0 - 0 ) - ( 0 - --- )
g
1
<=> I = --- ..... (4)
g
|
One down, two more to go....
|
|
|
Notes:
|
|
Notes to the figure above:
Ҏ[ transmission successful ] = Ҏ[ 0 arrivals within "vulnerable period" ]
= Ҏ[ 0 arrivals within τ sec ]
(gτ)0 Ҏ[ transmission successful ] = ----- e-gτ 0! <=> Ҏ[ transmission successful ] = e-gτ ..... (5) |
U = T × Ҏ[ transmission successful ] + 0 × (1 - Ҏ[ transmission successful ])
= T × e-gτ + 0 × (1 - e-gτ)
|
Two down, one more to go....
|
|
Notes:
|
From the discussion above:
B = T + τ + y ...... (7)
where:
T = length of a packet transmission (constant)
τ = (max) end-to-end delay (constant)
y = time lag of the last transmission (random)
|
In order to compute the expected value E[y] (y), we need to find the pdf (probab. distribution function) of y first.
Since the propagation delay is at most τ, the lag time of any transmission is at most τ
(Because after τ sec, a node that wants to transmit will detect that the channel is busy and will refrain from transmitting)
|
Therefore:
Ҏ[ y ≤ t ] = Ҏ[ 0 arrivals in (τ - t) sec ]
Therefore: (g(τ-t))0 Ҏ[ y ≤ t ] = ----------- e-g(τ-t) 0! <=> Ҏ[ y ≤ t ] = e-g(τ-t) (with t ∈ [0, τ)) ...... (9) |
d Ҏ[ y ≤ t ]
fy(t) = --------------
d t
d e-g(τ-t)
<=> fy(t) = ----------- (Use "chain rule")
d t
<=> fy(t) = e-g(τ-t) × (-g) × (-1)
<=> fy(t) = g e-g(τ-t) (with t ∈ [0, τ)) ...... (10) ***
|
|
|
fy(t) = e-gτ × δ(t) + g e-g(τ-t) (with t ∈ [0, τ)) ...... (11)
|
The function δ(t) is defined as:
δ(t) = 1 if t = 0
δ(t) = 0 otherwise
|
E[y] = -∞∫∞ t × fy(t) dt
= 0∫τ t × fy(t) dt
|
B = T + τ + y ...... (8)
|
1 - e-gτ
B = T + τ + ( τ - --------- )
g
1 - e-gτ
= T + 2τ - --------- ...... (13)
g
|
U
Snon-persistent CSMA = ------ ...... (1)
B + I
|
1
I = --- ...... (4)
g
U = T × e-gτ ...... (6)
1 - e-gτ
B = T + 2τ - --------- ...... (13)
g
|
U
S = -------
B + I
T × e-gτ
<=> S = ----------------------------- (× g/g)
T + 2τ - (1 - e-gτ)/g + 1/g
g T × e-gτ
<=> S = ----------------------------- (-1 + 1 = 0)
g(T + 2τ) - (1 - e-gτ) + 1
g T × e-gτ
<=> S = ------------------ (sub: a = τ/T, or τ = aT)
g(T + 2τ) + e-gτ
g T × e-gaT
<=> S = ------------------- (move gT out)
g(T + 2aT) + e-gaT
|
|
Define:
|
We can write the throughput formula (14) a bit nicer as:
G × e-aG
S = ------------------- ........ (15)
G(1 + 2a) + e-aG
|
|