Which question does this reply belong to?
02Give a question a ticket and compare a reply’s ticket. Try a retry, a late reply or a copied ticket to see what this check can and cannot prove.
Follow what happens to this one message.
One question is waiting
Keep this ticket while waiting for the reply.
What do we need to find out?
Which question does this reply belong to?
Watch one change, then try an alternative.
What happens if you change this?
Change one thing and watch the result. Restart restores the original example.
Ignore a candidate response that does not match an outstanding transaction.
Key idea: Match the ticket to the waiting question. Keep authentication as a separate check.
Terms
- Transaction ID
- A 96-bit identifier used to correlate a response with a pending request. These fixed coloured examples are not an unpredictable ID generator.
- Retransmission
- Sending the same request again after a loss. It keeps its transaction ID.
- Authentication
- Checking a claim using the mechanism required by the particular STUN usage; an echoed identifier alone does not supply it.
Rules & examples
A reply’s ticket must match a question that is still waiting.
- A reply’s ticket must match a question that is still waiting.
- Retrying the same question keeps its ticket. A new question needs a fresh ticket.
- Ticket matching is separate from checking who sent the message or whether protected bytes changed.
Start with the drawing. The closed explanations introduce the technical names, actual fields and source rules after the idea. These chosen offline examples do not implement a complete STUN, ICE or TURN client.
Sent ID 0102030405060708090a0b0c; received ID 0102030405060708090a0b0c; pending true; correlation true; authenticated false. Raw response 0101000c2112a4420102030405060708090a0b0c002000080001d322ea12d545. §6.3 first checks message structure and correlation, then the authentication mechanism and usage-specific rules. Production IDs require the specified unpredictability; fixture colours are teaching labels, not security entropy.
Sources
New to this? Start hereA quick picture + helpful background
Finding a route and sending media are separate jobs.
Some messages set up a conversation or discover a reachable address. Other packets carry the audio or video. Follow those jobs separately.
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.