From a byte counter to a link rating

Network interfaces are rated in bits per second, while operating systems and tools often count bytes. This page connects the two. A counter that reads 125,000,000 bytes per second is 1 Gbps, which is the nominal speed of a gigabit Ethernet port. A reading of 1,250,000,000 B/s is 10 Gbps. The default of 10 B/s gives 8e-8 Gbps, only to check the arithmetic, since no real link runs at 80 bits per second. If you monitor a server and see a byte rate in a log, converting to gigabits lets you compare it against the link speed in the switch or provider contract, which is always quoted in bits.

The factor 8e-9 in two steps

A byte is eight bits, so a rate in bytes per second is eight times larger in bits per second. A gigabit is 10^9 bits by the SI definition of giga in the BIPM SI Brochure, and the Gbit/s symbol follows. Putting both together, 1 B/s is 8 bits per second, which is 8e-9 Gbps. The inverse is 125,000,000 bytes per second for each gigabit per second. These are exact. The byte count is a convention rather than an SI unit, but eight bits per byte is universal in networking, where the same unit is also called an octet. No binary prefix is involved on this page.

Ethernet rates and what a byte counter shows

The nominal speeds are 100 Mbps for Fast Ethernet, 1 Gbps for gigabit Ethernet, and 10 Gbps for 10 gigabit Ethernet. In bytes per second those are 12.5 million, 125 million and 1.25 billion. A copy over a gigabit link that shows 118,000,000 B/s is running at 0.944 Gbps, which is near the practical limit. The gap from 1 Gbps comes from protocol overhead. A full-size Ethernet frame carries 1,538 bytes on the wire for 1,460 bytes of TCP payload, counting the preamble, header, checksum and inter-frame gap and the IP and TCP headers, so the best-case TCP goodput is about 94.9 percent, or about 118.7 million bytes per second.

Reading a throughput figure as a percentage of the link

Convert the measured byte rate to gigabits and divide by the link rating. A backup job that reports 560,000,000 B/s moves 4.48 Gbps, which is 44.8 percent of a 10 Gbps link. A video stream at 3,125,000 B/s is 0.025 Gbps and is negligible on the same link. The check shows whether the network or the endpoint is the bottleneck. Run it during the busiest hour and again off-peak. If the percentage stays the same at both times, the link is probably not the constraint, and the load or the endpoint hardware deserves attention first. If a job on a 10 Gbps link tops out at 1.1 Gbps, the limit is probably elsewhere, in disk speed, CPU or a protocol setting. The page gives the figure, and the interpretation depends on your system. Tools that read interface counters report bytes, so the same conversion applies to a router or switch statistics page. A port that moved 56,250,000,000 bytes in a 60 second window averaged 937,500,000 B/s, which is 7.5 Gbps. Divide the total by the window length first, then convert the rate.

From Gbps back to bytes per second

Choose Gbps as the source unit for the other direction. A 2.5 Gbps interface carries at most 312,500,000 bytes per second. A 40 Gbps link carries 5,000,000,000 B/s, equal to 5 GB/s. This is how you size storage: if a network can deliver 312 MB/s but your disks write 150 MB/s, the disks set the limit. Remember that duplex links carry the stated rate in each direction at once, so a gigabit link can carry 125 million bytes per second up and 125 million down. Counters may report the two directions separately or add them. Add the two only when the question is about total traffic through a device. For a limit on one direction, compare each direction with the rating on its own, because a link saturated downstream may be nearly idle upstream.

Gigabit versus gigabyte labels

Be careful with capitalization and symbols. Gbps and Gb/s mean gigabits per second, and GBps and GB/s mean gigabytes per second. Vendors of memory and storage lean toward bytes, and vendors of network gear toward bits, which gives larger numbers. A drive at 1 GB/s equals 8 Gbps, and a network at 1 Gbps equals 0.125 GB/s. A mix-up gives an error by a factor of 8, which is easy to miss. On this page the answer is always in bits per second, and the input is always in bytes per second.

Line coding and why the nominal rate is not the payload

Some links lose part of the nominal rate to coding. Gigabit Ethernet over fiber used 8b/10b coding on a 1.25 Gbaud line to deliver 1 Gbps of data. PCI Express 3.0 uses 128b/130b and loses about 1.5 percent. Older SATA and USB 3.0 Gen 1 links use 8b/10b and keep 80 percent. The nominal figure on the box is the data rate before protocol overhead, so a byte counter at the application will read lower. If you want to see the line efficiency, divide the observed Gbps by the nominal figure. A transfer that shows 0.94 Gbps on a gigabit port is at about 94 percent, close to the best case for TCP. A figure near 0.5 Gbps points to a limit somewhere else, such as a slow disk, a duplex mismatch or a congested path.

Averaging bursty throughput samples

Rates fluctuate from second to second, so a single sample means little. Average over an interval long enough to smooth out bursts, and then convert the average. Give two or three digits, such as 4.5 Gbps, instead of 4.4800000 Gbps. If you log values for later analysis, store the raw bytes per second and convert for display, since this keeps the original data free of rounding. Peak figures matter as well as averages. A backup that averages 1.2 Gbps over an hour may reach 8 Gbps for a few seconds, and a link sized only for the average will show packet loss during those bursts. Record both the mean and a high percentile, such as the 95th, in gigabits, so capacity planning has the numbers it needs. The factor 8e-9 is exact, so any rounding is yours to choose.