PeerNet, a NetLogo Simulation

This is a NetLogo, Java-based simulation of a peer network's dynamics. Look below the simulation for details. To run the simulation, click Setup to initialize the network, and Step to single step the simulation, or Go to run the simulation continuously. Click Go again to stop the continuous run.

created with NetLogo

view/download model file: peernet.nlogo

PeerNet

The model creates a peer network who's network nodes/peers come alive (i.e. boot and joint the network) for a fixed time, then turn off again, dropping out of the network. The fixed time is chosen randomly between 1 and a maximum life (lifeRange).

When a peer joins the net, she receives a number of outward pointing connections/edges (numOutEdges) she attempts to maintain with other peers. She keeps a list of her current outward edges/connections (outEdges) and incoming connections/edges (inEdges) from other peers who's outEdges point to her. Whenever her numOutEdges is larger than the actual outEdge list, she creates new connections within her neighborhood. The new connection cannot be an existing in or out edge.

A peer's neighborhood is determined at birth to be the peers within a radius randomly chosen between 1 and a maximum radius (radiusRange). Similarly, numOutEdges is chosen between 1 and a maximum number of edges (edgesRange).

Every step of the simulation, think hours for example, decreases the time to live (ttl) of the peer node. When it dies, it stays off for one cycle, then rejoins with a fixed probability (birthProbability).

At the end of a step, a global calculation of disjoint subgraphs is made .. the peer groups that are complete by them selves but cannot "see" the other peer groups. The largest peer group is grey, the others various colors. The size of the largest group is displayed as "maxnet".

Usage

First set the four sliders to the values of interest. An interesting set is:

This set typically has more than one peer group, which can be seen by the multiple colored subnets.

To run the simulation, click Setup to initialize the network, and Step to single step the simulation, or Go to run the simulation continuously. Click Go again to stop the continuous run.

Realistically, the edge and radius ranges would be larger, and would show the point of this model: peer nets tend to "close" rather naturally, avoiding disjoint subnets of isolated peer groups.

This page was automatically generated by NetLogo 1.2 beta 1. Questions, problems? Contact feedback@ccl.northwestern.edu.