Summary

  • RFC 3545 repeated changing CRTP context values across N+1 consecutive packets so a decompressor could rebuild state after a loss burst that stayed inside the link's assumed bound.
  • Its optional HDRCKSUM let the decompressor check a rebuilt header when the IPv4 UDP checksum was zero, but the checksum never covered IPv4 Identification. Past N losses, the honest IPv4 move was to invalidate context and request state — not to keep guessing.

Every safety net is defined by the hole in it. In March 2003, RFC 3545 handed lossy links a clever bargain: repeat the changing parts of a compressed RTP header often enough that a burst of losses cannot erase every copy, and give the receiver a checksum to confirm the rebuild. The checksum was sixteen bits wide, covered a defined list of header fields, and quietly skipped IPv4 Identification. On a healthy path nobody noticed. On a path that lost more packets than the design allowed, that omission decided what the word “recovered” was allowed to mean.

CRTP's original bargain: shared context, shared risk

CRTP, specified in RFC 2508, compresses the IP, UDP and RTP headers by letting both ends hold the same context. A full header seeds it; later packets carry only deltas. The elegance has a price. If the packet carrying an update vanishes, the compressor moves on and the decompressor does not — and nothing announces the divergence. It simply sits there until the next compressed packet arrives and fails to make sense. On a long-delay link, asking for repair costs a round trip, and in the meantime the receiver may throw away a great deal of perfectly good media.

RFC 3545's answer: repeat the update, bound the loss

RFC 3545's answer was repetition with an honest boundary. It defines a parameter N from the link's measured loss behaviour: the probability of losing more than N adjacent packets is supposed to be small. Carry an update in N+1 consecutive packets and at least one copy should survive any burst of N or fewer. The decompressor then applies the “twice” reconstruction procedure to bridge a bounded gap and checks the result against the UDP checksum or, where the UDP checksum is absent, against HDRCKSUM. The protocol buys tolerance. It does not promise that every burst will fit the model.

The four-bit sequence that cannot count

The link sequence is four bits. It cycles every sixteen packets. So a visible difference between two sequence values cannot tell you, by itself, whether a great many packets were lost or whether a later packet overtook an earlier one and the earlier one then turned up. The decompressor resolves the ambiguity by trying the readings available to it: if a plausible interpretation needs fewer than N+1 losses, it reconstructs accordingly and verifies. If every plausible reading needs more than N, IPv4 gets a sharper instruction — stop guessing with “twice”, invalidate the context, and send CONTEXT_STATE so the compressor can restore shared state.

The blind spot: HDRCKSUM never covered IPv4 ID

That stop rule is where the checksum's coverage starts to matter. HDRCKSUM exists for the case where the original IPv4 UDP checksum is zero: the compressor inserts it, the decompressor checks it, and it is removed before delivery. IPv6 forbids a zero UDP checksum, so the option has no business there. But the header checksum does not validate IPv4 Identification. After more than N losses on an IPv4 path, a passing checksum cannot close that field. RFC 3545's answer is not a better checksum; it is to abandon the uncertain context. IPv6, which has no IPv4 ID field, may follow a different recovery rule.

Burst identity, generation numbers and repeated CONTEXT_STATE

The update burst carries its own identity safeguard. If a constant context field changes while N+1 FULL_HEADER packets are in flight, the compressor opens a new burst and bumps the generation number. Without that, overlapping bursts could look to the decompressor like a larger loss allowance than the link actually offers, and a genuine context mismatch could slip through. CONTEXT_STATE responses are meant to be repeated too. All of this is protocol machinery — evidence about how a header was rebuilt, not evidence that any particular device switched the extension on, and not evidence that an RTP application ever played the payload.

What a checksum actually proves

The distinction is small on paper and large in an incident review. A checksum proves only the fields it covers. A bounded reconstruction is not delivery. Context repair is not media acknowledgment. A locally valid header check can sit happily beside an unverified IPv4 ID. And when the loss pattern exceeds the stated bound, invalidation is not a failure to recover — it is the moment the decompressor refuses to convert an ambiguous sequence into false certainty.

Sources