OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: Maarten on December 07, 2021, 11:27:31 am

Title: Max size traffic shaper pipe?
Post by: Maarten on December 07, 2021, 11:27:31 am
Hi, I'm trying to configure a pipe larger than 2gbit, but anything I configure over 2.1gb causes problems. The Shaper status does not show queues/rules after it encounters the pipe over 2.1gb.

for example "ipfw queue show", doesn't show anything, if there is a pipe over 2.1gb

Best regards,

Maarten

(OPNsense 21.7.1-amd64) (I checked, but this is also the case with OPNsense 20.7)
Title: Re: Max size traffic shaper pipe?
Post by: KHE on December 08, 2021, 10:46:10 pm
Hi,

2.1Gbit/s are 2.1 billion bit/s. Int32 has a value range from -2.147.483.648 to 2.147.483.647.
Looks like 2.1Gbit/s is the maximum value.
And looking searching the internet I found the following at bugs.freebsd.org:
https://bugs.freebsd.org/bugzilla//show_bug.cgi?id=194453 (https://bugs.freebsd.org/bugzilla//show_bug.cgi?id=194453)
So somebody reported this in 2014, it seems to be changed in FreeBSD src to 4Gbit/s since this August.

KH
Title: Re: Max size traffic shaper pipe?
Post by: Maarten on December 09, 2021, 12:11:02 pm
Hi KH,

Good find, so they changed it from int32 to uint32 and should be "fixed" whenever opnsense upgrades to the freebsd version including this fix.

Maarten