connection and lan speed

Started by antonvdh, February 05, 2018, 04:16:45 PM

Previous topic - Next topic
Looking for a package which can show me connections and there maximum cable speed.

From the command line, run: ifconfig | less

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

Bart...

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
OPNsense v18 | HW: Gigabyte Z370N-WIFI, i3-8100, 8GB RAM, 60GB SSD, | Controllers: 82575GB-quad, 82574, I221, I219-V | PPPoE: RDS Romania | Down: 980Mbit/s | Up: 500Mbit/s

Team Rebellion Member

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.

February 08, 2018, 12:24:32 AM #4 Last Edit: February 08, 2018, 12:26:03 AM by elektroinside
Quote from: 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.

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.
OPNsense v18 | HW: Gigabyte Z370N-WIFI, i3-8100, 8GB RAM, 60GB SSD, | Controllers: 82575GB-quad, 82574, I221, I219-V | PPPoE: RDS Romania | Down: 980Mbit/s | Up: 500Mbit/s

Team Rebellion Member

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.

February 08, 2018, 07:15:09 AM #6 Last Edit: February 08, 2018, 07:42:31 AM by elektroinside
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.
OPNsense v18 | HW: Gigabyte Z370N-WIFI, i3-8100, 8GB RAM, 60GB SSD, | Controllers: 82575GB-quad, 82574, I221, I219-V | PPPoE: RDS Romania | Down: 980Mbit/s | Up: 500Mbit/s

Team Rebellion Member

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.

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 :)
OPNsense v18 | HW: Gigabyte Z370N-WIFI, i3-8100, 8GB RAM, 60GB SSD, | Controllers: 82575GB-quad, 82574, I221, I219-V | PPPoE: RDS Romania | Down: 980Mbit/s | Up: 500Mbit/s

Team Rebellion Member

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.