Network overhead calculation
Last updated
Was this helpful?
Last updated
Was this helpful?
If we do a bandwith test with iperf (or similar tool), it is important to interpret the result the correct way. Therefore we need do know, how much overhead Ethernet and other involved protocolls generate. After, we can calculate the maximum expeceted bandwith.
The simple view from Cisco CCNA to ethernet is, that Layer 2 has a maximum of 1518 bytes. But it is also important, to consider the layer 1 overheads. Cisco do not respect the IPG.
Accorting wikipedia, the Preamble, SFD and the IPG (Interpacket gap) count 20 Bytes. So this is also important to consider in the overhead calculation. So nomally we have a maximum of 1538 Bytes. With the optional vlan tag there are 1542 Bytes.
Now, we can calculate, how much overhead we have until upper protocolls, which build on Layer 4.
Example: TCP (/UPD) over IPv4 over Ethernet (without header options):
L1 overhead - preamble, IPG: 8+12 = 20
L2 overhead - Ethernet header, FCS = 18
L3 overhead - IPv4 header = 20
L4 overhead - TCP header = 20
(L4 overhead - UDP header = 8)
TCP: 1538 Bytes - 78 Bytes = 1460 Bytes 1460/1538*100= 94.93% efficiency ---> 5.07% overhead
UDP: 1538 Bytes - 66 Bytes = 1472 Bytes 1472/1538*100= 95.77% efficiency ---> 4.23% overhead