Sub topic 13
Minimum Frame Size and Slot Time
This chapter assumes you know the following:
- Transmission delay is frame length divided by bandwidth.
- Propagation delay is distance divided by signal speed.
- CSMA/CD detects a collision while the sender is still transmitting.
Here you derive why Ethernet has a minimum frame size, how it relates to the slot time, and how GATE questions use the formula.
The problem: a collision the sender never sees
CSMA/CD only helps if the sender learns about a collision while it is still sending. If the sender finishes the frame and then a collision signal arrives, the sender has already assumed success. It will not retransmit, and the frame is lost with no error reported at this layer.
Suppose stations A and B sit at opposite ends of the cable. The one-way propagation delay between them is T_p.
- A starts sending at time 0.
- Just before A's first bit reaches B, at time T_p minus a tiny amount, B senses an idle channel and starts sending.
- B's frame collides with A's almost immediately, and B detects the collision at once.
- The collision signal travels back to A and arrives at about 2 T_p after A began.
A must still be transmitting at that moment. This is the worst case, so it sets the requirement.
Deriving the formula
The transmission time of a frame must be at least the round-trip time:
Tt ≥ 2 Tp
Since T_t = L / B, where L is the frame length in bits and B is the bandwidth in bits per second:
Lmin = B × 2 Tp
The quantity 2 T_p is the slot time. It is the longest time a station can need to know whether its transmission has collided. So the rule is:
> minimum frame length in bits = bandwidth × slot time
The same rule says the frame must be long enough to keep the sender busy for one full round trip.
Classic 10 Mbps Ethernet
The standard fixes the slot time at 51.2 µs. The following program computes the result:
bandwidth_bps = 10_000_000 # 10 Mbps Ethernet
round_trip_time_s = 51.2e-6 # slot time = 2 x propagation delay
min_frame_bits = round(bandwidth_bps * round_trip_time_s)
print(min_frame_bits, min_frame_bits // 8) # 512 64The result is 512 bits, or 64 bytes. This is why an Ethernet frame is never shorter than 64 bytes, counting from the destination address through the CRC. If the upper layer hands over less data, the data link layer pads the payload.
The 51.2 µs is not just 2 T_p of the cable. It is a design budget that also covers repeater delays and the time to send the jam signal. It limits the network diameter to about 2500 m in the original standard, using up to four repeaters.
Working in both directions
GATE questions rearrange the same equation. Two variations appear most often.
Finding the minimum frame size
Given bandwidth and cable length, compute the propagation delay, double it, and multiply by the bandwidth.
Example: B = 100 Mbps, cable length 1 km, signal speed 2 × 10^8 m/s.
- T_p = 1000 / (2 × 10^8) = 5 µs
- Slot time = 10 µs
- L_min = 100 × 10^6 × 10 × 10^-6 = 1000 bits
Finding the maximum cable length
Given the frame size and bandwidth, solve for the distance.
Example: L_min = 512 bits, B = 10 Mbps, signal speed 2 × 10^8 m/s.
- Slot time = 512 / (10 × 10^6) = 51.2 µs
- T_p = 25.6 µs
- Distance = 25.6 × 10^-6 × 2 × 10^8 = 5120 m
Real networks reach less than this because of the repeater and jam overhead noted above. A GATE question that mentions only bandwidth, frame size and speed expects the ideal figure.
What changes when bandwidth grows
The relationship Lmin = B × 2 Tp shows a tension. If you raise B tenfold and keep the same cable length and the same 64-byte minimum, the frame takes one tenth of the time to send. It would finish before the collision signal returns. There are two ways to restore the condition:
| Approach | What is held fixed | Consequence |
|---|---|---|
| Keep the 64-byte minimum, shrink the network | Frame size | The maximum diameter falls roughly tenfold |
| Keep the network diameter, enlarge the frame | Diameter | The minimum frame grows roughly tenfold |
Fast Ethernet (100 Mbps) took the first route. It kept the 64-byte frame and reduced the collision diameter to about 205 m. Gigabit Ethernet, for half-duplex operation, kept the diameter workable by extending the slot time to 4096 bit times (512 bytes) using carrier extension, which pads short frames on the wire. Full-duplex links have no collisions, so this limit does not apply to them.
Common errors
- Using one-way delay. The requirement is the round trip. Forgetting the factor of 2 halves the answer.
- Mixing units. Convert µs and Mbps consistently. Bits × seconds work only when B is in bits per second.
- Confusing bits and bytes. 512 bits equal 64 bytes. Check what the question asks for.
- Applying the rule to full-duplex links. Collision detection is switched off on switched full-duplex links, so no minimum-length argument based on collisions is needed there.
- Counting the preamble. The 64-byte minimum excludes the 8-byte preamble and start delimiter. It covers the header, payload, padding and the 4-byte CRC.
Payload consequence
Because the minimum frame is 64 bytes and the header plus CRC take 18 bytes (6 destination, 6 source, 2 type or length, 4 CRC), the payload must be at least 46 bytes. Shorter payloads are padded with zeros. The receiver relies on the length field or on the upper-layer protocol to discard the padding.
def min_payload_bytes(min_frame_bytes=64, header_and_crc=18):
return min_frame_bytes - header_and_crc
def padding_needed(payload_len):
return max(0, min_payload_bytes() - payload_len)
print(min_payload_bytes()) # 46
print(padding_needed(20)) # 26
print(padding_needed(100)) # 0Exercise
A CSMA/CD network runs at 1 Gbps over a 1 km cable. The signal travels at 2 × 10^8 m/s. What is the minimum frame size in bytes for reliable collision detection?
Show answer
Tp = 1000 / (2 × 10^8) = 5 µs, so the slot time is 10 µs. Lmin = 10^9 × 10 × 10^-6 = 10,000 bits, which is 1250 bytes.
Exercise
A station on a 10 Mbps CSMA/CD network sends a frame whose payload is 30 bytes. How many padding bytes does the data link layer add, and how long does the frame occupy the channel, ignoring the preamble?
Show answer
The minimum payload is 46 bytes, so 16 bytes of padding are added. The frame is 64 bytes, which is 512 bits. At 10 Mbps it takes 512 / (10 × 10^6) = 51.2 µs, exactly one slot time.