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

Preface

Decoupling network control from networking devices is the common denominator of Software-Defined Networking (SDN). SDN is a recent paradigm shift in computer networking, where network control functionality (also known as the control plane) is decoupled from data forwarding functionality (also known as the data plane), and furthermore, the split control is programmable. The migration of control logic, which used to be tightly integrated into networking devices (for example, Ethernet switches) into accessible and logically centralized controllers enables the underlying networking infrastructure to be abstracted from an application's point of view. This separation paves the way for a more flexible, programmable, vendor-agnostic, cost-effective, and innovative network architecture.

Besides the network abstraction, the SDN architecture will provide a set of APIs that simplify the implementation of common network services (for example, routing, multicast, security, access control, bandwidth management, traffic engineering, QoS, energy efficiency, and various forms of policy management). As a result, enterprises, network operators, and carriers gain unprecedented programmability, automation, and network control, enabling them to build highly scalable, flexible networks that readily adapt to changing business needs. OpenFlow is the first standard interface designed specifically for SDN, providing high-performance, granular traffic control across multiple networking devices. 

This book looks at the fundamentals of OpenFlow, as one of the early implementations of the SDN concept. Starting from an SDN introduction, we will go from OpenFlow switches and controllers up to the development of OpenFlow-based network applications (Net Apps), network virtualization, OpenFlow in cloud computing, active OpenFlow-related open source projects, and the future of SDN. If you are still hungry for more, this book shows you how to set up SDN with OpenFlow.

What this book covers

Chapter 1, Software-Defined Networks, introduces you to the foundational topics that need to be covered before a deep dive into SDN and OpenFlow.

Chapter 2, Introducing OpenFlow, introduces OpenFlow, its role in the SDN ecosystem, and how it works in a computer network. This chapter shapes the required knowledge prior to the actual setup of an experimental environment. The notion of flow forwarding, OpenFlow functions, what OpenFlow tables can do, and features and limitations of OpenFlow have revisited again in this chapter.

Chapter 3, Implementing the OpenFlow Switch, covers the available implementations of OpenFlow switches, including hardware and software implementations.

Chapter 4, The OpenFlow Controllers, covers the role of OpenFlow controllers as a control entity for OpenFlow switches and the provided API (that is, northbound interface) for the development of OpenFlow-based network applications (Net Apps).

Chapter 5, Setting Up the Environment, introduces the options for OpenFlow switches and controllers. It also covers the environment for Net App development. This chapter focuses on the installation of virtual machines (VMs) and tools (for example, Mininet and Wireshark), which will be used in the next chapters for Net App development.

Chapter 6, Net App Development, covers developing sample network applications (for example, learning switch, firewall, and DHCP spoofing) to show how OpenFlow provides the common ground for Net App development.

Chapter 7, Getting a Network Slice, covers network slicing using OpenFlow and FlowVisor. A setup will be planned and the chapter will show how to configure and use a slice of the network using FlowVisor.

Chapter 8, OpenFlow in Cloud Computing, focuses on the role of OpenFlow in cloud computing and, in particular, the installation and configuration of OpenStack's Neutron. Neutron is an incubated OpenStack project that provides network connectivity as a service (NaaS) between interface devices (for example, vNICs or virtual network interface cards), which are managed by other OpenStack services.

Chapter 9, Open Source Resources, explains and gives pointers to the important open source projects that network engineers and/or administrators can utilize in their production environment. These projects range from controllers, virtualization tools, and orchestration tools to simulation and testing utilities.

Chapter 10, SDN Future, provides more insight into innovations expected to be introduced into SDN and OpenFlow.

What you need for this book

This book will guide you through the installation of all the tools that you need to follow the examples. You will need to install WebStorm version 10 to effectively run the code samples present in this book.

Who this book is for

This book is intended for web developers with no knowledge of WebStorm but who are experienced in JavaScript, Node.js, HTML, and CSS and reasonably familiar with frameworks such as AngularJS and Meteor.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning. Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "The message is OFPT_BARRIER_REQUEST and has no message body. " A block of code is set as follows:

if packet.dst not in self.macToPort: 
          log.debug("Port for %s unknown -- flooding" % 
          (packet.dst,)) 
            flood() 
        else: 
        port = self.macToPort[packet.dst] 

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

if packet.dst not in self.macToPort: 
          log.debug("Port for %s unknown -- flooding" % 
          (packet.dst,))
            flood() 
        else: 
        port = self.macToPort[packet.dst]  

Any command-line input or output is written as follows:

git clone https://github.com/noxrepo/nox

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Configure the VirtualBox for the Host-Only Network Details from File | Preferences | Networks | Host-only Networks | DHCP Server."

Note

Warnings or important notes appear like this.

Note

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book-what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of. To send us general feedback, simply e-mail [email protected], and mention the book's title in the subject of your message. If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for this book from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files emailed directly to you. You can download the code files by following these steps:

  1. Log in or register to our website using your email address and password.
  2. Hover the mouse pointer on the SUPPORT tab at the top.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box.
  5. Select the book for which you're looking to download the code files.
  6. Choose from the drop-down menu where you purchased this book from.
  7. Click on Code Download.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR / 7-Zip for Windows
  • Zipeg / iZip / UnRarX for Mac
  • 7-Zip / PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/-Software-Defined-Networking-with-OpenFlow. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Downloading the color images of this book

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from https://www.packtpub.com/sites/default/files/downloads/SoftwareDefinedNetworkingwithOpenFlowSecondEdition_ColorImages.pdf.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books-maybe a mistake in the text or the code-we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title. To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy. Please contact us at [email protected] with a link to the suspected pirated material. We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at [email protected], and we will do our best to address the problem.