You are on page 1of 4

1

COSC 3213: Computer Networks


Winter 2005
Solutions to Assignment # 4
Instructors: Amir Asif and Natalija Vlajic

Review sections 6.1, 6.2, 6.3, 6.4.1, 6.4.2 before attempting the assignment.

Question 1: A disadvantage of a broadcast network is the wasted capacity due to multiple hosts attempting
to access the channel at the same time. As a simplistic example, suppose that time is divided into discrete
slots, with each of the n hosts attempting to use the channel with probability p during each slot. What fraction
of slots are wasted due to collision?

There are 3 different types of event that may occur.

Event 1: None of the n machines transmits.
Event 2: Exactly 1 of the n machines transmits.
Event 3: More than 1 machine transmits.

Assuming that the probability of a single machine transmitting in a time slot is p, then using the Bionomial
distribution the probabilities of Events 13 are as follows.

( ) ( ) ( ) . 1 1 1 3 and 1 Events of ies Probabilit 1 3 Event of y Probabilit and
. ) 1 ( ) 1 (
1
2 Event of y Probabilit
) 1 ( ) 1 (
0
1 Event of y Probabilit
1
1 1 1
0



(
,
\
,
(
j


(
,
\
,
(
j

n n
n n
n n
p np p
p np p p
n
p p p
n

. ) 1 ( ) 1 (
1
2 Event of y Probabilit
1 1 1
(
,
\
,
(
j

n n
p np p p
n

( ) ( ) ( ) . 1 1 1 3 and 1 Events of ies Probabilit 1 3 Event of y Probabilit
1

n n
p np p

The fraction of the slots wasted due to collisions are given by the probability of Event 3.

Question 2: Let G = 0.5 [frames/slot] be the total rate at which frames are transmitted in a slotted ALOHA
system. What proportion of slots will be collision free? What proportion of slots will be collision free when
the system is operating at its maximum throughput?

Proportion of slots that will be collision free = P[0 frames arriving in the datalink layer in a slot]

Assuming Poisson process for the arrival time of the frames,

P[0 frames arriving in the datalink layer in a slot] = e
G
= e
0.5
,

which equals the fraction of slots that will be collision free for G = 0.5.

The value of G maximum throughput condition in slotted ALOHA is given by G = 1. Based on the
aforementioned analysis, we calculate the proportion of collision free slots as



2
P[0 frames arriving in the datalink layer in a slot] = e
G
= e
1
= 0.368,

which equals the fraction of slots that will be collision free for G = 1.

Question 3: A large population of ALOHA users manages to generate 50 requests/sec, including both
originals and retransmissions. Time is slotted in units of 40 msec.
(a) What are the chances of success on the first attempt?
(b) What is the probability of exactly k collisions and then a success?
(c) What is the expected number of transmission attempts needed?

Slotted ALOHA
Frame transmission time (X) is given to be 40msec.
Total load in requests/s is given to be 50 requests/s implying that

Total arrival rate G in frames/X seconds = 50 requests/s X = 50 (40 10
3
) = 2 requests/X seconds.

(a) Prob of successful tx. on the 1st attempt = P[0 frames arriving in the datalink layer in X seconds)
= e
X
(X)
k
/ k! with k = 0
= e
X
or e
G
= 0.1353

(b) Prob of successful tx. in (k + 1) attempts = P[collisions in k attempts] P[success in k+1 attempts].

Based on (a), P[collisions in k attempts] = (1 P[success in the 1
st
attempt])
k

= (1 e
G
)
k

Hence, Prob of successful tx. in (k + 1) attempts = (1 e
G
)
k
e
G
= 0.8647
k
(0.1353)

(c) Expected number of transmissions:

[ ]
( )
( )
( )
( )


]
]
]
,

0
1
0
1
0
1
0
. 1
1
1
1
ions transmiss in success of Prob ions transmiss of number Expected
k
k
G
G
G
k
k
G G
k
G
k
G
k
e k
e
e
e k e
e e k
k k


Knowing that the summation

( )
,
1
2
0
x
x
kx
k
k



the above summation reduces to

( )
( )
( )
G
G
G
G
G
e
e
e
e
e

2
) 1 ( 1
1
1
ions transmiss of number Expected ,



3
which has a value of 7.3891.

Question 4: Assume a 100Mbps CSMA-CD network over a 3 km coaxial cable. (Speed of light in coaxial
cable is 2.3 10
8
m/s). The packets have 1,000 bits, including 100 bits of overhead in header and trailer.
What is the maximum throughput of this network in information bits per second?

Based on equation (6.9) in the text, the normalized maximum throughput of the system is given by

( )
,
1 2 1
1
max
a e + +


where a = t
prop
/ X. The frame transmission time X and propagation time t
prop
are given by

X = Length of frame / transmission rate = 1000 / (100 10
6
) = 10
5
seconds
t
prop
= distance / propagation speed = 3000 / (2.3 10
8
) = 1.3043 10
5
seconds

which gives a = 1.3043.

The normalized maximum throughput of the system is, therefore, given by

( )
. 1064 . 0
3043 . 1 1 2 1
1
max

+ +

e


In terms of information bits per second, the throughput of the system is

. bps 10 5793 . 9 10
frame 1 in bits 100
bits n informatio 90
1064 . 0 bps in system of Throughput
6 8
(
,
\
,
(
j



Question 5: Consider a 100 Mbps 100BaseT Ethernet. In order to have an efficiency of 0.5, what should be
the maximum distance between two nodes in the network.
Assume a frame length of 64 bytes and that there are no repeaters. Does this maximum distance also ensures
that a transmitting node A will be able to detect whether any other node transmitted while A was
transmitting? Why or why not? Assume a propagation speed of 1.8 10
8
m/s.

We want an efficiency of = 1/(1 + (1+2e)a) = 0.5, which results in the value of a = 0.1554.

Since a = t
prop
/X = 0.1554, therefore, t
prop
= 0.1554X.

The frame transmission time X is computed from the given specifications of frame length L = 64 8 = 512
bits and transmission rate R = 100Mbps. This gives X = L/R = 512/10
8
= 5.12s.

The propagation time is given by t
prop
= 0.1554(5.12) = 0.7955s.

Maximum distance between nodes = t
prop
propagation speed = (0.7955 10
6
) 1.8 10
8
= 143m.

For transmitting station A to detect whether any other station transmitted during A's interval, the frame
transmission time X must be greater than 2t
prop
or 1.591s.
Because the transmission time X is greater than 2t
prop
, A will detect B's signal before the end of its
transmission.


4
Question 6: A very heavily loaded 1-km long, 10 Mbps token ring has a propagation speed of 200 m/sec.
Fifty stations are uniformly spaced around the ring. Data frames are 256 bits, including 32 bits of overhead.
The token is 8 bits long. Is the effective data rate of this ring higher or lower than the effective data rate of a
10 Mbps CSMA/CD network? Assume Early Token Release policy!

Measured from the time of token capture, it takes 25.6s to transmit a packet. Additionally, a token must be
transmitted, taking 0.8s, and the token must propagate 1km/50 = 20meters, taking another 0.1s. Thus, we
have sent 224 bits in 26.5s for a data rate of 224 bits/26.5s or 8.5Mbps.

Given the above parameters, the token ring beats the Ethernet in terms of effective bandwidth.

You might also like