Interactive Tutorial · Local Browser WebAssembly · 4 min

Chapter 0: Introduction and Use Cases

Why FrameAssembly exists for network technicians, four everyday packet jobs it solves without Python or root sockets, and a 30-second live sandbox warm-up.

Labs completed0/7
Chapter 0 · Why Packets as Plain Text (.frasm <-> .pcap)

Why FrameAssembly Exists

Building a 5-packet test .pcap—or changing two IP addresses inside an existing capture—should not require a Python environment, root privileges, or three lab VMs.

On a real shift, network technicians need test packets fast: verifying that Zabbix or PRTG actually pages on an encrypted SNMPv3 linkDown trap, proving a Friday-night VLAN 20 firewall ACL passes HTTPS before Monday morning, testing IDS scan alerts, or scrubbing private customer subnets before attaching a .pcap to a vendor TAC ticket.

Traditional packet tools get in the way. Python + Scapy forces you to wrestle imports, sudo raw-socket permissions, and manual TCP sequence math. Meanwhile tcprewrite can swap outer Layer 3 IPs, only to break packet lengths and checksums the moment an internal DNS hostname or TLS SNI changes length.

FrameAssembly (.frasm <-> .pcap) treats packet captures like a readable whiteboard ladder diagram: list your devices in host, draw -> and <- packet lines inside compile, and let the local compiler build every Ethernet tag, IP length, stateful TCP counter, and SNMPv3 key—or reverse any existing .pcap back into plain text.

1. host — Name the devices

host fw { ip 10.20.90.80 }

2. compile — Draw the ladder

pc -> fw vlan 20 tcp syn dstport 443

01 · Whiteboard Ladder Syntax

Draw -> and <- arrows instead of debugging Python scripts

If you know what an IP address, VLAN ID, TCP SYN, or ping reply is, you can read and write .frasm in minutes. Every built-in keyword is plain lowercase letters and digits with zero underscores.

02 · No Root, No Drivers, 0 Uploads

Builds .pcap & .pcapng files safely in user space

No sudo, no Npcap kernel drivers on a locked-down admin laptop, and zero live traffic put on the wire until you choose to replay the file with tcpreplay or suricata -r.

03 · Automatic TCP State & Checksums

Tracks seq / acknum & flips ports on <- replies automatically

Stateful firewalls and IDS sensors drop lone spoofed packets. FrameAssembly tracks 4-tuple TCP handshakes and calculates every Layer 2–7 length and checksum automatically.

04 · Two-Way .pcap <-> .frasm Editing

Reverse existing .pcap files into text, scrub secrets, and rebuild

Convert any binary Wireshark trace into .frasm text, replace private IPs, MACs, VLANs, or internal hostnames, and rebuild a clean .pcap with valid checksums.

Everyday Network Technician Use Cases

Load a Real Use Case into the Live Sandbox

Click any preset below to load commented .frasm code into the right-hand sandbox and inspect the resulting Ethernet, VLAN, IP, TCP, and SNMPv3 headers immediately.

Firewall & SecOpsbranch_vlan20_https.frasmWireshark: vlan.id == 20 && tcp.port == 443

Dry-run a Friday-night VLAN 20 firewall ACL and IPS policy to verify branch users can establish HTTPS (TCP 443) to an internal portal before Monday morning.

Builds a complete 3-way -> / <- TCP handshake, auto-swaps ports, and stamps 802.1Q VLAN 20 onto every frame.

Hands-On Curriculum · 6 Guided Labs

Origin Story & Full Lab Syllabus (Chapters 1–6)

Chapter 15 minhost · ip · compile · icmp

Chapter 1: Core Syntax & Basic Ping (host + compile)

A user ticket claims "the LAN is down." Build a clean 4-packet ping capture (laptop -> gateway and laptop -> dns_srv) to test Wireshark display filters and baseline connectivity.

Chapter 25 min-> · <- · wait · dns

Chapter 2: Basic Examples — Reply Arrows (<-), Timing (wait) & DNS

Users at a remote branch complain logins take forever. Build a capture showing a sluggish 250ms WAN DNS lookup followed by a quick ping so junior techs can spot DNS lag in Wireshark.

Chapter 36 minvlan · tcp · syn · ack

Chapter 3: Firewall Rule Testing (802.1Q vlan & Stateful TCP)

You need to validate a firewall ACL permitting VLAN 100 clients to reach an internal API on TCP port 8080—and Windows/macOS NIC drivers keep stripping 802.1Q tags from live captures.

Chapter 46 minsnmp2 · snmp3 · trap · varbind

Chapter 4: SNMP Trap Simulation & Syslog Alerts (snmp2, snmp3 & syslog)

Verify your NMS pages the on-call engineer when building uplink Gi1/0/24 goes down—without unplugging the fiber feeding Building 2.

Chapter 55 minflow · compile · tls · clienthello

Chapter 5: Multi-Subnet Policy Checks with Reusable flow(c, s)

Three campus user VLANs (floor1_pc, floor2_pc, wifi_user) all need to pass the same 4-packet TCP + TLS handshake to sso_gw without copy-pasting 12 lines.

Chapter 66 minreverse · host1 · host2 · qname

Chapter 6: Reverse .pcap -> Scrub Secrets -> Rebuild .pcap

Vendor TAC asks for your failing login .pcap, except it exposes 10.99.4.x and "payroll.secret-corp.internal" inside DNS and TLS SNI — scrub both before uploading.

Copy-Paste Templates & Field Guides

Pre-Built Code Examples, Cursed Packets & Cheat Sheets

30-Second Warm-Up: Swap a Host IP & Watch Every Header Update
Change one IP in the sandbox and watch every packet header & checksum update live

Test any of the 4 use-case presets above or edit the .frasm code on the right. To complete Chapter 0, change the first host IP address (for example 10.20.10.25 -> 10.20.10.50) and click Check Warm-Up.

  1. 1.Locate the first host declaration near the top of the editor on the right.
  2. 2.Change its IPv4 address to another valid host IP (e.g. 10.20.10.50) — plain IP only, no /24 subnet mask.
  3. 3.Click Check Warm-Up and confirm every packet header and checksum updates cleanly.
branch_vlan20_https.frasmLoading WASM…
Wireshark filter: vlan.id == 20 && tcp.port == 443
Open in Playground
0 B · 0.000 ms
Compiling capture in WebAssembly…
Learn FrameAssembly: Docs, Protocols & Labs — FrameAssembly