Monitor Iperf Server Connections on Debian for Multiple Devices
This article covers the process of setting up an Iperf server on a Debian machine and monitoring connections from multiple devices simultaneously. Iperf is a widely used network testing tool for measuring the maximum achievable bandwidth on a network.
Prerequisites
To get started, you need the following:
- A Debian-based machine to serve as the Iperf server
- Multiple devices (e.g., computers, smartphones) to test the Iperf server
- The Iperf package installed on both the server and client devices
Installing Iperf on Debian
To install Iperf on the Debian machine, use the following command:
sudo apt-get update && sudo apt-get install iperf
Starting Iperf Server
To start the Iperf server with a minimum number of threads:
iperf-s -D -P min
Testing Iperf Server Connections Simultaneously
To test the Iperf server from multiple devices simultaneously, use the following command on each device:
iperf -c <server-ip>
Monitoring Connections
You can monitor the connections on the Iperf server using the 'netstat' command:
netstat -antp | grep iperf
The output will display the active connections and their respective PIDs:
tcp 0 0 192.168.1.10:5001 192.168.1.12:41284 ESTABLISHED 22096/iperf tcp 0 0 192.168.1.10:5001 192.168.1.13:34860 ESTABLISHED 26342/iperf
Interpreting the Output
Focus on the IP addresses, ports, and the status 'ESTABLISHED'. The IP addresses correspond to the client devices. The ports represent the source and destination ports for the data transfer. The status confirms active connections.
- Install Iperf on Debian using
sudo apt-get update && sudo apt-get install iperf - Start Iperf server with
iperf-s -D -P min - Test connections using
iperf -c <server-ip>on client devices - Monitor connections using
netstat -antp | grep iperf