OPNsense Forum

English Forums => General Discussion => Topic started by: antonvdh on February 05, 2018, 04:16:45 pm

Title: connection and lan speed
Post by: antonvdh on February 05, 2018, 04:16:45 pm
Looking for a package which can show me connections and there maximum cable speed.
Title: Re: connection and lan speed
Post by: bartjsmit on February 05, 2018, 08:00:16 pm
From the command line, run: ifconfig | less

The wire speed is listed on the 'media' line for each physical interface.

Bart...
Title: Re: connection and lan speed
Post by: elektroinside on February 06, 2018, 12:32:39 am
Or, if you want to measure (like a speed test of sorts) your actual link speed, you can use the built-in iperf from here:
Interfaces: Diagnostics: Iperf
Title: Re: connection and lan speed
Post by: dcol on February 07, 2018, 11:31:34 pm
iperf is a plugin, not built-in. Then you need to connect to a public iperf server. https://iperf.fr/iperf-servers.php.
Or you can just use speedtest.net from a local workstation.
Title: Re: connection and lan speed
Post by: elektroinside on February 08, 2018, 12:24:32 am
iperf is a plugin, not built-in. Then you need to connect to a public iperf server. https://iperf.fr/iperf-servers.php.
Or you can just use speedtest.net from a local workstation.

It is a plugin integrated in the OPNsense GUI (not sure if it's installed by default) and called in server mode, I'm not aware how you can connect from the GUI in client mode with the public iperf servers.
Title: Re: connection and lan speed
Post by: dcol on February 08, 2018, 12:56:03 am
Yeah, not pre-installed. Have to install the plugin.
Not sure how useful iperf would be if you can't run it as a client. I imagine you would need to install a client somewhere else to talk to. I have not used iperf with OPNsense.
Title: Re: connection and lan speed
Post by: elektroinside on February 08, 2018, 07:15:09 am
It's pretty useful as it is, at least for me, although a client mode is also welcomed at a point. iperf was the reason I changed my hardware and discovered (i mean not just read about it) OPNsense.

1. First and most important reason to use iperf in server mode is you can test your (or others) WIFI coverage/bandwidth, for real, and plan your setup according to the iperf results. You don't measure this otherwise, unless you want to map the location.
2. You get to saturate your LAN (cable) connections and thus you can find your bottlenecks or faulty/misconfigured nodes/devices/clients in your LAN. Speedtest.net usually comes after (if you want accuracy).
3. You can accurately verify your ISP if you have access to a proper client (perhaps a friend somewhere with a better link). Of course, you need to know both links (at least theoretical) specifications.
4. With iperf, you can test both directions simultaneously.
5. Multiple threads...

Iperf is in many ways 1000x more powerful and useful for accurate tests and debugging than speedtest.net and i cannot be more grateful that the awesome guys at OPNsense implemented it.
The only thing its missing is a good ping/jitter test, but there are other specialized tools for this.
Title: Re: connection and lan speed
Post by: dcol on February 08, 2018, 03:28:14 pm
Uses I never though of, thanks. But for me in a pure Windows environment, no WiFi, and no clients to use, iperf won't be of much use until a client version is available.
Title: Re: connection and lan speed
Post by: elektroinside on February 08, 2018, 04:00:06 pm
Well, maybe this will help you a little as well:

1. If you have a gigabit lan, test the lan speed
2. If you don't get around ~940Mbit/s bandwidth with iperf, it might be a sign something is wrong:
- these speeds require raw cpu power, but if you have a powerful cpu, not something to worry about (both client and server)
- next, and most common issue with windows systems is the default tcp window size; you can tweak tcp settings with this awesome tool: https://www.speedguide.net/downloads.php; just load the optimal settings, save & reboot
- if still performance is low, you might consider upgrading your bios and drivers
- if still having issues, you can test your system for dpc latency causing drivers/services and try to tweak them (http://www.resplendence.com/latencymon), as they influence your iperf perfomance
3. If you have issues with your lan tests, speedtest.net performance will always be subpar, and iperf, even in your case, is an excellent tool to stress your network and system for errors

Try it out if you have the mood and time :)
Title: Re: connection and lan speed
Post by: dcol on February 08, 2018, 06:27:17 pm
I guess I can pop a few iperf for Windows clients around and see what happens. One of my workstations uses a TorGuard VPN Client so that will allow me to test from other sites around the world.