Calculate GRE overhead with a key and sequence number

Work out GRE inner MTU on a 1500-byte IPv4 path when the tunnel includes two optional four-byte words.

Try these inputs

Worked calculation

  1. Use 20 bytes for the outer IPv4 header and four for the base GRE header.
  2. The key and sequence number each add four bytes. This GRE packet uses 20 + 4 + 4 + 4 = 32 overhead bytes.
  3. The inner IP packet can use 1,500 − 32 = 1,468 bytes. Inner IPv4 TCP has an MSS of 1,428.

Inputs

IP versions
Use No if the input already reflects the PPPoE interface MTU.

Calculated in your browser

Results

Inner IP MTU
1,468 B
TCP MSS
1,428 B
Budgeted overhead
32 B

Tunnel packet byte budget

Tunnel packet byte budgetThe top bar compares encapsulation overhead with the usable packet. The bottom bar expands the overhead to show its parts in bytes.Underlay budget · 1,500 BInner IPOverhead1,468 B inner IPOverhead detail32 BOuter IPv4: 20 B20GRE base: 4 B4GRE optional fields: 8 B8
  • Outer IPv4 · 20 B
  • GRE base · 4 B
  • GRE optional fields · 8 B
The top bar compares encapsulation overhead with the usable packet. The bottom bar expands the overhead to show its parts in bytes.
Encapsulation
GRE
Starting MTU
1,500 B
Inner TCP/IP base headers
40 B
Byte budget
LayerBytes
Outer IPv420
GRE base4
GRE optional fields8
Inner IP packet1468

Questions

How much MTU would I recover by turning off the GRE sequence number only?

Removing one optional word frees four bytes. With only the key, the example MTU becomes 1,472.

Does generic GRE overhead include the inner Ethernet header?

This GRE mode carries an IP packet. For an Ethernet payload such as GRETAP, budget the carried Ethernet header as additional overhead.

References