\caption[Analysis Class Diagram]{Class diagram showing components involved in analysis of a simulation.}
\end{figure}
-The analysis section
+In order to get useful data, the files emitted from the simulation stage must be analysed and compared. The primary resource for this stage is the CSMA ASCII trace file which lists each time a packet is enqueued onto a Ethernet transmission queue, when it is dequeued, if it is dropped and when it is received by a node. It lists the time of each action, the node it was operated on and the packet headers for the packet in question.
+
+By analysing this file we can gain an insight into how efficent the routing protocols are, how long each packet took to traverse the network and other simulation metrics.
+
+The analysis program parses the CSMA file and collects the statistics on the packets observed before outputting them to a file. It also creates a graph displaying the nodes in the network topology.
\subsection{File Formats}
The data file details the data sent across the network. After the file header, it lists in order, the sets of packets to be transferred across the network, The first field contains the time to start, interpreted as a double. After this follows descriptors containing the hosts (zero indexed) to send to and from. Finally each section has the number of packets to send across the link.
-%\subsubsection{State}%
+%\subsubsection{State}
\subsubsection{Trace}