


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



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 1−3 are as follows.
ProbabilityofEvent 2 1 ( 1 ) ( 1 ).
ProbabilityofEvent 1 0 ( 1 ) ( 1 )
1
1 1 1
0
−
− −
n n
n n
n n
p np p
n p p np p
n p p p
Probability ofEvent (^21) ^1 ( 1 − )−^1 = ( 1 − )−^1.
= n p pn^ np pn
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
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.
(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
Expectednumberoftransmissions Probofsuccessin transmissions
k
G k G
G
k
G G k
k
Gk G
k
k e e
e
e k e
k e e
k k
Knowing that the summation
0 1 x^2
x kx k
k −
∞
=
the above summation reduces to
G G
G G
G e e
e e
− −
−
− −
− 2 1 ( 1 )
Expected numberoftransmissions ,
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.6μs to transmit a packet. Additionally, a token must be transmitted, taking 0.8μs, and the token must propagate 1km/50 = 20meters, taking another 0.1μs. Thus, we have sent 224 bits in 26.5μs for a data rate of 224 bits/26.5μs or 8.5Mbps.
Given the above parameters, the token ring beats the Ethernet in terms of effective bandwidth.