1. Read the envelope
The first 7 bytes are always type, channel, and payload size. The final byte must be 0xCE.
Inspect AMQP 0-9-1 method, header, body, and heartbeat frames as byte-level packets moving through shared channels.
Every AMQP 0-9-1 command or message is carried as frames. Use this workbench to see the shared 7-byte envelope, the type-specific payload, the frame-end marker, and how multiple channels share one TCP connection without mixing one message's content frames on the same channel.
The first 7 bytes are always type, channel, and payload size. The final byte must be 0xCE.
Methods are commands, headers are message properties, body frames carry bytes, and heartbeats keep idle connections alive.
Channel 0 is connection-level. Channels 1-65535 are virtual streams over the same socket.
A content-carrying method is followed by exactly one header frame and zero or more body frames.
The method frame tells the broker which command is being requested on this channel. For Basic.Publish, the content header and body frames follow on the same channel.
The strip keeps the real AMQP envelope shape constant while the payload explanation changes by frame type.
01 00 01 00 00 00 0C 00 3C 00 28 ... CE
Click a frame to jump to that point. Content frames for one message stay sequential on their channel; other channels may appear between them on the socket.
type: 1 bytechannel: 2 bytes, big-endiansize: 4 bytes, payload lengthframe-end: always 0xCE1: method command2: content header/properties3: content body bytes8: heartbeat on channel 00xCE means framing error.A published message normally appears as a method frame, a content header frame, and one or more body frames. Debug traces often show this as several packets even though the application sent one logical message.
Heartbeat frames are connection-level transport frames. In AMQP 0-9-1 they use frame type 8, channel 0, zero payload bytes, and the normal 0xCE frame end.
Frames from another channel can appear between frames on the shared socket, but content frames for a single message on a single channel must remain sequential.
The frame size field is the payload length, not the whole frame length. Total bytes are 7 + payload size + 1.
The payload bytes shown here are compact teaching sketches. The envelope, frame types, channel rules, content sequence, body-size relationship, and heartbeat behavior follow AMQP 0-9-1.
Body frames are the useful place to demonstrate fragmentation. RabbitMQ's AMQP 0-9-1 errata notes that method and content header frames cannot be split across multiple frames, so this workbench keeps them whole.
AMQP Message Flow shows exchange, queue, ack, return, and dead-letter outcomes. AMQP Exchange Types focuses on routing decisions.
Use it before packet capture analysis, broker troubleshooting, or reliability lessons where learners need to separate wire framing from messaging semantics.