|
|
|
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) = -----------
d t
<=> fy(t) = e-G(τ-t) × -G (-1)
<=> fy(t) = G e-G(τ-t) (with t ∈ [0, τ)) ...... (10) ***
|
|
|
fy(t) = e-Gτ × &delta(t) + G e-G(τ-t) (with t ∈ [0, τ)) ...... (11)
|
The function &delta(t) is defined as:
&delta(t) = 1 if t = 0
&delta(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
GT × e-aGT
<=> S = -------------------
GT(1 + 2a) + e-aGT
|