package frenetic

All checked builds fail
  1. Overview
  2. Docs
The Frenetic Programming Language and Runtime System

Install

dune-project
 Dependency

Authors

Maintainers

Sources

5.0.5.tar.gz
md5=baf754df13a759c32f2c86a1b6f328da
sha512=80140900e7009ccab14b25e244fe7edab87d858676f8a4b3799b4fea16825013cf68363fe5faec71dd54ba825bb4ea2f812c2c666390948ab217ffa75d9cbd29

Description

Added to opam-repository:

README

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.11.0 or greater:

    opam switch 4.11.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

Dependencies (22)

  1. yojson >= "1.7.0"
  2. tcpip >= "6.3.0" & < "7.0.0"
  3. sexplib >= "v0.14.0" & < "v0.15"
  4. sedlex >= "2.4"
  5. ppx_deriving >= "5.1"
  6. ppx_cstruct >= "5.2.0"
  7. ppx_jane >= "v0.14.0" & < "v0.15"
  8. open >= "0.2.1"
  9. ocamlgraph >= "2.0.0"
  10. mparser-re >= "1.3"
  11. mparser >= "1.3"
  12. menhir >= "20210419"
  13. ipaddr >= "5.2.0"
  14. cstruct-sexp >= "6.0.1"
  15. cstruct >= "6.0.1"
  16. core >= "v0.14.0" & < "v0.15"
  17. cohttp-async >= "4.0.0"
  18. cohttp >= "4.0.0"
  19. base64 >= "3.5.0"
  20. async >= "v0.14.0" & < "v0.15"
  21. dune >= "2.0"
  22. ocaml >= "4.11.0"

Dev Dependencies (1)

  1. odoc with-doc

Optional Dependencies

None

Used by

None

Conflicts

None

Build status

Results of building frenetic with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
5.0.5 (this version) bad bad n/a n/a n/a
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure