Question on how to use VON

Home Forums PeerfactSim Forum Question on how to use VON

  • This topic has 1 reply, 1 voice, and was last updated 9 years ago by Matthias Feldotto.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #839

    I need some help,who can help me?

    I studied the document, also carried out an XML file, as follows. For every under the specified class, Parameters where I can see? How to set?

    the VON with VISUAL.XML
    <!– Should be as first declared, because the creating of Nodes need Information from this! –>
    <ConfiguartionVON class=”de.tud.kom.p2psim.impl.overlay.ido.von.VonConfiguration”

    <SimulatorCore class=”de.tud.kom.p2psim.impl.simengine.Simulator”
    static=”getInstance” seed=”$seed” finishAt=”$finishTime” realTime=”false”
    timeSkew=”300″ />

    <!– <NetLayer class=””
    <LatencyModel class=””
    usePingErRttData=”false” usePingErJitter=”false” usePingErPacketLoss=”false” />
    class=”” />
    </NetLayer> –>
    <!– Here I assume a bandwidth of a normal DSL 1000 Link (Downstream: 120kBps=122880Bps, Upstream: 16kBps=16384Bps –>
    <!–<NetLayer class=”” downBandwidth=”122880″ upBandwidth=”16384″>
    <LatencyModel class=”” latency=”10″/>
    </NetLayer> –>
    <NetLayer class=”” downBandwidth=”122880″ upBandwidth=”16384″ useRegionGroups=”false” useInOrderDelivery=”true” preset=”Fundamental”>

    <PacketSizing class=””/>
    <Fragmenting class=””/>
    <TrafficControl class=”” maxTimeSend=”3s” maxTimeReceive=”3s”/>
    <!–<TrafficControl class=””/>–>
    <PLoss class=”” ratio=”0.0″/>
    <Latency class=”” propagationDelay=”40ms”/>
    <Jitter class=””/>
    <Positioning class=””/>

    <TransLayer class=”de.tud.kom.p2psim.impl.transport.DefaultTransLayerFactory” />

    <NodeFactory class=”de.tud.kom.p2psim.impl.overlay.ido.von.VonNodeFactory”
    <BootstrapManager class=”de.tud.kom.p2psim.impl.overlay.ido.von.VonBootstrapManager”/>
    <ApplicationFactory class=”de.tud.kom.p2psim.impl.application.ido.IDOApplicationFactory”
    <MoveModel class=”de.tud.kom.p2psim.impl.application.ido.moveModels.RandomPathMoveModel”
    <PositionDistribution class=”de.tud.kom.p2psim.impl.application.ido.moveModels.RandomPositionDistribution”

    <Monitor class=”de.tud.kom.p2psim.impl.common.DefaultMonitor”
    start=”0m” stop=”$finishTime”>

    class=”de.tud.kom.p2psim.impl.overlay.ido.evaluation.EvaluationControlAnalyzer” measurementInterval=”$INTERVAL_BETWEEN_STATISTIC_GENERATIONS” >
    <IDOOracle class=”de.tud.kom.p2psim.impl.overlay.ido.von.VonOracle”/>
    <IAnalyzerOutputWriter class=”de.tud.kom.p2psim.impl.util.db.writer.SQLOutputWriter” XXXX Parameters where I can see? How to set? >

    <DBMSConnector class=”de.tud.kom.p2psim.impl.util.db.writer.MySQLConnector”/ xxxx >


    <HostBuilder class=”de.tud.kom.p2psim.impl.scenario.DefaultHostBuilder”

    <!– LatinAmerica max Groupsize = 6838 –>
    <Group size=”100″ groupID=”LatinAmerica”>
    <NetLayer />
    <TransLayer />
    <NodeFactory />
    <Properties enableChurn=”false” />
    <ApplicationFactory />

    <!–Fourth Group Japan max Groupsize = 4406 –>
    <Group size=”1″ groupID=”Japan”> <NetLayer /> <TransLayer />
    <NodeFactory /> <Properties enableChurn=”false” /> </Group>

    <GlobalOracle class=”” />

    <ChurnGenerator class=”de.tud.kom.p2psim.impl.churn.DefaultChurnGenerator”
    start=”$churnStart” stop=”$churnFinish”>
    <ChurnModel class=”de.tud.kom.p2psim.impl.churn.model.ExponentialChurnModel”
    churnFactor=”0.4″ meanSessionLength=”60m” />

    <Scenario class=”de.tud.kom.p2psim.impl.scenario.CSVScenarioFactory”
    actionsFile=”$actions” componentClass=”de.tud.kom.p2psim.impl.application.ido.IDOApplication”>


    Matthias Feldotto


    as your configuration file cannot be complete (it is not a valid xml file which has to start and end with the same xml tag and in the case of the simulator with the Configuration tag), I can only guess what you mean with your question.

    On the one hand you have the configuration parameters, which you can define in the beginning of the configuration file in the default tag, for example:

    <Variable name=”seed” value=”0″ />

    After they are defined in the beginning, you can reuse them in the whole configuration file and change the values in the gui or console runner.

    On the other hand you can use parameterization for your java classes, for example:

    <Analyzer class=”de.tud.kom.p2psim.impl.overlay.ido.evaluation.EvaluationControlAnalyzer” measurementInterval=”20″>

    All these class parameters are of the format name=”value” and they are constructed for all setter methods of the corresponding class. So in the example case the class has a public method setMeasurementInterval(long interval). So if you need a further variable for the classes, just implement a setter method for it with the correct name.

    I hope, that you got the idea for both variable types which are used in the simulator.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed.