FileSharing over CAN

16 views
Skip to first unread message

MH

unread,
Mar 9, 2017, 9:25:32 AM3/9/17
to PeerfactSim.KOM
Hello everybody,
i try to run the filrsharing application on the top of CAN overlay and Modular NetLayer. I use the last Vesion of Peerfactsim simulator and the following NetLayer Configuration:

<?xml version="1.0" encoding="UTF-8"?>

<NetLayer

       class="org.peerfact.impl.network.modular.ModularNetLayerFactory"

       useRegionGroups="false"

       useInOrderDelivery="false"

       preset="PingEr">

       <MeasurementDB class="org.peerfact.impl.network.modular.db.NetMeasurementDB"

                      file="config/data/mod_measured_data.xml" />

       <BandwidthDetermination class="org.peerfact.impl.network.bandwidthdetermination.OECDReportBandwidthDetermination" />

       <PacketSizing class="org.peerfact.impl.network.modular.st.packetSizing.IPv4Header" />

       <TrafficControl class="org.peerfact.impl.network.modular.st.trafCtrl.BoundedTrafficQueue" />

       <PLoss class="org.peerfact.impl.network.modular.st.ploss.PingErPacketLoss" />

       <Latency class="org.peerfact.impl.network.modular.st.latency.PingErLatency" />

       <Positioning class="org.peerfact.impl.network.modular.st.positioning.GeographicalPositioning" />

       <Fragmenting class="org.peerfact.impl.network.modular.st.fragmenting.IPv4Fragmenting" />

       <Jitter class="org.peerfact.impl.network.modular.st.jitter.PingErJitter" />

</NetLayer>


my action file is very simple:


# action file for FileSharing

 

all 1s-150m FileSharingApplication:join

 

all 150m-300m FileSharingApplication:publishResourcesFromSet files 100

 

all 300m-500m FileSharingApplication:lookupResourceFromSetPeriodically files 10m


the Peers number is 100 and the simulation´s time has been set to 800m and i use the already defined Filesharing configuration File. The Simulation will run for a while but then i get the NullPointerException and the following errors:


at org.peerfact.impl.overlay.dht.can.operations.StoreOperation.execute(StoreOperation.java:99)

at org.peerfact.impl.common.AbstractOperation.eventOccurred(AbstractOperation.java:204)

at org.peerfact.impl.simengine.Scheduler.processNextEvent(Scheduler.java:240)

at org.peerfact.impl.simengine.Scheduler.start(Scheduler.java:162)

at org.peerfact.impl.simengine.Simulator.start(Simulator.java:216)

at org.peerfact.impl.util.guirunner.impl.SimulationThread.run(SimulationThread.java:71)

in the output forlder many resuilts are missed too. 

can anyone help me please. Thanks in abvance

MH



Reply all
Reply to author
Forward
0 new messages