Skip to content

[DTLS 1.3] Declare the response expectation of TLS 1.3 flights - #6169

Merged
reneme merged 1 commit into
randombit:masterfrom
Rohde-Schwarz:dtls13/declare_flight_response_expecations
Nov 27, 2026
Merged

reneme merged 1 commit into
randombit:masterfrom
Rohde-Schwarz:dtls13/declare_flight_response_expecations

Conversation

@reneme

@reneme reneme commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

In TLS a flight of handshake messages either expects a flight from the peer as response or it concludes an interaction. E.g. ClientHello expects the main server flight; the client's Finished does not expect a reply from the server because it concludes the handshake. Similarly, with post-handshake exchanges.

In DTLS 1.3 (#5000), incoming response-flights implicitly ACK a flight and the final flight must be explicitly ACKed. These implicit as well as explicit ACKs control message retransmission in DTLS 1.3. DTLS_Channel_IO needs this state machine expectation explicitly to decide if and how to ACK each flight.

Therefore, the new Expected_Response enum is passed down from the state machines via send_flight() to the Channel_IO. Additionally, this merges notify_received_complete_flight() and notify_received_final_flight() into a single notifier that also takes Expected_Response to codify the peer's expectation for the just-received flight.

This is a pure API change without behavioural impact in TLS.

@reneme
reneme requested a review from randombit November 27, 2026 13:45
@reneme reneme self-assigned this Nov 27, 2026
Copilot AI balanced review requested due to automatic review settings November 27, 2026 13:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@reneme reneme mentioned this pull request Nov 27, 2026
A flight of handshake messages either expects a further flight from the
peer or it concludes an interaction. For the latter, DTLS peers must
acknowledge the flight explicitly with an ACK message (RFC 9147 5.7)
while TLS flights are implicitly acknowledged by the reliable transport.

The new Expected_Response enum is passed down from the handshake state
machines via Channel_Impl_13::send_flight() to the Channel_IO. The
merged notify_received_complete_flight() reports the received flight's
expectation back and replaces the special-cased
notify_received_final_flight() hook.

This is a pure API change without behavioural impact. It will be used
by DTLS 1.3 to detect the ACK that concludes a message exchange.
@reneme
reneme force-pushed the dtls13/declare_flight_response_expecations branch from e2349d5 to 834858d Compare November 27, 2026 15:37
@reneme
reneme merged commit 293c72c into randombit:master Nov 27, 2026
52 checks passed
@reneme
reneme deleted the dtls13/declare_flight_response_expecations branch November 27, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants