Skip to content
WebsiteHosting.com

concept Security & reliability

TLS 1.3 early data and replay constraints

TLS 1.3 early data lets a request go out sooner, but encryption alone does not prevent replay. Compare what two accepted copies mean for an operation that can repeat and one that must not.

Latest recorded source check · P0147

What it means

TLS 1.3 early data, called 0-RTT, lets a client send application data without waiting for a handshake round trip. The tradeoff is that early data does not have the same replay protection as data sent after the handshake. An encrypted early request can be accepted more than once without anyone needing to read its contents. The application must decide whether it can tolerate the resulting effects.

Try it

Simulation: suppose one request means “add one point to a demo tally.” Start with early submission, a replay-unsafe application policy, and scenario evidence provided. The server decision is accepted, with two accepted copies and no duplicate suppression. Each copy adds a point: the result is risk, with 2 modeled effects. The two copies are an input to the example, not traffic the simulation sends or observes.

TLS 1.3 early data and replay constraints

Explain why 0-RTT is conditional and may be replayed

Simulation
Modeled outcome: Risk

The replay-unsafe operation could produce multiple effects in the stipulated early-data history.

TLS 1.3 early data and replay constraints: synthetic scenario inputs
Replaces all inputs with the documented starting example and the indicated change. Reset restores the starting example.
Request phase and modeled effects

Submission path

  1. Phaseearly
  2. Early acceptanceaccepted
  3. Stipulated copies2
  4. Operation classreplay-unsafe
  5. Deduplicationnone

Application consequence

  1. Modeled effects2
  2. ResultReplay-unsafe repeated effects

Only accepted early data reaches the copies and deduplication calculation. Rejection means zero early effects in this fixture, not permission to resend an uncertain operation.

Evaluated inputs

Required scenario evidence
provided
Submission mode
early
Server early-data decision
accepted
Application duplicate suppression
none
Stipulated accepted early copies
2 count
Application replay policy
replay-unsafe

RFC 9846 §2.3 and §8. Stipulated early acceptance history or one ordinary post-handshake submission; no actual replay, traffic, payload, tickets, resumption, or retry instructions. Rejection means zero accepted effects only for this modeled history, not proof of no earlier activity elsewhere. Atomic duplicate suppression is a premise. No automatic resend or guarantee of idempotence; ordinary application retries are out of scope.

About this model

The controls set only a local, bounded scenario. The computed branch is not a verdict about a live system. Inputs listed as not evaluated did not participate in this branch after validation.

Reset restores the original inputs. It does not change the open or closed state of help or FAQ answers.

Change only Application duplicate suppression to atomic. The result becomes conditional, with 1 modeled effect. The premise is now that the application applies the addition only once, not that TLS accepted only one copy. The copy count remains selected but is not used to calculate this result.

Now switch Submission mode to post-handshake for the ordinary 1-RTT comparison. The count is still 1, but the reason is different: this scenario starts with just one post-handshake submission. It does not evaluate the early-data decision, copy count, duplicate suppression, or replay policy. Reset restores all six starting values and the two-effect example.

Counting effects is not the same as judging them

With suppression set to none, each stipulated accepted early copy contributes one effect. Changing the policy from replay-unsafe to replay-tolerant changes the interpretation, not the arithmetic. To see why, imagine the operation instead means “set the demo flag to on.” Applying it twice leaves the flag on, just as applying it once would. With two accepted copies the model still counts two applications; the policy says that repetition is tolerable. Two additions to a tally, by contrast, leave a different total than one addition.

Rejection gives a different result from either form of acceptance. From the starting example, change only Server early-data decision to rejected. The result is 0 accepted early-data effects in this history. Even though the copy field still says 2, the calculation stops at rejection, before using the count, suppression setting, or replay policy. Zero here says nothing about another attempt elsewhere.

A missing premise is not a rejection. With valid inputs and Required scenario evidence set to missing, the count is unknown, not zero. An invalid input gives no count either: for example, the copy field requires a whole number from 1 through 5, even on paths that do not use it in the calculation.

When comparing the post-handshake branch with early-data acceptance, look at the evaluated-input list. The post-handshake count of one is stipulated for one submission; the number of early copies and the early acceptance decision play no part. It is not a guarantee of exactly-once behavior for all later retries.

In practice

When assessing early data for an operation, name the effect that matters and ask what would happen if the application applied it twice. If the answer depends on duplicate suppression, identify exactly which effect that suppression covers. If the relevant behavior or deployed version is unknown, stop there; do not change a real service on the strength of this example.

Keep the TLS decision separate from the HTTP response. In HTTP early-data use, 425 Too Early means the recipient declines to process a request at risk of replay. If the request is retried in response to that status, the retry must not use early data. The simulation does not generate an HTTP response or resend a request.

A successful TLS handshake is not evidence that an application effect happened exactly once. Base an early-data decision on what repetition would do to the operation, not merely on whether the connection succeeded.

Frequently asked questions

Editorial questions based on the listed sources and explicitly labeled local examples.

Can a server reject 0-RTT?

Yes. The server may reject early data while the handshake proceeds. Do not equate rejection in this attempt with proof that no other attempt ever had an effect.

Does an encrypted early request necessarily tolerate replay?

No. Early-data confidentiality and the application’s tolerance of repeated effects are different concerns; replay constraints must be part of the application policy.

Does atomic application duplicate suppression remove all replay concerns?

No. The example stipulates suppression only for the modeled effect and scope. Other side effects and duplicate-suppression failures are not evaluated.

Does rejection authorize resending an operation?

No automatic retry follows from this lab. A zero early-effect count here is a stipulated branch, not an observation of the remote service. Use the applicable protocol and application retry contract, with explicit handling of uncertain effects.

Sources & model boundaries

Primary references used for this explanation. The interactive example is an educational model, not a live check.

  1. RFC 9846: The Transport Layer Security (TLS) Protocol Version 1.3

    2.3,8,Appendix F.5. TLS 1.3 early data has replay risks and can be rejected. Ordinary handshake authentication is a separate condition.

    Checked .

  2. RFC 8470: Using Early Data in HTTP

    §5.2. In HTTP early-data use, 425 Too Early indicates that the recipient declines replay-risk processing. A retry in this context must not itself use early data.

    Checked .

Report an issue. Include the article URL and ID, not passwords or access keys.