Nov 1, 2025 · 1884 words · 9 min read

Preface#

Most network automation projects start with a single script that works. Then, it grows, one script at a time, until it becomes a mess that only each script’s author understands (and trusts). This book is about what comes after that first script: how to approach network automation design with an architectural mindset so it becomes something everyone can rely on, whether it is a 100-device campus network or a hyperscaler with hundreds of thousands.

This book comes from years of designing, building, and operating network automation in different organizations. I have been fortunate to learn from the best (thank you all!), and I feel that this is my way to give back to the community.

The patterns here are the ones that I have applied in the most successful projects, skipping the ones that did not pay off. In almost every chapter you will find a short failure story to situate you in the scenarios that automation came to solve (I am sure that many people will recognize some horror stories between the lines).

The complete book is free to read at designingnetworkautomation.com.

The website is the main reference. It always has the latest version, the corrections (tracked in the Errata section), and the translations. The printed book and the ebook are snapshots of it, for readers who prefer a copy they can hold, annotate, or read offline. I commit to keeping their price close to the minimum the distribution channel allows.

Why This Book Is Self-Published#

I have worked with publishers before (and I still do), but I decided to turn down any offers for this book. The reason is in the box above: I wanted it to stay free to read.

As you may guess, publishers are usually not fans of having the full text free online, and because of the license, CC BY-NC-SA 4.0, anyone can translate it for non-commercial use, with no rights negotiation.

Last but not least, network automation moves fast, so I want to retain the capability to correct and extend the content along the way.

How This Book Was Written#

I wrote this book. The ideas, the architecture, the stories, the opinions, and the decisions are mine, and so are its mistakes. It took 14 months and hundreds of hours on top of a full-time job at a hyperscaler, and I rewrote many chapters more than once to get them to say what I meant.

I used Claude, Anthropic’s AI assistant, for the work a publisher’s editorial team usually does on a final draft: grammar and readability, the consistency of terms and cross-references across eighteen chapters, and the figures, which it generated as code in SVG. I reviewed and adjusted every page.

Who This Book Is For#

This book is for everyone who has to build or understand network automation solutions that go beyond ad hoc scripts:

  • Network engineers who want to understand how software engineering principles apply to network operations
  • Network architects designing automation platforms for large-scale environments
  • Engineering managers planning automation initiatives and transformation roadmaps
  • DevOps and platform engineers integrating the network into their toolchains
  • Technical leaders evaluating automation strategies and organizational approaches

Prerequisites#

The book assumes networking fundamentals and very little software engineering expertise. Software concepts are introduced as they apply to network automation, so a traditional network engineer can follow every chapter, and readers with hybrid backgrounds still find enough depth.

You will get more from it if you know the basics of:

  • Network protocols and operations (e.g., IP, BGP)
  • Version control with Git
  • APIs, REST, and JSON
  • Some programming or scripting (e.g., Python, shell)

You will not run any code, though. None of the snippets in the book are complete, runnable programs.

How the Book Is Organized#

The book covers three main areas that are needed to build solid network automation strategies:

  • An architectural foundation. A way to think about network automation as an architecture rather than a pile of tasks: the building blocks, the design principles, and the decisions.
  • Practical guidance. Concrete patterns, real failure stories, and worked examples you can adapt to your own environment, scale, and organization.
  • The organizational aspect. Technical excellence alone is not enough; the people, culture, and processes around it are equally important.

But the book is not a cookbook. I have already written many of them, so this one was designed from the beginning to provide guidance without concrete implementation details. It uses diagrams, short listings, and pseudocode rather than complete code, so that it stays relevant as tools change. The references at the end of each chapter point to the hands-on books, several of them mine, that cover the tools in depth.

The book has five parts, from foundations to advanced patterns.

Part 1: Rethinking Networking with Automation#

Why automation needs an architecture, the design principles it rests on, and the reference framework the rest of the book uses.

  • Chapter 1 - The Automation Imperative: Why automation architectures matter and what scale really means
  • Chapter 2 - Design Principles: Six principles that make automation trustworthy, from intent-driven to dry-run friendly, and the design decisions they shape
  • Chapter 3 - Architectural Thinking: The reference architecture of seven building blocks the rest of the book uses, and how to adopt it

Part 2: Architectural Building Blocks#

One chapter per building block: its role in the overall system, its functionalities, and a worked example on the same campus network.

  • Chapter 4 - Network Intent: The data the Source of Truth has to hold, and the structure that keeps it correct
  • Chapter 5 - The Source of Truth: Storing, serving, and federating intent, and keeping it reliable as a live dependency
  • Chapter 6 - Execution: Applying intent to devices safely: idempotency, batching, and rollback
  • Chapter 7 - Observability: Collecting, normalizing, and acting on network state, from inventory to alerting
  • Chapter 8 - Orchestration: Coordinating the other blocks through durable, traceable workflows
  • Chapter 9 - Presentation: The API, interfaces, and integrations through which people and systems use the NAP
  • Chapter 10 - The Network: What the network itself allows, and how to test against it before production

Part 3: Designing for Scale, Reliability, and Trust#

The building blocks run together as a platform people depend on. Part 3 separates the Internal Developer Platform that runs the software from the Network Automation Platform that delivers network changes. Then it makes that NAP survive real load and failures, and prove that every change it makes was authorized, validated, and recorded.

  • Chapter 11 - Platform Engineering: Building the Network Automation Platform on an Internal Developer Platform, and following one change end-to-end
  • Chapter 12 - Scaling and Reliability: Keeping the NAP working under load and partial failure, and measuring that it does
  • Chapter 13 - Security, Governance, and Compliance: Identity, policy, and evidence that answer an auditor’s questions by query

Part 4: Human and Organizational Dimension#

The people and the organization around the automation. A working NAP is not enough on its own: whether it gets used depends on skills, trust, and how its services are offered.

  • Chapter 14 - Cultural Shift: New roles and skills, and how a team adopts and sustains automation
  • Chapter 15 - The Network as a Product: Treating each network service as a product, from service contract to service levels and lifecycle

Part 5: Patterns and Use Cases#

Three loops that build on everything before them, each running the same five stages: one keeps the configuration equal to intent, one keeps the service healthy, and one chooses a plan within bounds a human sets.

  • Chapter 16 - Closed-Loop Automation: Keeping the running network equal to declared intent
  • Chapter 17 - Self-Healing Networks: Keeping the service healthy when the configuration is right and a path is not
  • Chapter 18 - Autonomous Networks: Choosing a plan within bounds a human sets, and the guardrails that keep it safe

How to Read It#

Read the parts in order if you are new to network automation architecture: each one builds on the previous. Part 2 can be read selectively if you are focused on one building block. Part 3 assumes Part 2, and Parts 4 and 5 assume Parts 1 to 3.

Experienced practitioners can go straight to the chapter that matches a current project. Almost every chapter opens with a failure story that works as the starting point for the chapter. As with other architecture books, and especially in Part 4, it works best when a team reads it and talks about it.

Conventions Used in This Book#

Callouts. Three kinds of box set material apart from the main text:

An aside worth knowing: background, a related idea, or a pointer to further reading. You can skip a note and still follow the argument.

A hazard: a mistake that is easy to make and expensive to undo. Warnings are worth reading even when you skim.

A limit on the scope of a claim. Most often it says that the tools or products named nearby are examples, not recommendations.

Stories. Almost every chapter opens with a failure story in a shaded box: the kind of incident that taught the chapter’s lesson. The stories are composites, built from real incidents with details changed and combined, so no team or network in them is identifiable.

Quotes. Short epigraphs, centered and in italics, introduce an idea that the text around them then applies to networks.

Named patterns. A pattern with an established name, such as the Saga Pattern or the Bulkhead, appears in bold where it is introduced.

Numbering. Figures, tables, and listings are numbered by chapter, so Figure 8.4 is the fourth figure in Chapter 8. Cross-references to other chapters use the chapter number, and on the website they are links.

Terms. Technical terms and abbreviations are spelled out the first time they appear in each chapter. On the website, each one also links to its entry in the glossary.

Vendors and products. The book is vendor-neutral. Running examples use generic platforms, Vendor A, Vendor B, and Vendor C, so that the patterns do not depend on one product. Where real tools are named, they illustrate a category, and they will change faster than the patterns.

Running examples. Part 2 follows one campus network of about 800 switches through every building block. Part 3 follows one firewall change through the NAP, Part 4 a retail expansion, and Part 5 a global content network with thirty points of presence.

A Living Book#

The book evolves with me. The content, examples, and recommendations are refined as I learn something new or change my mind, and with readers’ feedback. The website always has the latest version.

Errata#

When I find an error in the book, I fix it on the website first. A printed or ebook copy keeps the text it had on the day it was published, so it can fall behind.

To see what changed since your copy, find its version number on the copyright page. Then open the errata page at designingnetworkautomation.com/errata. It lists every correction made since each version.

Getting in Touch#

Your feedback, questions, and corrections are welcome, and they shape the next version.

Are you ready? Let us begin.

💬 Found something to improve? Send feedback for this chapter

📖 Enjoying the book? It is also available on Kindle and in paperback. Get it on Amazon →