Skip to content

KoushikGavini/Gossip_Protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Objective:
  • Generate a network consisting of 16 nodes running simultaneously where one node can at maximun know only three other nodes and disseminate broadcast message using gossip protocol.
Methodology:
  • Each node has two API methods submit_message and get message. They can be viewed in Gossip.py

  • UDP for communication

  • Every node will receive the message, a node transmits using gossip dissemination.

  • Figure of gossip dissemination shown below

image

Instructions

Step 1: Start the Gossip Nodes

#TODO(Koushikg): dockerize nodes so it is easier to setup env

  • start nodes separately in each terminal
python Gossip_node_7000.py

Step 2: Enter a message

  • Enter a message from any node and view other node's terminal as the message is received
Node started on port 7000
Susceptible nodes => [7010, 7020]
Enter a message to send:

hello from 7000

Resources used

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages