Giter Site home page Giter Site logo

johnhringiv / frenetic Goto Github PK

View Code? Open in Web Editor NEW

This project forked from frenetic-lang/frenetic

0.0 1.0 0.0 99.85 MB

The Frenetic Programming Language and Runtime System

Home Page: http://www.frenetic-lang.org/

License: Other

Shell 0.30% Makefile 0.14% OCaml 89.08% Python 10.05% Standard ML 0.35% Ruby 0.07%

frenetic's Introduction

Welcome to Frenetic

Build Status

The languages used to program networks today lack modern features. Programming them is a complicated and error-prone task, and outages and infiltrations are frequent. Frenetic is an open-source Software Defined Network (SDN) controller platform designed to make SDN programming easy, modular, and semantically correct, based on programming languages with the following essential features:

  • High-level abstractions that give programmers direct control over the network, allowing them to specify what they want the network to do without worrying about how to implement it.
  • Modular constructs that facilitate compositional reasoning about programs.
  • Portability, allowing programs written for one platform to be reused with different devices.
  • Rigorous semantic foundations that precisely document the meaning of the language and provide a solid platform for mechanical program analysis tools.

You can build Frenetic-based network applications with:

  • OCaml
  • Python
  • REST and JSON (i.e., any programming language!)

Getting Started

Installation

  1. Install OPAM, version 2.0 or higher.

  2. Switch to OCaml version 4.06.0 or greater:

    opam switch 4.06.0    
    
  3. Install dune:

    opam install dune
    
  4. Install required OCaml dependencies. Note that dune can compute the list of dependencies,

    dune external-lib-deps --missing @all
    

    and you can install each using OPAM---for example:

    opam install ocamlgraph    
    
  5. Build Frenetic

    make && make install
    
  6. (Optional) install Mininet

Hello World in SDN

The following instructions assume a Linux host with Mininet installed.

  1. Start up a terminal window.

  2. Start up a Mininet sample network with a switch and 2 hosts:

    $ sudo mn --topo=single,2 --controller=remote
    
  3. Try pinging the host h2 from the host h1:

    mininet> h1 ping h2
    

    Unfortunately, the ping won't work because you don't have an SDN network program in place! Press CTRL-C to stop the pinging.

  4. Start up another terminal window and start up Frenetic:

    $ frenetic http-controller --verbosity debug
    
  5. In a third terminal window, start up the example program for the Python repeater:

    $ python -m frenetic.examples.repeater
    
  6. Now, back in the window running Mininet, the ping should now succeed:

    mininet> h1 ping h2
    

    Congratulations! You now have a working Software Defined Network.

Where to Go From Here

Contributing

Frenetic is an open source project, and we encourage you to contribute!

Credits

See Frenetic Members and Support

License

Frenetic is released under the GNU Lesser Public License, version 3. Details

frenetic's People

Contributors

seliopou avatar jnfoster avatar reitblatt avatar arjunguha avatar smolkaj avatar fugitifduck avatar basus avatar mpmilano avatar craig-riecke avatar princedpw avatar jcollard avatar adferguson avatar mulias avatar nimishgupta avatar sushkrish avatar rac347 avatar nbr avatar lvanbever avatar mcanini avatar chrisyu-cs avatar baxtersa avatar ekotlikoff avatar jrmcclurg avatar fpottier avatar poddarh avatar junghyuneun avatar mgscheer avatar mor1 avatar tudang avatar moey509 avatar

Watchers

John H. Ring IV 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.