Month: October 2010

วิธีการทดสอบประสิทธิภาพของเครือข่ายและแบนด์วิดท์

วิธีการทดสอบประสิทธิภาพของเครือข่ายและแบนด์วิดท์

บทนำ —

แอบแฝงเครือข่ายและแบนด์วิธเป็นสองตัวชี้วัดส่วนใหญ่น่าจะเป็นประโยชน์เมื่อคุณเกณฑ์มาตรฐานเครือข่าย ถึงแม้ว่าบริการมากที่สุดและเน้นการโฆษณาผลิตภัณฑ์แบนด์วิดธ์ที่แอบแฝงครั้งอาจจะเป็นตัวชี้วัดที่สำคัญกว่า

** อะไรคือ Bandwidth?

Bandwidth (BW) ในระบบเครือข่ายคอมพิวเตอร์หมายถึงอัตราการส่งข้อมูลได้รับการสนับสนุนโดยการเชื่อมต่อเครือข่ายหรืออินเตอร์เฟซ BW เป็นวัดในแง่ของบิตต่อ (bps) ที่สอง

** สามารถแอบแฝงเครือข่ายเป็นอย่างไร

เป็นตัวชี้วัดความล่าช้าของการหน่วงเวลาที่มีประสบการณ์ในระบบ แอบแฝงเครือข่ายจะถูกกำหนดเป็นเพียงแค่การหน่วงเวลาที่สังเกตเป็นส่งข้อมูลจากจุดหนึ่งไปยังอีก มีหลายปัจจัยที่ช่วยในการแอบแฝงเครือข่ายเป็น เหล่านี้รวมถึงการส่งผ่าน (กลางของการเชื่อมต่อ) ระยะทางเราท์เตอร์และความล่าช้าอุปกรณ์คอมพิวเตอร์

รายชื่อโครงการที่ใช้ในการทดสอบประสิทธิภาพของเครือข่ายและแบนด์วิธ —

1) bmon — จอแบนด์วิดท์และวิธีการประมาณค่าอัตราก็เป็นคอนโซลตามสด BW
2) bwbar — การใช้แบนด์วิธในข้อความและกราฟิกรูปแบบ
3) bwm – ng — Bandwidth Monitor NG (Next Generation, Live BW, คอนโซลตาม
4) dstat — Dstat สามารถเปลี่ยนสำหรับ vmstat iostat และ ifstat
5) iftop — การใช้แบนด์วิธในอินเตอร์เฟซ, คอนโซลตาม
6) iperf — ทำการทดสอบผ่านเครือข่ายเดิมพันสองโฮสต์
7 ifstat) — รายงานสถิติการเชื่อมต่อ
8 cbm) — สี Bandwidth Meter, คอนโซลตาม
9 etherape) — เบราว์เซอร์แบบกราฟิกการจราจรในเครือข่าย
10) iptraf — Interactive Colorful IP LAN Monitor, คอนโซลและ GUI ตาม
11) netmrg — เป็นภูตตามการสนับสนุน MySQL, รวบรวมข้อมูลจากอุปกรณ์
12 nuttcp) — เครือข่ายการวัดประสิทธิภาพของเครื่องมือ
13 nepim)

หมายเหตุ ~ สำหรับบางคน deb ชุดรอบต่อนาทีหรือไม่สามารถใช้ได้!

ขั้นตอนที่ 1] วิธีการติดตั้งใน RedHat / RHCE, CentOS ระบบพื้นฐานและระบบฐาน Dibian?

root@me:~# yum install netperf iperf nuttcp nepim lmbench

Ubuntu ** —

root@me:~# apt-get install  bmon bwbar bwm-ng dstat cbm etherape iftop iperf ifstat iptraf netmrg

ขั้นตอนที่ 2] วิธีการใช้ — bmon, bwm – ng, dstat, ifstat —

root@me:~# bmon

interface: lo at me.arun.world

#   Interface                RX Rate         RX #     TX Rate         TX #
───────────────────────────────────────────────────────────────────────────────
me.arun.host (source: local)
0   lo                         0.00B            0       0.00B            0
1   eth0                       0.00B            0       0.00B            0
2   eth2                       0.00B            0       0.00B            0
3   vboxnet0                   0.00B            0       0.00B            0
4   pan0                       0.00B            0       0.00B            0
5   ppp0                      69.39KiB         61       7.49KiB         44

root@me:~# bwm-ng

bwm-ng v0.6 (probing every 0.500s), press ‘h’ for help
input: /proc/net/dev type: rate
\         iface                   Rx                   Tx                Total
==============================================================================
lo:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth0:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth2:           0.00 KB/s            0.00 KB/s            0.00 KB/s
ppp0:          64.39 KB/s            7.92 KB/s           72.31 KB/s
——————————————————————————
total:          64.39 KB/s            7.92 KB/s           72.31 KB/s

root@me:~# dstat
—-total-cpu-usage—- -dsk/total- -net/total- —paging– —system–
usr sys idl wai hiq siq| read  writ| recv  send|  in   out | int   csw
7   4  85   4   0   0| 281k  110k|   0     0 |   0     0 | 865  3013
8   4  88   0   0   0|   0     0 |7027B 1261B|   0     0 | 956  4505
8   5  86   0   0   0|   0     0 |  14k 1867B|   0     0 |1144  3332
9   5  86   0   1   0|   0     0 |  79k 2496B|   0     0 |1360  3366
18   8  74   0   0   0|   0     0 |  52k 6511B|   0     0 |1299  3618
8   6  85   0   1   0|   0     0 |  35k 5339B|   0     0 |1094  4231
6   4  90   0   0   0|   0     0 |   0  3164B|   0     0 | 953  2750 ^C
root@me:~#

root@me:~# ifstat
eth0                eth2                ppp0
KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out
0.00      0.00      0.00      0.00     95.73      4.31
0.00      0.00      0.00      0.00     67.93      8.17
0.00      0.00      0.00      0.00    106.77     13.70

** เริ่มต้น”iperf”เซิร์ฟเวอร์บนโฮสต์ (A) และลูกค้าในพื้นที่อื่น (B) — การวัดผ่านเครือข่ายระหว่างสองครอบครัว

* Host -A

root@me:~# iperf -s
————————————————————
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
————————————————————
[  4] local 192.168.0.1 port 5001 connected with 192.168.0.2 port 56171
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec

* Host -B
test@hostB:~$ iperf -c 192.168.0.1
————————————————————
Client connecting to 192.168.0.1, TCP port 5001
TCP window size: 49.5 KByte (default)
————————————————————
[  3] local 192.168.0.2 port 56171 connected with 192.168.0.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec
test@hostB:~$

root@me:~# iftop
root@me:~# cbm

Thank you,
Arun Bagul

Como testar o desempenho de rede e largura de banda

Como testar o desempenho de rede e largura de banda

Introdução –

Rede de latência e largura de banda são as duas métricas mais provável que seja de interesse quando uma rede de referência. Embora a maioria dos serviços e publicidade de produtos concentra-se na largura de banda, por vezes, a latência pode ser uma métrica mais importante.

** Qual é a largura de banda?

Largura de banda (BW) em redes de computadores refere-se a taxa de dados suportada por uma conexão de rede ou interface. PC é medido em termos de bits por segundo (bps).

** Qual é a latência da rede?

Latência é a medida do tempo de atraso experimentado em um sistema. A latência da rede é simplesmente definido como o intervalo de tempo observado como transmite dados de um ponto para outro. Há uma série de fatores que contribuem para a latência da rede. Estes incluem a transmissão (média de conectividade), a distância, roteadores e atrasos hardware do computador.

Lista de projetos utilizados para testar o desempenho de rede e tráfego –

1) bmon – monitor de largura de banda e estimador de taxa, que é baseado em console, ao vivo BW
2) bwbar – o uso da banda em formato texto e gráfico
3) bwm-ng – Bandwidth Monitor NG (Next Generation, vivem PC, console baseado
4) dstat – Dstat é um substituto para iostat vmstat e ifstat.
5) iftop – uso de banda em uma interface baseada em console
6) iperf – Realizar testes de throughput da rede aposta de dois hospedeiros
7 ifstat) – Relatório da Interface de Estatística
8 cbm) – Cor Bandwidth Meter, console baseado
9 etherape) – Gráfica navegador tráfego de rede
10) iptraf – Interactive colorido IP LAN Monitor, console e GUI baseada
11) netmrg – Ele é um servidor baseado em suporte ao MySQL, reúne dados de dispositivos.
12 nuttcp) – ferramenta de medição de desempenho de rede
13 nepim)

NOTA ~ Para alguns deles, os pacotes rpm ou deb não estão disponíveis!

Passo 1] Como instalar no RedHat / RHCE, CentOS sistema baseado e sistema baseado Dibian?

root@me:~# yum install netperf iperf nuttcp nepim lmbench

** Ubuntu –

root@me:~# apt-get install  bmon bwbar bwm-ng dstat cbm etherape iftop iperf ifstat iptraf netmrg

Passo 2] Como usar – bmon, bwm-ng, dstat, ifstat –

root@me:~# bmon

interface: lo at me.arun.world

#   Interface                RX Rate         RX #     TX Rate         TX #
───────────────────────────────────────────────────────────────────────────────
me.arun.host (source: local)
0   lo                         0.00B            0       0.00B            0
1   eth0                       0.00B            0       0.00B            0
2   eth2                       0.00B            0       0.00B            0
3   vboxnet0                   0.00B            0       0.00B            0
4   pan0                       0.00B            0       0.00B            0
5   ppp0                      69.39KiB         61       7.49KiB         44

root@me:~# bwm-ng

bwm-ng v0.6 (probing every 0.500s), press ‘h’ for help
input: /proc/net/dev type: rate
\         iface                   Rx                   Tx                Total
==============================================================================
lo:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth0:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth2:           0.00 KB/s            0.00 KB/s            0.00 KB/s
ppp0:          64.39 KB/s            7.92 KB/s           72.31 KB/s
——————————————————————————
total:          64.39 KB/s            7.92 KB/s           72.31 KB/s

root@me:~# dstat
—-total-cpu-usage—- -dsk/total- -net/total- —paging– —system–
usr sys idl wai hiq siq| read  writ| recv  send|  in   out | int   csw
7   4  85   4   0   0| 281k  110k|   0     0 |   0     0 | 865  3013
8   4  88   0   0   0|   0     0 |7027B 1261B|   0     0 | 956  4505
8   5  86   0   0   0|   0     0 |  14k 1867B|   0     0 |1144  3332
9   5  86   0   1   0|   0     0 |  79k 2496B|   0     0 |1360  3366
18   8  74   0   0   0|   0     0 |  52k 6511B|   0     0 |1299  3618
8   6  85   0   1   0|   0     0 |  35k 5339B|   0     0 |1094  4231
6   4  90   0   0   0|   0     0 |   0  3164B|   0     0 | 953  2750 ^C
root@me:~#

root@me:~# ifstat
eth0                eth2                ppp0
KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out
0.00      0.00      0.00      0.00     95.73      4.31
0.00      0.00      0.00      0.00     67.93      8.17
0.00      0.00      0.00      0.00    106.77     13.70

** Start “iperf” servidor em um host (A) e um cliente em outra máquina (B) – para medir o throughput de rede entre dois hosts.

* Host -A

root@me:~# iperf -s
————————————————————
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
————————————————————
[  4] local 192.168.0.1 port 5001 connected with 192.168.0.2 port 56171
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec

* Host -B
test@hostB:~$ iperf -c 192.168.0.1
————————————————————
Client connecting to 192.168.0.1, TCP port 5001
TCP window size: 49.5 KByte (default)
————————————————————
[  3] local 192.168.0.2 port 56171 connected with 192.168.0.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec
test@hostB:~$

root@me:~# iftop
root@me:~# cbm

Thank you,
Arun Bagul

Инструкции по тестированию производительности сети и пропускной способности

Инструкции по тестированию производительности сети и пропускной способности

Введение –

Задержка в сети и пропускной способности двух метрик, скорее всего, представляет интерес при тесте сети. Хотя большинство продуктов и услуг реклама фокусируется на пропускную способность, время от времени задержки может быть более важный показатель.

** Что такое Величина?

Полоса пропускания (BW) в области компьютерных сетей относится к скорости передачи данных поддерживается подключение к сети или интерфейс. BW измеряется в терминах битов в секунду (бит / с).

** Что такое Задержка в сети?

Задержка является мерой временной задержки опыт в системе. Задержка в сети просто определяется как время задержки наблюдались как данные передаются из одной точки в другую. Есть ряд факторов, которые способствуют задержки в сети. К ним относятся передачи (средний соединения), расстояние, маршрутизаторы и задержки компьютерного оборудования.

Список проектов, используемых для тестирования производительности сети и пропускной способности –

1) bmon – Bandwidth Monitor и скорость оценки, это консольный, жить BW
2) bwbar – трафик в текстовом и графическом формате
3) BWM-NG – Bandwidth Monitor NG (Next Generation, жить BW, консольный
4) dstat – Dstat является заменой для Vmstat, IOSTAT и ifstat.
5) iftop – Использование полосы пропускания на интерфейсе, консольный
6) Iperf – провести испытания пропускную способность сети ставку двух принимающих
7) ifstat – интерфейс отчетов STATistics
8) куб.м. – Цвет Bandwidth Meter, консольный
9) etherape – графический сетевой трафик браузера
10) IPTraf – интерактивный цветной монитор IP LAN, консоль и графический интерфейс
11) netmrg – Это демон основанный, MySQL поддержку, собирает данные из устройства.
12) nuttcp – сетевой инструмент измерения производительности
13) nepim

ПРИМЕЧАНИЕ ~ Для некоторых из них об / мин или Deb пакеты не существуют!

Шаг 1] Как установить на Redhat / RHCE, CentOS система и Dibian система?

root@me:~# yum install netperf iperf nuttcp nepim lmbench

** Ubuntu –

root@me:~# apt-get install  bmon bwbar bwm-ng dstat cbm etherape iftop iperf ifstat iptraf netmrg

Шаг 2] Как использовать – bmon, BWM-нг, dstat, ifstat –

root@me:~# bmon

interface: lo at me.arun.world

#   Interface                RX Rate         RX #     TX Rate         TX #
───────────────────────────────────────────────────────────────────────────────
me.arun.host (source: local)
0   lo                         0.00B            0       0.00B            0
1   eth0                       0.00B            0       0.00B            0
2   eth2                       0.00B            0       0.00B            0
3   vboxnet0                   0.00B            0       0.00B            0
4   pan0                       0.00B            0       0.00B            0
5   ppp0                      69.39KiB         61       7.49KiB         44

root@me:~# bwm-ng

bwm-ng v0.6 (probing every 0.500s), press ‘h’ for help
input: /proc/net/dev type: rate
\         iface                   Rx                   Tx                Total
==============================================================================
lo:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth0:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth2:           0.00 KB/s            0.00 KB/s            0.00 KB/s
ppp0:          64.39 KB/s            7.92 KB/s           72.31 KB/s
——————————————————————————
total:          64.39 KB/s            7.92 KB/s           72.31 KB/s

root@me:~# dstat
—-total-cpu-usage—- -dsk/total- -net/total- —paging– —system–
usr sys idl wai hiq siq| read  writ| recv  send|  in   out | int   csw
7   4  85   4   0   0| 281k  110k|   0     0 |   0     0 | 865  3013
8   4  88   0   0   0|   0     0 |7027B 1261B|   0     0 | 956  4505
8   5  86   0   0   0|   0     0 |  14k 1867B|   0     0 |1144  3332
9   5  86   0   1   0|   0     0 |  79k 2496B|   0     0 |1360  3366
18   8  74   0   0   0|   0     0 |  52k 6511B|   0     0 |1299  3618
8   6  85   0   1   0|   0     0 |  35k 5339B|   0     0 |1094  4231
6   4  90   0   0   0|   0     0 |   0  3164B|   0     0 | 953  2750 ^C
root@me:~#

root@me:~# ifstat
eth0                eth2                ppp0
KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out
0.00      0.00      0.00      0.00     95.73      4.31
0.00      0.00      0.00      0.00     67.93      8.17
0.00      0.00      0.00      0.00    106.77     13.70

** Начать “Iperf” сервера на одном сервере () и клиент на другом хосте (B) – для измерения пропускной способности сети между двумя хостами.

* Host -A

root@me:~# iperf -s
————————————————————
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
————————————————————
[  4] local 192.168.0.1 port 5001 connected with 192.168.0.2 port 56171
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec

* Host -B
test@hostB:~$ iperf -c 192.168.0.1
————————————————————
Client connecting to 192.168.0.1, TCP port 5001
TCP window size: 49.5 KByte (default)
————————————————————
[  3] local 192.168.0.2 port 56171 connected with 192.168.0.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec
test@hostB:~$

root@me:~# iftop
root@me:~# cbm

Thank you,
Arun Bagul

どのようにテストネットワークパフォーマンスと帯域幅に

どのようにテストネットワークパフォーマンスと帯域幅に

はじめに –

ネットワークの遅延や帯域幅は、2つのメトリック最も興味を引かされる可能性が高いときのベンチマークネットワーク。ほとんどのサービスや製品の広告は倍の帯域幅に焦点を当てても待ち時間が以上のメトリックの重要なことができます。

**帯域幅とは何ですか?

帯域幅(BW)は、コンピュータネットワークのネットワーク接続、またはインターフェイスによってサポートされているデータレートを指します。 BWはビット/秒(bps)の条件で測定されます。

ネットワークの待ち時間は何**ですか?

レイテンシは、システム内の経験の遅延時間の測定値です。遅延時間は別のポイントからのデータを送信するように観察されるネットワークの遅延は、単に定義されています。ネットワークの遅延に寄与する要因がいくつかあります。これらは、(接続の媒体)の距離、ルータとコンピュータハードウェアの遅延を送信含まれています。

ネットワークのパフォーマンスおよび帯域幅をテストするために使用されるプロジェクトのリスト –

1)bmonのは – 、それが基づいてコンソールです帯域幅モニタ、レート推定、BWを生きる
2)bwbar – テキストとグラフィックの帯域幅の使用形式
3)はbwm – ngの – 帯域幅モニタNGの(次世代、ベースのコンソールは、BWライブ
4)のdstat – Dstatはは、vmstat、iostatおよびifstatに関する置き換わるものです。
5)iftopの – インターフェイスの帯域幅の使用量は、コンソールベース
6)iperfの – を実行するネットワークスループットテストは、2つのホストを賭ける
7)ifstat – レポートインターフェイスの統計情報
8)cbmのは、 – カラー帯域幅メーター、コンソールベース
9)etherape – グラフィカルなネットワークトラフィックブラウザ
10)がiptrafのは – 対話式のカラフルなのIP LAN Monitorは、コンソールおよびGUIベースの
11)netmrg – それはデーモンベースのMySQLのサポートは、デバイスからデータを収集されます。
12)nuttcpの – ネットワークのパフォーマンス測定ツール
13)nepim

注は、それらのいくつかはrpmまたはdebパッケージが利用可能にされていない〜!

ステップ1]は、どのようにインストールするにはRedHat / RHCEのは、CentOSベースのシステムDibianベースのシステム?

ルート@私:〜#yumをインストールするのnetperf iperfのnuttcpののnepimのlmbench

** Ubuntuの –

ルートは@私:〜#のapt – netmrg iperfののifstatのiptraf iftopのbmonののbwbar bwm – ngののdstatのcbmのetherapeをインストール取得

ステップ2]どのように使用する – bmonのを、bwm – ngの、のdstat、ifstat –

root@me:~# bmon

interface: lo at me.arun.world

#   Interface                RX Rate         RX #     TX Rate         TX #
───────────────────────────────────────────────────────────────────────────────
me.arun.host (source: local)
0   lo                         0.00B            0       0.00B            0
1   eth0                       0.00B            0       0.00B            0
2   eth2                       0.00B            0       0.00B            0
3   vboxnet0                   0.00B            0       0.00B            0
4   pan0                       0.00B            0       0.00B            0
5   ppp0                      69.39KiB         61       7.49KiB         44

root@me:~# bwm-ng

bwm-ng v0.6 (probing every 0.500s), press ‘h’ for help
input: /proc/net/dev type: rate
\         iface                   Rx                   Tx                Total
==============================================================================
lo:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth0:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth2:           0.00 KB/s            0.00 KB/s            0.00 KB/s
ppp0:          64.39 KB/s            7.92 KB/s           72.31 KB/s
——————————————————————————
total:          64.39 KB/s            7.92 KB/s           72.31 KB/s

root@me:~# dstat
—-total-cpu-usage—- -dsk/total- -net/total- —paging– —system–
usr sys idl wai hiq siq| read  writ| recv  send|  in   out | int   csw
7   4  85   4   0   0| 281k  110k|   0     0 |   0     0 | 865  3013
8   4  88   0   0   0|   0     0 |7027B 1261B|   0     0 | 956  4505
8   5  86   0   0   0|   0     0 |  14k 1867B|   0     0 |1144  3332
9   5  86   0   1   0|   0     0 |  79k 2496B|   0     0 |1360  3366
18   8  74   0   0   0|   0     0 |  52k 6511B|   0     0 |1299  3618
8   6  85   0   1   0|   0     0 |  35k 5339B|   0     0 |1094  4231
6   4  90   0   0   0|   0     0 |   0  3164B|   0     0 | 953  2750 ^C
root@me:~#

root@me:~# ifstat
eth0                eth2                ppp0
KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out
0.00      0.00      0.00      0.00     95.73      4.31
0.00      0.00      0.00      0.00     67.93      8.17
0.00      0.00      0.00      0.00    106.77     13.70

つのホスト(A)と、クライアント別のホスト(B)の上**スタート”iperfの”サーバー – 2つのホスト間のネットワークのスループットを測定しています。

* Host -A

root@me:~# iperf -s
————————————————————
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
————————————————————
[  4] local 192.168.0.1 port 5001 connected with 192.168.0.2 port 56171
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec

* Host -B
test@hostB:~$ iperf -c 192.168.0.1
————————————————————
Client connecting to 192.168.0.1, TCP port 5001
TCP window size: 49.5 KByte (default)
————————————————————
[  3] local 192.168.0.2 port 56171 connected with 192.168.0.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec
test@hostB:~$

root@me:~# iftop
root@me:~# cbm

Thank you,
Arun Bagul

Come per le prestazioni di rete Test e larghezza di banda

Come per le prestazioni di rete Test e larghezza di banda

Introduzione –

La latenza della rete e larghezza di banda sono i due parametri più probabilità di essere di interesse quando si benchmark di una rete. Anche se la maggior parte di servizi e pubblicità del prodotto si concentra sulla larghezza di banda, la latenza, a volte può essere un parametro più importante.

** Che cosa è larghezza di banda?

Larghezza di banda (BW) in reti di computer si riferisce al tasso di dati supportati da una connessione di rete o interfaccia. BW è misurata in termini di bit al secondo (bps).

** Che cosa è la latenza di rete?

La latenza è una misura del ritardo di tempo vissuto in un sistema. La latenza della rete è semplicemente definito come l’intervallo di tempo osservato come la trasmissione di dati da un punto ad un altro. Ci sono un certo numero di fattori che contribuiscono alla latenza di rete. Questi includono la trasmissione (media di connettività), Distanza, router e ritardi hardware del computer.

Elenco dei progetti utilizzati per testare le prestazioni di rete e la larghezza di banda –

1) bmon – monitor di banda e tasso di stimatore, è basato su console, live BW
2) bwbar – l’utilizzo della banda in formato testo e grafica
3) BWM-ng – Bandwidth Monitor NG (Next Generation, in diretta BW, basati su console
4) dstat – Dstat è una sostituzione per vmstat, iostat e ifstat.
5) iftop – l’utilizzo di banda su un’interfaccia, basati su console
6) iperf – Eseguire test di throughput di rete scommessa su due host
7) ifstat – Relazione InterFace Statistiche
8) cbm – Colore Bandwidth Meter, basati su console
9) etherape – browser grafico del traffico di rete
10) iptraf – Interactive Colorful IP LAN Monitor, console e GUI
11) netmrg – E ‘demone based, supporto MySQL, raccoglie dati dai dispositivi.
12) nuttcp – Rete strumento di misurazione delle performance
13) nepim

NOTA ~ Per alcuni di loro pacchetti rpm o deb non sono disponibili!

Passo 1] Come installare su RedHat / RHCE, sistema basato CentOS e Dibian sistema basato?

root @ me: ~ # yum install netperf iperf nuttcp lmbench nepim

** Ubuntu –

root @ me: ~ # apt-get install bwbar bmon BWM-ng etherape dstat cbm iftop iptraf iperf ifstat netmrg

Fase 2] Come usare – bmon, BWM-ng, dstat, ifstat –

root@me:~# bmon

interface: lo at me.arun.world

#   Interface                RX Rate         RX #     TX Rate         TX #
───────────────────────────────────────────────────────────────────────────────
me.arun.host (source: local)
0   lo                         0.00B            0       0.00B            0
1   eth0                       0.00B            0       0.00B            0
2   eth2                       0.00B            0       0.00B            0
3   vboxnet0                   0.00B            0       0.00B            0
4   pan0                       0.00B            0       0.00B            0
5   ppp0                      69.39KiB         61       7.49KiB         44

root@me:~# bwm-ng

bwm-ng v0.6 (probing every 0.500s), press ‘h’ for help
input: /proc/net/dev type: rate
\         iface                   Rx                   Tx                Total
==============================================================================
lo:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth0:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth2:           0.00 KB/s            0.00 KB/s            0.00 KB/s
ppp0:          64.39 KB/s            7.92 KB/s           72.31 KB/s
——————————————————————————
total:          64.39 KB/s            7.92 KB/s           72.31 KB/s

root@me:~# dstat
—-total-cpu-usage—- -dsk/total- -net/total- —paging– —system–
usr sys idl wai hiq siq| read  writ| recv  send|  in   out | int   csw
7   4  85   4   0   0| 281k  110k|   0     0 |   0     0 | 865  3013
8   4  88   0   0   0|   0     0 |7027B 1261B|   0     0 | 956  4505
8   5  86   0   0   0|   0     0 |  14k 1867B|   0     0 |1144  3332
9   5  86   0   1   0|   0     0 |  79k 2496B|   0     0 |1360  3366
18   8  74   0   0   0|   0     0 |  52k 6511B|   0     0 |1299  3618
8   6  85   0   1   0|   0     0 |  35k 5339B|   0     0 |1094  4231
6   4  90   0   0   0|   0     0 |   0  3164B|   0     0 | 953  2750 ^C
root@me:~#

root@me:~# ifstat
eth0                eth2                ppp0
KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out
0.00      0.00      0.00      0.00     95.73      4.31
0.00      0.00      0.00      0.00     67.93      8.17
0.00      0.00      0.00      0.00    106.77     13.70

** Start server “iperf” su un host (A) e il client su un altro host (B) – per misurare il throughput di rete tra due host.

* Host -A

root@me:~# iperf -s
————————————————————
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
————————————————————
[  4] local 192.168.0.1 port 5001 connected with 192.168.0.2 port 56171
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec

* Host -B
test@hostB:~$ iperf -c 192.168.0.1
————————————————————
Client connecting to 192.168.0.1, TCP port 5001
TCP window size: 49.5 KByte (default)
————————————————————
[  3] local 192.168.0.2 port 56171 connected with 192.168.0.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec
test@hostB:~$

root@me:~# iftop
root@me:~# cbm

Thank you,
Arun Bagul

So testen Sie Netzwerk-Performance und Bandbreite

So testen Sie Netzwerk-Performance und Bandbreite

Einführung –

Netzwerk-Latenz und Bandbreite sind die beiden Metriken am ehesten von Interesse sein, wenn Sie ein Netzwerk-Benchmark. Auch wenn die meisten Service-und Produkt-Werbung konzentriert sich auf die Bandbreite, in Zeiten der Latenz kann eine wichtige Kennzahl sein.

** Was ist Bandbreite?

Bandbreite (BW) in Computer-Vernetzung bezieht sich auf die Datenrate durch eine Netzwerkverbindung oder Schnittstelle unterstützt. BW ist im Hinblick auf die Bits pro Sekunde (bps) gemessen.

** Was ist die Netzwerk-Latenz?

Die Latenz ist ein Maß für die zeitliche Verzögerung in einem System erlebt. Netzwerklatenz ist einfach definiert als die zeitliche Verzögerung beobachtet, wie Daten überträgt von einem Punkt zum anderen. Es gibt eine Reihe von Faktoren, die Netzwerk-Latenz beitragen. Dazu gehören Getriebe (Medium-Konnektivität), Entfernung, Router und Computer-Hardware Verzögerungen.

Liste der Projekte verwendet werden, um Netzwerk-Performance und Bandbreite testen –

1) bmon – Bandbreite überwachen und bewerten Schätzer, ist es basierte Konsole, Live-BW
2) bwbar – Bandbreiten-Nutzung in Text und grafischen Format
3) BWM-ng – Bandwidth Monitor NG (Next Generation leben BW, Konsolenzugang
4) dstat – Dstat ist ein Ersatz für vmstat iostat und ifstat.
5) iftop – Bandbreiten-Auslastung auf einem Interface, basierte Konsole
6) iperf – Führen Netzwerk-Durchsatz-Tests Wette zwei Host
7) ifstat – Bericht Interface Statistics
8) cbm – Color Bandwidth Meter, basierte Konsole
9) etherape – Grafische Netzwerkverkehr Browser
10) iptraf – Interaktive Bunte IP-LAN-Monitor, Konsole und GUI-basierte
11) netmrg – Es ist Daemon basiert, mySQL unterstützen, sammelt Daten von Geräten.
12) nuttcp – Netzwerk Performance-Messung Werkzeug
13) nepim

HINWEIS ~ Für einige von ihnen rpm oder deb-Paketen sind nicht möglich!

Schritt 1] Wie bei der Installation Redhat / RHCE, CentOS System und Dibian basierten System?

root@me:~# yum install netperf iperf nuttcp nepim lmbench

** Ubuntu –

root@me:~# apt-get install  bmon bwbar bwm-ng dstat cbm etherape iftop iperf ifstat iptraf netmrg

Schritt 2] So nutzen – bmon, BWM-ng, dstat, ifstat –

root@me:~# bmon

interface: lo at me.arun.world

#   Interface                RX Rate         RX #     TX Rate         TX #
───────────────────────────────────────────────────────────────────────────────
me.arun.host (source: local)
0   lo                         0.00B            0       0.00B            0
1   eth0                       0.00B            0       0.00B            0
2   eth2                       0.00B            0       0.00B            0
3   vboxnet0                   0.00B            0       0.00B            0
4   pan0                       0.00B            0       0.00B            0
5   ppp0                      69.39KiB         61       7.49KiB         44

root@me:~# bwm-ng

bwm-ng v0.6 (probing every 0.500s), press ‘h’ for help
input: /proc/net/dev type: rate
\         iface                   Rx                   Tx                Total
==============================================================================
lo:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth0:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth2:           0.00 KB/s            0.00 KB/s            0.00 KB/s
ppp0:          64.39 KB/s            7.92 KB/s           72.31 KB/s
——————————————————————————
total:          64.39 KB/s            7.92 KB/s           72.31 KB/s

root@me:~# dstat
—-total-cpu-usage—- -dsk/total- -net/total- —paging– —system–
usr sys idl wai hiq siq| read  writ| recv  send|  in   out | int   csw
7   4  85   4   0   0| 281k  110k|   0     0 |   0     0 | 865  3013
8   4  88   0   0   0|   0     0 |7027B 1261B|   0     0 | 956  4505
8   5  86   0   0   0|   0     0 |  14k 1867B|   0     0 |1144  3332
9   5  86   0   1   0|   0     0 |  79k 2496B|   0     0 |1360  3366
18   8  74   0   0   0|   0     0 |  52k 6511B|   0     0 |1299  3618
8   6  85   0   1   0|   0     0 |  35k 5339B|   0     0 |1094  4231
6   4  90   0   0   0|   0     0 |   0  3164B|   0     0 | 953  2750 ^C
root@me:~#

root@me:~# ifstat
eth0                eth2                ppp0
KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out
0.00      0.00      0.00      0.00     95.73      4.31
0.00      0.00      0.00      0.00     67.93      8.17
0.00      0.00      0.00      0.00    106.77     13.70

** Start “iperf” Server auf einem Host (A) und Client auf einem anderen Rechner (B) -, um Netzwerk-Durchsatz zwischen zwei Rechnern messen.

* Host -A

root@me:~# iperf -s
————————————————————
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
————————————————————
[  4] local 192.168.0.1 port 5001 connected with 192.168.0.2 port 56171
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec

* Host -B
test@hostB:~$ iperf -c 192.168.0.1
————————————————————
Client connecting to 192.168.0.1, TCP port 5001
TCP window size: 49.5 KByte (default)
————————————————————
[  3] local 192.168.0.2 port 56171 connected with 192.168.0.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec
test@hostB:~$

root@me:~# iftop
root@me:~# cbm

Thank you,
Arun Bagul

Comment faire pour tester les performances du réseau et de bande passante

Comment faire pour tester les performances du réseau et de bande passante

Introduction –

Temps de latence et de bande passante sont les deux mesures les plus susceptibles de présenter un intérêt pour vous un réseau de référence. Même si la plupart des services et la publicité des produits se concentre sur la bande passante, parfois le temps de latence peut être un plus important métriques.

** Qu’est-ce que la bande passante?

Bande passante (BW) en réseaux informatiques se réfère au taux de données pris en charge par une connexion réseau ou une interface. BW est mesurée en termes de bits par seconde (bps).

** Qu’est-ce que la latence du réseau?

La latence est une mesure du temps de retard connu dans un système. La latence du réseau est simplement défini comme le délai observé que transmet les données d’un point à un autre. Il ya un certain nombre de facteurs qui contribuent à la latence du réseau. Il s’agit notamment de la transmission (support de la connectivité), Distance, les routeurs et les retards de matériel informatique.

Liste des projets utilisés pour tester les performances du réseau et de bande passante –

1) bmon – surveiller la bande passante et estimateur de taux, il est basé console, vivent BW
2) bwbar – utilisation de bande passante dans le texte et les graphiques en format
3) bwm-ng – Bandwidth Monitor NG (Next Generation, vivent BW, console basée
4) dstat – Dstat est un remplacement pour vmstat, iostat et ifstat.
5) iftop – utilisation de bande passante sur une interface, en fonction de la console
6) iperf – Effectuer des tests de débit réseau parier deux hôtes
7) ifstat – Rapport interface de statistiques
8) cbm – Couleur Bandwidth Meter, console basée
9) etherape – navigateur graphique le trafic réseau
10) iptraf – Interactive coloré IP LAN Monitor, console et interface graphique basée
11) netmrg – Il est le démon, de soutien mySQL, recueille des données à partir de périphériques.
12) nuttcp – Réseau outil de mesure du rendement
13) nepim

NOTE ~ Pour certains d’entre eux de paquetages rpm ou deb ne sont pas disponibles!

Étape 1] Comment faire pour installer sur Redhat / RHCE, CentOS système fondé et Dibian système fondé?

root@me:~# yum install netperf iperf nuttcp nepim lmbench

** Ubuntu –

root@me:~# apt-get install  bmon bwbar bwm-ng dstat cbm etherape iftop iperf ifstat iptraf netmrg

Étape 2] Comment utiliser – bmon, bwm-ng, dstat, ifstat –

root@me:~# bmon

interface: lo at me.arun.world

#   Interface                RX Rate         RX #     TX Rate         TX #
───────────────────────────────────────────────────────────────────────────────
me.arun.host (source: local)
0   lo                         0.00B            0       0.00B            0
1   eth0                       0.00B            0       0.00B            0
2   eth2                       0.00B            0       0.00B            0
3   vboxnet0                   0.00B            0       0.00B            0
4   pan0                       0.00B            0       0.00B            0
5   ppp0                      69.39KiB         61       7.49KiB         44

root@me:~# bwm-ng

bwm-ng v0.6 (probing every 0.500s), press ‘h’ for help
input: /proc/net/dev type: rate
\         iface                   Rx                   Tx                Total
==============================================================================
lo:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth0:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth2:           0.00 KB/s            0.00 KB/s            0.00 KB/s
ppp0:          64.39 KB/s            7.92 KB/s           72.31 KB/s
——————————————————————————
total:          64.39 KB/s            7.92 KB/s           72.31 KB/s

root@me:~# dstat
—-total-cpu-usage—- -dsk/total- -net/total- —paging– —system–
usr sys idl wai hiq siq| read  writ| recv  send|  in   out | int   csw
7   4  85   4   0   0| 281k  110k|   0     0 |   0     0 | 865  3013
8   4  88   0   0   0|   0     0 |7027B 1261B|   0     0 | 956  4505
8   5  86   0   0   0|   0     0 |  14k 1867B|   0     0 |1144  3332
9   5  86   0   1   0|   0     0 |  79k 2496B|   0     0 |1360  3366
18   8  74   0   0   0|   0     0 |  52k 6511B|   0     0 |1299  3618
8   6  85   0   1   0|   0     0 |  35k 5339B|   0     0 |1094  4231
6   4  90   0   0   0|   0     0 |   0  3164B|   0     0 | 953  2750 ^C
root@me:~#

root@me:~# ifstat
eth0                eth2                ppp0
KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out
0.00      0.00      0.00      0.00     95.73      4.31
0.00      0.00      0.00      0.00     67.93      8.17
0.00      0.00      0.00      0.00    106.77     13.70

** start “iperf” server on one host(A) and client on another host(B)- to measure Network throughput between two hosts.

* Host -A

root@me:~# iperf -s
————————————————————
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
————————————————————
[  4] local 192.168.0.1 port 5001 connected with 192.168.0.2 port 56171
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec

* Host -B
test@hostB:~$ iperf -c 192.168.0.1
————————————————————
Client connecting to 192.168.0.1, TCP port 5001
TCP window size: 49.5 KByte (default)
————————————————————
[  3] local 192.168.0.2 port 56171 connected with 192.168.0.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec
test@hostB:~$

root@me:~# iftop
root@me:~# cbm

Thank you,
Arun Bagul

Hoe te testen Netwerk performance en bandbreedte

Hoe te testen Netwerk performance en bandbreedte

Inleiding –

Netwerk latency en bandbreedte zijn de twee statistieken het meest waarschijnlijk van belang zijn wanneer u benchmark een netwerk. Hoewel de meeste diensten en producten reclame richt zich op bandbreedte, soms de latentie kan worden een belangrijke maatstaf.

** Wat is bandbreedte?

Bandbreedte (BW) in computer netwerken verwijst naar de gegevens die ondersteund wordt door een netwerkverbinding of interface. BW wordt gemeten in termen van bits per seconde (bps).

** Wat is netwerk latency?

Latency is een maat voor de vertraging ervaren in een systeem. Netwerk latency is gewoon gedefinieerd als de vertraging waargenomen als de gegevens doorgeeft van het ene punt naar het andere. Er zijn een aantal factoren die bijdragen aan het netwerk latency. Deze omvatten de overbrenging (medium van connectiviteit), Afstand, routers en computer hardware vertragingen.

Lijst van projecten gebruikt om netwerk performance en bandbreedte test –

1) bmon – bandbreedte monitor en de snelheid schatter, is de console gebaseerde, live BW
2) bwbar – bandbreedte verbruik in tekst en grafische opmaak
3) bwm-ng – Monitor van de Bandbreedte NG (Next Generation, live BW, console gebaseerd
4) dstat – dstat is een vervanging voor vmstat, iostat en ifstat.
5) iftop – Bandbreedtegebruik op een interface, console gebaseerd
6) iperf – Voer netwerk throughput testen weddenschap met twee hosts
7) ifstat – Verslag interface statistieken
8) cbm – Kleur Bandwidth Meter, console gebaseerd
9) etherape – Grafische netwerkverkeer browser
10) iptraf – Interactieve Kleurrijke IP LAN Monitor, console en GUI-gebaseerde
11) netmrg – Het is daemon gebaseerd, ondersteuning voor MySQL, verzamelt gegevens van apparaten.
12) nuttcp – Netwerk performance measurement tool
13) nepim

OPMERKING ~ Voor sommige van hen rpm of deb-pakketten zijn niet beschikbaar!

Stap 1] Hoe te installeren op Redhat / RHCE, CentOS gebaseerd systeem en Dibian gebaseerd systeem?

root@me:~# yum install netperf iperf nuttcp nepim lmbench

** Ubuntu –

root@me:~# apt-get install  bmon bwbar bwm-ng dstat cbm etherape iftop iperf ifstat iptraf netmrg

Stap 2] Hoe te gebruiken – bmon, bwm-ng, dstat, ifstat –

root@me:~# bmon

interface: lo at me.arun.world

#   Interface                RX Rate         RX #     TX Rate         TX #
───────────────────────────────────────────────────────────────────────────────
me.arun.host (source: local)
0   lo                         0.00B            0       0.00B            0
1   eth0                       0.00B            0       0.00B            0
2   eth2                       0.00B            0       0.00B            0
3   vboxnet0                   0.00B            0       0.00B            0
4   pan0                       0.00B            0       0.00B            0
5   ppp0                      69.39KiB         61       7.49KiB         44

root@me:~# bwm-ng

bwm-ng v0.6 (probing every 0.500s), press ‘h’ for help
input: /proc/net/dev type: rate
\         iface                   Rx                   Tx                Total
==============================================================================
lo:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth0:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth2:           0.00 KB/s            0.00 KB/s            0.00 KB/s
ppp0:          64.39 KB/s            7.92 KB/s           72.31 KB/s
——————————————————————————
total:          64.39 KB/s            7.92 KB/s           72.31 KB/s

root@me:~# dstat
—-total-cpu-usage—- -dsk/total- -net/total- —paging– —system–
usr sys idl wai hiq siq| read  writ| recv  send|  in   out | int   csw
7   4  85   4   0   0| 281k  110k|   0     0 |   0     0 | 865  3013
8   4  88   0   0   0|   0     0 |7027B 1261B|   0     0 | 956  4505
8   5  86   0   0   0|   0     0 |  14k 1867B|   0     0 |1144  3332
9   5  86   0   1   0|   0     0 |  79k 2496B|   0     0 |1360  3366
18   8  74   0   0   0|   0     0 |  52k 6511B|   0     0 |1299  3618
8   6  85   0   1   0|   0     0 |  35k 5339B|   0     0 |1094  4231
6   4  90   0   0   0|   0     0 |   0  3164B|   0     0 | 953  2750 ^C
root@me:~#

root@me:~# ifstat
eth0                eth2                ppp0
KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out
0.00      0.00      0.00      0.00     95.73      4.31
0.00      0.00      0.00      0.00     67.93      8.17
0.00      0.00      0.00      0.00    106.77     13.70

** start “iperf” server on one host(A) and client on another host(B)- to measure Network throughput between two hosts.

* Host -A

root@me:~# iperf -s
————————————————————
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
————————————————————
[  4] local 192.168.0.1 port 5001 connected with 192.168.0.2 port 56171
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec

* Host -B
test@hostB:~$ iperf -c 192.168.0.1
————————————————————
Client connecting to 192.168.0.1, TCP port 5001
TCP window size: 49.5 KByte (default)
————————————————————
[  3] local 192.168.0.2 port 56171 connected with 192.168.0.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec
test@hostB:~$

root@me:~# iftop
root@me:~# cbm

Thank you,
Arun Bagul

如何测试网络的性能和带宽

如何测试网络的性能和带宽

简介 –

网络延迟和带宽两个指标最有可能当你有兴趣的基准网络。即使大多数的服务和产品广告有时带宽,重点潜伏期可以是一个更重要指标。

**什么是带宽?

带宽(BW)指的是由网络数据传输率或接口连接在计算机网络支持。体重是衡量每秒位数(bps)的条款。

**什么是网络延迟?

延迟是一个时间延迟测量系统中的经验。网络延迟仅仅是指在一定时间的延时,数据从一个地方传输到另一个地方。有很多因素造成网络延迟数。这些措施包括传播(连接介质),距离,路由器和计算机硬件延迟。

名单用于测试网络的性能和带宽项目 –

1)bmon – 带宽监控和速度估计,它是基于控制台,活体重
2)bwbar – 带宽的使用在文本和图形格式
3)宝马-吴 – 带宽监视器吴(下一代,活体重,基于控制台
4)dstat – Dstat是vmstat的,iostat和ifstat更换。
5)iftop – 带宽接口上使用,基于控制台
6)的iperf – 执行网络吞吐量测试两个主机打赌
7)ifstat – 报告界面统计
8)煤层气 – 色彩带宽计,基于控制台
9)etherape – 图形化网络流量浏览器
10)iptraf – 交互式IP局域网彩色监视器,控制台和图形界面的
11)netmrg – 它是守护进程的基础上,MySQL的支持,从设备收集数据。
12)nuttcp – 网络性能测量工具
13)nepim

注意〜对于其中一些rpm或deb包不可用!

步骤1]如何安装在Redhat / RHCE认证,CentOS的系统,并Dibian的系统?

root@me:~# yum install netperf iperf nuttcp nepim lmbench

** Ubuntu的 –

root@me:~# apt-get install  bmon bwbar bwm-ng dstat cbm etherape iftop iperf ifstat iptraf netmrg

步骤2]如何使用 – bmon,宝马,吴,dstat,ifstat

root@me:~# bmon

interface: lo at me.arun.world

#   Interface                RX Rate         RX #     TX Rate         TX #
───────────────────────────────────────────────────────────────────────────────
me.arun.host (source: local)
0   lo                         0.00B            0       0.00B            0
1   eth0                       0.00B            0       0.00B            0
2   eth2                       0.00B            0       0.00B            0
3   vboxnet0                   0.00B            0       0.00B            0
4   pan0                       0.00B            0       0.00B            0
5   ppp0                      69.39KiB         61       7.49KiB         44

root@me:~# bwm-ng

bwm-ng v0.6 (probing every 0.500s), press ‘h’ for help
input: /proc/net/dev type: rate
\         iface                   Rx                   Tx                Total
==============================================================================
lo:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth0:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth2:           0.00 KB/s            0.00 KB/s            0.00 KB/s
ppp0:          64.39 KB/s            7.92 KB/s           72.31 KB/s
——————————————————————————
total:          64.39 KB/s            7.92 KB/s           72.31 KB/s

root@me:~# dstat
—-total-cpu-usage—- -dsk/total- -net/total- —paging– —system–
usr sys idl wai hiq siq| read  writ| recv  send|  in   out | int   csw
7   4  85   4   0   0| 281k  110k|   0     0 |   0     0 | 865  3013
8   4  88   0   0   0|   0     0 |7027B 1261B|   0     0 | 956  4505
8   5  86   0   0   0|   0     0 |  14k 1867B|   0     0 |1144  3332
9   5  86   0   1   0|   0     0 |  79k 2496B|   0     0 |1360  3366
18   8  74   0   0   0|   0     0 |  52k 6511B|   0     0 |1299  3618
8   6  85   0   1   0|   0     0 |  35k 5339B|   0     0 |1094  4231
6   4  90   0   0   0|   0     0 |   0  3164B|   0     0 | 953  2750 ^C
root@me:~#

root@me:~# ifstat
eth0                eth2                ppp0
KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out
0.00      0.00      0.00      0.00     95.73      4.31
0.00      0.00      0.00      0.00     67.93      8.17
0.00      0.00      0.00      0.00    106.77     13.70

**启动“iperf的”在一台主机(A)和在另一台主机(b)客户服务器 – 来衡量两个主机之间的网络吞吐量。

* Host -A

root@me:~# iperf -s
————————————————————
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
————————————————————
[  4] local 192.168.0.1 port 5001 connected with 192.168.0.2 port 56171
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec

* Host -B
test@hostB:~$ iperf -c 192.168.0.1
————————————————————
Client connecting to 192.168.0.1, TCP port 5001
TCP window size: 49.5 KByte (default)
————————————————————
[  3] local 192.168.0.2 port 56171 connected with 192.168.0.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec
test@hostB:~$

root@me:~# iftop
root@me:~# cbm

Thank you,
Arun Bagul

How to Test Network performance and Bandwidth

How to Test Network performance and Bandwidth

Introduction –

Network latency
and Bandwidth are the two metrics most likely to be of interest when you benchmark a network. Even though most service and product advertising focuses on bandwidth, at times the latency can be a more important metric.

** What is Bandwidth?

Bandwidth (BW) in computer networking refers to the data rate supported by a network connection or interface. BW is measured in terms of bits per second (bps).

** What is Network latency?

Latency is a measure of time delay experienced in a system. Network latency is simply defined as the time delay observed as data transmits from one point to another. There are a number of factors that contribute to network latency. These include transmission(medium of connectivity), Distance, Routers and computer hardware delays.

List of Projects used to test Network performance and Bandwidth –

1) bmon – Bandwidth monitor and rate estimator, it is console based,live BW
2) bwbar – Bandwidth usage in Text and Graphical format
3) bwm-ng – Bandwidth Monitor NG (Next Generation, live BW, console based
4) dstat – Dstat is a replacement for vmstat, iostat and ifstat.
5) iftop – Bandwidth usage on an interface, console based
6) iperf – Perform Network throughput tests bet two host
7) ifstat – Report InterFace STATistics
8) cbm – Color Bandwidth Meter ,console based
9) etherape – Graphical network traffic browser
10) iptraf – Interactive Colorful IP LAN Monitor, console and GUI based
11) netmrg – It is daemon based, mySQL support, Gathers data from devices.
12) nuttcp – Network performance measurement tool
13) nepim – network performance

NOTE ~ For some of them rpm or deb packages are not available!

Step 1] How to install on Redhat/RHCE,CentOS based system and Dibian based system –

root@me:~# yum install netperf iperf nuttcp nepim lmbench

** Ubuntu –

root@me:~# apt-get install  bmon bwbar bwm-ng dstat cbm etherape iftop iperf ifstat iptraf netmrg

Step 2] How to use – bmon, bwm-ng, dstat, ifstat –

root@me:~# bmon
interface: lo at me.arun.host
#   Interface                RX Rate         RX #     TX Rate         TX #
────────────────────────────────────────
me.arun.host (source: local)
0   lo                         0.00B            0       0.00B            0
1   eth0                       0.00B            0       0.00B            0
2   eth2                       0.00B            0       0.00B            0
3   vboxnet0                   0.00B            0       0.00B            0
4   pan0                       0.00B            0       0.00B            0
5   ppp0                      69.39KiB         61       7.49KiB         44

root@me:~# bwm-ng

bwm-ng v0.6 (probing every 0.500s), press ‘h’ for help
input: /proc/net/dev type: rate
\         iface                   Rx                   Tx                Total
==============================================================================
lo:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth0:           0.00 KB/s            0.00 KB/s            0.00 KB/s
eth2:           0.00 KB/s            0.00 KB/s            0.00 KB/s
ppp0:          64.39 KB/s            7.92 KB/s           72.31 KB/s
——————————————————————————
total:          64.39 KB/s            7.92 KB/s           72.31 KB/s

root@me:~# dstat
—-total-cpu-usage—- -dsk/total- -net/total- —paging– —system–
usr sys idl wai hiq siq| read  writ| recv  send|  in   out | int   csw
7   4  85   4   0   0| 281k  110k|   0     0 |   0     0 | 865  3013
8   4  88   0   0   0|   0     0 |7027B 1261B|   0     0 | 956  4505
8   5  86   0   0   0|   0     0 |  14k 1867B|   0     0 |1144  3332
9   5  86   0   1   0|   0     0 |  79k 2496B|   0     0 |1360  3366
18   8  74   0   0   0|   0     0 |  52k 6511B|   0     0 |1299  3618
8   6  85   0   1   0|   0     0 |  35k 5339B|   0     0 |1094  4231
6   4  90   0   0   0|   0     0 |   0  3164B|   0     0 | 953  2750 ^C
root@me:~#

root@me:~# ifstat
eth0                eth2                ppp0
KB/s in  KB/s out   KB/s in  KB/s out   KB/s in  KB/s out
0.00      0.00      0.00      0.00     95.73      4.31
0.00      0.00      0.00      0.00     67.93      8.17
0.00      0.00      0.00      0.00    106.77     13.70

** start “iperf” server on one host(A) and client on another host(B)- to measure Network throughput between two hosts.

* Host -A

root@me:~# iperf -s
————————————————————
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
————————————————————
[  4] local 192.168.0.1 port 5001 connected with 192.168.0.2 port 56171
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec

* Host -B
test@hostB:~$ iperf -c 192.168.0.1
————————————————————
Client connecting to 192.168.0.1, TCP port 5001
TCP window size: 49.5 KByte (default)
————————————————————
[  3] local 192.168.0.2 port 56171 connected with 192.168.0.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  9.11 GBytes  7.82 Gbits/sec
test@hostB:~$

root@me:~# iftop
root@me:~# cbm

Thank you,
Arun Bagul