Description: In this code,we propose a novel approach to construct and maintain the topology. This approach is based on gossip protocol, nodes and peers change their information randomly, and maintain the topoly according to the need of P2P application.This protocol is very efficient and robust, and can manage the stream of node joining and leaving.The network can maintain in spite of all SP leavin.
File list (Check if you may need any files):
SP
..\.classpath
..\.project
..\build.xml
..\classes
..\.......\newscast
..\.......\........\ReducedNewscast.class
..\.......\........\SimpleNewscast.class
..\.......\superpeer
..\.......\.........\CapacityComparator.class
..\.......\.........\ClientKiller.class
..\.......\.........\CommonRandomElement.class
..\.......\.........\PowerlawDistribution.class
..\.......\.........\RandomSpp.class
..\.......\.........\Superpeer.class
..\.......\.........\SuperpeerKiller.class
..\.......\.........\SuperpeerObserver.class
..\colt-1.0.3.jar
..\config
..\......\linear-crash.cfg
..\......\linear-random.cfg
..\......\sf-capacity.cfg
..\......\sf-degree.cfg
..\......\sf-random.cfg
..\......\sf-scale.cfg
..\......\uniform-capacity.cfg
..\......\uniform-degree.cfg
..\......\uniform-random.cfg
..\......\uniform-scale.cfg
..\jep-2.24.jar
..\peersim-0.3.jar
..\README
..\src
..\...\newscast
..\...\........\ReducedNewscast.java
..\...\........\SimpleNewscast.java
..\...\superpeer
..\...\.........\CapacityComparator.java
..\...\.........\ClientKiller.java
..\...\.........\CommonRandomElement.java
..\...\.........\PowerlawDistribution.java
..\...\.........\RandomSpp.java
..\...\.........\Superpeer.java
..\...\.........\SuperpeerKiller.java
..\...\.........\SuperpeerObserver.java
..\superpeer.jar