Home › Forums › PeerfactSim Forum › adding new analyzer into kademlia
- This topic has 5 replies, 1 voice, and was last updated 9 years, 10 months ago by
Matthias Feldotto.
-
AuthorPosts
-
May 21, 2015 at 7:44 pm #901
Krishna
Guesthello,
i am trying to add more analyzers into kademlia. these analyzers hav
already been implemented in the code, for example
de.tud.kom.p2psim.impl.analyzer.benchmark.monitoring.NetworkStatisticAnalyzer
class. When i add this into the xml file of kademlia, with specifying
the output file name and the interval, I get an error stating a
configuration error. But when I add it without any parameters, I get a
null pointer exception. How do i add more analyzers ?regards,
KrishnaMay 21, 2015 at 7:44 pm #902Matthias Feldotto
GuestThe available analyzers are very different in their concepts. The one
you have chosen needs a database which has to be configured and where it
puts the results in. I think that is not your goal.For getting information about the network I would prefer the
de.tud.kom.p2psim.impl.analyzer.NetWorkloadAnalyzer It prints its
results into a textfile and you can work with it, for example plot it
with gnuplot. I hope that will help you.May 21, 2015 at 7:45 pm #903Krishna
GuestMy aim is to benchmark kademlia on GNP and Modular network. By adding
de.tud.kom.p2psim.impl.analyzer.NetWorkloadAnalyzer into the xml, how
do i specify the output file location ? are there any other
implemented class which i can use to measure ?May 21, 2015 at 7:45 pm #904Matthias Feldotto
GuestThe NetWorkloadAnalyzer generates a folder structure in the outputs
folder (with config name, seed, size, date) and there you find the file
“NetWorkload.dat” with the results.For Kademlia only purposes you find specific analyzers in
de.tud.kom.p2psim.impl.overlay.dht.kademlia2.measurement, for example
de.tud.kom.p2psim.impl.overlay.dht.kademlia2.measurement.KademliaOperationTrafficAnalyzer
(but attention: not every anaylzer prints results to file, look into the
source).If you use the FilesharingApplication to generate traffic, you can also
use the DHTFilesharingAnalyzer.May 21, 2015 at 7:46 pm #905Krishna
GuestI added some of the analyzers in
de.tud.kom.p2psim.impl.overlay.dht.kademlia2.measurement:
HourlyTrafficAnalyzer, KademliaOperationTrafficAnalyzer,
KClosestNodesLookupSuccessAnalyzer, OperationDelayAnalyzer,
OperationDelayAndOutcomeAnalyzer, TrafficAnalyzer, to the xml file.
The simulator runs smoothly, but I dont see any outputs from the
analyzers that I added. I went through the code and did not come
across any places where thr output file name is mentioned. Am I
missing something?May 21, 2015 at 7:46 pm #906Matthias Feldotto
GuestThe analyzers, for example the KadmeliaOperationTrafficAnalyzer,
inherits from
de.tud.kom.p2psim.impl.overlay.dht.kademlia2.measurement.FileAnalyzer.
There you find the methods for generatting the filename, look into the
method getFileName(). -
AuthorPosts
- You must be logged in to reply to this topic.