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.
Wire Framing & Endpoint Rules for Layer 3 Routing, VPN & Tunnels
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).
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.
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.
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.
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.
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
}# 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 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.
| # | Keyword | Protocol & Wire Summary | Default Port / Proto | Endpoint Rule | Wireshark Filter |
|---|---|---|---|---|---|
| 09 | icmp | Internet 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 |
| 10 | ndp | IPv6 Neighbor Discovery Protocol ndp — RFC 4861 IPv6 Neighbor Discovery & Router Advertisements | ICMPv6 NextHdr 58 (Hop Limit 255) | IPv6-Only | icmpv6.type >= 133 && icmpv6.type <= 137 |
| 11 | igmp | Internet Group Management Protocol v1, v2 & v3 igmp — IPv4 IGMPv1/v2/v3 Multicast Queries, Joins & Leaves | IPv4 Proto 2 (TTL 1) | IPv4-Only | igmp |
| 12 | mld | Multicast Listener Discovery v1 & v2 (IPv6) mld — IPv6 Multicast Listener Discovery (ICMPv6 130–132) | ICMPv6 NextHdr 58 (Hop Limit 1) | IPv6-Only | icmpv6.type >= 130 && icmpv6.type <= 132 |
| 13 | gre | Generic Routing Encapsulation (GRE, GRETAP & NVGRE) gre — RFC 2784 / 2890 GRE Tunnel Wrappers & Key/Seq Flags | IP Proto 47 | Dual-Stack IPv4/IPv6 | gre |
| 14 | vxlan | Virtual eXtensible Local Area Network Overlay vxlan — 24-Bit Data-Center VXLAN Overlays on UDP 4789 | UDP 4789 (VNI 1) | Dual-Stack IPv4/IPv6 | vxlan |
| 15 | geneve | Generic Network Virtualization Encapsulation geneve — Extensible SDN & Cloud GWLB Overlays on UDP 6081 | UDP 6081 (Proto 0x6558) | Dual-Stack IPv4/IPv6 | geneve |
| 16 | ipsec | IPsec Encapsulating Security Payload (Protocol Alias) ipsec — IP Protocol 50 ESP Tunnel Frames & SPI Headers | IP Proto 50 (ESP) | Dual-Stack IPv4/IPv6 | esp |
| 17 | esp | IPsec Encapsulating Security Payload esp — Canonical RFC 4303 ESP Headers & Reverse Scrubbing | IP Proto 50 | Dual-Stack IPv4/IPv6 | esp |
| 18 | ah | IPsec Authentication Header ah — RFC 4302 IPsec Authentication Header (IP Proto 51) | IP Proto 51 | Dual-Stack IPv4/IPv6 | ah |
| 19 | ikev2 | Internet Key Exchange Protocol Version 2 ikev2 — RFC 7296 VPN Key Negotiation on UDP 500 & 4500 | UDP 500 -> 500 (NAT-T 4500) | Dual-Stack IPv4/IPv6 | isakmp |
| 20 | wireguard | WireGuard Noise_IK Secure Network Tunnel wireguard — Noise_IK VPN Handshakes & Data on UDP 51820 | UDP 51820 | Dual-Stack IPv4/IPv6 | wg |
| 21 | ospf | Open 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 |
| 22 | bgp | Border Gateway Protocol 4 & 4-Byte ASN Capability bgp — Stateful TCP 179 Peering, NLRI & 4-Byte ASN Magic | TCP 179 | Dual-Stack IPv4/IPv6 | bgp |
| 23 | rip | Routing 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 |
| 24 | pim | Protocol Independent Multicast — Sparse Mode pim — RFC 7761 Sparse-Mode Multicast Hellos, Joins & RP | IP Proto 103 | Dual-Stack IPv4/IPv6 | pim |
| 25 | vrrp | Virtual Router Redundancy Protocol v2 & v3 vrrp — VRRPv2 & VRRPv3 First-Hop Gateway Heartbeats | IP Proto 112 (TTL 255) | Dual-Stack Morphing (v4/v6) | vrrp |
| 26 | hsrp | Cisco 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 |
| 27 | bfd | Bidirectional Forwarding Detection Control Packet bfd — Sub-Second RFC 5880 Link Liveness on UDP 3784 | UDP 3784 (Multihop 4784, TTL 255) | Dual-Stack IPv4/IPv6 | bfd |
| 28 | openflow | OpenFlow SDN Control Channel (OpenFlow 1.3 / 1.4) openflow — OpenFlow 1.3 SDN Controller <-> Switch Messages | TCP 6653 | Dual-Stack IPv4/IPv6 | openflow_v4 || openflow |