Visual RFC.
ALL RFCs / RFC 2018
Read the RFC ↗
RFC 2018 / MECHANISMS

Permit SACK in the handshake

01

The Transmission Control Protocol (TCP) carries an ordered byte stream. SACK means Selective Acknowledgment: the data receiver can report byte ranges received beyond a gap, while its ordinary ACK still names the next byte needed.

RFC 2018 · § 2EXAMPLE
4 / 4
04
Use reports only after permission.

After the handshake, the right endpoint can send Kind 5 SACK reports for out-of-order data received from the left. Without received permission it must not send those reports.

Permit SACK in the handshakeAfter the handshake, the right endpoint can send Kind 5 SACK reports for out-of-order data received from the left. Without received permission it must not send those reports.Established: report only after permissionData senderData receiverout-of-order dataACK1000 + SACK [1100,1200)Permission received: MAY reportNo permission: MUST NOT send SACK

Source for this drawing: RFC 2018 · Read RFC section 2 ↗

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A message needs an address.

Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

KEY POINT

Permission to receive SACK is advertised on a SYN, separately for each data direction.

  • SYN is TCP’s connection-start flag; SYN-ACK also acknowledges the peer’s SYN. SACK-permitted has Kind 4 and Length 2. It MAY be sent in a SYN segment and MUST NOT be sent on a non-SYN segment.
  • A peer advertises that it can receive SACK options. Receiving that permission allows the opposite peer to generate SACK reports for data flowing toward it; the reverse data direction is independent.
  • A data receiver that received permission MAY generate SACK. Without received permission it MUST NOT send SACK options. Generating SACK is optional; if used under any circumstances, it SHOULD be used under all permitted circumstances.
  • The ordinary cumulative ACK does not change meaning: ACK 1000 still asks for byte 1000 even if later bytes are buffered. An ACK is a transport acknowledgment, not proof that an application has used the data.
DETAILS

The example focuses on data sent from the left endpoint to the right endpoint. The final state assumes the TCP three-way handshake has completed; it is not a new handshake protocol or a requirement to enable SACK on every connection.

Read the RFC section ↗

All chapters in RFC 2018

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗