Book Image

Software-Defined Networking with OpenFlow - Second Edition

By : SIAMAK AZODOLMOLKY, Oswald Coker
Book Image

Software-Defined Networking with OpenFlow - Second Edition

By: SIAMAK AZODOLMOLKY, Oswald Coker

Overview of this book

OpenFlow paves the way for an open, centrally programmable structure, thereby accelerating the effectiveness of Software-Defined Networking. Software-Defined Networking with OpenFlow, Second Edition takes you through the product cycle and gives you an in-depth description of the components and options that are available at each stage. The aim of this book is to help you implement OpenFlow concepts and improve Software-Defined Networking on your projects. You will begin by learning about building blocks and OpenFlow messages such as controller-to-switch and symmetric and asynchronous messages. Next, this book will take you through OpenFlow controllers and their existing implementations followed by network application development. Key topics include the basic environment setup, the Neutron and Floodlight OpenFlow controller, XORPlus OF13SoftSwitch, enterprise and affordable switches such as the Zodiac FX and HP2920. By the end of this book, you will be able to implement OpenFlow concepts and improve Software-Defined Networking in your projects.
Table of Contents (17 chapters)
Title Page
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
Free Chapter
1
Software-Defined Networks

Net App 6 – simple firewall using Ryu controller


In this section, we would be simulating a simple firewall that filters flow based on the destination IP address and the source IP address. For this, we will be using the single topology, which has three hosts, one switch, and one controller.

In this Net App, we will be utilizing the firewall application written in the Ryu controller directory. This can be found in the ryu/ryu/app/rest_firewall.py directory.

Creating the topology on Mininet

The topology is created using the following script:

<pre>ubuntu@sdnhubvm:~[13:29]$ sudo mn --topo single,3 --mac --switch ovsk,protocols=OpenFlow13 --controller remote –x

As stated earlier, this command creates a single topology with three hosts, one switch, and one controller. Also, the OpenFlow version is slated as 1.3 and the xterm to all the nodes will be opened.

Starting the rest firewall application

The next step we will carry out starts the Ryu firewall application using the following command:

>cd...