Content

Preverjanje hitrosti povezave z iperfom

V strežnik namestite orodje iperf ali iperf3

apt install iperf3 // for Debian/Ubuntu
yum install iperf3 // for RedHat/CentOS

Če želite preveriti povezavo, zaženite pripomoček s stikalom -c za odjemalski način in določite naslov strežnika, s katerim se preverja povezava, na primer:

iperf3 -c bouygues.iperf.fr
Connecting to host bouygues.iperf.fr, port 5201
[ 4] local 192.168.0.47 port 56396 connected to 89.84.1.222 port 5201
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.00 sec 608 KBytes 4.98 Mbits/sec 0 48.1 KBytes 
[ 4] 1.00-2.00 sec 1.24 MBytes 10.4 Mbits/sec 0 80.6 KBytes 
[ 4] 2.00-3.00 sec 1.62 MBytes 13.6 Mbits/sec 0 120 KBytes 
[ 4] 3.00-4.00 sec 2.11 MBytes 17.7 Mbits/sec 0 151 KBytes 
[ 4] 4.00-5.00 sec 2.92 MBytes 24.5 Mbits/sec 0 173 KBytes 
[ 4] 5.00-6.00 sec 2.98 MBytes 25.0 Mbits/sec 0 191 KBytes 
[ 4] 6.00-7.00 sec 3.42 MBytes 28.7 Mbits/sec 0 212 KBytes 
[ 4] 7.00-8.00 sec 1.30 MBytes 10.9 Mbits/sec 0 212 KBytes 
[ 4] 8.00-9.00 sec 445 KBytes 3.65 Mbits/sec 1 212 KBytes 
[ 4] 9.00-10.00 sec 891 KBytes 7.30 Mbits/sec 0 212 KBytes 
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 17.5 MBytes 14.7 Mbits/sec 1 sender
[ 4] 0.00-10.00 sec 16.7 MBytes 14.0 Mbits/sec receiver

V tem primeru je bil uporabljen javni strežnik iperf, na voljo sta za primere, ko ni drugega strežnika, s katerim bi preverili hitrost povezave.

Seznam javnih strežnikov je na voljo na tej povezavi.

Če želite preveriti hitrost povezave s samim strežnikom, morate le zagnati iperf3 v načinu strežnika.

  • Najprej morate dovoliti povezave na vrata 5201 strežnika:
firewall-cmd --permanent --add-port=5201/tcp
firewall-cmd --permanent --add-port=5201/udp
firewall-cmd --reload
  • Po - zaženemo sam pripomoček, v primeru uspešnega zagona bomo videli naslednji vnos.
iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
  • Nato lahko preverite hitrost povezave, kot je bilo prikazano prej.