With a lagg in LACP over the XGS 3300's Port3 and Port4, losing one member stalled connections
(#1162). A direction in hardware leaves by the port
chosen when it was made, and nothing moved it: while the member was gone, the connections with a direction
leaving by it stayed in hardware, sending into the dead port and kept alive by the far side's own retransmissions,
and after the port came back they waited out TCP's backed-off retransmission timer.
The XGS 136's front ports offered autoselect alone, and a change of medium was accepted and ignored. Since the
change a switch socket - Port1 to Port8, copper behind the switch - offers 10 and 100 half and full, 1000baseT full
and autoselect, set by the network agent's KSETTINGS attribute (0x55) with what autonegotiation advertises in
attribute 0x43, as on the second XGS 3300. The cages and Port9 to Port12 keep
autoselect. The request is applied by the agent's link poll, as an MTU is (npunwa_media_apply); a set already
in place is not sent again, since the agent takes the port down and up for it; half duplex is read beside the
speed when the carrier comes up (attribute 0x0d), and the port's address is named to the switch again at every
carrier up.
The front ports offered autoselect alone, and a change of medium was accepted and ignored. The switch sockets'
speed and duplex are set by the network agent's KSETTINGS attribute (0x55), the one the SDK's own host sends for
an ethtool -s, with what autonegotiation advertises in attribute 0x43
(the attributes). Since the change
a socket offers 10 and 100 half and full, 1000baseT full and autoselect (octep_dp_media_change), and a cage keeps
autoselect.
With pfsync between two appliances, the state of a UDP connection the flow maker had put in hardware was
replaced 60 to 70 seconds in (#1160). pfsync sends a
state's update when pf passes one of its packets, and a connection in hardware passes none: the driver's
keepalive refreshed the state's expiry by writing it, and pfsync never heard of it, so the peer's copy expired on
udp.multiple (60 s) and the delete its expiry sent back removed the live state. Since the change the keepalive's
refresh is handed to pfsync's own update, on the same state under the same lock (octep_pf_sync). That is the XGS
3300's driver: the XGS 136's keepalive did not refresh a state in hardware at all (below).
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.
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.
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'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?
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.
Suricata in IPS mode reads the XGS 136's ports through netmap's emulated adapter. That adapter puts a received
frame in the ring its flow id names (FreeBSD's netmap_generic.c), and npuep gave its frames no flow id, so
with dev.netmap.generic_rings at 4 every frame still went to the first ring.
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).
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?
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.