How to measure your Network performance or BandwidthFollow @ggarron
If you are planning to create a VPN or Install Asterisk for VoIP you will need to know the performance of the Network, specially if it is the Internet and not your LAN, but there are also times when it is important to measure your LAN performance, whenever you may need to accomplish this task, you will find iperf as a good tool.
iperf can be installed on Debian or Ubuntu
apt-get install iperf
and on CentOS
yum install iperf
How it works
iperf works in a client/server configuration, so you will need one PC on each side of the network to measure, one will be listening (Server) and the other (client) will connect to the server.
iperf will then transmit data between the two PCs, for an amount of time (10 seconds is the default) and let you know the amount of data transmited, and therefore the speed of your network.
You can use either tcp or udp to perform the tests.
The most simple way to use it is On the server side <p class="codigo">iperf -s </p> On the client side <p class="codigo">iperf -c [server_ip]</p>
the -s options implies that is will run as server and will listen on port 5000, the -c implies it will run as client and will connect to the given IP on the port 5000.
You can specify a different port in case you have 5000 blocked, and you can also choose a lot of other parameters, such as:
-w to change the size of the packages sent.
give iperf man page a read.