Very slow routing with Pastry

14 views
Skip to first unread message

Philipp Giesen

unread,
Dec 11, 2013, 5:56:49 AM12/11/13
to peerfac...@googlegroups.com
Hi,

I want to send and receive my own application messages using the Pastry overlay. To do that I use the method route(PastryKey key, Message msg, PastryContact hint) implemented in the PastryNode class. However, the simulation takes a very long time due to hundreds of thousands of operations being created. Compared to other overlays like Chord (which also implements the route method in the class AbstractChordNode) the amount of operations created is ridiculous high. You can reproduce the problem by using the filesharing application and using the KBRHandler instead of the DHTHandler for Pastry.

Is there a reason, why using routing in Pastry is that slow?

Thanks and regards,
Philipp

Philipp Giesen

unread,
Dec 11, 2013, 6:59:55 AM12/11/13
to peerfac...@googlegroups.com
Sorry, I meant packets, not operations. The amount of operations is quite low, but the number of received and sent packets explodes..

Matthias Feldotto

unread,
Dec 13, 2013, 8:33:23 AM12/13/13
to peerfac...@googlegroups.com
Hi Philipp,

no there is no real reason why routing in Pastry is that slow. The KBR interface only defines the method signature (for example the route method). The implementation is the responsibility of the overlay. Due to the fact, that the development of PeerfactSim.KOM is going on for years and many different developers have added different overlays, there exist some very large differences in the internal implementation and also in the use of messages.

If you need the same internal handling for comparison purposes, there's no way around the revision of the overlay.

Matthias

Philipp Giesen

unread,
Dec 13, 2013, 11:17:05 AM12/13/13
to peerfac...@googlegroups.com
Hey Matthias,

thanks for your headsup. I now call a nodeLooup first to identify the
receiver node and then use the send-method from the translayer of the
node.

Regards
Philipp

On 13 December 2013 14:33, Matthias Feldotto
> --
> You received this message because you are subscribed to the Google Groups
> "PeerfactSim.KOM" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to peerfactsim-k...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages