Debian Codegraph @

doc/d-itg-manual.tex

raw
1 \documentclass{article}
2
3 % - Dependencies - %
4 \usepackage[dvips]{epsfig,graphicx}
5 \usepackage[dvipsnames,usenames]{color}
6 \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue,citecolor=blue]{hyperref}
7 \usepackage[affil-it]{authblk}
8 \usepackage[english]{babel}
9 \usepackage[utf8]{inputenc}
10 \usepackage{charter}
11 \usepackage{multirow}
12 \usepackage{url}
13 \usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}
14 \usepackage{fancyvrb}
15
16 %\usepackage[pdftex]{graphicx}
17 %\DeclareGraphicsExtensions{.pdf,.jpeg,.png}
18
19 % - New commands - %
20 \newcommand{\tr}[1]{\textcolor{Red}{#1}}
21 \newcommand{\tg}[1]{\textcolor{Green}{#1}}
22 \newcommand{\tb}[1]{\textcolor{Blue}{#1}}
23 \newcommand{\ver}[0]{§VERSION§}
24 \newcommand{\rev}[0]{§REVISION§}
25
26
27 % - New environments - %
28 % \makeatletter
29 \newenvironment{lyxcode}{
30 \begin{list}{}{
31 \setlength{\rightmargin}{\leftmargin}
32 \setlength{\listparindent}{0pt}%
33 \raggedright
34 \setlength{\itemsep}{0pt}
35 \setlength{\parsep}{0pt}
36 \normalfont\ttfamily}%
37 \item[]
38 }{\end{list}}
39 % \makeatother
40
41 % - Title and authors - %
42 \title{D-ITG \ver{} Manual}
43 \author{Alessio Botta, Walter de Donato, Alberto Dainotti, \hspace{10cm}
44 Stefano Avallone, and Antonio Pescap\'e \\
45 COMICS (COMputer for Interaction and CommunicationS) Group \\
46 Department of Electrical Engineering and Information Technologies \\
47 University of Napoli Federico II \\
48 \vspace{1cm}\url{http://traffic.comics.unina.it/software/ITG}}
49
50 % - Document Body - %
51 \begin{document}
52 \maketitle
53 \newpage
54 \tableofcontents
55 \newpage
56
57 %-----------------------------------------------------------------------------
58 \section{Overview}\label{sec:overview}
59
60 D-ITG (Distributed Internet Traffic Generator) is a platform capable to produce IPv4 and IPv6 traffic by accurately replicating the workload of current Internet applications~\cite{d-itg0000, d-itg1111, d-itg3333, d-itg2222}.
61 At the same time D-ITG is also a network measurement tool able to measure the most common performance metrics (e.g. throughput, delay, jitter, packet loss) at packet level.
62
63 D-ITG can generate traffic following \textit{stochastic models} for packet size (PS) and inter departure time (IDT) that mimic application-level protocol behavior.
64 By specifying the distributions of IDT and PS random variables, it is possible to choose different renewal processes for packet generation: by using characterization and modeling results from literature, D-ITG is able to replicate statistical properties of traffic of different well-known applications (e.g Telnet, VoIP - G.711, G.723, G.729, Voice Activity Detection, Compressed RTP - DNS, network games).
65
66 At the transport layer, D-ITG currently supports TCP (Transmission Control Protocol), UDP (User Datagram Protocol), SCTP\footnotemark[1] (Stream Control Transmission Protocol), and DCCP\footnote[1]{SCTP and DCCP are currently supported only under Linux.} (Datagram Congestion Control Protocol). It also supports ICMP (Internet Control Message Protocol).
67 Among the several features described below, FTP-like passive mode is also supported to conduct experiments in presence of NATs, and it is possible to set the TOS (DS) and TTL IP header fields.
68
69 %---------------------------------------
70 \subsection{Architecture}\label{sec:architecture}
71
72 As reported in Fig.~\ref{fig:arch}, the architecture of D-ITG comprises different components.
73 % The main important ones are ITGSend, ITGRecv, ITGDec, and ITGLog.
74 % Other helpful tools, also distributed with D-ITG, are ITGManager and ITGPlot.
75
76 \begin{figure}[htbp]
77 \label{fig:arch}
78 \centering
79 \includegraphics[width=0.5\textwidth]{fig/arch.png}
80 \caption{Architecture of D-ITG.}
81 \end{figure}
82
83 The core features of D-ITG are provided by ITGSend and ITGRecv.
84 ITGSend is the component responsible for generating traffic toward ITGRecv.
85 Exploiting a multithreaded design, ITGSend can send multiple parallel traffic flows toward multiple ITGRecv instances, and ITGRecv can receive multiple parallel traffic flows from multiple ITGSend instances.
86 A signaling channel is created between each couple of ITGSend and ITGRecv components to control the generation of all the traffic flows between them.
87
88 ITGSend and ITGRecv can optionally produce log files containing detailed information about every sent and received packet.
89 Such logs can be saved locally or sent -- through the network -- to the ITGLog component (useful to collect all the measures at a single point or in the case of hosts with limited storage capabilities – e.g., sensors, embedded devices, smartphones, etc.).
90 The ITGDec component is in charge of analyzing the log files in order to extract performance metrics related to the traffic flows.
91
92 The experiments (even large-scale ones) can be controlled from a single vantage point: the ITGRecv components act as daemons and can be completely configured and controlled by the ITGSend components that want to send traffic to them.
93 Also the ITGSend components can act as daemons and can be remotely controlled through the D-ITG API.
94 The ITGManager component represents an example of how to use the D-ITG API to remotely control ITGSend.
95 This way, the user can completely control a large-scale distributed experiment from a single vantage point.
96
97 \subsubsection{ITGSend: Sender Component of the D-ITG Platform}\label{ITGSend}
98
99 The ITGSend component is responsible for generating traffic flows and can work in three different modes:
100 \begin{itemize}
101 \item \textbf{Single-flow} - read the configuration of the single traffic flow to generate toward a single ITGRecv instance from the command line;
102 \item \textbf{Multi-flow} - read the configuration of multiple traffic flows to generate toward one or more ITGRecv instances from a script file. The script is made of a line for each traffic flow, which includes a set of command-line options as in the single-flow mode;
103 \item \textbf{Daemon} - run as a daemon listening on a UDP socket for instructions and can be remotely controlled using the D-ITG API.
104 \end{itemize}
105
106 Every traffic flow generated is described by two stochastic processes relating to Packet Size (PS) and Internet Departure Time (IDT), through which well defined traffic profiles can be generated, emulating application protocols such as VoIP, DNS, etc..
107 PS and IDT series can also be loaded from a file for each flow.
108 ITGSend can log information about every sent or received packet, when running in \textit{One Way} or \textit{Round Trip} mode respectively (see below).
109 In the first case, timestamps (and other information) of sent packets are stored, while in the second case, timestamps (and other information) of sent and received packets are stored.
110 For each flow the source IP address can be specified, which is useful for multi-homed hosts.
111
112 \subsubsection{ITGRecv: Receiver Component of the D-ITG Platform}\label{ITGRecv}
113
114 The ITGRecv component is responsible for receiving multiple parallel traffic flows generated by one or more ITGSend instances.
115 It normally runs as a multi-threaded daemon listening on a TCP socket for incoming traffic reception requests.
116 Each time a request is received from the network, a new thread is created, which performs all the operations related to the new request (e.g. receiving the packets of the flow).
117 The port numbers on which ITGRecv will receive each flow and any logging activity required on the receiver side can be remotely controlled by ITGSend. A specific signaling protocol, called TSP, allows ITGRecv and ITGSend to properly setup and manage the traffic generation process.
118
119 \subsubsection{ITGLog: Logger Component of the D-ITG Platform}\label{ITGLog}
120
121 The ITGLog component is responsible for receiving and storing log information possibly sent by ITGSend and ITGRecv.
122 It runs as a multi-threaded daemon listening on a TCP socket for incoming log requests.
123 Log information is received over TCP or UDP protocols on port numbers dynamically allocated in the range [9003--10003].
124
125 \subsubsection{ITGDec: Decoder Component of the D-ITG Platform}\label{ITGDec}
126
127 The ITGDec component is responsible for decoding and analyzing the log files stored during the experiments conducted by using D-ITG.
128
129 ITGDec parses the log files generated by ITGSend and ITGRecv and
130 calculates the average values of bitrate, delay and jitter either on the whole duration of the
131 experiment or on variable-sized time intervals.
132
133 ITGDec analyzes the log files produced by ITGSend, ITGRecv, and ITGLog in order to produce the following results about each flow and about the whole set of flows:
134
135 \begin{itemize}
136 \item Syntethic reports:
137 \begin{itemize}
138 \item Experiment duration
139 \item Packets transferred
140 \item Payload bytes transferred
141 \item One-way/round-trip delay (minimum, maximum, average, standard deviation)
142 \item Average bitrate
143 \item Average packet rate
144 \item Dropped packets
145 \item Duplicate packets
146 \item Loss events
147 \item Average loss-burst size
148 \item First/last sequence number
149 \end{itemize}
150 \item Sampled QoS metrics timeseries:
151 \begin{itemize}
152 \item Bitrate [Kbps] (i.e. goodput)
153 \item One-way/round-trip delay [ms]
154 \item Jitter [ms] (i.e. delay variation)
155 \item Packet loss [pps] (i.e. packets lost per second)
156 \end{itemize}
157 \end{itemize}
158
159 %---------------------------------------
160 \subsection{Features}\label{sec:features}
161
162 D-ITG is able to generate multiple unidirectional flows from many senders toward many receivers, each of them having the following features.
163 \begin{itemize}
164 \item Customizable flow-level properties
165 \begin{itemize}
166 \item duration
167 \item start delay
168 \item total number of packets
169 \item total number of KBytes
170 \end{itemize}
171 \item Supported Layer-3 features
172 \begin{itemize}
173 \item protocols: IPv4, IPv6
174 \item customizable header fields:
175 \begin{itemize}
176 \item source and destination IP addresses
177 \item source interface binding (for multi-homed devices)
178 \item initial TTL value
179 \item DS byte
180 \end{itemize}
181 \item NAT traversal: FTP-like passive mode
182 \end{itemize}
183 \item Supported Layer-4 features
184 \begin{itemize}
185 \item protocols: TCP, UDP, ICMP, DCCP, SCTP
186 \item customizable header fields:
187 \begin{itemize}
188 \item source and destination port numbers
189 \end{itemize}
190 \end{itemize}
191 \item Supported Layer-7 features
192 \begin{itemize}
193 \item Predefined stochastic PS (Packet Size) and IDT (Inter Departure Time) profiles:
194 \begin{itemize}
195 \item Telnet
196 \item DNS
197 \item Quake3
198 \item CounterStrike (active and inactive)
199 \item VoIP (G.711, G.729, G.723)
200 \end{itemize}
201 \item Payload content: random or read from file
202 \item Stochastic processes supported for both PS and IDT:
203 \begin{itemize}
204 \item Supported distributions are Uniform, Constant, Exponential, Pareto, Cauchy, Normal, Poisson, Gamma, Weibull
205 \item Explicit random seed selection for replicating the same stochastic process
206 \item Loading of PS and IDT series from file
207 \end{itemize}
208 \end{itemize}
209 \item Packet-level QoS metrics
210 \begin{itemize}
211 \item Bitrate
212 \item Packet rate
213 \item One way delay (requires clocks synchronization)
214 \item Round Trip Time
215 \item Jitter
216 \item Packet loss
217 \end{itemize}
218 \end{itemize}
219
220
221 %---------------------------------------
222 \section{Compiling D-ITG}\label{sec:buildingopts}
223
224 \subsection{Requirements}
225
226 D-ITG currently supports the following operating systems:
227 \begin{itemize}
228 \item Linux\footnotemark[1] (Ubuntu, Debian, Fedora, CentOS, OpenWRT, Snapgear, Montavista, uClinux)
229 \item Windows (XP, Vista, 7)
230 \item OSX (Leopard)
231 \item FreeBSD\footnotemark[1]
232 \end{itemize}
233 \footnotetext[1]{D-ITG has been tested with the latest releases available on March 2013.}
234 %
235 In order to compile D-ITG you need GNU Make and gcc.
236 Depending on the operating system, some limitations or additional requirements
237 may apply (see \ref{par:instr}).
238
239
240 \subsection{Building steps}
241 \label{par:instr}
242
243 Independently on the operating system, these are the high-level steps to follow:
244 \begin{enumerate}
245 \item download and unpack the "D-ITG-\ver{}-r\rev{}-src.zip" package somewhere
246 on your filesystem;
247 \item from the command line, enter the "D-ITG-\ver{}-r\rev{}/src" directory;
248 \item type "make" to build the binaries.
249 \end{enumerate}
250 Once done, the binaries will be copied into the "D-ITG-\ver{}-r\rev{}/bin" directory.
251
252 \vspace{14pt}\hspace{-0.6cm}
253 In order to show the list of compile-time options available for the
254 current operating system run:
255 \begin{verbatim}
256 $ make help
257 \end{verbatim}
258 please note that not all the options are available on all operating systems and
259 the previous command will only show the options available for the current target operating system.
260
261 For instance, to enable DEBUG mode using a specific verbosity level the "debug=$<$level$>$"
262 option can be specified on the make command line:
263 \begin{verbatim}
264 $ make clean all debug=<level>
265 \end{verbatim}
266 where $<$level$>$ is a positive integer value (bigger value $=>$ more verbose) and
267 if set to 0 enables only debugging symbols without increasing the verbosity level.
268
269 \subsection{OS-Specific notes}
270
271 We report in the following some guidelines specific for each operating system.
272
273 \vspace{14pt}\hspace{-0.6cm}
274 \textbf{All Unix-like OSes (Linux, FreeBSD, OSX)}
275
276 \begin{itemize}
277 \item
278 The D-ITG binaries can be installed on the system by using the root account:
279 \begin{verbatim}
280 # make install PREFIX=/usr/local
281 \end{verbatim}
282 or as normal user by using the sudo utility:
283 \begin{verbatim}
284 $ sudo make install PREFIX=/usr/local
285 \end{verbatim}
286 The same way the binaries can be removed by the system:
287 \begin{verbatim}
288 # make uninstall PREFIX=/usr/local
289 \end{verbatim}
290 or:
291 \begin{verbatim}
292 $ sudo make uninstall PREFIX=/usr/local
293 \end{verbatim}
294 If not specified, the PREFIX variable takes "/usr/local" as default value.
295
296 \item The "multiport" and "bursty" options are enabled by default. They are still optional
297 since no extensive testing has been conducted on them. Both options can be disabled
298 at compile time respectively using the "multiport=off" and "bursty=off" options.
299 \end{itemize}
300
301 \vspace{14pt}\hspace{-0.6cm}
302 \textbf{Linux}
303 \begin{itemize}
304 \item In order to enable the SCTP protocol (sctp=on option), libsctp should be installed first.
305 This feature is supported with kernel version starting from 2.5.15.
306
307 \item The DCCP protocol (dccp=on option) is supported with kernel version starting from 2.6.14-rc1.
308
309 \item Windows binaries can also be built under Linux using Mingw:
310 \begin{verbatim}
311 $ make T=win
312 \end{verbatim}
313 If MinGW is installed in a standard location (e.g. /usr/i686-w64-mingw32 on Ubuntu 12.10)
314 it will be automatically detected, otherwise it is necessary to set the MINGW variable to
315 point to the Mingw toolchain path:
316 \begin{verbatim}
317 $ export MINGW=/usr/local/i686-w64-mingw32
318 \end{verbatim}
319 In order to show the options available in this case do:
320 \begin{verbatim}
321 $ make T=win help
322 \end{verbatim}
323 \end{itemize}
324
325 \vspace{14pt}\hspace{-0.6cm}
326 \textbf{Windows}
327 \begin{itemize}
328 \item Since with Windows XP/2000 listening on both IPv4 and IPv6 sockets is not supported,
329 we provide an "ipv4only=on" option to disable IPv6 support. Which means that normally
330 ITGRecv under Windows XP/2000 will only be able to accept connections using IPv6.
331 Using more recent Windows versions this option is not necessary and ITGRecv
332 will be able to work with IPv4 and IPv6 simultaneously.
333
334 \item The compilation under Windows has been tested using Dev-Cpp 4.9.9.2, which includes
335 the Mingw 32-bit toolchain based on GCC 3.4.2. It can be compiled both using the IDE
336 environment and Mingw from the command-line:
337
338 \begin{itemize}
339 \item Using Dev-Cpp IDE:
340 \begin{enumerate}
341 \item Open the "src/D-ITG.dev" project
342 \item Uncomment the first lines of the "win-mingw.mk" file to set compile-time options, if needed
343 \item Verify that the DEVDIR variable points to the right path of your Dev-Cpp installation
344 \item Type CTRL + F11 to compile
345 \end{enumerate}
346 \item Using Mingw from the command-line:
347 \begin{enumerate}
348 \item Add the bin folder of Dev-Cpp to the execution path:
349 \begin{verbatim}
350 C:\> set PATH=<Dev-Cpp_dir>\bin:%PATH%
351 \end{verbatim}
352 \item If you installed Dev-Cpp in the default path just do:
353 \begin{verbatim}
354 C:\D-ITG-VER-rREV\src> make
355 \end{verbatim}
356 otherwise you have to specify the right path setting the DEVDIR variable:
357 \begin{verbatim}
358 C:\D-ITG-VER-rREV\src> make DEVDIR=<Dev-Cpp_install_path>
359 \end{verbatim}
360 Compile-time options are supported also in this case. To list them do:
361 \begin{verbatim}
362 C:\D-ITG-VER-rREV\src> make help
363 \end{verbatim}
364 \end{enumerate}
365 \end{itemize}
366
367 \item The "multiport" option is set to "off" by default because it currently adds a delay
368 of several seconds when starting ITGRecv.exe.
369 \end{itemize}
370
371 \vspace{14pt}\hspace{-0.6cm}
372 \textbf{FreeBSD}
373
374 \begin{itemize}
375 \item In order to build D-ITG you have to use the GNU version of make:
376 \begin{verbatim}
377 $ gmake
378 \end{verbatim}
379
380 \item IPv6, DCCP and SCTP are currently not supported under FreeBSD.
381 \end{itemize}
382
383 \vspace{14pt}\hspace{-0.6cm}
384 \textbf{OSX}
385 \begin{itemize}
386 \item IPv6, DCCP and SCTP are currently not supported under OSX.
387 \end{itemize}
388
389 %-----------------------------------------------------------------------------
390 \section{Using D-ITG}\label{sec:components}
391
392 In order to use D-ITG, you have to run at least ITGRecv instance to receive the traffic
393 and one ITGSend instance to send the traffic.
394 They simplest way to try it is to run both instances on the same host, as shown in the
395 quickstart example.
396
397 %---------------------------------------------------------------------------
398 \subsection{Quick start}
399
400
401 Once obtained the D-ITG binaries, following the instructions reported in section \ref{sec:buildingopts},
402 you are ready to start using D-ITG.
403 %
404 Here we show a quickstart example in which all the components are executed on the same host and communicate
405 using the loopback interface:
406 \begin{itemize}
407 \item Open a console, enter the folder containing the D-ITG binaries, and run the ITGRecv component:
408 \begin{verbatim}
409 $ ./ITGRecv
410 \end{verbatim}
411
412 \item Open a second console and, from the same folder, run the ITGSend component:
413 \begin{verbatim}
414 $ ./ITGSend -T UDP -a 127.0.0.1 -c 100 -C 10 -t 15000 \
415 -l sender.log -x receiver.log
416 \end{verbatim}
417
418 This way ITGSend will generate one UDP flow with constant payload size (100 bytes) and constant packet rate (10 pps)
419 for 15 seconds (15000 ms) and two packet-level log files will be generated both on sender (-l option) and
420 receiver (-x option) side.
421
422 \item Now to analyze the logs, from the same folder, run the ITGDec component on both logs in turn:
423 \begin{verbatim}
424 $ ./ITGDec sender.log
425
426 ...
427
428 $ ./ITGDec receiver.log
429
430 ...
431 \end{verbatim}
432
433 The result in both cases should be similar to the following one:
434 {\footnotesize
435 \begin{verbatim}
436 ----------------------------------------------------------
437 Flow number: 1
438 From 127.0.0.1:44225
439 To 127.0.0.1:8999
440 ----------------------------------------------------------
441 Total time = 14.944263 s
442 Total packets = 150
443 Minimum delay = 0.000000 s
444 Maximum delay = 0.000000 s
445 Average delay = 0.000000 s
446 Average jitter = 0.000000 s
447 Delay standard deviation = 0.000000 s
448 Bytes received = 15000
449 Average bitrate = 8.029837 Kbit/s
450 Average packet rate = 10.037297 pkt/s
451 Packets dropped = 0 (0.00 %)
452 Average loss-burst size = 0.000000 pkt
453 ----------------------------------------------------------
454
455 __________________________________________________________
456 **************** TOTAL RESULTS ******************
457 __________________________________________________________
458 Number of flows = 1
459 Total time = 14.944263 s
460 Total packets = 150
461 Minimum delay = 0.000000 s
462 Maximum delay = 0.000000 s
463 Average delay = 0.000000 s
464 Average jitter = 0.000000 s
465 Delay standard deviation = 0.000000 s
466 Bytes received = 15000
467 Average bitrate = 8.029837 Kbit/s
468 Average packet rate = 10.037297 pkt/s
469 Packets dropped = 0 (0.00 %)
470 Average loss-burst size = 0 pkt
471 Error lines = 0
472 ----------------------------------------------------------
473 \end{verbatim}
474 }
475 \end{itemize}
476
477
478
479 %---------------------------------------
480 \subsection{ITGSend}\label{qs:ITGSend}
481
482 \subsubsection{Synopsis}
483 ITGSend can be launched in three different modes.
484
485 \begin{itemize}
486 \item \textbf{Single-flow mode}: reads the single traffic flow to generate from the command line
487 \begin{verbatim}
488 $ ./ITGSend [log_opts] [sig_opts] [flow_opts] [misc_opts]
489 [ [idt_opts] [ps_opts] | [app_opts] ]
490 \end{verbatim}
491
492 \item \textbf{Multi-flow mode}: reads the traffic flows to generate from a script file
493 \begin{verbatim}
494 $ ./ITGSend <script_file> [log_opts]
495 \end{verbatim}
496
497 \item \textbf{Daemon mode}: runs as a daemon to be remotely controlled using the ITGapi
498 \begin{verbatim}
499 $ ./ITGSend -Q [log_opts]
500 \end{verbatim}
501
502 \end{itemize}
503
504 \vspace{14pt}\hspace{-0.6cm}
505 \textbf{NOTE}: launching ITGSend in background requires to redirect stdin to /dev/null.
506
507 \subsubsection{Modes}
508 \begin{description}
509
510 \item[Single-flow mode] \hfill \\\\ The single-flow mode enables ITGSend to generate one traffic flow
511 according to the specified command-line options. The flow is managed by a dedicated thread, while a
512 separate thread is responsible for setting up and coordinating the generation process by communicating
513 with the ITGRecv component on a separate channel.
514
515 \item[Multi-flow mode] \hfill \\\\ The multi-flow mode enables ITGSend to simultaneously generate several flows. Each
516 flow is managed by a single thread, with a single, separate thread acting as a master and coordinating the others.
517 To generate $n$ flows, the script file has to contain $n$ lines, each of them used to specify
518 the characteristics of one flow. Each line can contain all the options illustrated in
519 Section~\ref{sec:ITGSendoption}, with the exception of those regarding the logging process.
520 When using this mode, the logging options have to be specified on the command line and refer to all the flows.
521
522 \item[Daemon mode] \hfill \\\\ The daemon mode allows ITGSend to be remotely controlled by using the ITGapi.
523 When working in this mode ITGSend acts as a daemon listening on a UDP port for traffic generation requests.
524
525 \end{description}
526
527 \subsubsection{Options}\label{sec:ITGSendoption}
528
529 {\small
530 \begin{Verbatim}[commandchars=\\\{\}]
531 Log options (log_opts):
532
533 -l [logfile] Generate sender-side log file (default: /tmp/ITGSend.log).
534
535 Generates a log file containing timing, ordering and size information
536 about every packet sent by ITGSend.
537 Under Windows the default log file name is "ITGSend.log".
538
539 -L [log_server_address] Generate sender-side log file on a remote ITGLog instance.
540 [logging_protocol]
541 The first parameter sets the log server IP address (default: 127.0.0.1).
542 The second parameter sets the transport protocol used to establish the
543 communication between ITGSend and ITGLog: UDP or TCP (default: UDP).
544 The name of the log file is specified by the -l option.
545
546 -x [receiver_logfile] Ask ITGRecv to generate receiver-side log file (default: /tmp/ITGRecv.log).
547
548 Generates a log file containing timing, ordering and size information
549 about every packet received by ITGRecv.
550 Under Windows the default log file name is "ITGRecv.log".
551
552 -X [log_server_address] Ask ITGRecv to generate receiver-side log file on a remote ITGLog instance.
553 [logging_protocol]
554 The first parameter sets the log server IP address (default: 127.0.0.1).
555 The second parameter sets the transport protocol used to establish the
556 communication between ITGRecv and ITGLog: UDP or TCP (default: UDP).
557 The name of the log file is specified by the -x option.
558
559 -q <log_buffer_size> Number of packets to push to the log at once (default: 50).
560
561 Sets how many packets have to be buffered before writing them to the
562 log file. Since the buffer is flushed (on disk or through the network
563 towards ITGLog) after this number of packets, using a small value has
564 impact on the generation performance.
565 This parameter has effect also when -L and -X options are specified.
566
567
568 Signaling options (sig_opts):
569
570 -Sda <signaling_dest_addr> Set the destination address for the signaling channel
571 (default: equal to -a <dest_address>).
572
573 -Sdp <signaling_dest_port> Set the destination port for the signaling channel
574 (default: 9000).
575
576 -Ssa <signaling_src_addr> Set the source address for the signaling channel
577 (default: Set by O.S.).
578
579 -Ssp <signaling_src_port> Set the source port for the signaling channel
580 (default: Set by O.S.).
581
582 -Si <signaling_interface> Set the network interface for the signaling channel
583 (available only on Linux).
584
585
586 Flow options (flow_opts):
587
588 -H Enable NAT traversal: FTP-like passive mode
589
590 As for FTP, such mode allows NAT traversal by opening every (TCP and UDP)
591 connection (for signaling and for traffic generation) in the opposite
592 direction (i.e. from ITGRecv towards ITGSend). When the option is enabled
593 ITGSend waits to be contacted by ITGRecv before starting the genearation.
594 This option is necessary when ITGRecv is behind a NAT, and it requires
595 the -H option also at reciver side (see ITGRecv help).
596
597 -m <meter> Set the type of meter (default: owdm):
598 - owdm (one-way delay meter)
599 - rttm (round-trip time meter)
600
601 D-ITG does not provide any sort of synchronization among senders and receivers.
602 In order to correctly measure packet One Way Delay (OWD), the clocks of sender
603 and receiver must be synchronized by other means.
604 Otherwise, we suggest to use the Round Trip Time (RTT) meter.
605
606 -t <duration> Set the generation duration in ms (default: 10000 ms).
607
608 When -t, -z, and/or -k are specified, the most restrictive applies.
609
610 -z <#_of_packets> Set the number of packets to generate.
611
612 When -t, -z, and/or -k are specified, the most restrictive applies.
613
614 -k <#_of_KBytes> Set the number of KBytes to generate.
615
616 When -t, -z, and/or -k are specified, the most restrictive applies.
617
618 -d <delay> Start the generation after the specified delay in ms (default: 0 ms).
619
620 -b <DS_byte> Set the DS byte for QoS tests (default: 0).
621
622 The value is interpreted as a decimal number (allowed range [0, 255]),
623 or as an hexadecimal number using the "0x" prefix (allowed range [0, ff]).
624 \underline{OS specific notes}:
625 - the option is disabled under Windows 2000 and XP, according to the
626 "Microsoft Knowledge Base Article - 248611".
627 - Under Linux you need root priviledges to set the DS byte to a value larger
628 than 160.
629
630 -f <TTL byte> Set the IP Time To Live (default: 64).
631
632 The value is interpreted as a decimal number (allowed range [0, 255]),
633 or as an hexadecimal number using the "0x" prefix (allowed range [0, ff]).
634
635 -a <dest_address> Set the destination address (default: 127.0.0.1).
636
637 This option applies to both traffic flow and signaling channel unless
638 -Sda option is also specified.
639
640 -sa <src_address> Set the source address (default: Set by O.S.).
641
642 -rp <dest_port> Set the destination port (default: 8999).
643
644 This option applies only to traffic flows (i.e. not to signaling channel).
645 See above for signaling channel.
646
647 -sp <src_port> Set the source port (default: Set by O.S.).
648
649 This option applies only to traffic flow. See above for signaling channel.
650
651 -i <interface> Bind to the given interface (default: don't bind to any interface).
652
653 -p <payload_metadata> Select the metadata sent in the payload of each packet (default: 0).
654
655 Sets the type of information sent into the payload of each packet.
656 Valid values are:
657 - 0 standard information is sent in the packet payload;
658 - 1 only the sequence numbers are sent in the packet payload;
659 - 2 no information is sent in the packet payload.
660
661 -T <protocol> Layer 4 protocol (default: UDP):
662 - UDP (User Datagram Protocol)
663
664 - TCP (Transport Control Protocol)
665
666 Being TCP a stream-oriented protocol, the enforcement of
667 payload sizes is not guaranteed, especially when imposing
668 high packet rates. In this case the payload of subsequent
669 packets could be merged and then splitted again according
670 to the MSS value. The "-D" option may help in avoiding
671 this phenomenon, but many pre-compiled kernels have this
672 feature disabled and would just ignore it.
673
674 - ICMP [type] (Internet Control Messaging Protocol)
675
676 The default type is 8 (i.e. ECHO request).
677 \underline{Note}: To use ICMP under Linux you need root
678 priviledges for both ITGSend and ITGRecv.
679
680 - SCTP <association_id>
681 <max_streams> (Session Control Transport Protocol)
682
683 SCTP protocol is currently supported only under Linux.
684 Not all the features of this protocol are supported yet.
685 Multi-streaming is partially supported but currently disabled.
686 The <association_id> sub-option identifies the SCTP session,
687 while the <max_streams> sub-option defines how many streams
688 will be part of the session.
689 The streams part of the same SCTP session have to be specified
690 as separate flows with the same values for both sub-options.
691 To enable this option D-ITG has to be compiled with
692 "sctp" option enabled (i.e. make sctp=on).
693
694 - DCCP (Datagram Congestion Control Protocol)
695
696 DCCP protocol is currently supported only under Linux.
697 DCCP is a message-oriented protocol like UDP with
698 some new features. It implements not only congestion
699 control and congestion control negotiation, but also
700 reliable connection setup, teardown, and feature
701 negotiation. DCCP is supported only under Linux.
702 To enable this option D-ITG has to be compiled with
703 "dccp" option enabled (i.e. make dccp=on).
704
705 -D Disable TCP Nagle algorithm.
706
707 This option has effect only when using the TCP protocol and should allow to better
708 enforce the imposed payload size for each packet.
709 \underline{Note}: many pre-compiled kernels have this feature disabled and would just ignore it.
710
711
712 Inter-departure time options (idt_opts):
713
714 -C <rate> Constant (default: 1000 pkts/s).
715
716 -U <min_rate> Uniform distribution.
717 <max_rate>
718
719 -E <mean_rate> Exponential distribution.
720
721 -N <mean> <std_dev> Normal distribution.
722
723 -O <mean> Poisson distribution.
724
725 -V <shape> <scale> Pareto distribution.
726
727 -Y <shape> <scale> Cauchy distribution.
728
729 -G <shape> <scale> Gamma distribution.
730
731 -W <shape> <scale> Weibull distribution.
732
733 -Ft <filename> Read IDTs from file (in ms).
734
735 The input file provided has to contain each value on a different line.
736
737 -B <onDistro> <params>
738 <offDistro> <params>
739 Generate bursty traffic:
740
741 Sets the duration of both ON and OFF periods according to a
742 supported random distribution (e.g. -B C 1000 C 1000).
743 Using this option the flow generates traffic in bursts, where the duration of ON
744 and OFF periods can be set according to all the supported distributions.
745 \underline{Notes}:
746 This option has to be the last one on the command line.
747 To enable this option D-ITG has to be compiled with "bursty" option enabled
748 (i.e. make bursty=on).
749
750 \underline{Note}:
751 - The IDT random variable provides the inter-departure time expressed in milliseconds.
752 - For the sake of simplicity, in case of Constant, Uniform, Exponential and Poisson variables, each
753 parameter, say it x, is considered as a packet rate value in packets per second. It is then
754 internally converted to a IDT in milliseconds (y -> 1000/x).
755
756
757 Packet size options (ps_opts):
758
759 -c <pkt_size> Constant (default: 512 bytes).
760
761 -u <min_pkt_size> Uniform distribution.
762 <max_pkt_size>
763
764 -e <average_pkt_size> Exponential distribution.
765
766 -n <mean> <std_dev> Normal distribution.
767
768 -o <mean> Poisson distribution.
769
770 -v <shape> <scale> Pareto distribution.
771
772 -y <shape> <scale> Cauchy distribution.
773
774 -g <shape> <scale> Gamma distribution.
775
776 -w <shape> <scale> Weibull distribution.
777
778 -Fs <filename> Read payload sizes from file.
779
780 The input file provided has to contain each value on a different line,
781 in agreement with the format of the output generated when using ITGDec
782 with the -P option.
783
784
785 Application layer options (app_opts):
786
787 -Fp <filename> Read payload content from file.
788
789 Telnet Emulate Telnet traffic.
790
791 Generates traffic with Telnet characteristics. It works with TCP transport layer protocol.
792 Different settings will be ignored.
793
794 DNS Emulate DNS traffic.
795
796 Generates traffic with DNS characteristics. It works with both UDP and TCP transport
797 layer protocols.
798
799 Quake3 Emulate Quake 3 traffic \cite{2}.
800
801 Generates traffic with Quake III Arena characteristics. No option is required. It only
802 works with UDP Transport Layer protocol. Different settings will be ignored.
803
804 CSa Emulate Counterstrike traffic - active player \cite{1}.
805
806 Generates traffic with Counter Strike characteristics related to the active
807 phase of the game. No option is required. It only works with UDP Transport
808 Layer protocol. Different settings will be ignored.
809
810 CSi Emulate Counterstrike traffic - idle player \cite{1}.
811
812 Generates traffic with Counter Strike characteristics related to the inactive
813 phase of the game. No option is required. It only works with UDP Transport
814 Layer protocol. Different settings will be ignored.
815
816 VoIP Emulate Voice-over-IP traffic.
817 -x <codec> VoIP sub-option: audio codec (default: G.711.1):
818 - G.711.<1 or 2> (samples per pkt)
819 - G.729.<2 or 3> (samples per pkt)
820 - G.723.1
821 -h <protocol> VoIP sub-option: audio transfer protocol (default: RTP):
822 - RTP: Real Time Protocol (default)
823 - CRTP: Real Time Protocol with header compression
824 -VAD VoIP sub-option: enable voice activity detection.
825
826 Generate traffic with VoIP characteristics. It only works with UDP transport
827 layer protocol. Different settings will be ignored.
828 The emulation of the following codecs is supported:
829 - G.711.1: for G.711 codec with 1 sample per pkt (default)
830 - G.711.2: for G.711 codec with 2 samples per pkt
831 - G.723.1: for G.723.1 codec
832 - G.729.2: for G.729 codec with 2 samples per pkt
833 - G.729.3: for G.729 codec with 3 samples per pkt
834
835 \underline{Note}:
836 - Emulation is obtained by properly replicating packet sizes and IDTs. The payload of the
837 application is not reproduced (i.e. bytes above transport layer have no real meaning).
838 - Application layer options have to be specified as the last option.
839 - If you specify an application layer protocol you cannot specify any inter-departure time,
840 or packet size option.
841
842
843 Misc options (misc_opts):
844
845 -h | --help Display this help and exit.
846
847 -s <seed> Set the seed used for generating distributions (default: random).
848
849 Sets the seed for the random number generator (allowed range [0,1]).
850
851 -poll Use busy-wait loop for IDTs shorter than 1 msec.
852
853 This option is necessary in order to obtain better performance.
854 By enabling it, one or more CPU cores will run at 100\% during
855 the generation as long as IDTs shorter than 1 msec are required.
856
857 -j <0|1> Guarantee the mean packet rate (default: 1):
858 - 0 (disable)
859 - 1 (enable)
860
861 Normally, depending on the selected IDT distribution, ITGSend sleeps
862 some time before sending each packet. It can happen that the thread
863 responible for generating the packets wakes up in late, thus causing
864 an average packet rate smaller than the expected one.
865 If enabled, all the packets ITGSend was unable to send in the previous
866 interval are sent in late in the next one in order to guarantee the
867 expected mean bitrate.
868
869 -sk <serial_iface> Raise a signal on the serial interface when sending packets.
870
871 Instructs ITGSend to raise a signal on the specified serial interface
872 every time a packet is sent.
873 \underline{OS specific notes}:
874 - Typical values under Windows are COM1, COM2, etc.
875 - Typicsl values under Linux are ttys0, ttys1, etc.
876
877 -rk <serial_iface> Ask ITGRecv to raise a signal on the serial interface when receiving packets.
878
879 Instructs ITGRecv to raise a signal on the specified serial interface
880 every time a packet is received.
881 \underline{OS specific notes}:
882 - Typical values under Windows are COM1, COM2, etc.
883 - Typicsl values under Linux are ttys0, ttys1, etc.
884
885 -P Enable thread high priority (available only on Windows platform).
886 \end{Verbatim}
887 }
888
889 %---------------------------------------
890 \subsection{ITGRecv}\label{qs:ITGRecv}
891
892 \vspace{-6pt}
893 \subsubsection{Synopsis}
894
895 \begin{verbatim}
896 ./ITGRecv [options]
897 \end{verbatim}
898
899 \vspace{14pt}\hspace{-0.6cm}
900 \textbf{NOTE}: launching ITGRecv in background requires to redirect stdin to /dev/null
901
902 \subsubsection{Options}
903 {\small
904 \begin{verbatim}
905 -h | --help Display this help and exit
906
907 -P Enable thread high priority (available only on Windows platform).
908
909 -a <bind_address> Bind data channels to a specific address.
910
911 Sets the address ITGRecv has to bind to for receiving traffic flows.
912 If the -a option is not specified, each socket is bound to the
913 address specified by ITGSend with the -a option.
914
915 -i <interface> Bind data channels to a specific network interface.
916
917 Sets the interface ITGRecv has to bind to for receiving traffic flows
918 (only available on Linux platforms).
919 If the -i option is not specified, each socket is bound to the
920 interface owning the address specified by ITGSend with the -a option.
921
922 -Si <interface> Bind signaling channels to a specific network interface.
923
924 Sets the interface ITGRecv has to bind to when listening for signaling
925 connections (only Linux platforms).
926 If the -Si option is not specified, ITGRecv listens on all the interfaces.
927
928 -Sp <port> Signaling channel port number (default: 9000).
929
930 Sets the TCP port number on which ITGRecv listens for signaling channels.
931
932 -l [logfile] Enable logging to file (default filename: /tmp/ITGRecv.log).
933
934 Generates a log file containing timing, ordering and size information about
935 every received packet.
936 Under Windows the default log file name is "ITGRecv.log".
937 If the -l option is specified at the ITGRecv side and the -x option is
938 set at the ITGSend side (with different log file names), the latter
939 option is ignored.
940 If the -l option is not specified, each ITGSend instance may specify a
941 different log filename by means of the -x option.
942
943 -L [a:<address>] Enable remote logging to a remote ITGLog.
944 [p:<port>]
945 [P:<protocol>] The "a" sub-option sets the ITGLog server IP address (default: 127.0.0.1).
946 The "p" sub-option sets the ITGLog server signaling port (default: 9001).
947 The "P" sub-option sets the transport protocol used to establish the
948 communication with ITGLog: UDP or TCP (default: UDP).
949 The name of the log file is specified by the -l option.
950 If the -L option is specified at the ITGRecv side and the -X option is
951 set at the ITGSend side, then the latter is ignored.
952 If the -L option is not specified, each ITGSend instance may specify a
953 different log server by means of the -X option.
954
955 -q <log_buffer_size> Number of packets to push to the log at once (default: 50).
956
957 Sets how many packets have to be buffered before writing them to the
958 log file. Since the buffer is flushed after every this number of packets,
959 using a small value has impact on the generation performance.
960 This parameter has effect also when the -L option is specified.
961
962 -H <ITGSend_address> Enable "Passive Mode" toward the specified ITGSend instance.
963
964 This mode allows to receive traffic flows from an ITGSend instance when
965 ITGRecv is behind a NAT.
966 When enabled, ITGRecv does not run as a daemon. Instead it tries
967 to establish a signaling channel towards the specified ITGSend.
968 The related data flows are also initiated by ITGRecv in order to correctly
969 setup the NAT to receive the incoming traffic.
970 Note that this option allows to send and received only one set of flows.
971 ITGRecv exits after receiving the last flow of the set.
972
973 -n <num_pkt> Number of outgoing packets for UDP NAT traversal
974
975 When in passive mode, this option sets the number of UDP packets to send
976 from ITGRecv towards ITGSend to instruct the NAT before receiving
977 the UDP traffic flow from ITGSend. This option does not apply to TCP
978 traffic flows, as the three-way handshake of TCP is sufficient for
979 instructing the NAT.
980 \end{verbatim}
981 }
982
983
984 %---------------------------------------
985 \subsection{ITGLog}\label{qs:ITGLog}
986
987 \subsubsection{Synopsis}
988
989 \begin{verbatim}
990 ./ITGLog [options]
991 \end{verbatim}
992
993 \vspace{14pt}\hspace{-0.6cm}
994 \textbf{NOTE}: launching ITGLog in background requires to redirect stdin to /dev/null
995
996
997 \subsubsection{Options}
998 {\small
999 \begin{verbatim}
1000 -h | --help Display this help and exit
1001
1002 -q <log_buffer_size> Number of packets to push to the log at once (default: 50)
1003
1004 Sets how many packets have to be buffered before writing them to the
1005 log file. Since the buffer is flushed every this number of packets,
1006 using a small value has impact on the generation performance.
1007 This parameter has effect also when the -L option is specified.
1008 \end{verbatim}
1009 }
1010
1011 %---------------------------------------
1012 \subsection{ITGDec}\label{qs:ITGDec}
1013
1014 \subsubsection{Synopsis}
1015
1016 \begin{verbatim}
1017 ./ITGDec <logfile> [options]
1018 \end{verbatim}
1019
1020
1021 \subsubsection{Options}\label{sec:DecOpt}
1022 {\small
1023 \begin{verbatim}
1024 -v Print standard summary to stdout (default).
1025
1026 Prints to stdout a summary comprising a set of statistics about each
1027 flow and the whole set of flows.
1028
1029 -l <txtlog> Print to <txtlog> the decoded log in text format.
1030
1031 Generates the <txtlog> output log file in text format.
1032 For each packet the log file contains a line with the following fields:
1033 - Flow: the flow number
1034 - Seq: the sequence number of the packet
1035 - Src: the source IP address and port number (e.g. 127.0.0.1/44225)
1036 - Dest: the destination IP address and port number (e.g. 127.0.0.1/8999)
1037 - txTime: the transmission time (e.g. 8:23:52.874105)
1038 - rxTime: the reception time (e.g. 8:23:52.874105)
1039 - Size: the size of the packet payload in bytes
1040
1041 -t Interpret <logfile> as in text format.
1042
1043 The input log file is considered to be in text format as generated by
1044 using the -l option. If not specified the input log file is considered
1045 to be in binary format.
1046
1047 -o <outfile> Print to <outfile> the decoded log for Octave/Matlab import.
1048
1049 Generates the <outfile> output log file in a format that can be directly
1050 imported from Octave/Matlab for further analysis.
1051 The output log content is the same as the one generated by the -l option.
1052
1053 -r <sender_log> Generate combined log file starting from receiver- and sender-side log files
1054 [combined_log] (default filename: 'combined.dat').
1055
1056 Generates the <combined_log> binary log file starting from a receiver-side
1057 log file, given as <logfile> parameter, and the corresponding sender-side
1058 <sender_log> log file. This is useful when ITGSend is launched with the "-p"
1059 option having a value different from 2, because it does not insert into each
1060 packet the transmission timestamp. Using this option, this timestamp is
1061 recovered from the log file generated by ITGSend.
1062
1063 -d <DT> [filename] Print average delay to file every <DT> milliseconds
1064 (default filename: 'delay.dat').
1065
1066 Dumps to file the average packet transmission delay in milliseconds as
1067 sampled every <DT> milliseconds.
1068 The first line of the output file represents the table header. The
1069 following lines represent the table rows and comprise the follwing columns:
1070 - the "Time" column contains a time reference;
1071 - the following columns, labelled as "<flow number>-<sender ip>-<receiver ip>",
1072 contain the average value for each flow;
1073 - the "Aggregate-Flow" column contains the aggregate average delay.
1074
1075 -j <JT> [filename] Print average jitter to file every <JT> milliseconds
1076 (default filename: 'jitter.dat').
1077
1078 Dumps to file the average packet jitter in milliseconds as sampled every
1079 <JT> milliseconds.
1080 The file format is the same as the one produced with the "-d" option.
1081
1082 -b <BT> [filename] Print average bitrate to file every <BT> milliseconds
1083 (default filename: 'bitrate.dat').
1084
1085 Dumps to file the average bitrate in Kbit/sec as sampled every
1086 <BT> milliseconds.
1087 The file format is the same as the one produced with the "-d" option.
1088
1089 -p <PT> [filename] Print average packet loss to file every <PT> milliseconds
1090 (default filename: 'packetloss.dat').
1091
1092 Dumps to file the average packet loss in packets/sec as sampled every
1093 <PT> milliseconds.
1094 The file format is the same as the one produced with the "-d" option.
1095
1096 -c <CT> [filename] Print all average metrics to file every <CT> milliseconds
1097 (default filename: 'combined_stats.dat').
1098
1099 Dumps to file all the average metrics as sampled every <PT> milliseconds.
1100 Each line of the output file respectively contains the follwing fields:
1101 - "Time", "Bitrate", "Delay", "Jitter", "Packet loss"
1102
1103 -s [suffix] Generate a separate log file for each flow adding a suffix to its name
1104 (default suffix: log).
1105
1106 The input log file is split in N separate log files, where N is the number
1107 of flows detected in the log file.
1108 Each resulting log file will have the following filename format:
1109 "<flow number>-<sender ip address>-<receiver ip address>.<suffix>.dat".
1110 If not provided, the default value for suffix is "log".
1111
1112 -f <flownum> Consider only flows with number <= <flownum>.
1113 Setting <flownum> to 't' all packets are considered as part of the same flow.
1114
1115 If <flownum> is a number, only the flows with flow number less or equal than
1116 <flownum> will be considered. If <flownum> is set to "t" all the packets will
1117 be considered as belonging to the same flow.
1118
1119 -P Print to stdout the size of each packet.
1120
1121 -I Print to stdout the inter departure time between each packet pair.
1122
1123 -h | --help Display this help and exit.
1124 \end{verbatim}
1125 }
1126
1127 \subsubsection{Notes}
1128 D-ITG log files consist of a set of records (one for each packet) including the following fields:
1129 \begin{itemize}
1130 \item \texttt{Flow}: the flow number
1131 \item \texttt{Seq}: the sequence number of the packet
1132 \item \texttt{SrcIP}: the source IP address
1133 \item \texttt{SrcPort}: the source port number
1134 \item \texttt{DestIP}: the destination IP address
1135 \item \texttt{DestPort}: the destination port number
1136 \item \texttt{txTime}: the transmission timestamp
1137 \item \texttt{rxTime}: the reception timestamp
1138 \item \texttt{Size}: the size of the packet payload in bytes
1139 \end{itemize}
1140
1141 \vspace{14pt}\hspace{-0.6cm}
1142 The values reported in the standard summary are computed according to the log records as follows:
1143 \begin{itemize}
1144 \item the \textit{Total time} is computed as the difference between the \texttt{rxTime} of the last and the first packet.
1145 \item the \textit{Delay} is computed as the difference between rxTime and txTime of each packet.
1146 \item the \textit{Delay standard deviation} ($\sigma$) is computed according to equation \ref{eq:stddev}:
1147 \begin{equation}
1148 \sigma=\sqrt{\frac{1}{N}\sum^{N}_{i=1}\left(d_i-\hat{d}\right)^2}
1149 \label{eq:stddev}
1150 \end{equation}
1151 where $N$ is the number of considered packets, $d_i$ is the delay of packet $i$, and $\hat{d}$ is the average delay of packets.
1152 \item the \textit{Jitter} is computed according to Figure~\ref{fig:jitter}, where S$_i$ and R$_i$ respectively correspond to \texttt{txTime} and \texttt{rxTime}.
1153 \begin{figure}[htbp]
1154 \centering
1155 \includegraphics[width=0.5\textwidth]{fig/jitter.png}
1156 \caption{Jitter calculation formula.}
1157 \label{fig:jitter}
1158 \end{figure}
1159 \end{itemize}
1160
1161 \vspace{14pt}\hspace{-0.6cm}
1162 The physical meaning of the metrics reported by analyzing the log files varies depending on the metric selected (One-Way or Round-Trip) when conducting the experiment and on the component that generated the log file (ITGSend or ITGRecv):
1163 \begin{itemize}
1164 \item A log file generated (locally or remotely) by ITGSend by using the One Way Delay Meter ("-m owdm" option) has for each packet the txTime and rxTime values both set to the transmission time.
1165 Hence, \textit{delay} and \textit{jitter} should always have null value.
1166 \textit{Packets dropped} should also be normally null, except for special cases or errors (e.g.~socket buffer full, lost log packets, etc.).
1167
1168 \item In a log file generated (locally or remotely) by ITGSend by using the Round Trip Delay Meter ("-m rttm" option), the txTime and rxTime are both set by ITGSend, when transmitting the packet and when receiving the reply from ITGRecv respectively.
1169 Hence, the \textit{delay} value represents the \textit{round-trip delay} and the \textit{jitter} value represents the \textit{round-trip delay variation}.
1170 In this case, \textit{Packets dropped} refers to all the packets lost on the round-trip path (i.e.~accounts both lost packets and replies).
1171
1172 \item A log file generated (locally or remotely) by ITGRecv has the txTime set by ITGSend when transmitting the packet and rxTime set by ITGRecv when receiving the packet.
1173 Hence, the \textit{delay} value represents the \textit{one-way delay} and the \textit{jitter} value represents the \textit{one-way delay variation}.
1174 In this case, \textit{Packets dropped} refers to packets lost only on the one-way path (i.e. from ITGSend to ITGRecv).
1175 \end{itemize}
1176
1177 \vspace{14pt}\hspace{-0.6cm}
1178 \textbf{IMPORTANT!} D-ITG does not provide any sort of synchronization among its components.
1179 In order to correctly measure the One Way Delay (OWD), the clocks of the host running ITGSend and ITGRecv must be synchronized by some means. Depending on the required accuracy, NTP, GPS, or other means can be used.
1180 In the case of synchronization issues we suggest to use the Round Trip Time (RTT) meter.
1181
1182 %---------------------------------------
1183 \subsection{ITGplot}\label{qs:ITGplot}
1184
1185 ITGplot is an Octave (\textit{http://www.octave.org}) script that enables to draw plots using data contained in delay.dat, bitrate.dat, jitter.dat or packetloss.dat (see Section~\ref{sec:DecOpt}). The plot is saved (in the EPS format) in a file having the same name as the input file and the .eps extension. It is possible to save the plots in other formats by changing the \texttt{graphicformat} string in ITGplot. The available formats are those provided by gnuplot (run gnuplot and type `set term' to see the list of the available terminal types). It is also possible to give a title to the plot by setting the environment variable DITG\_PLOT\_TITLE.
1186
1187 \subsubsection{Synopsis}
1188 \begin{verbatim}
1189 octave ITGplot <input_file> [flow_set]
1190 \end{verbatim}
1191
1192 \subsubsection{Options}
1193 {\small
1194 \begin{verbatim}
1195 <input_file> The .dat file containing the data to be plotted.
1196 It might be one of the .dat files produced by ITGDec.
1197
1198 [flow_set] The subset of flows to be plotted, expressed in the Octave notation.
1199 Thus, "2:4" allows to plot the second, the third and the fourth flows,
1200 while "[1 3 5]" allows to plot the first, the third and the fifth flows
1201 (remember: double quotes are needed to enclose values containing blanks).
1202 If not specified, all the flows are plotted.
1203 \end{verbatim}
1204 }
1205
1206 \subsubsection{Notes}
1207
1208 \paragraph{Unix-like operating systems.}
1209 It is possible to make ITGplot an executable Octave program by following these steps:
1210 \begin{enumerate}
1211 \item add execution permissions to ITGplot (\texttt{chmod +x ITGplot})
1212 \item locate your Octave interpreter (\texttt{which octave})
1213 \item write such location in the first line of ITGplot (e.g. \texttt{\#! /usr/bin/octave -qf})
1214 \end{enumerate}
1215 Then, you can directly execute ITGplot (e.g. \texttt{./ITGplot bitrate.dat 1:4}).
1216
1217 \vspace{14pt}\hspace{-0.6cm}
1218 If you want to set a title for the plot, you can use the \texttt{env} command:
1219 \begin{verbatim}
1220 env DITG_PLOT_TITLE="A wonderful plot" ITGplot bitrate.dat "[1 4 6]"
1221 \end{verbatim}
1222
1223 \paragraph{Windows operating system.}
1224 First, since ITGplot uses gnuplot to draw plots it is necessary to specify the path to the gnuplot executable (pgnuplot.exe), which should be ``C:$\backslash$Program Files$\backslash$GNU Octave \textit{version}$\backslash$bin''. The path Octave will search for programs to run can be specified in three different ways:
1225 \begin{enumerate}
1226 \item using the \texttt{--exec-path} command line option:
1227 \begin{verbatim}
1228 octave --exec-path "C:\Program Files\GNU Octave VERSION\bin" ITGplot bitrate.dat
1229 \end{verbatim}
1230 \item setting the OCTAVE\_EXEC\_PATH environment variable:
1231 \begin{verbatim}
1232 set OCTAVE_EXEC_PATH="C:\Program Files\GNU Octave VERSION\bin"
1233 \end{verbatim}
1234 \item defining the EXEC\_PATH variable in the \texttt{octaverc} startup file:
1235 \begin{verbatim}
1236 edit "C:\Program Files\GNU Octave VERSION\opt\octave\share\octave\site\m\startup\octaverc"
1237
1238 EXEC_PATH="C:\\Program Files\\GNU Octave VERSION\\bin"
1239 \end{verbatim}
1240 \end{enumerate}
1241 %
1242 Clearly, after applying methods 2 or 3 there is no need to use the \texttt{--exec-path} command line option.
1243
1244 \vspace{14pt}\hspace{-0.6cm}
1245 If you want to set a title for the plot, you can type:
1246 \begin{verbatim}
1247 set DITG_PLOT_TITLE="A wonderful plot"
1248 \end{verbatim}
1249 %
1250 before executing ITGplot.
1251
1252 %---------------------------------------
1253 \subsection{ITGapi}\label{qs:ITGapi}
1254
1255 ITGapi is a C++ API that enables to remotely control traffic generation. For this purpose, after having
1256 launched ITGSend in daemon mode (ITGSend --Q) on one or more traffic source nodes, it is possible to use
1257 the following function to remotely coordinate the traffic generation for each ITGSend instance:
1258
1259 \begin{verbatim}
1260 int DITGsend(char *sender, char *message);
1261 \end{verbatim}
1262 %
1263 where:
1264 \begin{itemize}
1265 \item \texttt{sender} is the IP address of ITGSend.
1266 \item \texttt{message} is a string containing the set of options you would pass to ITGSend on the command line.
1267 \end{itemize}
1268 %
1269 The function may return one of the following values:
1270 \begin{itemize}
1271 \item \textbf{0} in case of success;
1272 \item \textbf{-1} otherwise;
1273 \end{itemize}
1274
1275 \vspace{14pt}\hspace{-0.6cm}
1276 ITGSend, when used in daemon mode, sends messages back to the application that issued the generation of the traffic flow. Two types of messages are used, one to acknowledge the start of the generation process and the other to notify its end.
1277 The following functions allows to catch these messages:
1278 %
1279 \begin{verbatim}
1280 int catchManagerMsg(char **senderIP, char **msg);
1281 \end{verbatim}
1282 %
1283 where:
1284 \begin{itemize}
1285 \item \texttt{senderIP} is a pointer to a string containing the IP address of the sender that sent the message.
1286 \item \texttt{msg} is a pointer to a string containing the command that the sender received.
1287 \end{itemize}
1288 %
1289 The function may return one of the following values:
1290 \begin{itemize}
1291 \item \textbf{1} to indicate the start of the generation;
1292 \item \textbf{2} to indicate the end of the generation;
1293 \item \textbf{-1} in case no message has been received (the function is non blocking).
1294 \end{itemize}
1295
1296 \vspace{14pt}\hspace{-0.6cm}
1297 The above mentioned prototypes are declared in the \texttt{ITGapi.h} header file.
1298 D-ITG includes ITGManager.cpp, which is just a simple example of application based on ITGapi to remotely control traffic generation.
1299
1300 %-------------------------------------------------------------------
1301 \newpage
1302 \section{Examples}
1303 \label{Example}
1304
1305 All the usage examples reported in this section assume that the binaries are being executed from the folder containing the D-ITG binaries.
1306
1307 %---------------------------------------
1308 \subsection{Example \#1}
1309 Single UDP flow with constant inter-departure time between packets and constant packets size:
1310
1311 \begin{enumerate}
1312 \item start the receiver on the destination host (10.0.0.3):
1313 \begin{verbatim}
1314 $ ./ITGRecv
1315 \end{verbatim}
1316 \item start the sender on the source host (10.0.0.4):
1317 \begin{verbatim}
1318 $ ./ITGSend -a 10.0.0.3 -sp 9400 -rp 9500 -C 100 -c 500 -t 20000 -x recv_log_file
1319 \end{verbatim}
1320 \item The resulting flow from 10.0.0.4 to 10.0.0.3 has the following characteristics:
1321 \begin{itemize}
1322 \item the sender port is 9400
1323 \item the destination port is 9500
1324 \item 100 packets per second are sent (with constant inter-departure time between packets)
1325 \item the size of each packet is equal to 500 bytes
1326 \item the duration of the generation experiment is 20 seconds (20000 milliseconds)
1327 \item at receiver side ITGRecv creates a log file named recv\_log\_file
1328 \end{itemize}
1329 \end{enumerate}
1330
1331 %---------------------------------------
1332 \subsection{Example \#2}
1333 Single UDP flow in passive mode with constant inter-departure time between packets and constant packets size:
1334
1335 \begin{enumerate}
1336 \item start the sender on the source host (192.168.0.4):
1337 \begin{verbatim}
1338 $ ./ITGSend -H -C 10 -c 50 -t 10000 -l send_log_file
1339 \end{verbatim}
1340 \item start the receiver on the destination host (10.0.0.3), potentially sitting behind a NAT:
1341 \begin{verbatim}
1342 $ ./ITGRecv -H 192.168.0.4
1343 \end{verbatim}
1344 \item The resulting flow from 192.168.0.4 to 10.0.0.3 has the following characteristics:
1345 \begin{itemize}
1346 \item both source and destination ports are automatically selected
1347 \item 10 packets per second are sent (with constant inter-departure time between packets)
1348 \item the size of each packet is equal to 50 bytes
1349 \item the duration of the generation experiment is 10 seconds (10000 milliseconds)
1350 \item at sender side ITGSend creates a log file named send\_log\_file
1351 \end{itemize}
1352 \end{enumerate}
1353
1354 %---------------------------------------
1355 \subsection{Example \#3}
1356 Single TCP flow with constant inter-departure time between packets and uniformly distributed packet size between 500 and 1000 bytes with local sender/receiver log
1357
1358 \begin{enumerate}
1359 \item start receiver on the destination host (10.0.0.3):
1360 \begin{verbatim}
1361 $ ./ITGRecv -l recv_log_file
1362 \end{verbatim}
1363 \item start the sender on the source host:
1364 \begin{verbatim}
1365 $ ./ITGSend -a 10.0.0.3 -rp 9501 -C 1000 -u 500 1000 -l send_log_file
1366 \end{verbatim}
1367 \item terminate ITGRecv by pressing Ctrl-C
1368 \item decode the receiver log file on the destination host:
1369 \begin{verbatim}
1370 $ ./ITGDec recv_log_file
1371 \end{verbatim}
1372 {\footnotesize
1373 \begin{verbatim}
1374 ----------------------------------------------------------
1375 Flow number: 1
1376 From 10.0.0.4:34771
1377 To 10.0.0.3:9501
1378 ----------------------------------------------------------
1379 Total time = 10.001837 s
1380 Total packets = 10000
1381 Minimum delay = 3633.445701 s
1382 Maximum delay = 3633.464808 s
1383 Average delay = 3633.449749 s
1384 Average jitter = 0.000706 s
1385 Delay standard deviation = 0.001364 s
1386 Bytes received = 7498028
1387 Average bitrate = 5997.320692 Kbit/s
1388 Average packet rate = 999.816334 pkt/s
1389 Packets dropped = 0 (0.00 %)
1390 ----------------------------------------------------------
1391
1392 **************** TOTAL RESULTS ******************
1393 Number of flows = 1
1394 Total time = 10.001837 s
1395 Total packets = 10000
1396 Minimum delay = 3633.445701 s
1397 Maximum delay = 3633.464808 s
1398 Average delay = 3633.449749 s
1399 Average jitter = 0.000706 s
1400 Delay standard deviation = 0.036939 s
1401 Bytes received = 7498028
1402 Average bitrate = 5997.320692 Kbit/s
1403 Average packet rate = 999.816334 pkt/s
1404 Packets dropped = 0 (0.00 %)
1405 Error lines = 0
1406 \end{verbatim}
1407 }
1408 Note: see the very large delay values caused by absence of clock synchronization!
1409 \item decode the sender log file on the source host:
1410 \begin{verbatim}
1411 $ ./ITGDec send_log_file
1412 \end{verbatim}
1413 {\footnotesize
1414 \begin{verbatim}
1415 ----------------------------------------------------------
1416 Flow number: 1
1417 From 10.0.0.4:34771
1418 To 10.0.0.3:9501
1419 ----------------------------------------------------------
1420 Total time = 9.999002 s
1421 Total packets = 10000
1422 Minimum delay = 0.000000 s
1423 Maximum delay = 0.000000 s
1424 Average delay = 0.000000 s
1425 Average jitter = 0.000000 s
1426 Delay standard deviation = 0.000000 s
1427 Bytes received = 7498028
1428 Average bitrate = 5999.021102 Kbit/s
1429 Average packet rate = 1000.099810 pkt/s
1430 Packets dropped = 0 (0.00 %)
1431 ----------------------------------------------------------
1432 **************** TOTAL RESULTS ******************
1433 Number of flows = 1
1434 Total time = 9.999002 s
1435 Total packets = 10000
1436 Minimum delay = 0.000000 s
1437 Maximum delay = 0.000000 s
1438 Average delay = 0.000000 s
1439 Average jitter = 0.000000 s
1440 Delay standard deviation = 0.000000 s
1441 Bytes received = 7498028
1442 Average bitrate = 5999.021102 Kbit/s
1443 Average packet rate = 1000.099810 pkt/s
1444 Packets dropped = 0 (0.00 %)
1445 Error lines = 0
1446 ----------------------------------------------------------
1447 \end{verbatim}
1448 }
1449 \end{enumerate}
1450
1451 %---------------------------------------
1452 \subsection{Example \#4}
1453 Single TCP flow with constant inter-departure time between packets and uniformly distributed packet size between 500 and 1000 bytes with remote sender/receiver log:
1454
1455
1456 \begin{enumerate}
1457 \item start the log server on the log host:
1458 \begin{verbatim}
1459 $ ./ITGLog
1460 \end{verbatim}
1461 \item start the receiver on the destination host:
1462 \begin{verbatim}
1463 $ ./ITGRecv
1464 \end{verbatim}
1465 \item start the sender on the source host:
1466 \begin{verbatim}
1467 $ ITGSend -a 10.0.0.3 -rp 9501 -C 1000 -u 500 1000 \
1468 -l send_log_file -L 10.0.0.3 UDP -X 10.0.0.3 UDP -x recv_log_file
1469 \end{verbatim}
1470 \item close the receiver by pressing Ctrl+C
1471 \item close the log server by pressing Ctrl+C
1472 \item decode the receiver log file on the log host:
1473 \begin{verbatim}
1474 $ ITGDec recv_log_file
1475 \end{verbatim}
1476 {\footnotesize
1477 \begin{verbatim}
1478 ----------------------------------------------------------
1479 Flow number: 1
1480 From 10.0.0.4:34772
1481 To 10.0.0.3:9501
1482 ----------------------------------------------------------
1483 Total time = 9.993970 s
1484 Total packets = 9997
1485 Minimum delay = 3633.432089 s
1486 Maximum delay = 3633.504881 s
1487 Average delay = 3633.436616 s
1488 Average jitter = 0.000795 s
1489 Delay standard deviation = 0.004083 s
1490 Bytes received = 7495843
1491 Average bitrate = 6000.292576 Kbit/s
1492 Average packet rate = 1000.303183 pkt/s
1493 Packets dropped = 2 (0.00 %)
1494 ----------------------------------------------------------
1495
1496 **************** TOTAL RESULTS ******************
1497 Number of flows = 1
1498 Total time = 9.993970 s
1499 Total packets = 9997
1500 Minimum delay = 3633.432089 s
1501 Maximum delay = 3633.504881 s
1502 Average delay = 3633.436616 s
1503 Average jitter = 0.000795 s
1504 Delay standard deviation = 0.063898 s
1505 Bytes received = 7495843
1506 Average bitrate = 6000.292576 Kbit/s
1507 Average packet rate = 1000.303183 pkt/s
1508 Packets dropped = 2 (0.00 %)
1509 Error lines = 0
1510 ----------------------------------------------------------
1511 \end{verbatim}
1512 }
1513 \item decode the sender log file on the log host:
1514 \begin{verbatim}
1515 $ ITGDec send_log_file
1516 \end{verbatim}
1517 {\footnotesize
1518 \begin{verbatim}
1519 ----------------------------------------------------------
1520 Flow number: 1
1521 From 10.0.0.4:34772
1522 To 10.0.0.3:9501
1523 ----------------------------------------------------------
1524 Total time = 9.999001 s
1525 Total packets = 10000
1526 Minimum delay = 0.000000 s
1527 Maximum delay = 0.000000 s
1528 Average delay = 0.000000 s
1529 Average jitter = 0.000000 s
1530 Delay standard deviation = 0.000000 s
1531 Bytes received = 7498028
1532 Average bitrate = 5999.021702 Kbit/s
1533 Average packet rate = 1000.099910 pkt/s
1534 Packets dropped = 0 (0.00 %)
1535 ----------------------------------------------------------
1536 **************** TOTAL RESULTS ******************
1537 Number of flows = 1
1538 Total time = 9.999001 s
1539 Total packets = 10000
1540 Minimum delay = 0.000000 s
1541 Maximum delay = 0.000000 s
1542 Average delay = 0.000000 s
1543 Average jitter = 0.000000 s
1544 Delay standard deviation = 0.000000 s
1545 Bytes received = 7498028
1546 Average bitrate = 5999.021702 Kbit/s
1547 Average packet rate = 1000.099910 pkt/s
1548 Packets dropped = 0 (0.00 %)
1549 Error lines = 0
1550 \end{verbatim}
1551 }
1552 \end{enumerate}
1553
1554
1555 %---------------------------------------
1556 \subsection{Example \#5}
1557 If you want to simultaneously generate more than one flow, you have to prepare a script file like those shown in the following examples. Three UDP flows with different constant bit rate and remote log:
1558
1559 \begin{enumerate}
1560 \item start the log server on the log host:
1561 \begin{verbatim}
1562 $ ./ITGLog
1563 \end{verbatim}
1564 \item start the receiver on the destination host:
1565 \begin{verbatim}
1566 $ ./ITGRecv
1567 \end{verbatim}
1568 \item create the script file:
1569 \begin{verbatim}
1570 $ cat > script_file <<END
1571 -a 10.0.0.3 -rp 10001 -C 1000 -c 512 -T UDP
1572 -a 10.0.0.3 -rp 10002 -C 2000 -c 512 -T UDP
1573 -a 10.0.0.3 -rp 10003 -C 3000 -c 512 -T UDP
1574 END
1575 \end{verbatim}
1576 \item start the sender:
1577 \begin{verbatim}
1578 $ ./ITGSend script_file -l send_log_file -L 10.0.0.4 UDP -X 10.0.0.4 UDP -x recv_log_file
1579 \end{verbatim}
1580 \item close the receiver by pressing Ctrl+C
1581 \item close the log server by pressing Ctrl+C
1582 \item decode the receiver log file on the log host:
1583 \begin{verbatim}
1584 $ ./ITGDec recv_log_file
1585 \end{verbatim}
1586 {\footnotesize
1587 \begin{verbatim}
1588 ----------------------------------------------------------
1589 Flow number: 3
1590 From 10.0.0.4:34775
1591 To 10.0.0.3:10003
1592 ----------------------------------------------------------
1593 Total time = 10.016555 s
1594 Total packets = 6098
1595 Minimum delay = 3633.409810 s
1596 Maximum delay = 3634.259565 s
1597 Average delay = 3633.507249 s
1598 Average jitter = 0.002100 s
1599 Delay standard deviation = 0.156419 s
1600 Bytes received = 3122176
1601 Average bitrate = 2493.612624 Kbit/s
1602 Average packet rate = 608.792145 pkt/s
1603 Packets dropped = 22216 (78.00 %)
1604 ----------------------------------------------------------
1605 ----------------------------------------------------------
1606 Flow number: 1
1607 From 10.0.0.4:34773
1608 To 10.0.0.3:10001
1609 ----------------------------------------------------------
1610 Total time = 9.638360 s
1611 Total packets = 2269
1612 Minimum delay = 3633.402899 s
1613 Maximum delay = 3634.260524 s
1614 Average delay = 3633.461365 s
1615 Average jitter = 0.003114 s
1616 Delay standard deviation = 0.135945 s
1617 Bytes received = 1161728
1618 Average bitrate = 964.253670 Kbit/s
1619 Average packet rate = 235.413494 pkt/s
1620 Packets dropped = 4274 (65.00 %)
1621 ----------------------------------------------------------
1622 ----------------------------------------------------------
1623 Flow number: 2
1624 From 10.0.0.4:34774
1625 To 10.0.0.3:10002
1626 ----------------------------------------------------------
1627 Total time = 10.000351 s
1628 Total packets = 3136
1629 Minimum delay = 3633.407982 s
1630 Maximum delay = 3634.455203 s
1631 Average delay = 3633.514464 s
1632 Average jitter = 0.002740 s
1633 Delay standard deviation = 0.221725 s
1634 Bytes received = 1605632
1635 Average bitrate = 1284.460515 Kbit/s
1636 Average packet rate = 313.588993 pkt/s
1637 Packets dropped = 16864 (84.00 %)
1638 ----------------------------------------------------------
1639
1640 **************** TOTAL RESULTS ******************
1641 Number of flows = 3
1642 Total time = 10.038005 s
1643 Total packets = 11503
1644 Minimum delay = 3633.402899 s
1645 Maximum delay = 3634.455203 s
1646 Average delay = 3633.500165 s
1647 Average jitter = 0.003291 s
1648 Delay standard deviation = 0.417552 s
1649 Bytes received = 5889536
1650 Average bitrate = 4693.790051 Kbit/s
1651 Average packet rate = 1145.944837 pkt/s
1652 Packets dropped = 43354 (79.00 %)
1653 Error lines = 0
1654 \end{verbatim}
1655 }
1656
1657 \item decode the sender log file on the log host:
1658 \begin{verbatim}
1659 $ ./ITGDec send_log_file
1660 \end{verbatim}
1661 {\footnotesize
1662 \begin{verbatim}
1663 ----------------------------------------------------------
1664 Flow number: 3
1665 From 10.0.0.4:34775
1666 To 10.0.0.3:10003
1667 ----------------------------------------------------------
1668 Total time = 9.997255 s
1669 Total packets = 28480
1670 Minimum delay = 0.000000 s
1671 Maximum delay = 0.000000 s
1672 Average delay = 0.000000 s
1673 Average jitter = 0.000000 s
1674 Delay standard deviation = 0.000000 s
1675 Bytes received = 14581760
1676 Average bitrate = 11668.611034 Kbit/s
1677 Average packet rate = 2848.781991 pkt/s
1678 Packets dropped = 0 (0.00 %)
1679 ----------------------------------------------------------
1680 ----------------------------------------------------------
1681 Flow number: 1
1682 From 10.0.0.4:34773
1683 To 10.0.0.3:10001
1684 ----------------------------------------------------------
1685 Total time = 9.603001 s
1686 Total packets = 9604
1687 Minimum delay = 0.000000 s
1688 Maximum delay = 0.000000 s
1689 Average delay = 0.000000 s
1690 Average jitter = 0.000000 s
1691 Delay standard deviation = 0.000000 s
1692 Bytes received = 4917248
1693 Average bitrate = 4096.426107 Kbit/s
1694 Average packet rate = 1000.104030 pkt/s
1695 Packets dropped = 0 (0.00 %)
1696 ----------------------------------------------------------
1697 ----------------------------------------------------------
1698 Flow number: 2
1699 From 10.0.0.4:34774
1700 To 10.0.0.3:10002
1701 ----------------------------------------------------------
1702 Total time = 9.999501 s
1703 Total packets = 20000
1704 Minimum delay = 0.000000 s
1705 Maximum delay = 0.000000 s
1706 Average delay = 0.000000 s
1707 Average jitter = 0.000000 s
1708 Delay standard deviation = 0.000000 s
1709 Bytes received = 10240000
1710 Average bitrate = 8192.408801 Kbit/s
1711 Average packet rate = 2000.099805 pkt/s
1712 Packets dropped = 0 (0.00 \%)
1713 ----------------------------------------------------------
1714 **************** TOTAL RESULTS ******************
1715 Number of flows = 3
1716 Total time = 10.013192 s
1717 Total packets = 58084
1718 Minimum delay = 0.000000 s
1719 Maximum delay = 0.000000 s
1720 Average delay = 0.000000 s
1721 Average jitter = 0.000000 s
1722 Delay standard deviation = 0.000000 s
1723 Bytes received = 29739008
1724 Average bitrate = 23759.862390 Kbit/s
1725 Average packet rate = 5800.747654 pkt/s
1726 Packets dropped = 0 (0.00 %)
1727 Error lines = 0
1728 \end{verbatim}
1729 }
1730 \end{enumerate}
1731
1732
1733 %---------------------------------------
1734 \subsection{Example \#6}
1735 Generation of VoIP, Telnet and DNS flows towards two distinct destinations:
1736
1737 \begin{enumerate}
1738 \item start the receiver on the first destination host:
1739 \begin{verbatim}
1740 $ ./ITGRecv -l recv1_log_file
1741 \end{verbatim}
1742 \item start the receiver on the second destination host:
1743 \begin{verbatim}
1744 $ ./ITGRecv -l recv2_log_file
1745 \end{verbatim}
1746 \item create the script file
1747 \begin{verbatim}
1748 $ cat > script_file <<END
1749 -a 10.0.0.3 -rp 10001 VoIP -x G.711.2 -h RTP -VAD
1750 -a 10.0.0.4 -rp 10002 Telnet
1751 -a 10.0.0.4 -rp 10003 DNS
1752 END
1753 \end{verbatim}
1754 \item start the sender on the source host:
1755 \begin{verbatim}
1756 $ ./ITGSend script_file -l sender_log_file
1757 \end{verbatim}
1758 \item close the first receiver by pressing Ctrl+C
1759 \item close the second receiver by pressing Ctrl+C
1760 \item decode the sender log file:
1761 \begin{verbatim}
1762 $ ./ITGDec sender_log_file
1763 \end{verbatim}
1764 {\footnotesize
1765 \begin{verbatim}
1766 ----------------------------------------------------------
1767 Flow number: 2
1768 From 10.0.0.4:33029
1769 To 10.0.0.4:10002
1770 ----------------------------------------------------------
1771 Total time = 9.998991 s
1772 Total packets = 1139
1773 Minimum delay = 0.000000 s
1774 Maximum delay = 0.000000 s
1775 Average delay = 0.000000 s
1776 Average jitter = 0.000000 s
1777 Delay standard deviation = 0.000000 s
1778 Bytes received = 2482
1779 Average bitrate = 1.985800 Kbit/s
1780 Average packet rate = 113.911494 pkt/s
1781 Packets dropped = 0 (0.00 %)
1782 ----------------------------------------------------------
1783 ----------------------------------------------------------
1784 Flow number: 1
1785 From 10.0.0.4:34776
1786 To 10.0.0.3:10001
1787 ----------------------------------------------------------
1788 Total time = 9.980002 s
1789 Total packets = 500
1790 Minimum delay = 0.000000 s
1791 Maximum delay = 0.000000 s
1792 Average delay = 0.000000 s
1793 Average jitter = 0.000000 s
1794 Delay standard deviation = 0.000000 s
1795 Bytes received = 56000
1796 Average bitrate = 44.889771 Kbit/s
1797 Average packet rate = 50.100190 pkt/s
1798 Packets dropped = 0 (0.00 %)
1799 ----------------------------------------------------------
1800 ----------------------------------------------------------
1801 Flow number: 3
1802 From 10.0.0.4:34775
1803 To 10.0.0.4:10003
1804 ----------------------------------------------------------
1805 Total time = 8.928575 s
1806 Total packets = 6
1807 Minimum delay = 0.000000 s
1808 Maximum delay = 0.000000 s
1809 Average delay = 0.000000 s
1810 Average jitter = 0.000000 s
1811 Delay standard deviation = 0.000000 s
1812 Bytes received = 1507
1813 Average bitrate = 1.350271 Kbit/s
1814 Average packet rate = 0.672000 pkt/s
1815 Packets dropped = 0 (0.00 %)
1816 ----------------------------------------------------------
1817
1818 **************** TOTAL RESULTS ******************
1819 Number of flows = 3
1820 Total time = 10.027982 s
1821 Total packets = 1645
1822 Minimum delay = 0.000000 s
1823 Maximum delay = 0.000000 s
1824 Average delay = 0.000000 s
1825 Average jitter = 0.000000 s
1826 Delay standard deviation = 0.000000 s
1827 Bytes received = 59989
1828 Average bitrate = 47.857286 Kbit/s
1829 Average packet rate = 164.040981 pkt/s
1830 Packets dropped = 0 (0.00 %)
1831 Error lines = 0
1832 ----------------------------------------------------------
1833 \end{verbatim}
1834 }
1835 \item decode the first receiver log file:
1836 \begin{verbatim}
1837 $ ./ITGDec recv1_log_file
1838 \end{verbatim}
1839 {\footnotesize
1840 \begin{verbatim}
1841 ----------------------------------------------------------
1842 Flow number: 1
1843 From 10.0.0.4:34776
1844 To 10.0.0.3:10001
1845 ----------------------------------------------------------
1846 Total time = 9.980004 s
1847 Total packets = 500
1848 Minimum delay = 3633.375466 s
1849 Maximum delay = 3633.384447 s
1850 Average delay = 3633.376101 s
1851 Average jitter = 0.000138 s
1852 Delay standard deviation = 0.000259 s
1853 Bytes received = 56000
1854 Average bitrate = 44.889762 Kbit/s
1855 Average packet rate = 50.100180 pkt/s
1856 Packets dropped = 0 (0.00 %)
1857 ----------------------------------------------------------
1858 **************** TOTAL RESULTS ******************
1859 Number of flows = 1
1860 Total time = 9.980004 s
1861 Total packets = 500
1862 Minimum delay = 3633.375466 s
1863 Maximum delay = 3633.384447 s
1864 Average delay = 3633.376101 s
1865 Average jitter = 0.000138 s
1866 Delay standard deviation = 0.016080 s
1867 Bytes received = 56000
1868 Average bitrate = 44.889762 Kbit/s
1869 Average packet rate = 50.100180 pkt/s
1870 Packets dropped = 0 (0.00 %)
1871 Error lines = 0
1872 \end{verbatim}}
1873 \item decode the second receiver log file:
1874 \begin{verbatim}
1875 $ ./ITGDec recv2_log_file
1876 \end{verbatim}
1877 {\footnotesize
1878 \begin{verbatim}
1879 ----------------------------------------------------------
1880 Flow number: 2
1881 From 10.0.0.4:33029
1882 To 10.0.0.4:10002
1883 ----------------------------------------------------------
1884 Total time = 9.998989 s
1885 Total packets = 1139
1886 Minimum delay = 0.000019 s
1887 Maximum delay = 0.000934 s
1888 Average delay = 0.000034 s
1889 Average jitter = 0.000014 s
1890 Delay standard deviation = 0.000056 s
1891 Bytes received = 2482
1892 Average bitrate = 1.985801 Kbit/s
1893 Average packet rate = 113.911516 pkt/s
1894 Packets dropped = 0 ( 0 %)
1895 ----------------------------------------------------------
1896 ----------------------------------------------------------
1897 Flow number: 3
1898 From 10.0.0.4:34775
1899 To 10.0.0.4:10003
1900 ----------------------------------------------------------
1901 Total time = 8.928556 s
1902 Total packets = 6
1903 Minimum delay = 0.000023 s
1904 Maximum delay = 0.000042 s
1905 Average delay = 0.000028 s
1906 Average jitter = 0.000005 s
1907 Delay standard deviation = 0.000006 s
1908 Bytes received = 1507
1909 Average bitrate = 1.350274 Kbit/s
1910 Average packet rate = 0.672001 pkt/s
1911 Packets dropped = 0 ( 0 \%)
1912 ----------------------------------------------------------
1913
1914 **************** TOTAL RESULTS ******************
1915 Number of flows = 2
1916 Total time = 10.023268 s
1917 Total packets = 1145
1918 Minimum delay = 0.000019 s
1919 Maximum delay = 0.000934 s
1920 Average delay = 0.000034 s
1921 Average jitter = 0.000014 s
1922 Delay standard deviation = 0.007472 s
1923 Bytes received = 3989
1924 Average bitrate = 3.183792 Kbit/s
1925 Average packet rate = 114.234200 pkt/s
1926 Packets dropped = 0 ( 0 %)
1927 Error lines = 0
1928 ----------------------------------------------------------
1929 \end{verbatim}}
1930 \end{enumerate}
1931
1932 %---------------------------------------
1933 \subsection{Example \#7}
1934 Single SCTP flow, with association Id 3 and max outband stream 1, with constant inter-departure time between packets, constant packet size, and local sender log:
1935
1936 \begin{enumerate}
1937 \item start receiver on the destination host (192.168.1.10):
1938 \begin{verbatim}
1939 $ ./ITGRecv
1940 \end{verbatim}
1941 \item start the sender on the source host:
1942 \begin{verbatim}
1943 $ ./ITGSend -a 192.168.1.10 -m RTTM -T SCTP 3 1 -rp 9030 -l send_log_file
1944 \end{verbatim}
1945 \item close the ITGRecv by pressing Ctrl+C
1946 \item decode the sender log file on the source host:
1947 \begin{verbatim}
1948 $ ./ITGDec send_log_file
1949 \end{verbatim}
1950 {\footnotesize
1951 \begin{verbatim}
1952 ----------------------------------------------------------
1953 Flow number: 1
1954 From 192.168.1.5:32772
1955 To 192.168.1.10:9030
1956 ----------------------------------------------------------
1957 Total time = 9.998896 s
1958 Total packets = 10000
1959 Minimum delay = 0.000000 s
1960 Maximum delay = 0.000000 s
1961 Average delay = 0.000000 s
1962 Average jitter = 0.000000 s
1963 Delay standard deviation = 0.000000 s
1964 Bytes received = 5120000
1965 Average bitrate = 4096.452248 Kbit/s
1966 Average packet rate = 1000.110412 pkt/s
1967 Packets dropped = 0 (0.00 %)
1968 ----------------------------------------------------------
1969
1970 **************** TOTAL RESULTS *****************
1971 Number of flows = 1
1972 Total time = 9.998896 s
1973 Total packets = 10000
1974 Minimum delay = 0.000000 s
1975 Maximum delay = 0.000000 s
1976 Average delay = 0.000000 s
1977 Average jitter = 0.000000 s
1978 Delay standard deviation = 0.000000 s
1979 Bytes received = 5120000
1980 Average bitrate = 4096.452248 Kbit/s
1981 Average packet rate = 1000.110412 pkt/s
1982 Packets dropped = 0 (0.00 %)
1983 Error lines = 0
1984 ----------------------------------------------------------
1985 \end{verbatim}
1986 }
1987 \end{enumerate}
1988
1989 %---------------------------------------
1990 \subsection{Example \#8}
1991 Single DCCP flow with constant inter-departure time between packets, constant packet size, and local sender log:
1992
1993 \begin{enumerate}
1994 \item start receiver on the destination host (192.168.1.10):
1995 \begin{verbatim}
1996 $ ./ITGRecv
1997 \end{verbatim}
1998 \item start the sender on the source host:
1999 \begin{verbatim}
2000 $ ./ITGSend -a 192.168.1.10 -m RTTM -T DCCP -rp 9030 -l send_log_file
2001 \end{verbatim}
2002 \item close the ITGRecv by pressing Ctrl+C
2003 \item decode the sender log file on the source host:
2004 \begin{verbatim}
2005 $ ./ITGDec send_log_file
2006 \end{verbatim}
2007 {\footnotesize
2008 \begin{verbatim}
2009 ----------------------------------------------------------
2010 Flow number: 1
2011 From 192.168.1.5:47426
2012 To 192.168.1.10:9030
2013 ----------------------------------------------------------
2014 Total time = 9.998912 s
2015 Total packets = 10000
2016 Minimum delay = 0.000000 s
2017 Maximum delay = 0.000000 s
2018 Average delay = 0.000000 s
2019 Average jitter = 0.000000 s
2020 Delay standard deviation = 0.000000 s
2021 Bytes received = 5120000
2022 Average bitrate = 4096.445693 Kbit/s
2023 Average packet rate = 1000.108812 pkt/s
2024 Packets dropped = 0 (0.00 %)
2025 ----------------------------------------------------------
2026
2027 **************** TOTAL RESULTS ******************
2028 Number of flows = 1
2029 Total time = 9.998912 s
2030 Total packets = 10000
2031 Minimum delay = 0.000000 s
2032 Maximum delay = 0.000000 s
2033 Average delay = 0.000000 s
2034 Average jitter = 0.000000 s
2035 Delay standard deviation = 0.000000 s
2036 Bytes received = 5120000
2037 Average bitrate = 4096.445693 Kbit/s
2038 Average packet rate = 1000.108812 pkt/s
2039 Packets dropped = 0 (0.00 %)
2040 Error lines = 0
2041 ----------------------------------------------------------
2042 \end{verbatim}
2043 }
2044 \end{enumerate}
2045
2046 %---------------------------------------
2047 \subsection{Example \#9}
2048 Single UDP flow with bursty inter-departure time between packets (the on and off period durations are random variables: the former is an exponential with average 100, while the latter is a Weibull with shape 10 and scale 100) and constant packet size, and with local sender log
2049
2050 \begin{enumerate}
2051 \item start receiver on the destination host (192.168.1.10):
2052 \begin{verbatim}
2053 $ ./ITGRecv
2054 \end{verbatim}
2055 \item start the sender on the source host:
2056 \begin{verbatim}
2057 $ ./ITGSend -a 192.168.1.10 -T UDP -l send_log_file -B E 100 W 10 100
2058 \end{verbatim}
2059 \item close the ITGRecv by pressing Ctrl+C
2060 \item decode the sender log file on the source host:
2061 \begin{verbatim}
2062 $ ./ITGDec send_log_file
2063 \end{verbatim}
2064 {\footnotesize
2065 \begin{verbatim}
2066 ----------------------------------------------------------
2067 Flow number: 1
2068 From 192.168.1.5:47973\
2069 To 192.168.1.10:8999
2070 ----------------------------------------------------------
2071 Total time = 9.998912 s
2072 Total packets = 8720
2073 Minimum delay = 0.000000 s
2074 Maximum delay = 0.000000 s
2075 Average delay = 0.000000 s
2076 Average jitter = 0.000000 s
2077 Delay standard deviation = 0.000000 s
2078 Bytes received = 4464640
2079 Average bitrate = 3571.853445 Kbit/s
2080 Average packet rate = 872.034533 pkt/s
2081 Packets dropped = 0 (0.00 %)
2082 ----------------------------------------------------------
2083
2084 **************** TOTAL RESULTS ******************
2085 Number of flows = 1
2086 Total time = 9.998912 s
2087 Total packets = 8720
2088 Minimum delay = 0.000000 s
2089 Maximum delay = 0.000000 s
2090 Average delay = 0.000000 s
2091 Average jitter = 0.000000 s
2092 Delay standard deviation = 0.000000 s
2093 Bytes received = 4464640
2094 Average bitrate = 3571.853445 Kbit/s
2095 Average packet rate = 872.034533 pkt/s
2096 Packets dropped = 0 (0.00 %)
2097 Error lines = 0
2098 ----------------------------------------------------------
2099 \end{verbatim}
2100 }
2101 \end{enumerate}
2102
2103
2104 \newpage
2105 \begin{thebibliography}{10}
2106 \addcontentsline{toc}{section}{\bibname}
2107
2108 \bibitem{d-itg0000}
2109 S. Avallone, A. Pescap\'e, G. Ventre, "Distributed Internet Traffic Generator (D-ITG): analysis and experimentation over heterogeneous networks", Poster at International Conference on Network Protocols, ICNP 2003 November 2003, Atlanta - Georgia (USA).
2110
2111 \bibitem{d-itg1111}
2112 D. Emma, A. Pescap\'e, G. Ventre, "Analysis and experimentation of an open distributed platform for synthetic traffic generation", 10th IEEE International Workshop on Future Trends of Distributed Computing Systems (FTDCS 2004), pp. 277-283, May 2004, Suzhou (China).
2113
2114 \bibitem{d-itg3333}
2115 A. Botta, A. Dainotti, A. Pescap\'e, "Do You Trust Your Software-based Traffic Generator?'', IEEE Communications Magazine, vol.48, no.9, pp.158-165, Sept. 2010.
2116
2117 \bibitem{d-itg2222}
2118 A. Dainotti, A. Botta, A. Pescap\'e, "A tool for the generation of realistic network workload for emerging networking scenarios", Computer Networks (Elsevier), Volume 56, Issue 15, 15 October 2012, Pages 3531-3547.
2119
2120 \bibitem{pggloby} A. Dainotti, A. Pescap\'e, P. Salvo Rossi, G. Iannello, F. Palmieri, G. Ventre, ``An HMM Approach to Internet Traffic Modeling'', \textit{2006 IEEE GLOBECOM, Quality, Reliability, and Performance Modeling for Emerging Network Services Symposium.}
2121
2122 \bibitem{1}
2123 A. Dainotti, A. Botta, A. Pescap\'e, G. Ventre,
2124 \newblock \emph{"Searching for Invariants in Network Games Traffic"} , Poster at ACM Co-Next 2006 Student Workshop. 2-pages abstract published in Co-Next '06 Proceedings .
2125
2126 \bibitem{2}
2127 T. Lang, P. Branch, G. J. Armitage:
2128 \newblock \emph{A synthetic traffic model for Quake3}. Advances in Computer Entertainment Technology 2004: 233-238
2129
2130 \end{thebibliography}
2131
2132 \end{document}