Here are the questions and topics that were repeated across the 2023, 2024, and 2025 exam papers.
Consider two hosts A and B, connected by a single link of rate R bps. Suppose that the two hosts are separated by m meters, and suppose the propagation speed along the link is s meters/sec. Host A is to send a packet of size L bits to Host B.
1. Propagation Delay ($d_{prop}$):
This is the time it takes for the first bit to travel from the sender to the receiver. It's a function of distance and speed.
$d_{prop}$ = distance / propagation speed = m / s
2. Transmission Time ($d_{trans}$):
This is the time it takes for the sender to push all the packet's bits onto the link. It's a function of packet size and bandwidth.
$d_{trans}$ = packet size / bandwidth = L / R
3. Calculation:
We are given:
We need to find distance `m` where $d_{prop} = d_{trans}$.
m / s = L / R
m = (L * s) / R
m = (100 bits * 2.5 \times 10^8 m/s) / 28,000 bits/s
m = (2.5 \times 10^{10}) / (2.8 \times 10^4)
m = (2.5 / 2.8) \times 10^6
m \approx 0.892857 \times 10^6 \text{ meters}
m \approx 892,857 \text{ meters} (or 892.86 km)
Using the illustration, what would be the IP address of E0 if you were using the eighth subnet? The network ID is 192.168.10.0/28 and you need to use the last available IP address in the range. The zero subnet should not be considered valid for this question.
Using the illustration from the previous question, what would be the IP address of S0 if you were using the first subnet? The network ID is 192.168.10.0/28 and you need to use the last available IP address in the range. Again, the zero subnet should not be considered valid for this question.
Network Analysis:
192.168.10.0/28/28 is 255.255.255.240.192.168.10.0) is invalid, so our first valid subnet is 192.168.10.16.A: IP of E0 (Eighth subnet, last available IP):
We list the *valid* subnets starting from .16:
.16.32.48.64.80.96.112.128192.168.10.128.144192.168.10.143 (one less than next network).129 to .142B: IP of S0 (First subnet, last available IP):
192.168.10.16.32192.168.10.31.17 to .30A sender wants to send 4 frames each of 8 bits to a receiver, where the frames are 11001100, 10101010, 11110000 and 11000011. Compute the checksum at sender's side.
The receiver receives the data 11001100, 10101011, 11110000 and 11000011. Now compute the checksum at receiver's side. And check whether the data received is error free or not.
We use 8-bit 1's complement arithmetic (add, and wrap any carry-out bit).
Sender Side Calculation:
11001100 + 10101010 ---------- 1 01110110 -> Wrap carry: 01110110 + 1 = 01110111 01110111 + 11110000 ---------- 1 01100111 -> Wrap carry: 01100111 + 1 = 01101000 01101000 + 11000011 ---------- 1 00101011 -> Wrap carry: 00101011 + 1 = 00101100
Final Sum = 00101100.
Checksum (1's complement of sum) = 11010011. This is what the sender transmits.
Receiver Side Calculation:
The receiver adds all received data blocks *and* the received checksum.
11001100 (Data 1) + 10101011 (Data 2 - Note the error) ---------- 1 01110111 -> Wrap carry: 01110111 + 1 = 01111000 01111000 + 11110000 (Data 3) ---------- 1 01101000 -> Wrap carry: 01101000 + 1 = 01101001 01101001 + 11000011 (Data 4) ---------- 1 00101100 -> Wrap carry: 00101100 + 1 = 00101101 00101101 (Sum of received data) + 11010011 (Received checksum) ---------- 1 00000000 -> Wrap carry: 00000000 + 1 = 00000001
Final Receiver Sum = 00000001.
Conclusion:
For the data to be error-free, the 1's complement sum at the receiver must be all ones (11111111) or, if summing the checksum too, all zeros (00000000). Since the result is 00000001, an error has been detected.
Explain the working functionality of Stop-and-wait, Go Back N, and Selective Repeat. What is the drawback of stop-and-wait protocol? How it can be solved?
Drawback of Stop-and-Wait:
The primary drawback of Stop-and-Wait is its extreme inefficiency. The sender sends one packet and then *stops* and *waits* for an ACK. The entire link is idle for the full Round Trip Time (RTT). This results in very low link utilization, especially on high-bandwidth or high-delay (long) links.
How it is Solved:
The problem is solved using pipelining. Pipelining allows the sender to send *multiple* packets (a "window" of N packets) before it needs to receive the ACK for the first packet. This keeps the "pipe" full of data and dramatically increases efficiency. Go-Back-N and Selective Repeat are the two main pipelined protocols.
Comparison of Pipelined Protocols:
A: Suppose, we have a big single network having IP Address 200.1.2.0. Divide this network into 4 subnets.
B: What is the subnetwork address for a host with the IP address 200.10.5.68/28?
A: Divide 200.1.2.0 (Class C, /24) into 4 subnets.
200.1.2.0 is /24.255.255.255.192.B: Subnetwork address for 200.10.5.68/28.
200.10.5.68/28, which is 255.255.255.240.Explain the working functionality of DHCP, Network Address Translation (NAT), and Internet Control Message Protocol (ICMP).
DHCP (Dynamic Host Configuration Protocol):
NAT (Network Address Translation):
192.168.1.x) to share a single, globally unique public IP address. This is essential for solving the IPv4 address shortage.ICMP (Internet Control Message Protocol):
ping uses ICMP Echo Request and Echo Reply messages to test connectivity.traceroute uses ICMP Time Exceeded messages to map the route to a destination.Discuss how TCP implements flow control and congestion control mechanisms. How many phases are there in TCP congestion control algorithm?
These are two different mechanisms to "throttle" the sender, but for different reasons.
Flow Control (Protects the Receiver):
rwnd) field in the TCP header. The sender ensures its amount of un-ACKed data is always less than or equal to rwnd.Congestion Control (Protects the Network):
cwnd). The sender's rate is limited by min(rwnd, cwnd).Phases of Congestion Control:
cwnd = 1 MSS. It grows *exponentially* (doubles every RTT). This happens until cwnd reaches the threshold (ssthresh).cwnd > ssthresh, growth slows to be *linear* (it adds 1 MSS per RTT). This probes for more bandwidth more gently.ssthresh is set to cwnd / 2. cwnd is reset to 1, and it re-enters Slow Start.ssthresh is set to cwnd / 2. cwnd is also set to ssthresh. It skips Slow Start and enters Congestion Avoidance/Fast Recovery.