TCP Sequence Number Wrap Calculator

August 19, 2026

TCP Sequence Number Wrap Calculator

Estimate when a 32-bit TCP sequence space rolls over for one flow, including link speed, parallel streams, payload efficiency, MSS size, starting offset, capture duration, and timestamp safety margin.

▣TCP Sequence Presets

⚙Sequence Wrap Inputs

Used for the interpretation note and default presets.
Selecting a class can load its nominal speed.
Raw link speed before efficiency and flow split.
Each stream has its own 32-bit sequence space.
Use 90-96% for Ethernet/IP/TCP payload estimates.
Common values: 1460 standard MTU, about 8960 jumbo.
Use this if a capture begins after a flow has already sent data.
Duration used to count expected wraps in the observation window.
Used to estimate bytes in flight and window pressure.
Margin shortens the displayed safe interval.

◈Live Sequence Space Snapshot

4.29 GB
32-bit sequence space
1.18 GB/s
Payload per flow
810k/s
TCP segments per flow
1.18 MB
Bytes in flight at RTT
Time to Next Wrap
0 sec
safe interval after margin
Calculated from remaining sequence bytes.
Wraps in Test Window
0
per TCP stream
Long captures on fast links can include multiple rollovers.
Bytes Before Wrap
0 GiB
remaining sequence space
TCP sequence numbers count bytes, not packets.
Segment Rate
0/s
per flow at selected MSS
Jumbo frames lower packet rate but not byte-rate wrap.

Full Breakdown

Run the calculator to see the sequence wrap interpretation.

⚡Equipment / Spec Comparison Grid

1 GbE NIC
36.6 s
Typical wrap940 Mb/s payload, one flow, standard MTU.
2.5 GbE NIC
14.6 s
Typical wrapFast enough to wrap inside short captures.
10 GbE SFP+
3.66 s
Typical wrapCommon home lab threshold for frequent wrap checks.
25 GbE SFP28
1.46 s
Single-flow wrapParallel streams spread sequence spaces.
40 GbE QSFP+
0.91 s
Single-flow wrapPacket captures need timestamp awareness.
100 GbE QSFP28
0.37 s
Single-flow wrapOne flow can roll over many times per minute.
Standard MSS
1460
BytesTypical Ethernet MTU 1500 with TCP over IPv4.
Jumbo MSS
8960
BytesReduces segment count; wrap still follows bytes.

ℹPractical TCP Notes

Timestamp safety: TCP sequence wrap is expected on fast paths. PAWS uses timestamps to help reject old duplicate segments when wrap intervals get short.
Capture planning: If the test duration is longer than the wrap interval, annotate start time, negotiated timestamps, MSS, offload settings, and flow count before comparing sequence graphs.

▤Wrap Interval Reference Table

Payload rate per flowTime for 2^32 bytesWraps in 60 secondsHome lab example
100 Mb/s343.60 seconds0.17Legacy Fast Ethernet or rate-limited WAN test
940 Mb/s36.55 seconds1.64Practical 1 GbE bulk copy
2.35 Gb/s14.62 seconds4.102.5 GbE home server backup
4.70 Gb/s7.31 seconds8.215 GbE USB NIC under load
9.40 Gb/s3.66 seconds16.4210 GbE iperf or storage copy
23.50 Gb/s1.46 seconds41.0425 GbE direct attach iSCSI
94.00 Gb/s0.37 seconds164.15100 GbE lab spine single flow

The interval uses 4,294,967,296 sequence bytes divided by payload bytes per second. It is independent of RTT, but RTT still affects bytes in flight.

▦MSS and Segment Rate Table

MSSTypical networkSegments at 1 Gb/sSegments at 10 Gb/s
536 bytesConservative fallback path219,216/s2,192,164/s
1200 bytesTunnel-friendly TCP payload97,917/s979,167/s
1448 bytesPPPoE or VLAN-constrained path81,147/s811,464/s
1460 bytesEthernet MTU 1500 over IPv480,479/s804,795/s
8960 bytesJumbo MTU around 900013,114/s131,138/s

⚖TCP Standards and Limits Table

ItemValueWhy it mattersCalculator use
Sequence field32 bitsLimits the byte counter to 2^32 positionsDefines total wrap space
Sequence space4,294,967,296 bytesOne rollover after this many sent bytesBase numerator
MSL reference120 secondsClassic duplicate lifetime assumptionRisk comparison note
PAWSTCP timestampsHelps reject stale segments after wrapStatus message
Window scalingShift 0-14Large BDP paths need large receive windowsBytes-in-flight context
MSSPayload bytesChanges segment rate, not byte wrapSegment-rate output

▥Common Project Sizes Table

ProjectInputs to modelMain result to watchSecondary check
NAS backup over 1 GbE1 flow, 94% payload, 1460 MSSWrap about every 36.6 secondsCapture includes 1-2 wraps per minute
10 GbE storage benchmark1-4 flows, 94% payload, 1448 MSSSingle flow wraps in about 3.7 secondsParallel flows reduce per-flow wrap count
VM live migration10-25 GbE, 2-8 flows, jumbo MSSWrap can be under 10 seconds per flowBytes in flight depends on RTT and window scale
WAN emulator capture100-1000 Mb/s, high RTT, 1200 MSSWrap may be slower than LANBDP can still demand large windows
100 GbE lab spine test8-32 flows, 94% payload, jumbo MSSAggregate data is huge, per-flow wraps varyNIC offloads can hide packet details

Consider this: you’re troubleshooting a storage replication job that runs over a ten gigabit link, so you start a packet capture and grab some data. As they comes streaming by, you do your thing with the analysis tools. Then you see it. Suddenly your sequence numbers jumps backwards from billions down close to zero.

It looks suspicious, did the connection get reset? Is there a retransmission storm? Nope, the connection is perfectly fine. What you saw was the TCP sequence number wrap. This is a frequent gotcha for network engineers running high speed links.

Understanding TCP Sequence Number Wrap

The calculator above predicts when the roll-over will occur, so you’ll know what to expect before hitting record. It’s not a technical problem. It’s a math problem. TCP has a thirty-two bit field it use for sequence numbers. That gives you a finite space of about four point three billion bytes.

Sounds huge right? Until you realize that we’ve got storage networks moving terabytes around in minutes. Even at only a gigabit per second and assuming standard efficiency (which I’m being generous on), that four gigabyte counter rolls over in a little more than thirty seconds. Ten gigabits, and it’s under four seconds. Run a packet capture for more than that long and you’ll be rolling over the sequence number several times.

It is not a bug. It is just the math of infinite bandwidth meeting finite counters.

First, though, know what’s influencing this timeline. These factors includes the link speed and the payload efficiency. Payload efficiency is the number of bits in an Ethernet frame that aren’t part of the data being sent. Ethernet, IP, and TCP headers use up bandwidth without bumping up the data sequence counter. You can tweak the percentage using this tool (generally around ninety-four percent for standard Ethernet frames).

And finally there’s the Maximum Segment Size. A larger MSS carries less data per packet, so it increases the number of packets needed to send the same amount of data. That results in a lower packet rate at your capture tool, but not different byte rate. The only thing that cause the bytes to roll over is the fact that the counter spins, regardless of how many segments carried them. Using jumbos helps your CPU, but doesn’t prevent the counter from spinning.

It gets more complicated with parallel streams. When you’re copying across a big virtual machine, there can be multiple TCP flows running in parallel. Each one will have its own independent sequence space. The calculator tells you what your wrap time is on a per-flow basis, divide the link speed by the number of active streams.

For capture planning, this is critical. If you’ve got eight concurrent backup jobs and you filter down to see a single connection, then that particular flow could well wrap twice as fast as the total bandwidth implies. Don’t think about the width of the pipe; think about the slice of the pipe your looking at.

It has a safety feature, though. But it only works with certain conditions. It’s called Protect Against Wrapped Sequences. It uses TCP timestamps to tell the difference between new data after a rollover and old duplicate packets. This is enabled by default in most moddern operating systems.

If you’re working with a simple embedded device or some legacy system without timestamp support, however, then sequence wrap creates a real risk of ambiguity. And as this chart from the page shows, even a modest speed; two point five gigabits. Will burn through sequence space within about 15 seconds. Not much time for a mistake if your analysis tool isn’t well-behaved about handling the wrap.

Always compare expected wrap to test length when planning to capture on high speed link. If your test runs for sixty seconds and the wrap interval is four seconds, you will see fifteen rollovers. If your test runs for sixty seconds and the wrap interval is four seconds, you will see fifteen rollovers. Note that in your captures. This saves you from running around looking for ghost traffic in your captures later.

Plug in your flow count and link class into the tool and let the tool do the math. No chance of conversion errors.

Keep in mind though the wrap time isn’t impacted by round trip time. Round trip time does impact window scaling as it impacts number of bytes in flight but has no effect on how long before the wrap. The counter keeps going at line rate. You must know what you’re measuring.

The wrap matters immensely for capture planning and analysis; it’s a classic trap that can cause ambiguity risk if you don’t account for the fact that you’re measuring bytes transmitted, not packets received. Get the MSS right, look at the throughput. Generally, the numbers make perfect sense once you take into account the wrap. It is just a little thing, but it makes all the differance in the world if you need to show that the network is working properly.

TCP Sequence Number Wrap Calculator

Related posts

Leave a Comment