Skip to content

Docs · Engines

Packet & bit fields

Protocol headers and register bit-field layouts at 8, 16, 32 or 64 bits a word, in either bit order and saying which is in force. Checks the layout rather than just drawing it: overlapping fields, unclaimed bit runs and fields that overflow the declared extent are computed and named.

Architectural composition of precision sculptural forms
Templates
10
Source language
plaintext
Workstation
Studio
Engine id
packet

In the same space

Most users come to Packet & bit fields from packetdiag, bytefield-svg, WaveDrom (bitfields) or Protocol Builder. flowss runs this engine in the browser — no install, shareable via URL, exportable to PNG / SVG / PDF / source.

Syntax at a glance

title "IPv4 header"
width 32
bitorder msb
0-3: Version = 4
4-7: IHL
16-31: Total length

Paste this in the Studio code pane to see Packet & bit fields render live. The full grammar is at the upstream-docs link above.

Sample templates

All 10 →
architecture

Packet — Ethernet II Frame Header

Two MAC addresses and an EtherType, which is the smallest useful demonstration of a field that wraps across word boundaries: a 48-bit address on a 32-bit word does not fit in one row and is drawn split rather than flagged, because wrapping is the layout working and not a defect. It also declares no extent, so the engine says the trailing sixteen bits of the last word are outside the layout rather than unallocated inside it — two states that must not look the same.

View example and source
Edit in Studio
Engine reference: packet · ← Browse all engines · Quick-start guide