Storage Encryption Overhead Calculator for TLS and IPsec

This storage encryption overhead calculator shows what encryption costs in throughput. It works out the exact wire overhead of TLS, IPsec ESP and MACsec from the standard packet formats, and it explains why self-encrypting drives and AES-XTS add no bytes. A field for measured CPU loss lets you add the part only testing can tell you. Use it to judge whether encrypting a storage path is a bandwidth issue or a processor issue.

Result

The result updates automatically as you change any input.

Formula and worked steps
Formulas used
  • Unencrypted efficiency = (MTU - 40) / (MTU + 38)
  • Per-packet schemes (IPsec ESP, MACsec): (MTU - 40 - overhead) / (MTU + 38)
  • Per-record schemes (TLS): efficiency x record / (record + overhead)
  • Throughput = link x efficiency x (1 - measured CPU loss)
Assumptions
  • Overheads: TLS 1.3 22 bytes per record (5 header + 1 content type + 16 tag); TLS 1.2 AES-GCM 29 (5 + 8 explicit nonce + 16); IPsec ESP tunnel AES-GCM IPv4 54 (outer IP 20 + ESP 8 + IV 8 + trailer 2 + ICV 16); transport 34; MACsec 24 (SecTAG 8 + ICV 16) or 32 with SCI.
  • Per-packet overhead is taken out of the MTU, which is conservative; if your devices accept larger frames, the loss is smaller.
  • Self-encrypting drives and AES-XTS add no bytes; their cost, if any, is CPU or drive time, which only measurement can tell. Enter a measured penalty.
  • Packet formats are from the RFCs and IEEE 802.1AE definitions and were not re-fetched.
References

Estimating the overhead of IPsec or TLS tunnels for network traffic? Use the IPsec overhead calculator, which gives tunnel MTU and MSS.

What does encryption cost?

Encryption can cost performance in two ways. It can make data bigger, because headers, nonces and authentication tags are added. It can also use processor time. The first is arithmetic, and the second needs measurement.

Encryption at rest

At rest, data is encrypted where it is stored. A self-encrypting drive does it inside the drive, and AES-XTS, the common mode for disks, does it in software or in a controller. XTS is length-preserving, so ciphertext is the same size as plaintext and no bytes are added.

Encryption in transit

In transit, data is encrypted as it crosses the network. TLS protects a connection at the transport layer, IPsec protects IP packets and MACsec protects Ethernet frames. Each adds headers and an authentication tag, and each reduces the data that fits in a frame.

Where the cost lands

Wire overhead lowers how much data a link carries. CPU cost lowers how much work a host or array can do. Hardware offload and processor AES instructions reduce CPU cost, and how much they do depends on your equipment.

How the storage encryption overhead calculator works

The tool compares the data efficiency of an Ethernet link with and without a scheme, and applies any CPU loss you enter.

Formulas

  • Unencrypted efficiency = (MTU – 40) / (MTU + 38)
  • Per-packet schemes: (MTU – 40 – overhead) / (MTU + 38)
  • Per-record schemes (TLS): efficiency x record size / (record size + overhead)
  • Throughput = link speed x efficiency x (1 – measured CPU loss)

Overhead by scheme

SchemeBytes addedWhere
TLS 1.322per record: 5 header + 1 type + 16 tag
TLS 1.2 AES-GCM29per record: 5 header + 8 nonce + 16 tag
IPsec ESP tunnel, AES-GCM54per packet: outer IP 20 + ESP 8 + IV 8 + trailer 2 + ICV 16
IPsec ESP transport34per packet
MACsec24 or 32per frame: tag 8 or 16 + ICV 16

NAT traversal adds an 8-byte UDP header to IPsec, and ESP may add up to 3 bytes of padding. The tool lets you set both.

Worked example: a 10 Gbps link

At an MTU of 1500 the unencrypted data throughput is 9.493 Gbps. IPsec tunnel mode lowers it to 9.142 Gbps, which is 96.3% of unencrypted. MACsec with a 24-byte overhead gives 98.4%, and with a source identifier, 32 bytes, 97.8%. TLS 1.3 with 16 KiB records gives 9.480 Gbps, 99.87%.

Jumbo frames help

The overhead is a fixed number of bytes per packet, so bigger packets dilute it. IPsec tunnel mode on a 9000-byte MTU reaches 99.4% of the unencrypted figure, against 96.3% at 1500.

Self-encrypting drives and XTS

Neither adds bytes. A self-encrypting drive typically has negligible impact on performance, and software encryption with AES-XTS depends on the processor. The tool shows 0 bytes of overhead, and leaves the CPU cost to the field you fill in from a test. With a measured 10% loss, XTS on a 10 Gbps path would yield 8.54 Gbps.

Why it matters for SAN and storage admins

Encryption overhead is a topic that attracts strong opinions. Encryption is increasingly a requirement, and it is often discussed as if it were free or fatal. The storage encryption overhead calculator shows that the wire cost is small and predictable, a few percent at most for IPsec and a fraction of a percent for TLS, and that the open question is CPU, which you can test. That moves the conversation from opinion to measurement.

It also guides design. If IPsec at 1500 bytes costs 3.7% of bandwidth, moving to jumbo frames recovers most of it, so enabling both together may cost less than either alone. If a link is already near saturation, the same percentage may matter more than the CPU does.

Use it when you:

  • Plan encryption for replication links or iSCSI paths.
  • Compare IPsec, MACsec and TLS on bandwidth cost.
  • Estimate capacity after turning encryption on.
  • Decide what to test on real hardware.

Best practices and common mistakes

  • Measure CPU impact with your own workload and hardware, with and without offload.
  • Use jumbo frames where possible to reduce per-packet overhead.
  • Confirm the encryption mode and cipher, because overhead differs by suite.
  • Remember that some features, such as compression and deduplication, work poorly after encryption. Compress first.
  • Check that devices on the path accept the larger frames that MACsec and IPsec create.
  • Keep keys and certificates managed. Overhead is not the main risk of encryption.

Treat encryption overhead as two separate numbers, one for the wire and one for the processor, and never add them together without measuring the second. A frequent mistake is to benchmark with encryption on and a different MTU, and then blame encryption for the difference. Change one thing at a time.

FAQs

How much does IPsec reduce throughput?

With AES-GCM in ESP tunnel mode, 54 bytes are added to each packet. At an MTU of 1500 that reduces data throughput by about 3.7%, and at 9000 by about 0.6%.

Does disk encryption slow storage down?

A self-encrypting drive encrypts in hardware and typically has negligible impact, while software AES-XTS adds CPU work that AES instructions reduce. The only reliable figure is one you measure.

Is TLS overhead significant?

On the wire, no. TLS 1.3 adds 22 bytes to each record of up to 16 KiB, about 0.13%. The cost is mostly CPU time.

Next, try the iSCSI vs Fibre Channel overhead calculator, the MTU size calculator and the bandwidth unit converter, or browse the full list of storage calculators. For tunnel overhead on network traffic, such as IPsec and TLS, use the IPsec overhead calculator.