Topic
Formula
Pure ALOHA
π = πΊπ −2πΊ
Slotted ALOHA
π = πΊπ −πΊ
Transmission delay
πΏ
π
Propagation delay
π
π£
Total latency
ππ‘ππππ + πππππ
RTT
2πππππ
GBN window
2π − 1
SR window
2π−1
BDP
π΅ππππ€πππ‘β × π
ππ
Stop-and-Wait utilization
ππ‘ππππ
π
ππ + ππ‘ππππ
Q1. A Selective Repeat protocol uses 4-bit sequence numbers. A link has a bandwidth
of 16 Mbps, an RTT of 30 ms, and a packet size of 1000 bytes.
Determine:
1. Maximum Selective Repeat window size.
2. Transmission time of one packet.
3. Minimum window size needed to fully utilize the link.
4. Whether the protocol can fully utilize the link.
Solution. Step 1: Maximum SR window
For π = 4:
ππππ₯ = 2π−1
= 23
=8
Step 2: Transmission time
Packet size:
1000 × 8 = 8000πππ‘π
Therefore:
ππ‘ππππ =
8000
16 × 106
= 0.0005π
= 0.5 ms
Step 3: Minimum window size
Approximately:
π
ππ
ππ‘ππππ
30
π≥
0.5
π ≥ 60
π≥
Therefore:
wmin= 60
Step 4: Compare
Maximum available window:
8
Required:
60
Since:
8 < 60
the protocol cannot fully utilize the link.
Q2. A Stop-and-Wait protocol operates over a 1 Mbps link. Each data frame contains
1000 bits, and the RTT is 20 ms. Ignore ACK transmission time.
Calculate the approximate link utilization.
Solution: Solution
Transmission time:
1000
1 × 106
= 0.001π
= 1ππ
ππ‘ππππ =
Utilization:
π=
ππ‘ππππ
π
ππ + ππ‘ππππ
Therefore:
1
20 + 1
1
π=
21
π = 0.0476
π=
As percentage:
0.0476 × 100
4.76%
Q3. A network link has a bandwidth of 100 Mbps and an RTT of 50 ms. Calculate the
bandwidth-delay product in bits and bytes.
Solution: Formula:
π΅π·π = π΅ππππ€πππ‘β × π
ππ
Convert RTT:
50ππ = 0.05π
Therefore:
π΅π·π = 100 × 106 × 0.05
= 5,000,000πππ‘π
Convert to bytes:
5,000,000
8
= 625,000ππ¦π‘ππ
Final Answer
5,000,000πππ‘π
Or 625000 bytes
Q4. A data-link protocol operates over an 8 Mbps link. The RTT is 20 ms, and each
packet contains 1000 bytes.What is the minimum sliding-window size required to keep
the link continuously busy?
Answer: Step 1: Packet size
1000ππ¦π‘ππ = 8000πππ‘π
Step 2: Transmission time
8000
8 × 106
= 0.001π
= 1ππ
ππ‘ππππ =
Step 3: Required window
Approximately:
π
ππ
ππ‘ππππ
20
π≥
1
π ≥ 20
π≥
Therefore:
π = 20
Final Answer= 20 packets.
Question 5: A sliding-window protocol operates over a 10 Mbps link. The packet size is
1000 bytes, and the RTT is 40 ms. The sender window size is 20 packets.
Assuming negligible ACK transmission and processing time, calculate the maximum
achievable throughput.
Solution: Step 1: Packet size
1000 × 8 = 8000πππ‘π
Step 2: Transmission time
ππ‘ππππ =
8000
10 × 106
= 0.8ππ
Step 3: Amount transmitted in one window
There are 20 packets:
20 × 8000 = 160000πππ‘π
These 20 packets take:
20 × 0.8 = 16ππ
But RTT is 40 ms.
Therefore, the sender can transmit one window every approximately 40 ms.
Throughput:
160000
0.04
= 4,000,000πππ
4ππππ
πβπππ’πβππ’π‘ =
Final Answer
4ππππ
The 10-Mbps link is not fully utilized.
Question 6: A Selective Repeat protocol uses 3-bit sequence numbers. Determine the
maximum sender window size.
Solution
For Selective Repeat:
ππππ₯ = 2π−1
Here:
π=3
Therefore:
ππππ₯ = 23−1
= 22
4
Final Answer
4
Q 7. A Go-Back-N protocol uses 3-bit sequence numbers.
What is the maximum possible sender window size?
Solution
Number of sequence numbers:
ππ = π
For Go-Back-N:
πΎπππ = ππ − π
Therefore:
πΎπππ = ππ − π
=π−π
π
Question 8 :A 1000-byte packet is transmitted over a 20 Mbps link. The distance
between sender and receiver is 1000 km, and the propagation speed is π × πππ m/s.
Ignore processing and queuing delays. Calculate the total one-way latency.
Solution
Total latency:
πΏππ‘ππππ¦ = ππ‘ππππ + πππππ
Step 1: Transmission delay
Packet:
1000ππ¦π‘ππ = 8000πππ‘π
Therefore:
8000
20 × 106
= 0.0004π
= 0.4ππ
ππ‘ππππ =
Step 2: Propagation delay
Distance:
1000ππ = 106 π
Therefore:
106
2 × 108
= 0.005π
= 5ππ
πππππ =
Step 3: Total latency
πΏππ‘ππππ¦ = 0.4 + 5
5.4ππ
Final Answer
5.4 ms
Question 9: A 2000-km-long communication link has a propagation speed of
π × πππ m/s. Calculate the propagation delay.
Solution
Convert distance:
ππππππ = π × πππ π
Formula:
π»ππππ =
π«πππππππ
π·ππππππππππ πππππ
Therefore:
π × πππ
π × πππ
= ππ−π π
= π. πππ
π»ππππ =
Therefore:
π»ππππ = ππππ
Question 10: An Ethernet network operates at 100 Mbps. The maximum one-way
propagation delay between any two stations is 25.6 μs.What is the minimum frame
size required for CSMA/CD to detect a collision?
Solution: For CSMA/CD, the sender must still be transmitting when the collision
signal can return.
Therefore:
π»πππππ ≥ ππ»ππππ
Given:
π»ππππ = ππ. πππ
Therefore:
π»πππππ = π(ππ. π)
= ππ. πππ
Now:
πππππ ππππ = π«πππ ππππ × π»πππππ
= πππ × πππ × ππ. π × ππ−π
= ππππππππ
Convert to bytes: 5120/8= 640 bytes.
Question 11: A CSMA/CD Ethernet operates at 100 Mbps and uses a minimum
frame size of 512 bytes.What is the maximum allowable one-way propagation
delay?
Answer: Frame size:
πππ × π = ππππππππ
Transmission time:
ππππ
πππ × πππ
= ππ. ππππ
π»πππππ =
For collision detection:
π»πππππ ≥ ππ»ππππ
Therefore:
ππ. ππ
π
π»ππππ ≤ ππ. ππππ
π»ππππ ≤
Answer = 20.48 ππ
Question 12: Two Ethernet stations A and B are separated by a one-way propagation
delay of 10 μs. Station A starts transmitting at π = π. Station B starts transmitting at
π = πππbecause it has not yet detected A's transmission.
Will a collision occur? At what time will A detect the collision, assuming negligible
collision-detection time?
Solution: A starts at:
π‘=0
A's signal reaches B after:
10ππ
So B will not know about A's transmission until:
π‘ = 10ππ
But B starts transmitting at:
π‘ = 6ππ
Therefore B starts before A's signal reaches it.
So:
Collision occurs
The collision occurs at B approximately when A's signal reaches B:
π‘ = 10ππ
The collision signal then travels back to A:
10ππ
Thus A detects the collision at:
10 + 10
20ππ
Answer: Collision occurs and A detects it at 20ππ
Question 13: Two stations A and B are separated by a one-way propagation delay of 20
μs.
Station A starts transmitting at π‘ = 0.
Station B starts transmitting at π‘ = 15ππ .
Will a collision occur?
Solution: A's signal reaches B after:
20ππ
B begins transmission at:
15ππ
Since:
15 < 20
B has not yet detected A's transmission.
Therefore B transmits.
Answer: yes ,a collision occur.
Question 14: A CSMA/CD Ethernet has a slot time of 51.2 μs.
After a collision, a station chooses:
π²=π
Calculate the backoff time.
Solution
Backoff time:
π»πππππππ = π² × πΊπππ π»πππ
Therefore:
π»πππππππ = π × ππ. π
πππππ