1. 程式人生 > >linux 網絡帶寬和延時測試

linux 網絡帶寬和延時測試

XML -c ces lang hat 復制 步驟 target 參考

Linux下使用qperf命令來測試網絡帶寬和網絡延遲

參考文章:
https://access.redhat.com/solutions/2122681


若是沒有安裝qperf命令,請使用yum 安裝該命令即可.


測試步驟:

找兩個機器,一個作為qperf的服務器端,(服務器ip地址是192.168.80.50)

如下:

  1. [root@localhost ~]# qperf
  2. ------>>>>>系統會一直停在這個地方.


另外一個作為qperf的客戶端:
  1. [root@localhost ~]# qperf -t 60 --use_bits_per_sec 192.168.80.50 tcp_bw
  2. tcp_bw:
  3. bw = 1.15 Gb/sec --------->>>這就是網絡帶寬
  4. [root@localhost ~]#

  1. [root@localhost ~]# qperf -t 60 --use_bits_per_sec 192.168.80.50 tcp_lat
  2. tcp_lat:
  3. latency = 190 us --------->>>這就是網絡延遲

  1. [root@localhost ~]# qperf -t 60 --use_bits_per_sec 192.168.80.50 tcp_bw tcp_lat
  2. tcp_bw:
  3. bw = 1.58 Gb/sec--------->>>這就是網絡帶寬
  4. tcp_lat:
  5. latency = 186 us--------->>>這就是網絡延遲
  6. [root@localhost ~]#



linux 網絡帶寬和延時測試