use question

53 views
Skip to first unread message

MH

unread,
Mar 3, 2015, 5:26:56 AM3/3/15
to peerfac...@googlegroups.com
Hello there,
i want to test some applications like instant messaging, shared calender and maybe some other real time applications using the structured P2P overlays. and my question is whether i can use Peerfactsim.Kom simulator
for this purpose?
thanks in advance

MH

tobias amft

unread,
Mar 4, 2015, 7:34:04 AM3/4/15
to peerfac...@googlegroups.com
Hello MH,

yes, you can use Peerfactsim.Kom for your purpose.
In the following I briefly describe how to do this:

1)
Simulations in PeerfactSim.Kom are configured using a simple xml-file.
Please consider "chord.xml" in folder "config/visualization", which is structured as follows:
 - First, you can specify variables you want to use in this config-xml-file.
 - Next, you define and configure different layers you want to use: NetLayer, Translayer, Overlay, Application, and Monitor
 - Most Important: with the HostBuilder you define how many nodes to simulate and what layers each host/group comprises
 - As a last step you can choose between different churnmodels, and select an "actions-file"

In the actions file (here: config/visualization/chord-actions.dat) you can specify actions, a specific group should perform at given time
(Be aware that all nodes in the group perform this action.)
Note that actions in the action-file (in "chord-actions.dat": startLookups or ...:join) are implemented in the "component"- or "additionalClasses" you select in the xml-file (last few lines in "chord.xml")

2)
The given config file should fulfil your purpose.
- Chord is selected
- DHTLookupGenerator is installed as application on all simulates hosts

3)
You can implement your applications either directly in chord, or as standalone application on top.
For the former, consider "org.peerfact.impl.overlay.dht.chord.chord.components.ChordNode".
For the latter, consider the DHTLookupGenerator in "org.peerfact.impl.application.dhtlookupgenerator.DHTLookupGenerator".
This class simply starts some lookups in the given p2p overlay.

Have fun!
Regards
Tobias
Reply all
Reply to author
Forward
0 new messages