Module3 Problems
Module3 Problems
Module3 Problems
Problem-01:
After the kth consecutive collision, each colliding station waits for a random time
chosen from the interval-
1. (0 to 2k) x RTT
2. (0 to 2k-1) x RTT
3. (0 to 2k-1) x Maximum Propagation delay
4. (0 to 2k-1) x Maximum Propagation delay
Solution-
Problem-02:
Solution-
Given-
Bandwidth = 1 Gbps
Distance = 1 km
Speed = 200000 km/sec
Problem-03:
A 2 km long broadcast LAN has 107 bps bandwidth and uses CSMA / CD. The signal
travels along the wire at 2 x 108 m/sec. What is the minimum packet size that can be
used on this network?
Solution-
Given-
Distance = 2 km
Bandwidth = 107 bps
Speed = 2 x 108 m/sec
A and B are the only two stations on Ethernet. Each has a steady queue of frames to
send. Both A and B attempts to transmit a frame, collide and A wins first back off
race. At the end of this successful transmission by A, both A and B attempt to
transmit and collide. The probability that A wins the second back off race is ___ .
1. 0.5
2. 0.625
3. 0.75
4. 1.0
Solution-
Now,
We have been asked the probability of station A to transmit its 2nd data packet
successfully after 2nd collision.
After the 2nd collision occurs, we have-
At Station A-
2nd data packet of station A undergoes collision for the 1st time.
So, collision number for the 2nd data packet of station A = 1.
Now, station A randomly chooses a number from the range [0,21-1] = [0,1].
Then, station A waits for back off time and then attempts to retransmit its data
packet.
At Station B-
1st data packet of station B undergoes collision for the 2nd time.
So, collision number for the 1st data packet of station B = 2.
Now, station B randomly chooses a number from the range [0,22-1] = [0,3].
Then, station B waits for back off time and then attempts to retransmit its data
packet.
0 0 Collision
0 1 A wins
0 2 A wins
0 3 A wins
1 0 B wins
1 1 Collision
1 2 A wins
1 3 A wins
From here,
Probability of A winning the 2nd back off race = 5 / 8 = 0.625.
Thus, Option (B) is correct.
Problem-05:
Suppose nodes A and B are on same 10 Mbps Ethernet segment and the
propagation delay between two nodes is 225 bit times. Suppose A and B send
frames at t=0, the frames collide then at what time, they finish transmitting a jam
signal. Assume a 48 bit jam signal.
Solution-
At t = 0,
At t = 11.25 μsec,
After collision occurs at t = 11.25 μsec, collided signals start travelling back.
Collided signals reach the respective nodes after time = Half of propagation delay
Collided signals reach the respective nodes after time = 22.5 μsec / 2 =
11.25 μsec.
Thus, at t = 22.5 μsec, collided signals reach the respective nodes.
At t = 22.5 μsec,
As soon as nodes discover the collision, they immediately release the jam signal.
Time taken to finish transmitting the jam signal = 48 bit time = 48 bits/ 10 Mbps =
4.8 μsec.
Thus,
Time at which the jam signal is completely transmitted
= 22.5 μsec + 4.8 μsec
= 27.3 μsec or 273 bit times
Problem-07:
Assume this network uses CSMA / CD and signal travels with a speed of 3 x
105 km/sec. If sender sends at 1 Mbps, what could be the minimum size of the
packet?
Solution-
In CSMA / CD,
The condition to detect collision is-
Packet size >= 2 x (distance / speed) x Bandwidth
To solve the question,
We assume that a packet of same length has to be used in the entire network.
To get the minimum length of the packet, what distance we should choose?
To get the minimum length of the packet, we should choose the minimum
distance.
But, then collision would be detected only in the links having distance less than or
equal to that minimum distance.
For the links, having distance greater than the minimum distance, collision would
not be detected.
So, we choose the maximum distance so that collision can be detected in all the
links of the network.
Efficiency-
Maximum Efficiency-
For maximum efficiency,
We put dη / dG = 0
Maximum value of η occurs at G = 1/2
Substituting G = 1/2 in the above expression, we get-
Thus,
The maximum efficiency of Pure Aloha is very less due to large number of collisions.
2. Slotted Aloha-
Slotted Aloha divides the time of shared channel into discrete intervals called
as time slots.
Any station can transmit its data in any time slot.
The only condition is that station must start its transmission from the beginning of
the time slot.
If the beginning of the slot is missed, then station has to wait until the beginning of
the next time slot.
A collision may occur if two or more stations try to transmit data at the beginning of
the same time slot.
Efficiency-
Maximum Efficiency-
Thus,
The maximum efficiency of Slotted Aloha is high due to less number of collisions.
Vulnerable time in which collision may occur Vulnerable time in which collision may occur
= 2 x Tt = Tt
Problem-
A group of N stations share 100 Kbps slotted ALOHA channel. Each station output a
500 bits frame on an average of 5000 ms even if previous one has not been sent.
What is the required value of N?
Solution-