Skip to content

heikoheiko/p2p-network-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulation of a p2p network using simpy

Features

Simulation of

  • connections with bandwidth & latency
  • messaging
  • bootstrapping
  • peer reorganisation based on bandwith & availability
  • peer downtimes / disconnects
  • network slowdowns

The optional network visualization is based on Networkx

Usage

To start the default simulation type python run.py.

Browse and modify the source to model your problem.

The Peer class offers to register services which are based on the BaseService class. All registered services are called whenever a Message is received. Services as well as Peers are simpy-processes.

About

simulation of a p2p network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages