Glossary

TCP Segmentation Offload (TSO)

TCP segmentation offload lets the kernel hand a large block of data to the network card, which then splits it into wire-sized TCP segments with correct headers and checksums on its own.

What problem does segmentation offload solve?

A standard Ethernet frame carries at most 1500 bytes of IP packet, so a 64 KB write from an application becomes more than forty TCP segments. Without help, the kernel builds every one of those segments itself: it copies the headers, sets sequence numbers, computes checksums and queues each packet separately. At 10 or 25 Gbps that is millions of packets per second, and the per-packet overhead becomes the limit long before the wire does. With TSO the kernel builds one large segment with a template header and the card's hardware produces the individual packets. CPU time per gigabit drops sharply.

Which offloads are related, and how do they differ?

NameDirectionWhere the work happens
TSOSendNIC hardware splits large TCP segments
GSO (generic segmentation offload)SendKernel splits late, just before the driver, when hardware cannot
GRO (generic receive offload)ReceiveKernel merges consecutive packets of one flow into a larger one
LRO (large receive offload)ReceiveNIC merges packets in hardware, less careful about headers
Checksum offloadBothNIC computes or verifies TCP and UDP checksums
UFO and UDP GSOSendSame idea for large UDP sends, used by QUIC stacks

GSO is the software fallback that keeps the benefit for devices without TSO, such as many virtual interfaces. GRO is the receive-side counterpart and is on by default on Linux, while LRO is usually off because it can merge packets that should stay separate when a machine routes or bridges traffic.

How can I list the offload features a card has switched on?

ip -br link | awk '$2=="UP"{print $1}'
ethtool -k eno1 | grep -E 'segmentation|receive-offload|checksumming'
ethtool -S eno1 | grep -iE 'tso|lro|gro' | head

Replace eno1 with your interface name. The -k output shows each feature as on or off, and [fixed] marks ones the driver does not let you change. Statistics names vary by driver, so the last line may print nothing on some cards.

Why does a packet capture show 60 KB packets?

Because the capture point sits above the offload. tcpdump on the sending host sees the large segment before the card splits it, and on the receiving host it sees what GRO has already merged. It looks like the network carries jumbo packets when it does not. If you need to see the real wire packets for a debugging session, turn the offloads off briefly, capture, and turn them back on; or capture on a different machine along the path.

When does it make sense to disable offloads?

  • Packet analysis: to see true segment sizes and timings in a capture, as described above.
  • Routing and bridging hosts: LRO should be off on machines that forward traffic, including hypervisors bridging guests; GRO is safe there.
  • Driver or firmware bugs: rare corruption or stalls that vanish with offloads off point to a driver issue worth reporting and patching.
  • Some tunnels and inline inspection tools: older IPS setups expected wire-sized packets; current versions handle offloaded traffic.
ethtool -K eno1 tso off gso off gro off     # temporarily, for a capture
tcpdump -ni eno1 -c 200 -w /root/wire-sample.pcap 'tcp port 443'
ethtool -K eno1 tso on gso on gro on

These settings reset at reboot. To keep a change, add an ethtool line to a systemd unit or to the interface definition your distribution uses, for instance a NetworkManager dispatcher script on AlmaLinux.

Does TSO matter on a dedicated machine?

Yes, more than on a small virtual server. Our single CPU models have 2x 10 Gbps ports and the larger lines have 2x 25 Gbps. Pushing those rates from one core without offloads is hard; with TSO and GRO on, a single TCP stream can approach line rate on a modern CPU. On bare metal you talk to the real card, so all the hardware features of its driver are available, while inside virtual machines the paravirtual NIC relies on GSO and host-side offloads instead. TCP covers the buffer tuning that pairs with this.

How do offloads interact with BIG TCP and jumbo frames?

Recent kernels support BIG TCP, which lets GSO and GRO packets grow beyond 64 KB on links that can carry them, reducing per-packet work even further inside the host. Jumbo frames are different: they raise the actual size on the wire to around 9000 bytes and only work when every device on the path agrees. Across the public internet the MTU is 1500, so jumbo frames do not apply to traffic between our machines or to visitors, while offloads help regardless.

Which machines benefit most?

Anything that moves a lot of bulk data: backup targets, media origins, replication peers. The S13 pairs 8 fast cores with 2x 25 Gbps ports, and the D6 adds 24 cores for services that combine heavy traffic with heavy compute.

Machines With Fast Ports That Benefit From Offloads

ServerProcessorCores / threadsMemoryStorageNetworkPer monthSmallest order
S1Intel Xeon E-2276G6 / 1264 GB DDR41x 1 TB NVMe2x 10 Gbps$53.32$53.32 (1 month)
S13AMD EPYC 4345P8 / 16128 GB DDR52x 2 TB NVMe2x 25 Gbps$237.92$237.92 (1 month)
D22x Intel Xeon Gold 531724 / 48128 GB DDR42x 1 TB NVMe2x 25 Gbps$223.57$223.57 (1 month)
D62x Intel Xeon Gold 531724 / 48256 GB DDR42x 2 TB NVMe2x 25 Gbps$325.96$325.96 (1 month)

Keep Reading

TCP

The protocol behind reliable connections on the internet: handshakes, sequence numbers, windows and congestion control, with tuning notes for fast links.

Open

Port speed

What 1, 10 and 25 Gbps network ports mean in real transfer times, and which of our 68 machines carry each speed.

Open

UDP

The connectionless transport behind DNS, games, voice and QUIC, what it trades away compared with TCP, and how to run UDP services well.

Open

The ip command

Read addresses, links, routes and neighbors with ip, understand the /31 setup on our machines and make test changes without losing SSH.

Open

FAQ

Quick Answers

TCP segmentation offload. The network card splits large TCP sends into normal-sized packets instead of the CPU doing it.

Yes, on drivers that support it. Check with ethtool -k followed by the interface name.

The capture happens before segmentation on the sender, or after GRO merging on the receiver, so you see the combined segments.

On machines that route or bridge traffic, such as hypervisors, yes. GRO gives similar gains without the forwarding problems.

No. Put the command in a systemd unit or your network configuration if you want it to persist.