O'Reilly logo

Learning Network Programming with Java by Richard M Reese

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using FreePastry

Pastry (http://www.freepastry.org/) is a P2P routing overlay system. FreePastry (http://www.freepastry.org/FreePastry/) is an open source implementation of Pastry and is simple enough for us to use to illustrate many of the features of a P2P system. Pastry will route messages with a network of n nodes in O(log n) steps. That is, given a network of nodes, it requires, at most, log base 2 of n steps to reach the node. This is an efficient routing approach. However, while it may only require traversing three nodes to get to a resource, it may require a considerable number of IP hops to get to it.

Pastry uses the concept of leaf sets in the routing process. Each node has a leaf set. A leaf set is a collection of GUIDS and IP addresses ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required