Network Programmability with YANG: The Structure of Network Automation with YANG, NETCONF, RESTCONF, and gNMI

Book description

Today, networks must evolve and scale faster than ever. You can’t manage everything by hand anymore: You need to automate relentlessly. YANG, along with the NETCONF, RESTCONF, or gRPC/gNMI protocols, is the most practical solution, but most implementers have had to learn by trial and error. Now, Network Programmability with YANG gives you complete and reliable guidance for unlocking the full power of network automation using model-driven APIs and protocols.

Authored by three YANG pioneers, this plain-spoken book guides you through successfully applying software practices based on YANG data models. The authors focus on the network operations layer, emphasizing model-driven APIs, and underlying transports.

Whether you’re a network operator, DevOps engineer, software developer, orchestration engineer, NMS/OSS architect, service engineer, or manager, this guide can help you dramatically improve value, agility, and manageability throughout your network.

  • Discover the value of implementing YANG and Data Model-Driven Management in your network

  • Explore the layers and components of a complete working solution

  • Build a business case where value increases as your solution grows

  • Drill down into transport protocols: NETCONF, RESTCONF, and gNMI/gRPC

  • See how telemetry can establish a valuable automated feedback loop

  • Find data models you can build on, and evaluate models with similar functionality

  • Understand models, metadata, and tools from several viewpoints: architect, operator, module author, and application developer

  • Walk through a complete automation journey: business case, service model, service implementation, device integration, and operation

  • Leverage the authors’ experience to design successful YANG models and avoid pitfalls

Table of contents

  1. Cover Page
  2. About This eBook
  3. Half-Title Page
  4. Title Page
  5. Copyright Page
  6. Credits
  7. Dedication Page
  8. Table of Contents
  9. Feedback Information
  10. Acknowledgments
  11. About the Authors
    1. About the Technical Reviewers
  12. Command Syntax Conventions
  13. Introduction
    1. Goals and Methods
    2. Who Should Read This Book?
    3. How This Book Is Organized
  14. Chapter 1. The Network Management World Must Change: Why Should You Care?
    1. Introduction
    2. The Industry Has Changed: What Are the Trends?
    3. Existing Network Management Practices and Related Limitations
    4. Data Modeling Is Key for Automation
    5. Interview with the Experts
    6. Summary
    7. References in This Chapter
    8. Endnotes
  15. Chapter 2. Data Model–Driven Management
    1. The Beginning: A New Set of Requirements
    2. Network Management Is Dead, Long Live Network Management
    3. YANG: The Data Modeling Language
    4. The Key to Automation? Data Models
    5. The Management Architecture
    6. Data Model–Driven Management Components
    7. The Encoding (Protocol Binding and Serialization)
    8. The Server Architecture: Datastore
    9. The Protocols
    10. The Programming Language
    11. Telemetry
    12. The Bigger Picture: Using NETCONF to Manage a Network
    13. Interview with the Experts
    14. Summary
    15. References in This Chapter
    16. Endnotes
  16. Chapter 3. YANG Explained
    1. Introduction
    2. Describe Your World of Data
    3. Describing Possible Events
    4. Separating Configuration from Operational Data
    5. Constraints Keep Things Meaningful
    6. Augmenting, Extending, and Possibly Deviating
    7. Network Management Datastore Architecture (NMDA)
    8. Interview with the Expert
    9. Summary
    10. References in This Chapter
  17. Chapter 4. NETCONF, RESTCONF, and gNMI Explained
    1. Introduction
    2. NETCONF
    3. RESTCONF
    4. OpenConfig and gNMI
    5. Interview with the Expert
    6. Summary
    7. References in This Chapter
  18. Chapter 5. Telemetry Explained
    1. Introduction
    2. Data Model–Driven Telemetry
    3. Moving Away from SNMP to Telemetry
    4. Telemetry Use Cases
    5. Telemetry Components
    6. Telemetry Standard Mechanisms
    7. Interview with the Experts
    8. Summary
    9. References in This Chapter
    10. Endnotes
  19. Chapter 6. YANG Data Modeling Developments in the Industry
    1. Introduction
    2. The Beginning: The IETF
    3. Embracing YANG Throughout the Industry
    4. The OpenConfig YANG Model
    5. Industry Coordination Is Required
    6. Interoperability Testing
    7. Implementing More Than One YANG Model for a Specific Functionality
    8. Interview with the Expert
    9. Summary
    10. References in This Chapter
    11. Endnotes
  20. Chapter 7. Automation Is as Good as the Data Models, Their Related Metadata, and the Tools: For the Network Architect and Operator
    1. Introduction
    2. Getting to Know the Structure of a YANG Module
    3. Finding the Right Modules Using the YANG Catalog
    4. Interacting with Devices
    5. Interview with the Experts
    6. Summary
    7. Endnotes
  21. Chapter 8. Automation Is as Good as the Data Models, Their Related Metadata, and the Tools: For the Module Author
    1. Introduction
    2. Designing Modules
    3. Understanding Your Module’s Impact
    4. Interview with the Expert
    5. Summary
    6. Endnotes
  22. Chapter 9. Automation Is as Good as the Data Models, Their Related Metadata, and the Tools: For the Application Developer
    1. Introduction
    2. Working with YANG Modules
    3. Interacting with the Network
    4. Making YANG Language Native
    5. Interview with the Expert
    6. Summary
    7. Endnotes
  23. Chapter 10. Using NETCONF and YANG
    1. Introduction
    2. So the Story Goes
    3. Top-Down Service Model
    4. Bottom-Up Device Templates
    5. Service Logic Connecting the Dots
    6. Setting Up NETCONF on a Device
    7. Discovering What’s on a Device
    8. Managing Services
    9. Manager Synchronization with Devices
    10. Network-Wide Transactions
    11. Interview with the Experts
    12. Summary
  24. Chapter 11. YANG Model Design
    1. Introduction
    2. Modeling Strategy
    3. YANG Modeling Tips
    4. Common YANG Mistakes
    5. Backward Compatibility
    6. Interview with the Experts
    7. Summary
    8. References in This Chapter
  25. Index
  26. Code Snippets

Product information

  • Title: Network Programmability with YANG: The Structure of Network Automation with YANG, NETCONF, RESTCONF, and gNMI
  • Author(s): Benoît Claise, Joe Clarke, Jan Lindblad
  • Release date: May 2019
  • Publisher(s): Addison-Wesley Professional
  • ISBN: 9780135180471