Software-Defined Networking (SDN) with OpenStack - Sriram Subramanian - E-Book

Software-Defined Networking (SDN) with OpenStack E-Book

Sriram Subramanian

0,0
38,39 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

Leverage the best SDN technologies for your OpenStack-based cloud infrastructure

About This Book

  • Learn how to leverage critical SDN technologies for OpenStack Networking APIs via plugins and drivers
  • Champion the skills of achieving complete SDN with OpenStack with specific use cases and capabilities only covered in this title
  • Discover exactly how you could implement cost-effective OpenStack SDN integration for your organization

Who This Book Is For

Administrators, and cloud operators who would like to implement Software Defined Networking on OpenStack clouds. Some prior experience of network infrastructure and networking concepts is assumed.

What You Will Learn

  • Understand how OVS is used for Overlay networks
  • Get familiar with SDN Controllers with Architectural details and functionalities
  • Create core ODL services and understand how OpenDaylight integrates with OpenStack to provide SDN capabilities
  • Understand OpenContrail architecture and how it supports key SDN functionality such as Service Function Chaining (SFC) along with OpenStack
  • Explore Open Network Operating System (ONOS) – a carrier grade SDN platform embraced by the biggest telecom service providers
  • Learn about upcoming SDN technologies in OpenStack such as Dragonflow and OVN

In Detail

Networking is one the pillars of OpenStack and OpenStack Networking are designed to support programmability and Software-Defined Networks. OpenStack Networking has been evolving from simple APIs and functionality in Quantum to more complex capabilities in Neutron.

Armed with the basic knowledge, this book will help the readers to explore popular SDN technologies, namely, OpenDaylight (ODL), OpenContrail, Open Network Operating System (ONOS) and Open Virtual Network (OVN).

The first couple of chapters will provide an overview of OpenStack Networking and SDN in general. Thereafter a set of chapters are devoted to OpenDaylight (ODL), OpenContrail and their integration with OpenStack Networking. The book then introduces you to Open Network Operating System (ONOS) which is fast becoming a carrier grade SDN platform. We will conclude the book with overview of upcoming SDN projects within OpenStack namely OVN and Dragonflow.

By the end of the book, the readers will be familiar with SDN technologies and know how they can be leveraged in an OpenStack based cloud.

Style and approach

A hands-on practical tutorial through use cases and examples for Software Defined Networking with OpenStack.

Sie lesen das E-Book in den Legimi-Apps auf:

Android
iOS
von Legimi
zertifizierten E-Readern

Seitenzahl: 164

Veröffentlichungsjahr: 2016

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

Software-Defined Networking (SDN) with OpenStack
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the color images of this book 
Errata
Piracy
Questions
1. OpenStack Networking in a Nutshell
Virtual and physical networking
Tenant isolation
Layer 2 (L2) capabilities in OpenStack
Creating a network using OpenStack CLI
Creating a subnet using OpenStack CLI
Associating a network and subnet to a virtual machine
Layer 3 (L3) capabilities in OpenStack
Creating a router using OpenStack CLI
Associating a subnetwork to a Router
Securing network traffic in OpenStack
Using security groups to secure traffic within a network
Using firewall service to secure traffic
Advanced networking services
Load Balancing as a Service (LBaaS)
Virtual Private Network as a Service (VPNaaS)
OpenStack and SDN context
Choice of technology
OpenStack API for networking
Summary
2. Introduction to Software-Defined Networking
Components of traditional networks
Key aspects of the networking planes
Challenges faced by traditional networks
Control plane challenges
Management plane challenges
SDN reference architecture
Control plane improvements with SDN
Management plane improvements with SDN
SDN and OpenStack
OpenStack and Network abstractions
OpenStack and RESTful API
OpenStack and centralized management
Summary
3. SDN Protocols
Getting familiar with SDN protocols
Open vSwitch
Configuration management protocols
Protocols
YANG
YIN
pyang
NETCONF
Netopeer
OF-CONFIG
OVSDB
JSON-RPC transport
OVSDB schema
OF-CONFIG server for Open vSwitch
Understanding OpenFlow
OpenFlow as an API
OpenFlow as a control plane
OpenFlow tables
OpenFlow matching
OpenFlow actions and instructions
OpenFlow Wireshark Dissector
Summary
4. SDN Networking with Open vSwitch
OVS Networking with Linux Network namespace
OVS networking with SDN controller
OVS and Mininet
OVS connected to virtual machines
OpenStack Neutron
Neutron services layout
Open vSwitch (OVS) plugin and agent
Summary
5. Getting Started with OpenDaylight
Introduction to OpenDaylight
Architecture of OpenDaylight
REST API
Controller platform
SAL
Protocol plugins
Installing ODL
Version
Prerequisites
Installation procedure
Installing DLUX GUI
Installing the L2 Switch package
Using ODL to manage Open vSwitch
Installing and configuring OVS
Managing OVS Using OpenDaylight
ODL and OpenStack
Summary
6. Using OpenDaylight with OpenStack
Integrating OpenDaylight with OpenStack
Components of ODL and Neutron integration
Configuring OpenStack Neutron for ODL
Installing OpenDaylight features
Configuring Neutron on the OpenStack controller node
Configuring Neutron on the compute node(s)
Verifying the complete setup
Introduction to Virtual Tenant Network (VTN)
Multi-tenancy
Virtualizing the network
Service chaining
OpenDaylight Virtual Tenant Network
VTN model
Installing VTN manager
VTN and OpenStack
VTN to OpenStack entity mapping
Summary
7. Getting Started with OpenContrail
Introduction to OpenContrail
History
Use cases
OpenContrail architecture
vRouter
Compute Node components
Functions of vRouter agent
Functions of vRouter forwarding plane
Controller
Configuration Node
Control Node
Analytics Node
Scalability
Putting it all together
Installing OpenContrail
Version
Prerequisites
Installing OpenContrail
OpenContrail and OpenStack
Neutron and Nova integration
High-level flow of requests from OpenStack
Summary
8. OpenContrail Networking with OpenStack
OpenContrail integration with OpenStack
DevStack-based installation
OpenStack services used by OpenContrail
Virtual network management in OpenContrail
Creating virtual networks and VM instances
Monitoring virtual router and virtual networks
Flow of data packets in OpenContrail
Traffic isolation using encapsulation
Flow of packets in OpenContrail
Service chaining using OpenContrail
Summary
9. Open Network Operating System (ONOS)
Introduction to ONOS
Architecture of ONOS
Prerequisites for installing ONOS
Installing ONOS
Installing application components
Using ONOS to manage Open vSwitch
Intent framework
Distributed ONOS
Central Office Re-architected as Datacenter
Extensible Cloud Operating System
Summary
10. OVN and Open vSwitch Enhancements
Open vSwitch components in network node
Neutron DHCP
Neutron routing
Neutron DVR
Open vSwitch components in compute host
OVN - Native Virtual Networking Open vSwitch
Drivers for OVN
Working with OVN
OVN firewall
OVN and OpenStack
Running OVN using DevStack
Mapping of Neutron and OVN object models
Network and logical switch
Subnet and DHCP
Neutron port and OVN port
Other mappings
OVN's roadmap for OpenStack
Neutron Dragonflow
Data Path Development Kit (DPDK)
Open vSwitch with DPDK
Neutron with Open vSwitch + DPDK
Summary

Software-Defined Networking (SDN) with OpenStack

Software-Defined Networking (SDN) with OpenStack

Copyright © 2016 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: October 2016

Production reference: 1211016

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-78646-599-3

www.packtpub.com

Credits

Authors

Sriram Subramanian

Sreenivas Voruganti

Copy Editor

Safis Editing

Reviewer

Alberto Morgante Medina

Project Coordinator

Sheejal Shah

Commissioning Editor

Kartikey Pandey

Proofreader

Safis Editing

Acquisition Editor

Prachi Bisht

Indexer

Rekha Nair

Content Development Editor

Divij Kotian

Production Coordinator

Melwyn Dsa

Technical Editor

Shivani K. Mistry

Cover Work

Melwyn Dsa

About the Authors

Sriram Subramanian is an experienced professional with over 19 years' experience of building networking and network management products. Since 2011, Sriram has been working with Juniper Networks, leading engineering teams responsible for OpenStack Neutron plugins, VMware integration, and network management products. He is a technologist with a passion for virtualization and cloud networking. Sriram blogs regularly at http://www.innervoice.in/blogs and loves experimenting with new technologies and programming. He is the author of OpenStack Networking Cookbook, Packt.

I would like to dedicate this book to my family. I want to thank my wife, Kala, for her support during this entire project. Her "give your best" attitude motivates me to strive harder in managing my time and energy effectively. I also want to thank Appa and Amma for their patience and blessings. And a special thank you to my daughter Navya and our labrador Neige for the joie de vivre they bring to my life.

I extend a special thank you to my employer, Juniper Networks, and specifically my manager, Rakesh Manocha. The leadership team at Juniper has created an environment where individuals can pursue excellence through innovation. It has helped me expand my knowledge and capabilities beyond my imagination.

I would like to express my gratitude to my publishers, Packt and the reviewers, who provided invaluable feedback. Thanks to Divij Kotian, our editor, who played a crucial role keeping this book project on track. Finally, a big thank you to Sreeni for being a great co-author and partner on this exciting book journey.

Sreenivas Voruganti is presently driving IoT solutions at Aricent. He previously led engineering teams responsible for building networking, wireless LAN, and SDN products at Juniper Networks. He has contributed to building a range of IP and ATM-based Telco products at Lucent Technologies, Tellabs, and BHEL.

He is an avid student of emerging trends in networking and virtualization technologies and is passionate about integrating them to deliver solutions. His current interests include IoT, SDN, and NFV.

He is an inventor and has US Patent grants on networking, QoS, and wireless.

What started as an idea over coffee has come to form thanks to Sriram's drive and insightful ideas on book writing. Thanks, Sriram, for all the fun times working together.

I would like to dedicate this book to my parents for their blessings and wishes, to my wife, Nimmi, and sons, Aaditya and Arjun, for unstinting support through this endeavor.

Thanks to Alberto for valuable review comments, Divij Kotian, our editor, for fantastic support, Shivani for great job in editing the content, and our publishers Packt.

Finally, a big thank you to all the folks who contributed to the SDN open source implementations and friends who helped refine my understanding.

About the Reviewer

Alberto Morgante Medina is an engineer who's passionate about cloud computing. He loves new technologies, and he thinks that SecDevOps is the way to improve and apply them. He's always looking for new challenges. He has been working on OpenStack, several SDN solutions, information security, and other related IT areas since 2010. He is currently working at BBVA Bank as an innovation engineer. Before that, he worked at Telefónica as a cloud computing and security engineer.

www.PacktPub.com

For support files and downloads related to your book, please visit www.PacktPub.com.

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

https://www.packtpub.com/mapt

Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt books and video courses, as well as industry-leading tools to help you plan your personal development and advance your career.

Why subscribe?

Fully searchable across every book published by PacktCopy and paste, print, and bookmark contentOn demand and accessible via a web browser

Preface

OpenStack is rapidly becoming the prominent open source platform for building public and private clouds. OpenStack-based clouds are built on three important pillars, namely, compute, storage, and networking. The strength of these pillars determines the robustness, scale, and performance of your OpenStack cloud.

The classic networking landscape is changing, with SDN approach to building networks becoming mainstream, backed by superior economics and the fact that it is a platform for innovation. We believe that the SDN application space will only grow bigger, with innovative applications that are currently in their infancy and it is essentially replacing the conventional network application with the SDN approach.

With both OpenStack and SDN poised for rapid adoption, it is important to understand the key technologies at their intersection. The intent of the book is to provide an overview of the key SDN technologies and their relevance with respect to OpenStack, in a simple and easy to understand format to encourage the reader to dig into the details for deeper insights.

What this book covers

Chapter 1, OpenStack Networking in a Nutshell, provides an overview of OpenStack Networking using Neutron. After introducing core networking constructs such as network, subnet, and port, the chapter will highlight different networking services within OpenStack such as routing, firewall, and VPN.

Chapter 2, Introduction to Software-Defined Networking, introduces the readers to the concepts related to software-defined network. We will look at the challenges in traditional networking, especially in the rapidly evolving cloud infrastructure use case. We introduce different SDN's concepts by highlighting the advantages of traditional networking.

Chapter 3, SDN Protocols, delves into the underlying components and protocols that enable the SDN-based architecture. We will introduce Open vSwitch (OVS), a popular virtual switch in SDN and OpenStack environments and help you gain insights into SDN building blocks.

Chapter 4, SDN Networking with Open vSwitch, begins with lightweight virtual networking with a Linux network namespace and Open vSwitch functioning as a conventional L2 switch. We will then bring OpenFlow into the mix to depict flow-based networking with virtual machines, interfacing with SDN controller. We will introduce Mininet, a network emulation tool for prototyping network topologies. Finally, we will depict the architecture of Neutron, the networking component of OpenStack.

Chapter 5, Getting Started with OpenDaylight, will help the user get started with OpenDaylight (ODL) as an SDN technology. From an architectural overview of installation and configuration, the goal of this chapter is to give the readers a high-level overview of ODL.

Chapter 6, Using OpenDaylight with OpenStack, will cover ODL-based network service provisioning in OpenStack. Starting with simple multi-tenant virtual networks, the chapter will move on to advanced services such as load balancers and service chaining using ODL. We will also show high-level APIs and the programmability of ODL.

Chapter 7, Getting Started with OpenContrail, helps the user get started with OpenContrail as an SDN technology. From an architectural overview of installation and configuration, the goal of this chapter is to give the audience a high-level overview of OpenContrail.

Chapter 8, OpenContrail Networking with OpenStack, explains OpenStack and OpenContrail integration. Starting with simple multi-tenant overlay networks, the chapter will move on to advanced services, such as security and service chaining using OpenContrail.

Chapter 9, Open Network Operating System (ONOS), starts with an introduction to ONOS its architecture, and then explores ONOS integration with Open vSwitch (OVS). We will conclude the chapter with a quick introduction to using ONOS in an OpenStack environment.

Chapter 10, OVN and Open vSwitch Enhancements, outlines the limitations in the classic Neutron architecture and covers solutions such as OVN, Distributed Virtual Router (DVR), Dragonflow, and Open vSwitch Data Path Development Kit (OVS-DPDK). The chapter covers how OVN integrates with OpenStack and the mapping of their object model.

What you need for this book

While SDN is being driven by solutions both from vibrant open source community and from networking vendors we focused on leveraging the open source software with a hands-on approach to gaining technology and implementation insights. You will need computers or servers running on a Intel x86 processor with VT extensions, at least 4 GB RAM and 100 GB HDD. Each computer will require at least three network interfaces.

Considering the rapid updates to technology and implementation we strongly recommend following the relevant links supplied for topics for further reading.

Who this book is for

The target audience for this book is system and network administrators, IT data center managers, cloud infrastructure providers, and users of private and public clouds. It will also be a good introduction for networking enthusiasts.

The readers are assumed to have a very basic knowledge of OpenStack, networking, and Linux. Armed with the basic knowledge, this book will help the readers get an overview of popular SDN technologies and how these are used in an OpenStack-based cloud infrastructure.

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 neutron firewall-create command supports an option to pick a specific router as well."

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

$ sudo apt-get install openvswitch

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: "In the left navigation bar, click on the Nodes."

Note

Warnings or important notes appear in a box like this.

Tip

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 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/SoftwareDefinedNetworkingwithOpenStack_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.

Chapter 1.  OpenStack Networking in a Nutshell

Information technology (IT) applications are rapidly moving from dedicated infrastructure to a dynamic cloud-based infrastructure. This move to cloud started with server virtualization, where a hardware server ran as a virtual machine on a hypervisor. The adoption of cloud-based applications has accelerated due to factors such as globalization and outsourcing, where diverse teams need to collaborate in real time.

Server hardware connects to network switches using Ethernet and IP to establish network connectivity. However, as servers move from physical to virtual, the network boundary also moves from the physical network to the virtual network. Traditionally, applications, servers, and networking were tightly integrated. But modern enterprises and IT infrastructure demand flexibility in order to support complex applications.

The flexibility of cloud infrastructure requires networking to be dynamic and scalable. Software-Defined Networking (SDN) and Network Function Virtualization (NFV) play a critical role in data centers in order to deliver the flexibility and agility demanded by cloud-based applications. By providing practical management tools and abstractions that hide the underlying physical network's complexity, SDN allows operators to build complex networking capabilities on demand.

OpenStack is an open source cloud platform that helps build public and private cloud at scale. Within OpenStack, the name for the OpenStack Networking project is Neutron. The functionality of Neutron can be classified as core and service.

This chapter aims to provide a short introduction to OpenStack Networking. We will cover the following topics in this chapter:

Understanding traffic flows between virtual and physical networksNeutron entities that support Layer 2 (L2) networkingLayer 3 (L3) or routing between OpenStack networksSecuring OpenStack network trafficAdvanced networking services in OpenStackOpenStack and SDN