Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› Protection Against Wrapped Sequence Numbers (PAWS)
Cyber Security

Protection Against Wrapped Sequence Numbers (PAWS)

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: Cyber Security

Protection Against Wrapped Sequence Numbers, or PAWS, is a TCP mechanism that rejects old duplicate segments after sequence numbers wrap. It uses TCP timestamps and the recent timestamp value seen on a connection to decide whether incoming data is fresh enough to accept.

What PAWS Does in TCP

PAWS is not a separate transport protocol feature so much as a freshness test for TCP segments after sequence numbers wrap. By comparing the timestamp carried in a segment with the most recent timestamp seen on the connection, the receiver can tell whether the data is plausibly new or is likely an old duplicate that arrived late.

That matters because TCP sequence numbers are finite. Long-lived or high-throughput connections can eventually reuse sequence space, and without an additional freshness signal the stack can confuse delayed packets with current traffic. PAWS adds a simple rule: a segment must look newer than the last accepted timestamp, or it is dropped.

Why Sequence Number Wrap Creates a Problem

Sequence wrap is a correctness problem, but it can also become a reliability and security problem. TCP was designed to tolerate reordering, duplication, and delay, yet old packets can survive long enough to reappear during busy or persistent connections. If a receiver cannot distinguish stale traffic from legitimate current data, it risks accepting incorrect payloads or disrupting the flow control state.

PAWS reduces that ambiguity by pairing sequence tracking with a timestamp-based freshness check. It does not replace normal sequence validation, it strengthens it, especially where the transport stack is exposed to old duplicates from the network path, buffering, or retransmission edge cases.

How PAWS Uses Timestamps to Reject Old Data

PAWS depends on both endpoints participating in TCP timestamp negotiation. Once enabled, each segment carries a timestamp value, and the receiver remembers the most recent acceptable timestamp for that connection. Incoming segments that are older than that remembered value are treated as stale and discarded.

This design is intentionally narrow. PAWS is about the age of a segment, not its content, source address, or application meaning. It works at the transport layer, where the goal is to keep the receive path aligned with the current connection state and to avoid accepting traffic that belongs to a previous sequence-space epoch.

Because timestamps are the decision signal, PAWS is most useful when the stack can maintain consistent timestamp handling across the connection. If timestamps are absent, mismanaged, or inconsistent, the receiver loses the extra freshness test and falls back to the base TCP mechanisms.

Operational Consequences and Where It Fits

PAWS is one of those mechanisms that is usually invisible when it works well. Its value appears when networks are fast, sessions are long-lived, or packet delay and duplication are enough to make sequence wrap a real concern. In practice, it helps TCP preserve data integrity and avoid subtle corruption scenarios that are hard to diagnose after the fact.

It is also a reminder that transport security and correctness are layered. Sequence numbers, acknowledgement logic, retransmission handling, and timestamp-based freshness all cooperate to make the connection behave predictably. PAWS does not stop an attacker by itself, but it does make stale packet acceptance less likely and therefore narrows one class of transport-layer ambiguity.

For a broader view of how network and transport controls fit into defensive design, see NIST Cybersecurity Framework 2.0 and NIST SP 800-207 Zero Trust Architecture, which both reinforce the idea of verifying freshness, trust, and access path assumptions rather than relying on a single control.

When PAWS Matters Most in Practice

PAWS matters most on connections where correctness must survive long uptime, heavy traffic, or difficult network conditions. Administrators and protocol implementers care about it because transport robustness is not just about keeping packets moving, it is about ensuring the receiver only accepts data that truly belongs to the current connection state.

For operators who need to think about how network protections interact with endpoint and connection hygiene, the most useful mental model is to treat PAWS as a defensive compatibility layer inside TCP, not as a standalone feature that can compensate for poor network behavior elsewhere. When the stack and the path are healthy, it quietly prevents stale data from re-entering the session.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.DS-01 — Data-at-rest is protectedPAWS supports integrity of data in transit by rejecting stale TCP segments.
PR.PS-01 — Configuration ManagementTimestamp-based TCP defenses depend on correct protocol configuration and consistent stack behavior.
Recommendation — Treat transport freshness as part of integrity protection for in-transit data flows. Configure transport settings so freshness checks remain enabled and effective across systems.
NIST SP 800-53 Rev 5SC-8 — Transmission Confidentiality and IntegrityPAWS is a transport-layer integrity mechanism that helps ensure current TCP data is accepted.
SC-23 — Session AuthenticityPAWS helps validate that received TCP data belongs to the current session epoch.
Recommendation — Use SC-8 to preserve integrity protections for network transmissions and session state. Apply SC-23 to verify session freshness and reduce acceptance of stale traffic.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org