CS FundamentalsVery hardProduct company interview · GATE level
Two Ethernet stations A and B collide. For A this is the 1st collision of its current frame, so it picks its backoff K uniformly from {0, 1}; for B it is the 3rd collision of its frame, so it picks K uniformly from {0, 1, ..., 7}. What is the probability that A picks a strictly smaller backoff than B and therefore transmits first?
- A. 7/8
- B. 3/4
- C. 13/16
- D. 1/2
Correct answer: C. 13/16
There are 2 x 8 = 16 equally likely pairs. If A picks 0, B must pick 1-7: 7 pairs. If A picks 1, B must pick 2-7: 6 pairs. So P(A first) = 13/16. The remaining 3/16 splits into 2/16 for a repeat collision (equal picks) and 1/16 for B going first (A = 1, B = 0). 7/8 forgets the case where A picks 1; 1/2 wrongly treats the two stations as symmetric - binary exponential backoff favours the station with fewer collisions.
More Computer Networks questions
- Routers A, B and C run a basic distance-vector protocol with no split horizon or poisoned reverse. Link costs are A-B = 3, B-C = 2 and A-C…
- Five routers use distance-vector routing with link costs A-B = 1, B-C = 2, C-D = 1, D-E = 3, A-E = 12, A-D = 7 and B-D = 5. Initially each…
- Dijkstra's algorithm is run from S on an undirected network with link costs S-A 7, S-B 2, S-C 6, A-B 3, B-D 8, A-D 4, B-C 5, C-E 5, D-E 1…
- The block 10.20.64.0/20 is allocated with VLSM, always taking the lowest free addresses and handling requests in this order: LANs needing…
- A router uses longest-prefix matching with these entries: 10.4.0.0/14 -> interface A, 10.6.0.0/15 -> interface B, 10.6.128.0/17 ->…
- A site owns 172.18.72.0/22, 172.18.76.0/23 and 172.18.80.0/22 and wants to advertise them with one prefix. What is the smallest single…