Giter VIP home page Giter VIP logo

picn's Introduction

This is work in progress! Everything can change at any moment! :-)

PiCN

Build Status

PiCN is a...

  • prototyping-friendly, modular and extensible library for content-centric networkig (CCN).
  • a set of tools and network nodes.
  • our platform to build the next generation of NFN.

PiCN is written in Python 3.6+ and tested on Linux, Mac OS X and Windows. More than 200 unit tests are included.

Features

Library

  • Link Layer (UDP faces)
  • Packet Encoding Layer (NDN packet format + link protocol)
  • CCN Layer (basic forwarding logic, data structs)
  • Chunking Layer
  • Computation Layer (next-gen NFN implementation)
  • Management interface to each layer

Tools

  • Forwarder
  • Setup Tool to start, connect, configure and inspect multiple nodes (with NDN testbed access)
  • Peek Tool
  • Management Tool

Getting Started!

Let us setup a simple network which consists of a data repository and a forwarding node:

Hands On: Topology

Clone PiCN from github:

you@machine:~$ git clone https://github.com/cn-uofbasel/PiCN.git

Add the PiCN-tools to your PATH (bash):

you@machine:~$ PATH=$PATH:`pwd`/PiCN/starter

or config python library:

you@machine:~$ cd PiCN && export PYTHONPATH=${PYTHONPATH}:`pwd`

Prepare content for a repository:

you@machine:~$ mkdir /tmp/repo
you@machine:~$ touch /tmp/repo/example && echo "HELLO WORLD" > /tmp/repo/example
...

Start a repository node and a forwarder:

you@machine:~$ picn-repo --format ndntlv /tmp/repo /the/prefix 10000 &
you@machine:~$ picn-relay --format ndntlv --port 9000 &  
...

Configure a forwarding rule from the forwarder to the repository:

you@machine:~$ picn-mgmt --ip 127.0.0.1 --port 9000 newface 127.0.0.1:10000:0
you@machine:~$ picn-mgmt --ip 127.0.0.1 --port 9000 newforwardingrule /the:0
...

Fetch content from the repository via the forwarding node:

you@machine:~$ picn-fetch --format ndntlv 127.0.0.1 9000 /the/prefix/example 
HELLO WORLD

More about...

Operational Matters

Internals

The Project

picn's People

Contributors

blacksheeep avatar cmarxer avatar s3lph avatar tschudin 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.