What does the relay actually forward?
03Follow one small note from your device, through the relay, to a friend. Then follow the reply back.
Follow one small step. Then change one choice below.
Your device writes a note
The note contains 5 application bytes. A byte is one small unit of computer data.
Give the relay a destination
To friend 198.51.100.8:5000What happens if you change this?
Try one change. Restart puts the original example back.
A permitted peer reply becomes a Data indication back to the client.
Key idea: The relay changes the delivery wrapper and keeps the little note. Forwarding does not promise delivery or secrecy.
Terms
- Send indication
- A client-to-server STUN wrapper containing the peer address and application data. It is not a request awaiting a success response.
- Data indication
- A server-to-client wrapper containing the peer source address and application data.
- Payload
- The application’s data inside a transport wrapper. Here the payload is our short note.
Rules & examples
The helper forwards the note inside the delivery wrapper.
- Send the same little note with a wrapper that tells the relay where it goes.
- A relay does not promise delivery or hide the note from end to end.
Start with the small note and the helper. Open the optional explanations for technical terms and exact RFC rules.
Send includes XOR-PEER-ADDRESS and DATA. The relay checks for a peer-IP permission and sends the payload from the relayed address. A permitted incoming peer datagram becomes a Data indication in this no-channel example, carrying XOR-PEER-ADDRESS and DATA. Zero-length DATA is valid. Indications have no success response or TURN-level retransmission guarantee. Sending data renews neither the allocation nor permission. The client–server wrapper is not sent to the peer. TURN alone does not encrypt application data end to end; applications need their own protection. All pictured routes are bounded IPv4 UDP examples with a live allocation.
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.