GithubHelp home page GithubHelp logo

gramidt / atm0s-sdn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 8xff/atm0s-sdn

0.0 0.0 0.0 785 KB

Global-Scale Ultra-Low Latency Software-Defined Networking powered by Rust

License: MIT License

Shell 0.05% Rust 99.94% Makefile 0.01%

atm0s-sdn's Introduction

License: MIT Discord

Atm0s SDN: Global-scaled Ultra-low latency Decentralized SDN

A SAN I/O driven, open-source decentralized network infrastructure that can deliver high-quality data with minimal latency and efficient cost, similar to what Cloudflare achieves for their network.

For a deep dive into the technical aspects of network architecture, please refer to our Smart-Routing

Features

  • Blazingly fast, powered by Rust.
  • High availability by being fully distributed, with no central controller.
  • Multi-zone support, high scalability.
  • Definable Metric based Adaptive routing: cost, latency, .etc...
  • Fixed size routing table.
  • Designed with large scale built-in PubSub service.
  • Automatic Network orchestration and discovery (also can be manual).
  • High extendibility by using Network Service.
  • Built-in features: PubSub, KeyValue, VPN.
  • Cross platform: Linux, MacOs, Windows.

Architecture

Each node in the network is embeded with Geo-Location data inside its ID. A Node ID consists of multiple layers, and every node will have multiple routing tables, each is correspond to a layer.

  • Layer1: Geo1 Table (Zone level)
  • Layer2: Geo2 Table (Country level)
  • Layer3: Inner Geo Group Table (City level)
  • Layer4: Inner Group Index Table (DC level)

TODO: Graphics instead of bulletlist TODO: an ARCHITECTURE.md with general information about: Project, System structure, Design philosophy, ...

Getting started

cargo add 8xff-sdn

Create a group chat application (Optional)

You can refer to the chat_example file here to get started on the basic of building an application for the network.

Demo group chat application

Running manual discovery multi nodes in single device

Start node1:

cargo run --example chat_example -- --node-id 0

Start node2:

cargo run --example chat_example --node-id 1 --neighbour /p2p/0/ip4/127.0.0.1/udp/50000

In node1

> router
[Registry 0] local services: [] remote services: [], nexts []
[Table 0/3/0] slots: []
[Table 0/2/0] slots: []
[Table 0/1/0] slots: []
[Table 0/0/0] slots: [1]
# Join the room using join command with room id
> join 1

In node2

> join 1
> send hello

Now, in node1 will received message from node2

Node 1 to room 1: hello

Available commands:

  • help: Show available commands and description
  • router: Print routing table
  • join: Join a room
  • send: Send a message to room
  • leave: Leave joined room

Running manual discovery multi nodes in multi devices

It also can start chat-example in multi nodes and connect over LAN or Internet

Start node1:

cargo run --example chat_example --node-id 0

Start node2:

cargo run --example chat_example --node-id 1 --neighbours /p2p/0/ip4/[IP_HERE]/udp/50000

Showcases

Contributing

The project is continuously being improved and updated. We are always looking for ways to make it better, whether that's through optimizing performance, adding new features, or fixing bugs. We welcome contributions from the community and are always looking for new ideas and suggestions.

For more information, you can join our Discord channel

Roadmap

First version will be released together with Media Server at end of 2023.

Details on our roadmap can be seen TBA.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

We would like to thank all the contributors who have helped in making this project successful.

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.