Git Product home page Git Product logo

netchain's Introduction

NetChain

Class project at Johns Hopkins University: Implement Netchains using P4 and Python

How to run

  1. Execute run_demo.sh to start the Mininet CLI
  2. Type xterm h1 (you can substitute h1 with h2 or h3)
  3. Execute kv.py h1 on the xterm (again, substituting h1 with whatever host you're using).
  4. Allowed commands are put [key] [value] and get [key]. Use ctrl+C to exit.

Comments

Dr. Jin said during his office hour on May 8 to insert the keys in initialization time, since doing otherwise is difficult with how Mininet works. As a result, only keys between 0 to 199 are supported, so that starting up the demo wouldn't take a long time.

I didn't do the switch failure detection/recovery part.

Individual file descriptions

  • make_commands.py: Used to generate the command text files. Can be executed without command line arguments
  • route.py: Setting up NetChain. Near the top are the hard-coded values of max_key and nb_vnodes that can be changed if needed. If they are changed, make_commands.py needs to be re-executed.
  • topo.txt: The network setup
  • topo.py: I've added a couple lines so that different switches receive different commands.
  • kv.py: Sending and receiving packets that interacts with the NetChain key-value store.
  • run_demo.sh: I was given this file from other parts of the assignment and I didn't touch it.
  • p4src/source_routing.p4: P4 code that controls the router

netchain's People

Contributors

ethanlee515 avatar

Watchers

 avatar  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.