D-ITG

D-ITG is a tool useful to test network bandwidth between two host (one server called Receiver and one client called Sender).

D-ITG (ITG)

Common parameters:

ITGSEND

-a  ip address of Receiver (server)
-Sdp Signiling port (default: 9000)
-rp data port (destination port, default 8999)
-c  packet size in byte (defaul 512, it is better to set this value below mtu value to avoid packet fragmentation )
-C  packet per second (default 1000)
-t  duration in milliseconds (default 10000ms)
-T  protocol (TCP, UDP, ICMP, SCTP, DCCP – default UDP)
-x  log file on receiver side (default: /tmp/ITGRecv.log)
-l  local log file (default: /tmp/ITGSend.log)
-H  PASSIVE MODE (useful in case of NAT)
-b  hexadecimal DSCP

About the bandwidth

To find out the total bandwidth of the test you have to multiply: c*C*8

ITGRECV

-a  “bind address”, it is the ip address on receiver side on which we expect data flow
-i “bind interface”, it is the interface on receiver side on which we expect data flow
-Sp signaling port
-l  local log file (default: /tmp/ITGRecv.log)
-H  PASSIVE MODE (useful in case of NAT)

Example D-ITG

We want to test traffic between one terminal (called MyTerminal) and one Server (called PigServer), using the following parameters:
MyTerminal: 10.10.10.10
PigServer: 10.10.10.20
Port: 5501
Signaling Port: 5500
Duration: 5 minuts (300 sec)
Band: 2M
We need Receiver log on UDP Test

TCP

DOWNSTREAM:

MyTerminal: ITGRecv -a 10.10.10.10 -Sp 5500 -l localog.log
PigServer: ITGSend -a 10.10.10.10 -Sdp 5500 -rp 5501 -c 1470 -C 170 -t 300000 -T TCP -l Sender.log

UPSTREAM

SERVER: ITGRecv -a 10.10.10.20 -Sp 5500 -l localog.log
Terminale: ITGSend –a 10.10.10.20 -Sdp 5500 -rp 5501 -c 1470 -C 170 -t 300000 -T TCP -l Sender.log

UDP:

DOWNSTREAM

MyTerminal: ITGRecv -a 10.10.10.10 -Sp 5500 -l localog.log
PigServer: ITGSend -a 10.10.10.10 -Sdp 5500 -rp 5501 -c 1470 -C 170 -t 300000 -T UDP -x Receiver.log -l Sender.log

UPSTREAM

SERVER: ITGRecv -a 10.10.10.20 -Sp 5500 -l localog.log
Terminale: ITGSend –a 10.10.10.20 -Sdp 5500 -rp 5501 -c 1470 -C 170 -t 300000 -T UDP -x Receiver.log -l Sender.log

How to read ITG log file

To read ITG log file we need to use ITGDec command:

ITGDec localog.log

ITGDec
Compile-time options:
----------------------------------------------------------
Flow number: 1
From 10.10.10.10:54261
To    10.10.10.20:5501
----------------------------------------------------------
Total time               =      4.899664 s
Total packets            =            50
Minimum delay            =     30.475563 s
Maximum delay            =     30.476856 s
Average delay            =     30.476176 s
Average jitter           =      0.000299 s
Delay standard deviation =      0.000340 s
Bytes received           =       2555000
Average bitrate          =   2021.714632 Kbit/s
Average packet rate      =     10.204781 pkt/s
Packets dropped          =             0 (0.00 %)
Average loss-burst size  =      0.000000 pkt
----------------------------------------------------------

__________________________________________________________
****************  TOTAL RESULTS   ******************
__________________________________________________________
Number of flows          =             1
Total time               =      4.899664 s
Total packets            =            50
Minimum delay            =     30.475563 s
Maximum delay            =     30.476856 s
Average delay            =     30.476176 s
Average jitter           =      0.000299 s
Delay standard deviation =      0.000340 s
Bytes received           =       2555000
Average bitrate          =   2021.714632 Kbit/s
Average packet rate      =     10.204781 pkt/s
Packets dropped          =             0 (0.00 %)
Average loss-burst size  =             0 pkt
Error lines              =             0
----------------------------------------------------------

It could be useful to write result in another file:

ITGDec localog.log >> logfile.log

Another tool for network testing is IPERF, here the main difference between D-ITG and IPERF

Reference:
D-ITG web site

itg and iperf

measure network performance with itg and iperf

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.