How to find start position of "Encrypted payload data" in case when "Packet number" takes more than 1 byte?

56 views
Skip to first unread message

V Golopupov

unread,
Oct 7, 2024, 8:15:52 PM10/7/24
to QUIC Prototype Protocol Discussion group
There is no problem to know the start position of "Encrypted payload data (without "Packet number")" in the long header type Quic packet, when "Packet number" takes only 1 byte.

You always know that "Encrypted payload data" goes after "Packet number" which length is 1 byte.

But if the "Packet number" takes more than 1 byte, how to know the offset between "Packet Length" and "Encrypted payload data"? The "Packet number field size" is "header protected" and to remove the header protection you need to know where "Encrypted payload" starts to use it part to remove "header protection". It turns out to be a vicious circle.

Can anybody explain this moment?

Ceyhun Atacan

unread,
Oct 7, 2024, 8:43:05 PM10/7/24
to proto...@chromium.org
RFC9001 Section 5.4.2 : https://www.rfc-editor.org/rfc/rfc9001#name-header-protection-sample

Basically you take your sample assuming the longest packet number bytes (i.e. 4 bytes, hence 
"# pn_offset is the start of the Packet Number field.
sample_offset = pn_offset + 4)."
Hope this helps.

--
You received this message because you are subscribed to the Google Groups "QUIC Prototype Protocol Discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to proto-quic+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/proto-quic/ac4b4a3c-566f-4d8b-a785-8065a0f777f3n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages