Category 02 of 08Layer 320 Native ProtocolsFrameAssembly v3.2.2
Raw .mdllms-full.txt

Layer 3 Control, Tunnels, VPN, Routing & Redundancy

Booting multi-vendor router VMs just to test one eBGP 4-byte ASN capability, an OSPFv3 pseudo-header checksum, or a VXLAN DF/PMTUD black hole wastes hours of lab RAM. FrameAssembly compiles all 20 Layer 3 control, overlay, IPsec/WireGuard VPN, dynamic routing, FHRP, and SDN protocols directly into deterministic .pcap captures.

Dual-stack protocols (icmp, ospf, rip, vrrp, hsrp, pim, bfd, bgp, vxlan, geneve, gre, ipsec/esp/ah, ikev2, and wireguard) switch their wire framing and checksum math automatically when run over IPv6 host pairs, while FrameAssembly strictly enforces IPv4-only igmp and IPv6-only ndp/mld.

Keywords in Category 02:icmpndpigmpmldgrevxlangeneveipsecespahikev2wireguardospfbgprippimvrrphsrpbfdopenflow
Wire & Endpoint Rules

Wire Framing & Endpoint Rules for Layer 3 Routing, VPN & Tunnels

Rule 01

Dual-Stack Header & Checksum Morphing

Switching endpoint host blocks from IPv4 to IPv6 automatically morphs icmp (Proto 1 -> ICMPv6 58), ospf (OSPFv2 -> OSPFv3 RFC 5340), rip (520 -> RIPng 521), vrrp (v2 -> v3), and hsrp (1985 -> HSRPv2 2029).

Rule 02

RFC Hop-Limit & TTL Defaults

ndp, vrrp, and bfd default to ttl 255 so Hop-Limit / GTSM security checks pass out of the box; ospf, igmp, and mld default to link-local ttl 1.

Rule 03

Automatic 4-Byte BGP AS_TRANS (23456)

When bgp open asn <u32> exceeds 65535, FrameAssembly writes 23456 (AS_TRANS) in the 16-bit header and appends RFC 6793 Capability 65 automatically.

Rule 04

ESP Authoring vs. Reverse Parity

ipsec and esp share identical IP Protocol 50 wire builders; frameassembly reverse always emits canonical esp so gateway IPs can be scrubbed cleanly.

Multi-Protocol Capture Example

Underlay Routing, BFD Liveness, VXLAN Overlay & WireGuard

Builds a stateful TCP 179 eBGP 4-byte ASN OPEN + NLRI UPDATE exchange, a TTL-255 BFD Up control packet, an OSPFv2 Hello, a VXLAN VNI 10020 overlay packet with df set, and a 148-byte WireGuard handshake initiation.

l3_routing_vxlan_vpn.frasm14 lines
Open in Playground
host spine1 { ip 10.255.0.1 }
host leaf1 { ip 10.255.0.2 }
compile {
leaf1 -> spine1 tcp syn srcport 51900 dstport 179 win 65535 mss 1460 wait 1ms
leaf1 <- spine1 tcp syn ack win 65535 mss 1460 wait 1ms
leaf1 -> spine1 tcp ack wait 1ms
leaf1 -> spine1 bgp open asn 4200000010 holdtime 90 bgpid 10.255.0.2 wait 2ms
leaf1 <- spine1 bgp update asn 4200000001 prefix "10.40.0.0/16" nexthop 10.255.0.1 wait 2ms
leaf1 -> spine1 bfd state 3 mydisc 0x1001 yourdisc 0x2002 mintx 50000 minrx 50000 mult 3 wait 2ms
leaf1 -> spine1 ospf hello routerid 10.255.0.2 areaid 0.0.0.0 wait 2ms
leaf1 -> spine1 vxlan vni 10020 df wait 2ms
leaf1 -> spine1 wireguard initiation sender 0x0a0b0c0d
}
Terminal Commands (FrameAssembly CLI v3.2.2)
# 1. Eyeball relative timestamps, ports & wire lengths in your terminal
frameassembly show l3_routing_vxlan_vpn.frasm

# 2. Compile .frasm -> classic .pcap (tcpdump/tcpreplay/Suricata) or nanosecond .pcapng
frameassembly l3_routing_vxlan_vpn.frasm l3_routing_vxlan_vpn.pcap
frameassembly l3_routing_vxlan_vpn.frasm l3_routing_vxlan_vpn.pcapng

# 3. Round-trip .pcap <-> .frasm whenever you want to scrub or tweak an existing capture
frameassembly reverse l3_routing_vxlan_vpn.pcap l3_routing_vxlan_vpn_edited.frasm

# 4. Verify dissected protocol fields in tshark
tshark -r l3_routing_vxlan_vpn.pcap -Y "bgp || bfd || ospf || vxlan || wg"
All 20 Protocols

All 20 Native Protocols in Layer 3 Control, Tunnels, VPN, Routing & Redundancy

Select any lowercase protocol keyword below for its full RFC wire layout, modifier table, cross-layer wrappers, and runnable lab capture.

#KeywordProtocol & Wire SummaryDefault Port / ProtoEndpoint RuleWireshark Filter
09icmpInternet Control Message Protocol v4 & Dual-Stack ICMPv6

icmp — Dual-Stack ICMPv4 & ICMPv6 Echo and Error Frames

IP Proto 1 (v4) / NextHdr 58 (v6)Dual-Stack Morphing (v4/v6)icmp || icmpv6
10ndpIPv6 Neighbor Discovery Protocol

ndp — RFC 4861 IPv6 Neighbor Discovery & Router Advertisements

ICMPv6 NextHdr 58 (Hop Limit 255)IPv6-Onlyicmpv6.type >= 133 && icmpv6.type <= 137
11igmpInternet Group Management Protocol v1, v2 & v3

igmp — IPv4 IGMPv1/v2/v3 Multicast Queries, Joins & Leaves

IPv4 Proto 2 (TTL 1)IPv4-Onlyigmp
12mldMulticast Listener Discovery v1 & v2 (IPv6)

mld — IPv6 Multicast Listener Discovery (ICMPv6 130–132)

ICMPv6 NextHdr 58 (Hop Limit 1)IPv6-Onlyicmpv6.type >= 130 && icmpv6.type <= 132
13greGeneric Routing Encapsulation (GRE, GRETAP & NVGRE)

gre — RFC 2784 / 2890 GRE Tunnel Wrappers & Key/Seq Flags

IP Proto 47Dual-Stack IPv4/IPv6gre
14vxlanVirtual eXtensible Local Area Network Overlay

vxlan — 24-Bit Data-Center VXLAN Overlays on UDP 4789

UDP 4789 (VNI 1)Dual-Stack IPv4/IPv6vxlan
15geneveGeneric Network Virtualization Encapsulation

geneve — Extensible SDN & Cloud GWLB Overlays on UDP 6081

UDP 6081 (Proto 0x6558)Dual-Stack IPv4/IPv6geneve
16ipsecIPsec Encapsulating Security Payload (Protocol Alias)

ipsec — IP Protocol 50 ESP Tunnel Frames & SPI Headers

IP Proto 50 (ESP)Dual-Stack IPv4/IPv6esp
17espIPsec Encapsulating Security Payload

esp — Canonical RFC 4303 ESP Headers & Reverse Scrubbing

IP Proto 50Dual-Stack IPv4/IPv6esp
18ahIPsec Authentication Header

ah — RFC 4302 IPsec Authentication Header (IP Proto 51)

IP Proto 51Dual-Stack IPv4/IPv6ah
19ikev2Internet Key Exchange Protocol Version 2

ikev2 — RFC 7296 VPN Key Negotiation on UDP 500 & 4500

UDP 500 -> 500 (NAT-T 4500)Dual-Stack IPv4/IPv6isakmp
20wireguardWireGuard Noise_IK Secure Network Tunnel

wireguard — Noise_IK VPN Handshakes & Data on UDP 51820

UDP 51820Dual-Stack IPv4/IPv6wg
21ospfOpen Shortest Path First — OSPFv2 & Dual-Stack OSPFv3

ospf — Dual-Stack OSPFv2 & OSPFv3 Link-State Adjacencies

IP Proto 89 (TTL 1)Dual-Stack Morphing (v4/v6)ospf
22bgpBorder Gateway Protocol 4 & 4-Byte ASN Capability

bgp — Stateful TCP 179 Peering, NLRI & 4-Byte ASN Magic

TCP 179Dual-Stack IPv4/IPv6bgp
23ripRouting Information Protocol — RIPv2 & Dual-Stack RIPng

rip — RIPv2 (UDP 520) & IPv6 RIPng (UDP 521) Route Updates

UDP 520 (RIPv2) / UDP 521 (RIPng)Dual-Stack Morphing (v4/v6)rip || ripng
24pimProtocol Independent Multicast — Sparse Mode

pim — RFC 7761 Sparse-Mode Multicast Hellos, Joins & RP

IP Proto 103Dual-Stack IPv4/IPv6pim
25vrrpVirtual Router Redundancy Protocol v2 & v3

vrrp — VRRPv2 & VRRPv3 First-Hop Gateway Heartbeats

IP Proto 112 (TTL 255)Dual-Stack Morphing (v4/v6)vrrp
26hsrpCisco Hot Standby Router Protocol v1 & v2

hsrp — Cisco HSRPv1 (1985) & HSRPv2 (2029) Standby Frames

UDP 1985 (v1) / UDP 2029 (v2)Dual-Stack Morphing (v4/v6)hsrp || hsrp2
27bfdBidirectional Forwarding Detection Control Packet

bfd — Sub-Second RFC 5880 Link Liveness on UDP 3784

UDP 3784 (Multihop 4784, TTL 255)Dual-Stack IPv4/IPv6bfd
28openflowOpenFlow SDN Control Channel (OpenFlow 1.3 / 1.4)

openflow — OpenFlow 1.3 SDN Controller <-> Switch Messages

TCP 6653Dual-Stack IPv4/IPv6openflow_v4 || openflow