GithubHelp home page GithubHelp logo

isabella232 / student_19_libp2p_tlc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dedis/student_19_libp2p_tlc

0.0 0.0 0.0 2.32 MB

TLC implemented on top of libp2p

License: GNU General Public License v3.0

Shell 0.46% Go 99.54%

student_19_libp2p_tlc's Introduction

TLC Implementations

This repository contains different transport layer implementations for TLC protocol. Currently, there are 2 main implementations:

  • Libp2p implementation
  • Mail-based implementation

Libp2p Implementation

In this impementation, libp2p is used as the communication layer of the TLC protocol. Nodes broadcast and receive messages using libp2p implementation of PubSub which is named GossipSub. All nodes subscribe to a topic and then start publishing messages to that topic. Subscribed nodes will receive published messages on the topic.

3 different transport layer implementations have been used as the tranport module of libp2p:

  • TCP
  • QUIC
  • Websocket

Simulations are mainly based on the TCP implementation but all functions are provided for simulating on top of the other protocols.

Mail-based Implementation

In this implementation, messages will be sent using mail protocols. SMTP is used for ongoing mails and IMAP is used for receiving incoming mails. Mail server implementation is not present in this repository and anyone interested in using mail-based implementation needs to setup a working mail server. You may use iRedMail to start a mail server.

Repository structure

.
├── Report                       A short report, illustrating results obtained in simulations
├── model                        TLC protocol implementation with abstract transport layer
├── sim                          Onet simulation driver                        
├── transport                    Contains differnent transport layer implementations
    ├── channel                  Go channel based transport
    ├── libp2p_pubsub            Libp2p-based implementataion using pubsub
    └── mail                     Mail-based implementation

Contact me (Mahdi Bakhshi) if you have any problems.

student_19_libp2p_tlc's People

Contributors

mbakhshi96 avatar ceyhunalp avatar jeffallen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.