Skip to content
프로젝트

소개

The Frenetic Programming Language and Runtime System

프로그래밍 언어 및 런타임

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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

관련 프로젝트 살펴보기

불러오는 중…