I don't disagree/doubt that, but the emails about the commits and diffs, a lot really seemed to be "can't represent 10G in a 32bit uint, so all the stats and calculations are broken".With Internet Service Providers offering faster speeds I would imagine there is some work already on it.
there are no queues involved in whatever this is.It already does depending on what hardware you use and of course amount of rules
![]()
netbenches/AMD_Ryzen7-Pro-8845HS_8Cores/Intel_X710/firewalls/results/fbsd15-n302145/README.md at master · ocochard/netbenches
Network forwarding performance benchmark results. Contribute to ocochard/netbenches development by creating an account on GitHub.github.com
Hi, Is there any plans for implementing update to the packet filter so PF queues break the 4 Gbps barrier? I was reading about OpenBSD work in progress but I wonder if there are any plans for FreeBSD?
I don't know how closely FreeBSD tracks OpenBSD pf (Kristof Provost is the authoritative voice on that) but I would speculate that something like changes in HFSC scheduler are at least looked at.
What's hacky about it?IIRC dummynet and its tooling was primarily built around/for ipfw, the PF integration seems somewhat "hacky" -
The first thing that comes to mind: queues have to be created with dnctl, which is actually just an alias for ipfw - at least this is still what pf.conf(5) states. It's somewhat odd that you have to use "the other" firewall to set up the queues and cannot just set them up in the pf.conf as with HFSC queues and/or on OpenBSD.What's hacky about it?
altq on $wan_if cbq bandwidth 10Gb queue { std_out \pfctl -n -f /etc/pf.confpfctl: interface ix1 bandwidth limited to 4294967295 bps because selected scheduler is 32-bit limiteduname -aFreeBSD mclose.co.uk 15.0-RELEASE-p4 FreeBSD 15.0-RELEASE-p4 LDRIVE15 amd64Or wait and see if it gets backported to 15.x-STABLE and winds up in say 15.1-RELEASE.That means I will have to wait until December 2027... or upgrade to 16.0-CURRENT
struct dn_link {
struct dn_id oid;
/*
* Userland sets bw and delay in bits/s and milliseconds.
* The kernel converts this back and forth to bits/tick and ticks.
* XXX what about burst ?
*/
int32_t link_nr;
uint32_t bandwidth; /* bit/s or bits/tick. */
int delay; /* ms and ticks */
uint64_t burst; /* scaled. bits*Hz XXX */
};
It looks like it's HFSC only (in ALTQ) that has the 64-bit support. (Which was in fact explained in Patrick's commit message too.)Thanks everyone for a little discussion. I am not sure what I am missing but I just changed the line in my pf.conf to:
altq on $wan_if cbq bandwidth 10Gb queue { std_out \
and when testing firewall with commandpfctl -n -f /etc/pf.conf
I am getting this:
pfctl: interface ix1 bandwidth limited to 4294967295 bps because selected scheduler is 32-bit limited
for anyone asking what FreeBSD I am running, see the below:
uname -a
FreeBSD mclose.co.uk 15.0-RELEASE-p4 FreeBSD 15.0-RELEASE-p4 LDRIVE15 amd64
and when talking about breaking 4Gbps barrier I refer to this link (OpenBSD) https://undeadly.org/cgi?action=article;sid=20260319125859