-Once we have collected all the logging and verbose data from the experiment, the next step will be to analyse it. Our infrastructure provides a graphical analyzer tool for viewing peer behavior.
+Once we have collected all the logging and verbose data from the experiment, the next step will be to analyze it. Our testing infrastructure provides a graphical viewer tool for inspecting peer behavior.
-The graphical analyzer is implemented in python with the help of two libraries: \textit{matplotlib} - for ploting graphs and \textit{TraitsUi} - for handling the widgets. It offers several important plotting options which show the user how a peer behaved and how it interacted with other peers during the experiment:
+The viewer is implemented in python with the help of two libraries: \textit{matplotlib} - for plotting graphs and \textit{TraitsUi} - for handling the widgets. It offers several important plotting options which show the user how a peer behaved and how it interacted with other peers during the experiment:
\begin{itemize}
\item download/upload speed - shows the evolution of download/upload speed for the peer
\item acceleration - shows how fast the download/upload speed of the peer increases/decreases
\item statistics - shows what type and amount of messages the peer exchanged with other peers
\end{itemize}
-The last two options are very important for our project because they provide valuable information about the performance of the BitTorrent client, with respect to live streaming, and how this performance is influenced by the messages that the BitTorrent client exchanges. The accelaration option shows how fast a BitTorrent client is able to download data at the beginning of the torrent. This is a basic requirement in live streaming, because it basically means to start playback of a torrent file with no delays. The statistics option shows what flow of messages makes a BitTorrent client have a fast acceleration. Using our graphical analyzer, we discovered in our experiments that the hrktorrent BitTorrent client has a really fast accelaration. This makes it very suitable for live streaming. We will discuss the experimental results in more detail in chapter [TODO].
+The last two options are very important for our project because they provide valuable information about the performance of the BitTorrent client, with respect to live streaming, and how this performance is influenced by the messages that the BitTorrent client exchanges. The acceleration option shows how fast a BitTorrent client is able to download data at the beginning of the torrent. This is a basic requirement in live streaming, because it basically means to start playback of a torrent file with no delays. The statistics option shows what flow of messages makes a BitTorrent client have a fast acceleration. Using our viewer, we discovered in our experiments that the hrktorrent BitTorrent client has a really fast acceleration. This makes it very suitable for live streaming. We will discuss the experimental results in more detail in chapter [TODO].
-The graphical analyzer can also be used in two modes:
+The viewer can also be used in two modes:
\begin{enumerate}
\item Single Client Mode
\item Client Comparison Mode
\end{enumerate}
-In ``Single Client Mode'' the developer can observe how a peer behaved during the streaming experiment. All the plotting options are available in this mode. A simple example of this mode can be seen in Figure . The user selects in right panel the database file for an experiment, a peer id and the plotting options. In the right panel the user receives the plotted graph for the peers.
+In ``Single Client Mode'' the user can observe how a peer behaved during the streaming experiment. All the plotting options are available in this mode. A simple example of this mode can be seen in Figure \ref{gui1} . The user selects in right panel the database file for an experiment, a peer id and the plotting options. In the right panel the user receives the plotted graph for the peers.
-In ``Client Comparisson Mode'' the developer can compare the behaviour of two peers from the experiment. An example of this mode can be seen in Figure. All plotting options are available, except the statistics options. The user selects in right panel the dabase file for an experiment, two peer ids and the plotting options. In the rigth panel the user receives plotted graphs for the selected peers.
\ No newline at end of file
+In ``Client Comparison Mode'' the user can compare the behavior of two peers from the experiment. An example of this mode can be seen in Figure \ref{gui2}. All plotting options are available, except the statistics options. The user selects in right panel the database file for an experiment, two peer ids and the plotting options. In the right panel the user receives plotted graphs for the selected peers.
+
+\begin{figure}[h]
+\begin{center}
+\includegraphics[width = 6.0in, height = 3.5in]{img/gui1.png}
+\end{center}
+\caption{Viewer in Single Client Mode}
+\label{gui1}
+\end{figure}
+\begin{figure}[h]
+\begin{center}
+\includegraphics[width = 6.0in, height = 3.5in]{img/gui2.png}
+\end{center}
+\caption{Viewer in Client Comparison Mode}
+\label{gui2}
+\end{figure}