Stream IDs describe direction
02The low two bits encode the initiator and whether the stream is bidirectional or unidirectional.
DIAGRAMRead RFC section 2.1 ↗
RFC 9000 · § 2.1EXAMPLE
3 / 3
03
Allocate the next ID of a type.
Client-initiated bidirectional streams use IDs 0, 4, 8, and so on.
Key idea: IDs distinguish four stream types.
Rules & examples
IDs distinguish four stream types.
- Client-initiated IDs are even; server-initiated IDs are odd.
- The next-lowest bit distinguishes bidirectional from unidirectional streams.
- Successive IDs of one type increase by four; IDs are not reused within a connection.
Limits on how many streams may be opened are separate from a stream’s direction and ID.
Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background
A message needs an address.
Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.
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.
Read the updated RFC section ↗