Skip to content

Measurements

pfsync to a peer: a TCP connection's numbers stood still at the make, and a peer taking over refused it; written for the peer now, 2026-11-15

pf sees none of a connection's frames once the flow maker has put it in hardware, so the numbers pf keeps for it

  • each end's [seqlo + window] - stop at the make, and the state is marked sloppy there. pfsync copies what pf has: a peer held a window hundreds of megabytes behind the live connection, and its copy was strict whenever it had been sent before the make. Measured below, a peer with a strict copy refused a segment with the live numbers as a state mismatch - every segment of the connection, on a takeover. Since the change, while pfsync0 is up, the fast path's numbers are written into the connection's pf states at each keepalive pass and handed to pfsync, and each TCP connection's states are given a gigabyte past their right edges at the make; the states stay sloppy on the appliance that carries the connection.

A rule's tag kept out of hardware, router advertisements from listed senders only, a certificate import page and five more additions, each run as a save runs it, 2026-11-15

Plan 01's packages 3.2 to 3.9 add eight things to XGS: Settings and one page. Each was run on the second XGS 3300 as a save on the page runs it - the field written through the model and saved, then scripts/xgs/apply.php, the script behind Apply - and what it did was read back on the appliance; the driver part of 3.2 was run on the XGS 136 as well.

TACACS+ as a server type of System: Access: Servers, through FreeBSD's own libtacplus: PAP, ASCII and CHAP answered, 2026-11-15

OPNsense's authentication servers are LDAP and RADIUS; a network run with TACACS+ had no way to log in to the firewall with it. os-xgs-npu now adds TACACS+ to the types of System: Access: Servers (plan 01, package 3.10): a connector in OPNsense's own authentication library, which every service that asks OPNsense - the web GUI's login among them - can then use like a RADIUS server.

The XGS 136 keeps the state of a UDP connection in hardware now, 2026-11-15

The XGS 136's keepalive asked whether a connection's state still existed and gave pf the coprocessor's counts, and refreshed nothing: npuep_pf_touch, which restamps a state as a packet would, had no caller since the driver's flow table began. So the state of a UDP connection in hardware lapsed at its own timeout - udp.multiple, 60 seconds - and the connection left hardware with it. Since the change the keepalive restamps a connection's states when the coprocessor has counted traffic for it since the last restamp, at most every five seconds a connection (counted in flow.ka_touched), and each restamp is told to pfsync (npuep_pf_sync), as the XGS 3300's driver does (pfsync to a peer).

A WAN over PPPoE is common, and the drivers were read to refuse it: a connection whose route leaves by an interface that is not Ethernet underneath gets no next hop, so it stays with the host (contrib/octep/octep_nhop.c, contrib/npuep/npunhop.c). Before anything was built for it, the question was measured: is that what happens, and what does it cost the host?

Copies for a packet capture on the second XGS 3300: every frame to 500 Mbit/s on one boot, checked at the PC's 10G cards, 2026-11-11

A packet capture on the appliance - tcpdump, or Interfaces: Diagnostics: Packet Capture - sees a connection only until the coprocessor forwards it; after that its frames no longer cross the host. XGS: Settings Copies for packet capture has the fast path send the host two copies of every frame it forwards, one for each port the frame crosses, and the driver shows each copy to that port's capture (discoveries 12 and 17). On 2026-10-25 the second XGS 3300, over vendor version 22, copied every frame of a 200 Mbit/s stream before one of its boots, and after it only the stream's first 1,556 to 1,560 data frames (the measurement). Whoever reads such a capture needs to know whether it holds every frame. So on this board's boot of 2026-11-11 one stream in hardware was counted at both of its ends, on the PC's two 10 Gbit/s cards, and by a capture on the 3300, with the copies off and on.

IPS on XGS 136 with Inspect, then hardware: 948 Mbit/s at 2 % CPU against 934 at 36 %, and TLS recognised in both modes, 2026-11-11

Intrusion Detection in IPS mode on an XGS 136 can inspect every frame, the host carrying all of them, or - with XGS: Settings "Inspect, then hardware" - each new connection's start, the coprocessor carrying the rest (how it works). What does each cost in throughput and CPU on the same traffic? And does Suricata still recognise an application, TLS, when only a connection's start crosses it? This is how the plugin inspects in depth: without the frames a host can inject into the fast path (discovery 18), and without the XGS 3300's own deep-inspection engine (discovery 22), which stays off (the discoveries).

IPsec in both engines, XGS 3300 and XGS 136: no gap between directions, and twenty IKE handshakes in 0.28 s, 2026-11-11

With both appliances' engines carrying a tunnel, a stream from the XGS 136 to the PC ran at 767 Mbit/s on 2026-11-10, against 923 the other way. Is one direction slower through the engines, and when UDP is lost, is it lost there? And IKE's public-key work stays with the hosts: the coprocessors' public-key engine is reached only from the vendor's intrusion-prevention stage, with no request format in its source (discovery 16). Is that work heavy enough to want hardware?

netmap on the XGS 136's own rings: four of them, and jumbo frames through Suricata, 2026-11-11

Suricata in IPS mode reads a port through netmap. On the XGS 136's ports netmap used its emulated adapter, and that adapter cuts every frame to one 2,048-byte cluster on its way out (FreeBSD's nm_os_generic_xmit_frame: "size 2048 < len 9014"), so a port at MTU 9000 cannot run through Suricata in IPS mode (measured the same day). npuep now gives each front port an adapter of its own, behind a loader tunable.

Eight receive-path and offload tries that gained nothing or met a limit, XGS 136 and XGS 3300, 2026-11-10 to 2026-11-11

Eight things were tried on the lab's XGS 136 and second XGS 3300 to make the host's receive path faster or to put more traffic in hardware: a receive queue for each port, a deeper netmap queue under Suricata, jumbo frames through Suricata, checksum offload on forwarded traffic, a five-tuple spread over Suricata's rings, GRE in hardware, ICMPv6 and translated IPv6 in hardware, and a bridge over VLANs in hardware. Most gained nothing, or found where the hardware, its firmware or FreeBSD stops; ICMPv6 in hardware worked, on a test build. They are written up together so that someone running Intrusion Detection in IPS mode, jumbo frames, GRE, NAT66 or a bridge over VLANs on these appliances knows what to expect, and which settings did not help when measured.

The XGS 136 has the same switch chip in front of its coprocessor as the XGS 3300, an 88E6193X (queue scheduling). The same day, on the second XGS 3300, that chip was made to copy one port's frames to another, to hold a port's egress to a rate, and to switch two ports to each other without the host. On the XGS 136 the host has kept off the chip's bus since 2026-10-24: the coprocessor's network agent follows the links on that bus, and the host's reads and writes there have made it report ports down that were up (639, 706). The question here: can the host do the same three things on the XGS 136's switch without a port going down, on an appliance whose own way in, F1, is a port of that chip? It matters to anyone who wants a port copied for a capture, a port held to a rate, or two ports switched in hardware on this model.

Inside the XGS 3300's switch chip: two ports bridged at 938 Mbit/s past the firewall, a VLAN in its table, an exact mirror, egress steps and one TCAM rule, 2026-11-11

On 2026-11-10 two front ports of the second XGS 3300 were switched to each other inside its 88E6193X switch chip, and one port was mirrored and its egress limited. These runs measured each with traffic. What does the chip carry when it switches two ports itself, and what does the firewall see of it? Does a VLAN loaded into the chip's own VLAN table work? How exact is the mirror, and what does it cost? Which egress limits does the chip offer? Does a rule of one's own fit in its TCAM, the table of rules the vendor's software fills?

WireGuard on XGS 136 and XGS 3300: 855 to 901 Mbit/s on host CPUs, and UDP to its port carried in hardware across, 2026-11-11

Neither coprocessor can encrypt for WireGuard. Its cipher, ChaCha20-Poly1305, was given to every engine as an experiment on 2026-10-25, and every engine took the association and then dropped every frame of it (the measurement). On 2026-11-10 both coprocessors' own kernels listed ChaCha20 only in software (its generic and NEON implementations), Poly1305 not at all, and no engine driver (/proc/crypto). So a WireGuard tunnel that ends on the appliance runs on the host's CPU. How fast, and at what cost? And WireGuard that only crosses the appliance is UDP to it: is that carried in hardware?