Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Parth401101/gossip-tcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gossip Protocol Simulation in ns-3

Overview

A simple implementation of gossip protocol where node 0 is main sender of messages that propagate throughout the network.
You can think of it as node 0 mined a share and now it is propagated throughout the network. This code is a simulation of a gossip protocol using TCP sockets in ns-3. it uses Wireless ad hoc networks to simulate a peer-to-peer network.

  • Node 0 acts as the main sender of messages (analogous to a miner who has found a share)
  • Messages propagate throughout the network using the gossip protocol
  • Basic message dissemination is demonstrated over a wireless ad hoc network
  • TCP sockets handle reliable communication between nodes

My Future Plans / Approach

  • Extend functionality to allow all nodes to both send and receive messages (shares)
  • Desgin how shares will look like
  • Introduce more layes to nodes to simulate miner-like behavior
  • Introducing latancy for where it is nessesary

(this part i am not very clear abt)

  • how DAG will be made and how uncles are choosen

Installation

  1. Install ns-3 following the (https://www.nsnam.org/wiki/Installation
  2. Run it ./ns3 run scratch/P2Pool_v2

ps i have also created an output_500.log file it is just the output if you choose to run it
it takes some time to log out all the things so i added it incase
i have tried running the simulation with 10000 nodes but it is just very slow and even after 1/2 it was not completed we will see what to do abt that part afterwards (i will try to find the max limit tho when i have implemnted 2 ways communication for the nodes)
this implementation is not the final for the networking part will have to make manny optimizations and all

Any form of feedback would be good i will rebuild/resturcture the entire thing if it doesnt match your vision with the simulation just let me know :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages