Fields by the bits they take, first to last
Drawn

The Mermaid
packet-beta
0-15: "Source Port"
16-31: "Destination Port"
32-47: "Length"
48-63: "Checksum"
64-95: "Data"
The library / Packets
A field is a box as wide as the bits it takes, with its bits over its name, in rows of as many bits as the packet says. Held to the same measure.
22 samples: 22 drawn as written. Mermaid’s side is mermaid-cli 12.2.0 as it comes, on white. Merlive’s is 0.6.1 in its own look. What is read of a packet.
Drawn

packet-beta
0-15: "Source Port"
16-31: "Destination Port"
32-47: "Length"
48-63: "Checksum"
64-95: "Data"
Drawn

packet
0-15: "Order number"
16-23: "Lines"
24-31: "Status"
32-63: "Total, in pence"
Drawn

packet-beta
title An order, as it is sent
0-15: "Order number"
16-23: "Lines"
24-31: "Status"
32-63: "Total, in pence"
Drawn

---
title: An order, as it is sent
---
packet-beta
0-15: "Order number"
16-31: "Supplier"
Drawn

packet-beta
0-7: "Kind"
8: "New"
9: "Paid"
10: "Held"
11: "Sent"
12-15: "Spare"
16-31: "Order number"
Drawn

packet-beta
+16: "Order number"
+8: "Lines"
+8: "Status"
+32: "Total, in pence"
Drawn

packet-beta
0-15: "Order number"
+8: "Lines"
24-31: "Status"
+16: "Supplier"
+16: "Buyer"
Drawn

packet-beta
0-15: "Order number"
16-47: "Total, in pence"
48-63: "Supplier"
Drawn

packet-beta
0-15: "Order number"
16-31: "Lines"
32-127: "The lines themselves"
128-143: "Check"
Drawn

---
config:
packet:
bitsPerRow: 16
---
packet-beta
0-7: "Kind"
8-15: "Status"
16-31: "Order number"
32-39: "Lines"
40-47: "Spare"
Drawn

%%{init: {"packet": {"bitsPerRow": 8}}}%%
packet-beta
0-3: "Kind"
4-7: "Status"
8-15: "Lines"
Drawn

---
config:
packet:
bitsPerRow: 64
---
packet-beta
0-31: "Order number"
32-63: "Supplier"
64-127: "Total, in pence"
Drawn

---
config:
packet:
showBits: false
---
packet-beta
0-15: "Order number"
16-23: "Lines"
24-31: "Status"
Drawn

---
config:
packet:
bitWidth: 20
rowHeight: 48
paddingX: 8
paddingY: 8
---
packet-beta
0-15: "Order number"
16-23: "Lines"
24-31: "Status"
Drawn

packet-beta
%% what every order starts with
0-15: "Order number" %% unique for a year
16-23: "Lines"
%% and how far it has got
24-31: "Status"
Drawn

packet-beta
accTitle: The header of an order
accDescr: Sixteen bits of order number, eight of lines, eight of status
0-15: "Order number"
16-23: "Lines"
24-31: "Status"
Drawn

packet-beta
0-7: 'Kind'
8-15: ""
16-23: "Lines [count]"
24-31: "Paid? (y/n)"
Drawn

packet-beta
0-15: "Order number"
16-31: "Supplier"
32-39: "Lines"
Drawn

packet-beta
0-31: "Order number"
Drawn

packet-beta
0 - 15 : "Order number"
16-23:"Lines"
24-31: "Status"
Drawn

packet-beta
0-15: "Order number"
16-23: "Lines"
24-31: "Status"
%% note bits0: Counted from one each January
%% note bits24: Raised, approved, sent or closed
Drawn

packet-beta
title TCP Packet
0-15: "Source Port"
16-31: "Destination Port"
32-63: "Sequence Number"
64-95: "Acknowledgment Number"
96-99: "Data Offset"
100-105: "Reserved"
106: "URG"
107: "ACK"
108: "PSH"
109: "RST"
110: "SYN"
111: "FIN"
112-127: "Window"
128-143: "Checksum"
144-159: "Urgent Pointer"
160-191: "(Options and Padding)"
192-255: "Data (variable length)"