Giter VIP home page Giter VIP logo

ndn-plugnplay's Introduction

ndn-plugnplay

The aim of this repo is to automate NDN configuration and argue for the separation for connectivity and configuration. Configure NDN nodes means configuring trust anchor, name, certificate, and trust schema.

Usage

Compile and intall this NFD that is based on release 0.7.0

Assuming you're using macOS:

nfd-stop (just to make sure)
nfd-start
cd /this/dir
brew install zbar leveldb (you can install equivalent packages on Linux)
python3 -m venv ./venv
./venv/bin/python -m pip install -r requirements.txt

You can check options supported by

sudo ./venv/bin/python app.py --help

For example, you can set naming convention /ndn-plugnplay/device-<nonce> for nodes to be configured by

sudo ./venv/bin/python app.py --prefix ndn-plugnplay --convention device

This is also the default setting if you don't specify preferred system prefix and node naming convention.

Now a GUI will set up at 127.0.0.1:6060 and can provide visualized configuration overview in your browser.

It may take a minute to complete configuration. You can check your trust anchor and trust schema by

cat /usr/local/etc/ndn/pnp-trust-anchor.cert
cat /usr/local/etc/ndn/pnp.conf 

To configure other nodes, put them in your current machine's one-hop WiFi or Ethernet range, then repeat above steps til their NFDs start (and no more). Configuration will automatically happen and may take a minute. Then view your trust anchor and trust schema in the same way.

ndn-plugnplay's People

Contributors

tianyuan129 avatar

Stargazers

Xinyu Ma avatar Junxiao Shi avatar

Watchers

 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.