|
|
|
|
|
|
Note:
|
Note:
|
Note:
|
And so on !!!
Ҏ{ ii, k1 | i0, k0 } = Ҏ { s(t+1)=ii, b(t+1)=k1 | s(t)=i0, b(t)=k0 } = the transition probability from state (i0, k0) to state (i1, k1) |
bi,k = limt→∞ Ҏ{ s(t)=i, b(t)=k } = the steady state probability that the system is in state (i0, k0) |
Note:
|
Notes:
|
Therefore, the probability τ that a station transmits a packet is equal to:
|
|
Therefore: (see: click here)
p p p bi,0 = --- × bi-1,0 + --- × 1 × bi-1,0 + ... + --- × 1 × .. × 1 × bi-1,0 Wi Wi Wi p <=> bi,0 = Wi --- × bi-1,0 Wi
|
b1,0 = p × b0,0 .... (E1a) b2,0 = p × b1,0 = p2 × b0,0 .... (E1b) b3,0 = p × b2,0 = p3 × b0,0 .... (E1c) ... bm-1,0 = pm-1 × b0,0 .... (E1x) |
See:
Therefore: (see: click here)
p p p bm,0 = --- × bm-1,0 + --- × 1 × bm-1,0 + ... + --- × 1 × .. × 1 × bm-1,0 Wm Wm Wm p p p + --- × bm,0 + --- × 1 × bm,0 + ... + --- × 1 × .. × 1 × bm,0 Wm Wm Wm p p <=> bm,0 = Wm --- × bm-1,0 + Wm --- × bm,0 Wm Wm <=> bm,0 = p × bm-1,0 + p × bm,0 <=> (1 - p ) bm,0 = p × bm-1,0
|
p bm,0 = ----- × bm-1,0 1-p p = ----- × pm-1 × b0,0 1-p pm = ----- × b0,0 ....... (E3) 1-p |
Therefore: (follow the magenta arrows in figure above) (see: click here)
p p p bi,k = --- × bi-1,0 + --- × 1 × bi-1,0 + ... + --- × 1 × .. × 1 × bi-1,0 (Wi-k terms) Wi Wi Wi p <=> bi,k = (Wi - k) × --- × bi-1,0 Wi
|
See: (Follow the magenta arrows)
Therefore: (see: click here)
p p p bm,k = --- × bm-1,0 + --- × 1 × bm-1,0 + ... + --- × 1 × .. × 1 × bm-1,0 Wm Wm Wm p p p + --- × bm,0 + --- × 1 × bm,0 + ... + --- × 1 × .. × 1 × bm,0 Wm Wm Wm p p <=> bm,k = (Wm - k) --- × bm-1,0 + (Wm - k) --- × bm,0 Wm Wm
|
After a successful transmission, the terminal schedules the next packet by picking a random number from [0, W0)
Therefore: (follow the magenta arrows in figure above) (see: click here)
1-p 1-p 1-p b0,k = ----- b0,0 + ----- × 1 × b0,0 + .... + ----- × 1 × ... × 1 × b0,0 W0 W0 W0 1-p 1-p 1-p + ----- b1,0 + ----- × 1 × b1,0 + .... + ----- × 1 × ... × 1 × b1,0 W0 W0 W0 + ..... 1-p 1-p 1-p + ----- bm,0 + ----- × 1 × bm,0 + .... + ----- × 1 × ... × 1 × bm,0 W0 W0 W0
|
b1,0 = p × b0,0 .... (E1a) b2,0 = p2 × b0,0 .... (E1b) b3,0 = p3 × b0,0 .... (E1c) ... bm-1,0 = pm-1 × b0,0 .... (E1x) pm bm,0 = ----- × b0,0 ....... (E3) 1-p |
We can simplify some of these equations....
Results:
(Wi - k) bi,k = --------- × p × bi-1,0 (for i = 1, 2, ..., m-1 and k > 0) ........ (E4) Wi (Wi - k) = --------- × p × pi-1 × b0,0 Wi (Wi - k) = --------- × pi × b0,0 (for i = 1, 2, ..., m-1 and k > 0) ........ (E7) Wi
|
b1,0 = p × b0,0 .... (E1a) b2,0 = p2 × b0,0 .... (E1b) b3,0 = p3 × b0,0 .... (E1c) ... bm-1,0 = pm-1 × b0,0 .... (E1x) pm bm,0 = ----- × b0,0 ....... (E3) 1-p |
b0,0 + b0,1 + .... + b0,W0 + b1,0 + b1,1 + .... + b1,W1 + .... + bm,0 + bm,1 + .... + bm,Wm = 1 |
Note:
|
|
b1,0 = p × b0,0 .... (E1a) b2,0 = p2 × b0,0 .... (E1b) b3,0 = p3 × b0,0 .... (E1c) ... bm-1,0 = pm-1 × b0,0 .... (E1x) pm bm,0 = ----- × b0,0 ....... (E3) 1-p |
and the expression for b0,0, we find:
Note:
|
The probability of this event is:
|
|
2(1-2p) τ = ---------------------------- ...... (7) (1-2p)(W+1) + pW(1 - (2p)m) p = 1 - (1-τ)n-1 ...... (9) |
I will use Maple...
2(1-2p) 2(1-2p) τ = ------------------------------ = --------------------------- (1-2p)(16+1) + 16p(1 - (2p)10) 17(1-2p) + 16(1 - (2p)10) p = 1 - (1-τ)10-1 = 1 - (1-τ)9 |
Using Maple:
> eq1 := tau = 2*(1-2*p)/(17*(1-2*p) + 16*(1 - (2*p)^10)); 2 (1 - 2 p) eq1 := tau = --------------------- 10 33 - 34 p - 16384 p > eq2 := p = 1 - (1 - tau)^9; 9 eq2 := p = 1 - (1 - tau) > fsolve( {eq1, eq2}, {tau, p} ); {p = 0.2865008129, tau = 0.03681349985} |