Visual RFC.
ALL RFCs / RFC 8656
Read the RFC ↗
RFC 8656 / PROTOCOL MECHANISMS

Can a short label replace the whole destination?

04

Teach the relay that label 0x4001 means one friend’s address and port. Then send the same note with a smaller wrapper.

RFC 8656 · § 12EXAMPLE
1 / 4 · Start with a full destination

Follow one small step. Then change one choice below.

We keep sending to one friend

198.51.100.8:5000
HELLO

Repeating the whole destination in every wrapper takes space.

Why repeat the whole address?

Could we agree on a smaller label and keep the same note?

What happens if you change this?

Try one change. Restart puts the original example back.

3 / 3
03
The server resolves the binding to the peer transport address.

The server resolves the binding to the peer transport address.

Can a short label replace the whole destination?Teach the relay that label 0x4001 means one friend’s address and port. Then send the same note with a smaller wrapper.ChannelBind: 0x4001 → peer IP:portexample valid channel numberChannelData example · schematic widthsChannel Number · 16 bits0x4001Length · 16 bits5Application Data: Hello · 5 bytesLength excludes the 4-byte header and any paddingBinding → peer IP:portCompact framing still needs a valid binding and permission

Key idea: A short label works only after both sides agree what it means. It points to an address and a port.

Terms
Channel binding
A temporary mapping from a channel number to one peer IP address and port in an allocation.
0x4001
A number written in hexadecimal, using digits 0–9 and letters A–F. Here it is just the agreed label’s name; you do not need to calculate with it.
ChannelData
A compact format: two bytes of channel number, two bytes of data length, then the application data. It is not a STUN message.
Padding
Extra alignment bytes after the data. They do not count toward the data length.

Look up a term in the glossary ↗

Rules & examples

Agree on a short label before using it as a destination.

  • ChannelBind establishes the association and also creates or refreshes a permission as specified.
  • ChannelData has a 16-bit Channel Number, a 16-bit Length, then Application Data. Length counts application bytes only; zero is valid.
  • TCP/TLS-over-TCP requires padding to a four-byte boundary; UDP padding is optional. Padding is excluded from Length.
  • Compact framing does not replace authorization or make channels permanent.

Start with the small note and the helper. Open the optional explanations for technical terms and exact RFC rules. Example: channel 0x4001, Hello = five application bytes. An empty payload uses Length 0. TCP/TLS alignment padding and optional UDP padding never count toward Length.

Allowed channel numbers in RFC 8656 are 0x4000–0x4FFF. ChannelBind creates or refreshes a 600-second binding and a 300-second peer-IP permission; an allocation is assumed live here. A number and peer transport address map one-to-one within an allocation. Rebinding to another peer after expiry has an additional five-minute wait. ChannelData header length is four bytes; Length excludes header and padding. TCP/TLS-over-TCP requires alignment to four bytes; UDP padding is optional and omitted here. Empty data is valid. Actual chosen wire bytes: 40 01 00 05 48 45 4c 4c 4f. These are finite ASCII examples. Channels reduce wrapper overhead; they do not encrypt, authenticate an application user or keep state alive just by carrying data.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
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.

All chapters in RFC 8656

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 ↗