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:
You can build Frenetic-based network applications with:
Switch to OCaml version 4.11.0 or greater:
opam switch 4.11.0 Install dune:
opam install duneInstall required OCaml dependencies. Note that dune can compute the list of dependencies,
dune external-lib-deps --missing @alland you can install each using OPAM---for example:
opam install ocamlgraph Build Frenetic
make && make installThe following instructions assume a Linux host with Mininet installed.
Start up a Mininet sample network with a switch and 2 hosts:
$ sudo mn --topo=single,2 --controller=remoteTry pinging the host h2 from the host h1:
mininet> h1 ping h2Unfortunately, the ping won't work because you don't have an SDN network program in place! Press CTRL-C to stop the pinging.
Start up another terminal window and start up Frenetic:
$ frenetic http-controller --verbosity debugIn a third terminal window, start up the example program for the Python repeater:
$ python -m frenetic.examples.repeaterNow, back in the window running Mininet, the ping should now succeed:
mininet> h1 ping h2Congratulations! You now have a working Software Defined Network.
Frenetic is an open source project, and we encourage you to contribute!
See Frenetic Members and Support
Frenetic is released under the GNU Lesser Public License, version 3. Details