Next: Simulation parameters Up: Overview of simulation tools Previous: p2pns.tools.SimulationGenerator

p2pns.tools.Simulator

p2pns.tools.Simulator is a Java program used to run the simulation itself. It accepts an XML configuration file which specifies the following parameters:

Figure 3: Simulation configuration file for OMNI overlay - omni-config.xml
\begin{figure}
\begin{verbatim}
<beans>
<bean id=''a'' class=''p2pns.util.U...
...lt''/>
</list>
</property>
</bean>
</beans>\end{verbatim}
\end{figure}


Figure 3 shows an example of a simulation configuration file that is used to run the simulation of the OMNI overlay. This configuration file declares that the OMNI overlay is to be simulated on a BRITE topology generated network (specified in the file "topology.brite"). It also specifies that stress, stretch, outdegree, and OMNI aggregate latency metrics are to be taken. And finally it specifies that results should be exported using XmlExporter while the simulation file to be used is sim-10k.xml. This file is a simulation file previously generated using the p2pns.tools.SimulationGenerator tool.