네트워크 성능 벤치 및 모니터링 툴 - 윈디하나의 솔라나라

목차

개요

IPerf2

설치

windy@wl ~/src $ wget https://jaist.dl.sourceforge.net/project/iperf2/iperf-2.2.0.tar.gz
windy@wl ~/src $ tar xvfz iperf-2.2.0.tar.gz
windy@wl ~/src $ cd iperf-2.2.0
windy@wl ~/src/iperf-2.2.0 $ ./configure
windy@wl ~/src/iperf-2.2.0 $ vi src/Server.cpp
# 700 번째 라인 "(double)" 을 붙임
            diff_tolerance = ceil((double)mSettings->mInterval / 1000000);
windy@wl ~/src/iperf-2.2.0 $ make
windy@wl ~/src/iperf-2.2.0 $ sudo make install
1) Makefile.in에서, AM_CXXFLAGSAM_FLAGS-Wall-lrt로 변경한다. 솔라리스는 nanosleep(3RT)librt(3LIB)에 있다. -Wall은 GCC용 옵션이기 때문에 CC에서 컴파일시 삭제해야 한다.

실행

사용 예

JPerf

자바로 만든 iperf의 GUI 판이다. 기능은 동일하다.

iperf3

설치

아래와 같이 소스를 받아 설치할 수 있다.

windy@wl ~/src $ wget https://github.com/esnet/iperf/releases/download/3.17.1/iperf-3.17.1.tar.gz
windy@wl ~/src $ tar xvfz iperf-3.17.1.tar.gz
windy@wl ~/src $ cd iperf-3.17.1
windy@wl ~/src/iperf-3.17.1 $ CC=gcc ./configure --with-openssl=/usr/local/ssl CFLAGS="-m64 -lsendfile" LDFLAGS="-m64"
windy@wl ~/src/iperf-3.17.1 $ make
windy@wl ~/src/iperf-3.17.1 $ sudo make install

실행

자세한 옵션들은 iperf3(1)을 참조하자.

사용예

서버측 호스트에서 아래와 같이 실행한다.
windy@wl ~ $ iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from ::1, port 51234
[  5] local ::1 port 5201 connected to ::1 port 55954
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-1.00   sec   136 KBytes  1.11 Mbits/sec  0.008 ms  0/17 (0%)
[  5]   1.00-2.00   sec   128 KBytes  1.05 Mbits/sec  0.016 ms  0/16 (0%)
[  5]   2.00-3.00   sec   128 KBytes  1.05 Mbits/sec  0.012 ms  0/16 (0%)
[  5]   3.00-4.00   sec   128 KBytes  1.05 Mbits/sec  0.012 ms  0/16 (0%)
[  5]   4.00-5.00   sec   128 KBytes  1.05 Mbits/sec  0.010 ms  0/16 (0%)
[  5]   5.00-6.00   sec   120 KBytes   982 Kbits/sec  0.016 ms  0/15 (0%)
[  5]   6.00-7.01   sec   128 KBytes  1.04 Mbits/sec  17.448 ms  0/16 (0%)
[  5]   7.01-8.00   sec   136 KBytes  1.12 Mbits/sec  5.830 ms  0/17 (0%)
[  5]   8.00-9.00   sec   128 KBytes  1.04 Mbits/sec  2.087 ms  0/16 (0%)
[  5]   9.00-10.00  sec   128 KBytes  1.05 Mbits/sec  0.751 ms  0/16 (0%)
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  5]   0.00-10.00  sec  1.26 MBytes  1.05 Mbits/sec  0.751 ms  0/161 (0%)  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Ctrl+Ciperf3: interrupt - the server has terminated

클라이언트측 호스트에서 아래와 같이 실행한다.
windy@wl ~ $ iperf3 -c localhost -u -Z
Connecting to host localhost, port 5201
[  6] local ::1 port 55954 connected to ::1 port 5201
[ ID] Interval           Transfer     Bitrate         Total Datagrams
[  6]   0.00-1.00   sec   136 KBytes  1.11 Mbits/sec  17
[  6]   1.00-2.00   sec   128 KBytes  1.05 Mbits/sec  16
[  6]   2.00-3.00   sec   128 KBytes  1.05 Mbits/sec  16
[  6]   3.00-4.00   sec   128 KBytes  1.05 Mbits/sec  16
[  6]   4.00-5.00   sec   128 KBytes  1.05 Mbits/sec  16
[  6]   5.00-6.01   sec   120 KBytes   971 Kbits/sec  15
[  6]   6.01-7.02   sec   128 KBytes  1.04 Mbits/sec  16
[  6]   7.02-8.00   sec   136 KBytes  1.13 Mbits/sec  17
[  6]   8.00-9.01   sec   128 KBytes  1.04 Mbits/sec  16
[  6]   9.01-10.00  sec   128 KBytes  1.06 Mbits/sec  16
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
[  6]   0.00-10.00  sec  1.26 MBytes  1.05 Mbits/sec  0.000 ms  0/161 (0%)  sender
[  6]   0.00-10.00  sec  1.26 MBytes  1.05 Mbits/sec  0.751 ms  0/161 (0%)  receiver

iperf Done.

bwm-ng

설치

windy@wl ~/src $ wget https://www.gropp.org/bwm-ng/bwm-ng-0.6.3.tar.gz
windy@wl ~/src $ tar xvfz bwm-ng-0.6.3.tar.gz
windy@wl ~/src $ cd bwm-ng-0.6.3
windy@wl ~/src/bwm-ng-0.6.3 $ ./autogen.sh
windy@wl ~/src/bwm-ng-0.6.3 $ CC=gcc ./configure
windy@wl ~/src/bwm-ng-0.6.3 $ make
windy@wl ~/src/bwm-ng-0.6.3 $ sudo make install

실행

windy@wl ~ $ bwm-ng
  bwm-ng v0.6.3 (probing every 0.500s), press 'h' for help
  input: kstat type: rate
  -         iface                   Rx                   Tx                Total
  ==============================================================================
             phys:           0.12 KB/s            0.39 KB/s            0.50 KB/s
             net0:           0.12 KB/s            0.39 KB/s            0.50 KB/s
  ------------------------------------------------------------------------------
            total:           0.23 KB/s            0.77 KB/s            1.01 KB/s
windy@wl ~ $ bwm-ng -i kstatdisk
  bwm-ng v0.6.3 (probing every 0.500s), press 'h' for help
  input: kstatdisk type: rate
  |         iface                   Rx                   Tx                Total
  ==============================================================================
            cmdk0:           0.00 KB/s            8.00 KB/s            8.00 KB/s
       uhci0,ctrl:           0.00 KB/s            0.00 KB/s            0.00 KB/s
       uhci0,intr:           0.00 KB/s            0.00 KB/s            0.00 KB/s
  ------------------------------------------------------------------------------
            total:           0.00 KB/s            8.00 KB/s            8.00 KB/s
h 키를 누르면 도움말이 표시된다.
 lqbwm-ng v0.6.3 - Keybindings:qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
 x                                                                          x
 x 'h'  show this help                                                      x
 x 'q'  exit                                                                x
 x '+'  increases timeout by 100ms                                          x
 x '-'  decreases timeout by 100ms                                          x
 x 'd'  switch KB and auto assign Byte/KB/MB/GB                             x
 x 'a'  cycle: show all interfaces, only those which are up,                x
 x             only up and not hidden                                       x
 x 's'  sum hidden ifaces to total aswell or not                            x
 x 'n'  cycle: input methods                                                x
 x 'u'  cycle: bytes,bits,packets,errors                                    x
 x 't'  cycle: current rate, max, sum since start, average for last 30s     x
 x                                                                          x
 mq press any key to continue... qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

libstatgrab, saidar

설치

windy@wl ~/src $ wget https://github.com/libstatgrab/libstatgrab/releases/download/LIBSTATGRAB_0_92_1/libstatgrab-0.92.1.tar.gz
windy@wl ~/src $ tar xvfz libstatgrab-0.92.1.tar.gz
windy@wl ~/src $ cd libstatgrab-0.92.1
windy@wl ~/src/libstatgrab-0.92.1 $ ./configure
windy@wl ~/src/libstatgrab-0.92.1 $ make
windy@wl ~/src/libstatgrab-0.92.1 $ sudo make install

실행

RSS ATOM XHTML 5 CSS3