adding new analyzer into kademlia

Home Forums PeerfactSim Forum adding new analyzer into kademlia

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

    i am trying to add more analyzers into kademlia. these analyzers hav
    already been implemented in the code, for example
    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 ?


    Matthias Feldotto

    The 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.


    My 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 ?

    Matthias Feldotto

    The 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
    (but attention: not every anaylzer prints results to file, look into the

    If you use the FilesharingApplication to generate traffic, you can also
    use the DHTFilesharingAnalyzer.


    I added some of the analyzers in
    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?

    Matthias Feldotto

    The analyzers, for example the KadmeliaOperationTrafficAnalyzer,
    inherits from
    There you find the methods for generatting the filename, look into the
    method getFileName().

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

Comments are closed.