Relationship between Ethernet Frame/Packet Size and Cable Length
In one of my previous blog entry, I shared my understanding about the minimum Ethernet Frame Size. In this entry, I am sharing my understanding about the relationship between the Minimum Ethernet Frame/Packet Size and the Ethernet Cable Length.
Now We are going to find the maximum cable length for the old 10Mbps (10Base5) Ethernet network:
Minimum Ethernet Frame size = 64bytes = 512bits
Propagation Delay/ Signal speed on cable = 200m/us
Time to transmit one bit in 10Mbps = (1000ms * 1000us * 1000ns) / 10000000 bits = 100ns
Time to transmit the minimum Frame = (100ns * 512bits) = 51.2us
Length of the cable = speed * min frame TX time = 200m * 51us = 10200m = 10Km.
The maximum Ethernet cable length is 10Km. Is it right?? NO!!. Why?? The 51.2us is the Round Trip Delay(RTD). So the 10Km is Round Trip Distance and the actual length is 10Km/2 = 5Km.
The new maximum cable length is 5KM. Is it right?? NO!!. Why?? To answer this Qus, we will see more details. The maximum length of the one segment of old 10Base5 cable is only 500m. To make an 1Km cable, 2 segments can be connected (500 + 500) using a repeater. The repeater device in the middle will also introduce some delay. Old repeater will add 3us delay in the one way and 6us is the two way delay.
To make a 5Km cable, we need 10 cable segments and 9 repeaters. The repeaters alone add nearly 54us delay in the path, which is more then the time to transmit the minimum frame. For us, the total round trip delay should be with-in 51us. The available options are, reduce the total length of the cable and reduce the number of repeaters in the middle. In the total delay, delay introduced by repeaters should not be greater then 50%. So the new formula is (25us + 25us) = 50us.
No of repeaters that introduce 25us delay = 25/6 = 4 Repeaters
Cable length that introduce 25us RTD = (25 * 200m) / 2 = 2500m = 2.5Km
The maximum cable length for the 10Mbps Ethernet network is 2.5Km, which can be made using 5 cable segments and 4 repeaters.
In the recent years, Ethernet device speed is increased by 10 and 100 times. Due to this, the sender transmits the frame faster. As per CSMA/CA, the collision will be detected only before the end of the packet transmission. So if we maintain the same frames size and cable length, then a station will transmit a frame too fast (very much less then 50us), and not detect a collision occurs at the other end of the cable. To avoid this, we have to maintain the maximum cable length and increase the minimum frame size OR maintain the slot time same and decrease the maximum cable length OR both increase the slot time and decrease the maximum cable length. For example, in 100Mbps network, the cable length is reduced to 500m and in 1Gbps network, minimum Ethernet frame/packet size is increased to 256 or 512 bytes.
Let see the calculation behind the length reduction in 100Mbps network:
Time to transmit one bit in 100Mbps = (1000ms * 1000us * 1000ns) / 100000000 bits = 10ns
Time to transmit the minimum Frame = (10ns * 512bits) = 5.12us
Length of the cable = speed * min frame TX time = 200m * 5us = 1000m = 1Km (Round Trip Length).
The one way length is 500m. But the practical limit is around 200m.
Effect of Duplex Mode in Cable Length:
The old Ethernet network was using the coaxial cable and all systems are connected in that cable. In this transmission and reception is on the same medium, but on the same time. Because it is not an collision free environment. This is called Half-Duplex mode and in this CSMA/CD will help to detect the collisions.
The new Ethernet device with IEEE 802.3x standard are having capability to transmit and receive in a independent point to point link (PC to PC or PC to Hub/Switch) on CAT UTP cables. This made the link as collision free and the need of CSMA/CD protocol is removed. This mode of transmission is called Full-Duplex. In this, throughput of the link is doubled, time wasted due to the collision is removed and cable can be increased.
Let see how the cable length can be increased in Full-Duplex mode:
In half-duplex mode, after transmission of a packet, device should change to receive mode. So there was hard limit in the timing requirements to ensure collisions are propagated to all system within the required 512 bit times. In Full-Duplex mode this limitation is removed, because Tx and Rx independent. So larger diameter area (1~2Km) can be covered.



