Skip to content

GATE CS 2004 Q54 — Data Link Layer: Framing, Error Detection, MAC, Ethernet Bridging

Explain with AI

AA and BB are the only two stations on an Ethernet. Each has a steady queue of frames to send. Both AA and BB attempt to transmit a frame, collide, and AA wins the first backoff race. At the end of this successful transmission by AA, both AA and BB attempt to transmit and collide. The probability that AA wins the second backoff race is:

Choose one option
View worked solution

Answer: B

To find the probability that station AA wins the second backoff race, we need to track the collision history and the resulting backoff windows for both stations AA and BB.

Step 1: First Collision and Backoff

  • Both AA and BB attempt to transmit their first frames and collide. This is the 1st1^{\text{st}} collision for both.
  • Since AA wins the backoff race, AA successfully transmits its frame.

Step 2: Second Collision

  • After AA's successful transmission, AA attempts to transmit its next frame (since both have a steady queue of frames). This is the first attempt for this new frame.
  • BB attempts to transmit its current frame (which previously collided).
  • They collide again. This collision represents:
    • The 1st1^{\text{st}} collision for AA's new frame.
    • The 2nd2^{\text{nd}} collision for BB's current frame.

Step 3: Second Backoff Race

According to the Binary Exponential Backoff algorithm, the backoff interval is chosen randomly from the range [0,2c−1][0, 2^c - 1], where cc is the collision count for the frame:

  • For station AA (cA=1c_A = 1): The backoff window is [0,21−1]={0,1}[0, 2^1 - 1] = \{0, 1\}.
    Thus, AA chooses KA∈{0,1}K_A \in \{0, 1\} with equal probability of 12\frac{1}{2}.
  • For station BB (cB=2c_B = 2): The backoff window is [0,22−1]={0,1,2,3}[0, 2^2 - 1] = \{0, 1, 2, 3\}.
    Thus, BB chooses KB∈{0,1,2,3}K_B \in \{0, 1, 2, 3\} with equal probability of 14\frac{1}{4}.

Step 4: Probability that AA wins

Station AA wins the race if its chosen backoff slot is strictly less than BB's backoff slot (KA<KBK_A < K_B).

The total number of possible outcomes for the pair (KA,KB)(K_A, K_B) is 2×4=82 \times 4 = 8 equally likely outcomes.

Let's list the favorable outcomes where KA<KBK_A < K_B:

  • If KA=0K_A = 0, then KBK_B can be 1,2,31, 2, 3 (33 outcomes).
  • If KA=1K_A = 1, then KBK_B can be 2,32, 3 (22 outcomes).

Total favorable outcomes = 3+2=53 + 2 = 5.

Probability(A wins)=Favorable outcomesTotal outcomes=58=0.625\text{Probability}(A \text{ wins}) = \frac{\text{Favorable outcomes}}{\text{Total outcomes}} = \frac{5}{8} = 0.625

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Data Link Layer: Framing, Error Detection, MAC, Ethernet Bridging questions