adding new analyzer into kademlia

Home Forums PeerfactSim Forum adding new analyzer into kademlia

This topic contains 5 replies, has 1 voice, and was last updated by  Matthias Feldotto 2 years, 9 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #901

    Krishna

    hello,
    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,
    Krishna

    #902

    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.

    #903

    Krishna

    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 ?

    #904

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

    #905

    Krishna

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

    #906

    Matthias Feldotto

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

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Comments are closed