Total Marks: 40 | Format: Short Answer & Math


The Questions

Question 1: Latency & Physical Layer (6 marks)

Host A is sending a 1500-Byte packet to Host B over a single wired link.

  • The link bandwidth is 100 Mbps ( bps).
  • The link distance is 200 km ( meters).
  • The signal propagation speed is m/s.

a) Calculate the Transmission Delay () in milliseconds (ms). (2 marks) b) Calculate the Propagation Delay () in milliseconds (ms). (2 marks) c) In theory, a 100 Mbps link has a bandwidth of 100 million bits per second. Give two reasons why the actual throughput achieved by Host A will be lower than this nominal bandwidth. (2 marks)

Question 2: Error Control: CRC & Hamming (8 marks)

a) CRC (4 marks): A sender wants to transmit the data 11011 using a CRC divisor of 1011. Calculate the exact final bit pattern that the sender will transmit. (Show your modulo-2 division).

b) Hamming Bounds (2 marks): A system wants to use a Hamming code to send a payload of exactly 11 data bits (). Using the Hamming inequality formula, calculate the minimum number of redundant parity bits () required to correct single-bit errors.

c) Hamming Theory (2 marks): In a Hamming code, how does the receiver mathematically determine the exact position of a flipped bit?

Question 3: Flow Control & Sliding Windows (6 marks)

A 1 Mbps ( bps) link has a one-way propagation delay of 20 ms (0.02 seconds). The sender uses the Stop-and-Wait protocol with a frame size of 5000 bits.

a) Calculate the channel utilization (efficiency) of this link. (3 marks) b) To fix this efficiency, the sender switches to a Selective Repeat sliding window protocol. Frames 0, 1, 2, 3, 4, and 5 are transmitted. Frame 2 is completely lost in transit. Exactly how will the Selective Repeat receiver handle the arrival of Frames 3, 4, and 5? (3 marks)

Question 4: Medium Access Control: ALOHA & Ethernet (6 marks)

a) ALOHA (3 marks): A shared channel uses Pure ALOHA. The network load () is currently 1.5 attempts per packet time. Write the formula/value for the total Throughput () of this channel. (You may leave ‘e’ in your answer).

b) Ethernet Efficiency (3 marks): Consider a classic Ethernet network (CSMA/CD).

  • The frame transmission time () is 100 .
  • The one-way propagation delay () is 10 .
  • The probability of exactly one station successfully acquiring the channel () is 0.1. Calculate the channel efficiency () as a percentage.

Question 5: Wireless Networks (6 marks)

In an IEEE 802.11 wireless network, the probability of a single bit breaking is . A station uses the RTS/CTS mechanism.

  • bits
  • bits
  • bits
  • bits

a) Wireless Probability (3 marks): Write the formula/value for the probability that the entire transmission exchange completes successfully without any bit errors in one attempt. b) Wireless Theory (3 marks): Draw or describe the Exposed Terminal Problem. Explain why it results in wasted bandwidth.

Question 6: Network Layer Routing (8 marks)

a) Distance Vector Routing (4 marks): Router A connects to Neighbors B and C.

  • Cost from A to B = 2
  • Cost from A to C = 5 Neighbor B advertises that its cost to reach destination Router Z is 6. Neighbor C advertises that its cost to reach destination Router Z is 2. What is Router A’s new Next Hop and Total Cost to reach Z?

b) Dijkstra’s Algorithm (4 marks): Imagine a graph where Node A is the source.

  • Link A B costs 3.
  • Link A C costs 6. After Step 1 of Dijkstra’s algorithm, Node A is marked as Permanent. Node B has a tentative label of 3, and Node C has a tentative label of 6. Exactly what happens in Step 2 of the algorithm? (Which node becomes the new working node, and what status does it receive?)









(Scroll down for solutions)








Solutions & Explanations

Question 1: Latency & Physical Layer

a) = 0.12 ms

  • Step 1: Convert Bytes to bits. .
  • Step 2: .
  • Step 3: Multiply by 1000 to get ms. .

b) = 1 ms

  • Step 1: .
  • Step 2: Multiply by 1000 to get ms. .

c) Actual throughput is lower due to: 1) Protocol Overhead (MAC headers, IP headers, CRC take up bits without being actual user data), 2) Congestion/Queueing delays, or 3) Errors/Collisions forcing retransmissions.

Question 2: Error Control: CRC & Hamming

a) Transmitted Pattern: 11011001

  • Step 1: Padding. Divisor 1011 is 4 bits. Append 3 zeros. Padded data = 11011000.
  • Step 2: Division.
   11011000
 ^ 1011       (XOR first 4)
   ----
   01101      (Bring down 1)
 ^  1011      (XOR)
    ----
    01100     (Bring down 0)
 ^   1011     (XOR)
     ----
     01110    (Bring down 0)
 ^    1011    (XOR)
      ----
      01010   (Bring down 0)
 ^     1011   (XOR)
       ----
       0001   <-- REMAINDER
  • Step 3: Replace padding. 11011 + 001 = 11011001.

b) parity bits.

  • Formula: . Here, .
  • Substitute: .
  • If : (False).
  • If : (True).

c) The receiver calculates the parity for each group. If a group fails the check, it records the power-of-2 position number of that parity bit. The receiver then adds together the position numbers of all the failed parity bits (the syndrome). The resulting sum is the exact position of the corrupted bit.

Question 3: Flow Control & Sliding Windows

a) Channel Utilization () = 0.111 (or ~11.1%)

  • Step 1: .
  • Step 2: Formula
  • Step 3: .

b) A Selective Repeat receiver has a window size greater than 1. Because Frame 2 is missing, the receiver will buffer (store) Frames 3, 4, and 5 in its memory and send a Negative Acknowledgment (NAK) specifically for Frame 2, waiting for the sender to retransmit just that single missing frame.

Question 4: Medium Access Control

a) Pure ALOHA Throughput () =

  • Formula: Pure ALOHA throughput is .
  • Substitute : .

b) Ethernet Channel Efficiency () = 33.3%

  • Formula:
  • Substitute:
  • .

Question 5: Wireless Networks

a) Probability =

  • Explanation: Total bits = . The probability of all bits surviving is .

b) Exposed Terminal Problem:

  • Scenario: Station B is transmitting to Station A. Station C overhears B’s transmission and wants to transmit to Station D.
  • Wasted Bandwidth: Because C hears B talking, it assumes the channel is busy and defers its transmission to D. However, C transmitting to D would not have caused a collision at A (because C is out of A’s range). C is unnecessarily staying silent, which wastes available network bandwidth.

Question 6: Network Layer Routing

a) Next Hop = Router C | Total Cost = 7

  • Via B: Cost to B (2) + B’s cost to Z (6) = 8.
  • Via C: Cost to C (5) + C’s cost to Z (2) = 7.
  • Router A chooses the minimum cost (7) via C.

b) Dijkstra Step 2:

  • In Step 2, the algorithm looks at all unvisited nodes with “Tentative” labels (Node B: 3, Node C: 6). It selects the node with the lowest tentative distance.
  • Node B is selected as the new working node and its label is upgraded from Tentative to Permanent.