Reference

Multiplexing Cheat Sheet

One page for recognizing multiplexing problems and designing a safe frame format.

When multiplexing fits

Minimum frame design

Fields you usually need
FieldWhy it existsExample
channelIdDemultiplex to the right logical conversation.chat, stream 3
sequenceRebuild chunks in order and detect gaps.0, 1, 2
dataPayload carried by this piece.hell
timestampNeeded when playback time matters.33ms
priorityNeeded when urgent work must avoid waiting behind bulk work.chat > file

Common failure modes

Course mental map

Same pattern across domains
DomainShared roadLabelDemux target
Toy protocolTransportChannel IDLogical channel
TCP/UDP hostNetwork interfaceProtocol + IP + portSocket/listener
I/O loopOne threadReadiness eventHandler/callback
HTTP/2TCP connectionStream IDHTTP stream
MediaPacket streamTrack + timestampPlayback track/time

Back to course home