Skip to content

GATE CS 2018 Q55 — Data Link Layer: Framing, Error Detection, MAC, Ethernet Bridging

Explain with AI
Consider a simple communication system where multiple nodes are connected by a shared broadcast medium (like Ethernet or wireless). The nodes in the system use the following carrier-sense based medium access protocol. A node that receives a packet to transmit will carrier-sense the medium for 55 units of time. If the node does not detect any other transmission, it starts transmitting its packet in the next time unit. If the node detects another transmission, it waits until this other transmission finishes, and then begins to carrier-sense for 55 time units again. Once they start to transmit, nodes do not perform any collision detection and continue transmission even if a collision occurs. All transmissions last for 2020 units of time. Assume that the transmission signal travels at the speed of 1010 meters per unit time in the medium.

Assume that the system has two nodes PP and QQ, located at a distance dd meters from each other. PP start transmitting a packet at time t=0t=0 after successfully completing its carrier-sense phase. Node QQ has a packet to transmit at time t=0t=0 and begins to carrier-sense the medium.

The maximum distance dd (in meters, rounded to the closest integer) that allows QQ to successfully avoid a collision between its proposed transmission and PP’s ongoing transmission is _______.
View worked solution

Answer: 50

To prevent a collision, node QQ must detect node PP’s ongoing transmission during its carrier-sensing phase and defer its own transmission.

1. Timeline of Events

  • At t=0t = 0: Node PP begins transmitting its packet.
  • At t=0t = 0: Node QQ starts carrier-sensing the medium.
  • Carrier-sensing duration: Node QQ must sense the medium for 55 units of time, which corresponds to the interval [0,5][0, 5].

2. Condition for Collision Avoidance

For QQ to successfully avoid a collision, the signal transmitted by PP at t=0t = 0 must reach QQ before or at the end of QQ’s carrier-sensing phase (i.e., by t=5t = 5). If the signal arrives after t=5t = 5, QQ will assume the medium is free and proceed to transmit, causing a collision.

Let auau be the propagation delay from PP to QQ. The signal from PP reaches QQ at time:

τ=dv\tau = \frac{d}{v}

where:

  • dd is the distance between PP and QQ (in meters).
  • v=10 meters/unit timev = 10\text{ meters/unit time} is the propagation speed.

For successful detection during the sensing phase:

τ≤5\tau \le 5 d10≤5  ⟹  d≤50 meters\frac{d}{10} \le 5 \implies d \le 50\text{ meters}

Thus, the maximum distance dd that allows QQ to successfully avoid a collision is 50 meters.

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