Baud

See what is inside every byte.

Animated, step-by-step diagrams of the protocols that move data: UART, SPI, I2C, TCP, DNS, HDMI, NDI and more. Watch the bits leave the wire, assemble into bytes, and turn into meaning.

Every card below is live. Open one to step through it field by field.

Serial and buses

Bits on a wire: start bits, clocks, addresses, acknowledgements.

Network stack

Headers stacked on headers: from Ethernet frames up to TCP.

Ethernet II header · 14 bytes081600000000001A000110102B001010113C001111004D010011015E010111103C001111002200100010FB11111011AA1010101001000000012000100000080000100000000000004501000101000000000000000000002C001011001C000111004601000110Destination MACSource MACEtherTypePayload (start)

Ethernet II

Open

The frame that carries everything on a local network: MACs, a type, a payload.

L2MACCRC-32
Laptop192.168.1.20Router192.168.1.1ARP requestto FF:FF:FF:FF:FF:FFARP replyunicastIP packetdst MAC 00:1A:...cache: empty192.168.1.1 = 00:1A:2B:3C:4D:5E

ARP

Open

How a host turns an IP address into the MAC address it needs.

L2.5broadcast28 bytes
IPv4 header · 20 bytes04812164501000101000000000000000000002C001011001C000111004601000110400100000000000000004001000000060000011020001000009710010111C011000000A81010100001000000011400010100CB11001011000000000071011100013200110010VersionIHLDSCPECNTotal lengthIdentificationFlagsFragment offsetTTLProtocolHeader checksumSource addressDestination address

IPv4

Open

The 20-byte header that gets a packet across the whole internet.

L320 bytesTTL
UDP datagram · 8-byte header + 29 bytes of data08162432D411010100310011000100000000003500110101000000000025001001012C001011009C10011100AB10101011CD11001101010000000100000000000000000000010000000100000000000000000000000000000000000000000000000000000000000007000001116501100101780111100061011000016D0110110170011100006C011011006501100101030000001163011000116F011011116D0110110100000000000000000000010000000100000000000100000001Source portDestination portLengthChecksumData (a DNS query)

UDP

Open

The smallest transport: ports and a checksum, nothing else.

L48 bytesconnectionless
Client192.168.1.20:51234Server203.0.113.50:80SYNseq=1000SYN, ACKseq=5000 ack=1001ACKseq=1001 ack=5001PSH, ACKseq=1001 ack=5001 len=100ACKseq=5001 ack=1101CLOSEDLISTENSYN_SENTSYN_RCVDESTABLISHEDESTABLISHED

TCP

Open

A reliable byte stream built from numbered segments and acknowledgements.

L4reliablehandshake

Application protocols

What the programs say to each other once the packets arrive.

Video and streaming

Moving pictures over networks: from live video over IP to adaptive streaming.

Receivermonitor / mixerNDI sendercamera PCmDNS query_ndi._tcp.local PTRmDNS responsePTR + SRV :5961 + ATCP connect-> :5961NDI helloproprietaryVideo frameSpeedHQ · 1080p60Audio frametimecode, PCMMetadataXML: tally, PTZadvertisingsource foundCONNECTEDCONNECTED

NDI

Open

Studio-quality video over an ordinary network: found by mDNS, streamed frame by frame.

mDNSTCPproprietary
EncoderRTP senderDecoderRTP receiverRTPseq=100 ts=3600RTPseq=101 ts=3600 M=1RTPseq=102 ts=7200RTPseq=103 ts=7200 M=1RTPseq=104 ts=10800RTCP RRlost=1 of 5bufferingframe 1 OKframe 2 damaged

RTP

Open

A 12-byte header that puts timing and order onto live audio and video.

UDP12 bytestimestamp
RTSP request · DESCRIBE0163248648044D45E53S43C52R49I42B45E20 72r74t73s70p3A:2F/2F/63c61a6Dm2E.65e78x61a6Dm70p6Cl65e2E.63c6Fo6Dm2F/6Cl69i76v65e20 52R54T53S50P2F/3112E.3000DCR0ALF43C53S65e71q3A:20 3220DCR0ALF41A63c63c65e70p74t3A:20 61a70p70p6Cl69i63c61a74t69i6Fo6En2F/73s64d70p0DCR0ALF0DCR0ALFMethodSpaceURLSpaceVersionCRLFCSeq he…Accept headerBlank line

RTSP

Open

The remote control for streams: describe, set up, play, stop, in HTTP-style text.

TCP/554textcontrol
MPEG-TS packet carrying a PAT · first 21 of 188 bytes0816470100011140010000000000000000100001000000000000000000000000B0101100000D0000110100000000000100000001C1110000010000000000000000000000000000000100000001F01111000000000000002A00101010B1101100010400000100B210110010Sync bytePIDS…A…Con…Pointer f…Table IDR…Section lengthTransport stream IDR…Versi…Section n…Last sect…Program numberRe…PMT P…CRC-32

MPEG-TS

Open

188-byte packets that interleave video, audio and tables into one stream.

188 bytesPIDbroadcast
SenderencoderReceiverdecoderDATAseq=100DATAseq=101DATAseq=102NAKlost: 101DATAseq=101 R=1ACKup to seq=103CONNECTEDCONNECTED101 recovered

SRT

Open

UDP made reliable for live video: retransmit what is lost, but only in time.

UDPARQAES
HLS media playlist (.m3u8) · plain text0163248648023#45E58X54T4DM33355U0ALF23#45E58X54T2D-58X2D-54T41A52R47G45E54T44D55U52R41A54T49I4FO4EN3A:3660ALF23#45E58X54T49I4EN46F3A:3662E.3002C,0ALF73s65e67g3002E.74t73s0ALF23#45E58X54T49I4EN46F3A:3662E.3002C,0ALF73s65e67g3112E.74t73s0ALF23#45E58X54T2D-58X2D-45E4EN44D4CL49I53S54T0ALFHeader tagTarget durationSegment durationSegment URISegment durationSegment URIEnd of list

HLS

Open

Video as a text playlist of small files, so a web server and a CDN are all you need.

HTTPtextadaptive
SD-SDI line · 10-bit words (excerpt)04812163FF111111111100000000000000000000000000274100111010020010000000000400001000000200100000000004000010000003FF111111111100000000000000000000000000200100000000020010000000003AC111010110020010000000003AC11101011002001000000000040000100000020010000000000400001000000EAV preambleEAV: XYZHorizontal blankingSAV preambleSAV: XYZPixels 0–1: whitePixels 2–3: black

SDI

Open

Uncompressed broadcast video on one coax cable: 10-bit words and sync patterns.

coax10-bituncompressed
Sourceconsole / PCTV (sink)HDMI inputHPD high+5V pinDDC readI2C 0x50, EDIDSCDCI2C 0x54TMDS video148.5 MHz, 1080p60HDCPDDC, 0x3ACECopcode 0x36standbysink detectedshowing 1080p60standby

HDMI

Open

Video, audio and a conversation on one cable: TMDS pixels, EDID, InfoFrames.

TMDSEDID10-bit