Book Image

Learning OpenDaylight

By : Reza Toghraee
Book Image

Learning OpenDaylight

By: Reza Toghraee

Overview of this book

OpenDaylight is an open source, software-defined network controller based on standard protocols. It aims to accelerate the adoption of Software-Defined Networking (SDN) and create a solid foundation for Network Functions Virtualization (NFV). SDN is a vast subject; many network engineers find it difficult to get started with using and operating different SDN platforms. This book will give you a practical bridge from SDN theory to the practical, real-world use of SDN in datacenters and by cloud providers. The book will help you understand the features and use cases for SDN, NFV, and OpenDaylight. NFV uses virtualization concepts and techniques to create virtual classes for node functions. Used together, SDN and NFV can elevate the standards of your network architecture; generic hardware-saving costs and the advanced and abstracted software will give you the freedom to evolve your network in the future without having to invest more in costly equipment. By the end of this book, you will have learned how to design and deploy OpenDaylight networks and integrate them with physical network switches. You will also have mastered basic network programming over the SDN fabric.
Table of Contents (18 chapters)
Title Page
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Customer Feedback
Dedication
Preface

Preface

OpenDaylight is an open source, software-defined network controller based on standard protocols. It aims to accelerate the adoption of software-defined networking (SDN) and create a solid foundation for network functions virtualization (NFV).SDN is a vast subject; many network engineers find it difficult to get started with using and operating different SDN platforms. This book will give you a practical bridge from legacy networking and SDN theory to the practical, real-world use of SDN in data centers and by cloud providers.The book will help you understand the features and use cases for SDN, NFV, and OpenDaylight. It also provides hands-on examples to build and use OpenDaylight in a test and lab environment on your computer.NFV uses virtualization concepts and techniques to create virtual network functions such as routers, firewalls, and load balancers using standard x86 servers. Used together, SDN and NFV can elevate the agility of your network architecture; generic hardware-saving costs and the advanced and abstracted software will give you the freedom to evolve your network in the future without having to invest more in costly equipment.By the end of this book, you will have learned how to design and deploy OpenDaylight networks. You will also have mastered basic network programming over the SDN fabric.

What this book covers

Chapter 1, Introduction to SDN - Transformation from Legacy to SDN, explains SDN basics and covers SDN controllers and the position of OpenDaylight in the SDN ecosystem. It will help transform a traditional, legacy networking mind into an SDN mindset.  It also covers a translation of how legacy network features, terms, protocols, and functions such as routing, switching, VLANs, and link aggregations are implemented in SDN.

Chapter 2, Overview of OpenDaylight,  is about the OpenDaylight project and its components, history, and versions. OpenDaylight is a complex project based on multiple components that are tightly integrated. The aim is to make you familiar with the architecture of OpenDaylight in order to have a better understanding of how OpenDaylight works and the logic behind it.

Chapter 3, OpenDaylight Installation and Deployment, provides step-by-step installation instructions for OpenDaylight in a virtual environment. You will learn how to install it from scratch and in a Docker container.

Chapter 4, Building a Virtual SDN Test Lab with Virtual Switches, helps you build a virtual lab using mininet virtual-SDN-enabled switches.

Chapter 5, Basic Networking with OpenDaylight, is dedicated to performing basic network operations using OpenDaylight and SDN. You will learn basic networking operations and managing the fabric using OpenDaylight.

Chapter 6, Overview of OpenDaylight Applications, is about OpenDaylight applications. You will learn about OpenDaylight application programming using model-driven SAL (MD-SAL) in very basic steps.

Chapter 7, Building SDN Applications for OpenDaylight, helps you build an SDN application on top of OpenDaylight. We will go through SDN-based network access control (NAC) to understand how to hook up to OpenDaylight and take control of packet flow decision process.

Chapter 8, Network Function Virtualization NFV, gets you familiar with the role of OpenDaylight in an NFV ecosystem. You will learn about network function virtualization (NFV) basics, the OPNFV framework, and existing NFV projects. You will also learn about service chaining, which is one of the main use cases of SDN and OpenDaylight.

Chapter 9, Building a Software-Driven Data Center with OpenDaylight, summarizes and uses all the learning of this book by integrating it into a responsive software-driven data center use case. You will learn how to integrate and automate networking tasks from OpenStack to OpenDaylight, as well as understanding the role of network orchestration in a service-provider network by evolving OSS and BSS.

What you need for this book

In order to keep up with the book, you will need to spend some time learning basic coding. Ensure that you have the following software installed:

  •  Oracle VirtualBox Or VMware workstation
  •  Ubuntu 16 server as base operating system for installation of OpenDaylight
  • Mininet virtual appliance
  •  OpenDaylight Beryllium-SR4
  •  VTN coordinator
  •  PacketFence module for OpenDaylight

Who this book is for

This book is for network professionals, network automation engineers, and developers who are working on software defined networking, network orchestration, and the cloud, in both service-provider and enterprise segments. This book tries to transform a legacy networking mindset to a software-defined networking one. Knowledge of networking is required.

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: "We can include other contexts through the use of the include directive."

A block of code is set as follows:

    01 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    02 <flow xmlns="urn:opendaylight:flow:inventory">
    03     <flow-name>Flow1</flow-name>
    04     <id>258</id>
    05     <instructions>

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

    01 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    02 <flow xmlns="urn:opendaylight:flow:inventory">
 03     <flow-name>Flow1</flow-name>
    04     <id>258</id>
    05     <instructions>

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

scp $path/controller-upgrade-2013.02.13.0921.pkg [email protected]:"

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: "Clicking the Next button moves you to the next screen."

Note

Warnings or important notes appear in a box 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 e-mailed directly to you.

You can download the code files by following these steps:

  1. Log in or register to our website using your e-mail 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.

You can also download the code files by clicking on the Code Files button on the book's webpage at the Packt Publishing website. This page can be accessed by entering the book's name in the Search box. Please note that you need to be logged in to your Packt account.

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/Learning-OpenDaylight. 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/LearningOpenDaylight_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.