Skip to content
sun-lei edited this page Apr 25, 2011 · 14 revisions

Trema tutorial

This tutorial explains how to develop applications for the OpenFlow controller based on the framework of Trema. After the tutorial, you can implement various applications for your own OpenFlow controller in a simple way with less code by using powerful libraries and tool chains provided by Trema.

The intended audience of the tutorial is expected to have some experience in the following areas:

  • C programming experience
  • or Ruby programming experience
  • Basic knowledge of computer network

Don't worry about it, even if you have not heard of OpenFlow at all. The new concepts of OpenFlow are also explained briefly in this tutorial. If you want to know more about OpenFlow specification, please find more details from its offical website.

Tutorial (programming in C)

  1. Hello Trema!
  2. Query switch information
  3. Handling Packet in

Tutorial (programming in Ruby)

  1. Hello Trema! (Ruby)
  2. Query switch information (Ruby)