Dec 10, 2025 · 5990 words · 29 min read

Architectural Thinking#

This chapter introduces the foundations of this book (I strongly recommend not skipping it!). It explains why you need to adopt this mindset, introduces a reference framework proposed by the Network Automation Forum (NAF), and shows how to leverage it in your projects.

I was part of the team that proposed the NAF Framework and actively wrote its documents, so you will find many similarities (I cannot split my brain, yet).

Part 2 dives deep into these topics. In this chapter, I will just present them to give a high-level picture before getting into the weeds. This matters because once we describe each building block, having the overall picture helps you connect the dots.

But I am a strong believer in understanding the WHY before the WHAT, so first, the reasons to use an architecture.

Why a Reference Architecture Matters#

Only the educated are free.

Epictetus

A network automation solution is a combination of multiple pieces, each playing a role. In networking, we are used to simple or monolithic solutions that try to behave as all-in-one boxes to solve all problems. This may be true to an extent, but nothing can solve all the diverse challenges and use cases alone. So, if your use case is not one of the most popular ones (I guess it is not), you may need to customize or extend. A reference architecture is that education: once you know the roles, you are free to pick any tool for each.

Without a clear reference architecture, teams often face a predictable set of problems:

  • Duplicate Effort: Multiple teams build similar tools (data sources, duplicated scripts, redundant monitoring systems) independently, wasting resources and creating inconsistent interfaces.
  • Integration Gaps: Tools do not talk to each other cleanly, forcing expensive custom integration work.
  • Unclear Responsibilities: It is unclear which tool should handle observability, orchestration, or state management, leading to confusion and finger-pointing.
  • Hard to Extend: Adding new capabilities or tools requires rethinking the entire system.
  • Knowledge Silos: Different teams use different mental models, making it hard to onboard new people or maintain solutions.

A reference architecture solves these problems by providing a single clear mental model for how automation systems should be organized. Figure 3.1 maps the decisions it settles.

Architecture Decisions

Figure 3.1: The architecture decisions map.

After all, a reference architecture is not new for network engineers. We have all grown up with our beloved OSI model. Using the OSI model provides a step-by-step, layered approach to diagnosing and understanding network problems because each layer has different responsibilities and concerns. Network professionals intuitively understand that this separation of concerns makes complex systems manageable.

In network automation, we need something similar that can guide how to develop and interconnect solutions that work together. It helps teams make consistent decisions, reuse components across projects, and evolve their automation capabilities without reinventing the wheel each time.

A Network Automation Architecture#

Start with the “A” in the section title: there is not just one architecture; there are many. An architecture is a reference framework: a way to structure thinking and guide consistent decisions.

In my career, I have contributed to three initiatives that defined architectural models (in chronological order):

  • The Network to Code (NTC) reference architecture, a collective effort led by the NTC Architecture team, designed to support efficient and understandable network automation across a wide range of use cases.
  • The book Network Programmability and Automation, 2nd Edition (O’Reilly), an effort to connect the dots across the book content with my co-authors: Matt Oswalt, Scott S. Lowe, and Jason Edelman.
  • The NAF Framework was a community project under the umbrella of the NAF, led together with Wim Henderickx, Dinesh Dutt, Claudia de Luna, Srividya Iyer, Ryan Shaw, and Damien Garros. Its goal is to help newcomers and experienced practitioners alike build automation solutions in a structured, repeatable way.

Across these iterations, I focused on maintaining consistency and learning from each one (applying to real use cases). All three approaches were useful. However, as it is the most recent one, I propose using the NAF Framework as the current best practice. The NAF Framework is community-driven and vendor-agnostic. It consolidates years of learning and is actively used by many practitioners and an engaged community.

At AutoCon5, Damien and I presented a deep dive session about the NAF Framework, which is available on YouTube.

The three are complementary rather than competing. Table 3.1 compares them, to clarify when each is most relevant:

ArchitecturePrimary focusGovernanceWhen it helps most
NTC Reference ArchitectureOpinionated tool selection and integration patternsInternal to NTC, but shared publiclyTeams working with NTC tooling who want prescriptive implementation guidance
O’Reilly Ch14Conceptual framework connecting programmability topicsPublished, staticReaders of the book who want to see how the automation concepts connect
NAF FrameworkInteroperability standard with MUST/SHOULD/MAY per moduleCommunity-maintained, vendor-neutralAny team wanting a shared reference for multi-tool, multi-vendor environments
Table 3.1: How the three reference architectures compare.

These architectures define the contracts between blocks and leave implementation choices open. Specifically, the NAF Framework proposes the architecture in Figure 3.2:

NAF Framework

Figure 3.2: The NAF Framework reference architecture.

This architecture contains the following blocks, using the definitions from the document:

  • Intent: Defines the logic to handle and the persistence layer to store the desired state of the network, including both configuration and operational expectations.
  • Executor: Encompasses the actual tasks applied to the network to drive changes (updating configuration) as guided by the intended state.
  • Collector: In contrast to the Executor, this component focuses on retrieving (reading) the actual state of the network.
  • Observability: Persists the actual state of the network and defines the logic to process it.
  • Orchestrator: Defines how the automation tasks are coordinated and executed in response to events.
  • Presentation: Provides the interfaces through which users interact with the system, including dashboards, graphical user interfaces, ITSM integrations, and Command Line Interface (CLI) tools.

The seventh block is the network itself: the infrastructure every other block reads from and acts on. The end of this section covers it.

The architecture follows from applying software engineering principles to network operations.

The NAF Framework aims to help network automation architects organize their solutions by referencing the functionalities for each module, and defining MUSTs, SHOULDs, and MAYs (using the RFC style). Then, you can decide how you implement them to solve your own use cases.

Having multiple components does not mean that you have to pick one tool per component. In many cases, you could use a tool that implements different functionalities, but this comes with compromises that you have to understand (and acknowledge).

That leads to the rule the rest of the book relies on: blocks are responsibilities, and tools host them. A block names a kind of work and who answers for it, not a box where code runs. Take an Ansible project that keeps vendor-agnostic VLAN data in its own variable files, turns it into device syntax, and then pushes it. It hosts two responsibilities: the variable files belong to the Intent block, and the translation and the delivery belong to the Executor. A collector tool that normalizes metrics as it gathers them works the same way: it hosts Observability’s processing inside the Collector. When you ask “who owns this?”, name the work first, then find the tool that hosts it.

The rule works in both directions: one responsibility can be shared by several tools, and one tool can host several responsibilities. Part 2 applies this rule in every chapter.

Now, we will go over the different blocks to introduce them before going deeper in Part 2.

Intent or Source of Truth#

Intent is all the data needed to take the network from nothing to fully operational, and through every later state: pre-provisioning, bootstrap, operation, and decommissioning of every kind of network service.

The architecture names it Intent. You will also hear Source of Truth (SoT), a term that is often misunderstood. This book uses Intent for the data and Source of Truth for the system that stores and serves it: Chapter 4 covers the first, Chapter 5 the second.

As you can imagine, this could include very diverse data, including devices, Internet Protocol (IP) addressing, data center infrastructure (racks, cables), routing protocols, virtualized services, secrets, operational limits, and service or policy abstractions. One key aspect is that this data must be structured to be understood by machines. Then, it has to support create, read, update, and delete operations and be accessible through a standardized, well-documented Application Programming Interface (API) such as Representational State Transfer (REST) or GraphQL.

By analogy with manual network management, this matches the network architect’s role: defining the design and the network schema. It also covers the network planner who defines the Bill of Materials (BOM) for a new deployment, with every detail needed to implement it.

This component should provide a consistent and unified view of the desired state, even when the data is distributed across multiple data sources. These data sources, which I refer to as Systems of Record (SoR), are the actual owners of the data. So, this is one of the first things to clarify: it is extremely rare to have only one data source, but the data has to be consistent when consolidated. Data management is a complex topic that requires data governance features, including some form of metadata like timestamps, data origin, data ownership, and validity periods, to facilitate understanding and managing this data.

To support the trust qualities of Chapter 2, this block should offer transactional and versioned access to the data that enables predictable and reliable network automation processes.

If you are trying to understand which actual tools could fit into this category, here are a few examples: CSV/YAML/JavaScript Object Notation (JSON) files, Git, NetBox, Nautobot, Infrahub, Infoblox, or any general-purpose database.

See Chapter 4 for a deep dive into the intent data itself, and Chapter 5 for the system that manages it.

Executor#

The Executor is in charge of implementing (enforcing) the desired state coming from the Intent into the actual network state. It first turns the vendor-agnostic intent into each platform’s syntax, by rendering templates or translating through vendor modules, and then delivers it, interacting with the network via different interfaces such as Secure Shell (SSH), NETCONF, gRPC Network Management Interface (gNMI)/gNOI, and REST APIs.

Continuing with the analogy to manual network management, the Executor would be the network engineer who writes the configuration in the device’s syntax from the design, connects to the network device via CLI, and enters the commands.

However, this is not as simple as copying and pasting data from one place (the intent) to another (the network). There are many operations to be taken into account, from network changes to rebooting or upgrading systems. Also, even though most of the time the reference data comes from the Intent block, in some cases, the observed data coming from Observability may influence this component, so both have to be combined.

For example, the Executor might validate device reachability before attempting changes, adapt failover logic based on current network state, or skip execution if Observability shows a critical dependency service is down. With this feedback, automation decisions reflect real-time network conditions as well as intent.

Similar to the Intent, this component should provide features such as dry run, transactional changes, and idempotency (via declarative or imperative approaches) that help build automation systems that network engineers can rely upon. This is usually the component that network engineers care most about (initially) because it is the one actually “changing” the network.

Tools that mostly fit into this category are Ansible, Terraform/OpenTofu, or any kind of scripts that leverage libraries such as Netmiko, Scrapli, NAPALM, or Nornir, or even a Kubernetes CRD (Custom Resource Definition).

Head to Chapter 6 to explore execution frameworks, idempotency patterns, and implementation strategies.

Collector#

The counterpart to the Executor, the Collector retrieves the actual operational data from the network. It uses the same interfaces as the Executor, plus others such as Simple Network Management Protocol (SNMP), syslog, or flow-based telemetry.

One important topic here, not usually considered, is the need for normalized data to be comparable. So, getting consistent metric names for all vendors (system_version defining the OS version independently of the platform) and consistent metadata to allow advanced data processing is crucial.

Examples of tools that fit into this category are Telegraf, Vector, gNMIc, pmacct, GoFlow2, Akvorado, or any kind of script that leverages libraries to fetch data from the network.

The destination of all this data is the Observability block, where the data is used to power automation decisions. Because the two are so closely related, I cover both blocks in Chapter 7. The Collector and Observability are architecturally distinct but operationally inseparable: every design decision about how to collect data is driven by what the Observability layer needs to process. Covering them together preserves that dependency and facilitates understanding.

Observability#

Closely related to the Collector, and often implemented with it, Observability receives the collected data, processes it, and stores it. It also offers programmatic access for analytics, reporting, and troubleshooting, ideally through a capable query language such as Prometheus Query Language (PromQL).

The data from this block must expose relevant discrepancies between the desired state and the actual state of the network, generating events (or alerts) that trigger mitigation systems.

Continuing with the manual network management analogy, this fits the role of the network operations center, which checks the actual state of the network and reacts accordingly.

The observed data can also be enriched with context from the intended state, which I call data enrichment, and from third-party sources such as end-of-life information, CVEs, or maintenance notifications. Enrichment makes analysis richer and correlation more accurate.

In traditional network monitoring, all the functionalities of Observability (and collection) have been integrated into one big box (tools like Nagios, LibreNMS, Spectrum, etc.). Today that monolith is giving way to combinations of specialized systems. Storage is a Time Series Database (TSDB) such as Prometheus or InfluxDB, or a search store such as Elasticsearch. Alerting is handled separately (Alertmanager), and so is visualization (Grafana, Kibana). This has led to some popular stacks: ELK (Elasticsearch, Logstash, Kibana), TIG (Telegraf, InfluxDB, Grafana), and Telegraf-Prometheus-Grafana (TPG).

Learn more about monitoring architecture, alerting strategies, and observability best practices in Chapter 7.

Orchestrator#

So far, you have seen many different components, and there is a need to coordinate them: integrating the processes of the different building blocks and creating sophisticated end-to-end automation workflows. Because of this, the Orchestrator must support multiple ways to interact, from manual triggering to fully event-driven workflows, both synchronously and asynchronously.

The workflows that the Orchestrator implements should provide ways to define multiple steps, and must also support rollback and dry-run features, relying on the other components (for example, the pre-change snapshots and dry runs of the Executor).

In manual operations, this is usually loosely defined in a checklist for a process that has to be followed.

This component provides users with an understanding of what is going on across the whole network automation system. It shows how the different processes come together via logging and traceability. A few examples here are AAP (Ansible Automation Platform) or its upstream project AWX, Windmill, or Prefect.

Where Artificial Intelligence (AI) and agents fit in the architecture: An AI agent is not a new block. It is one more component of the automation platform, and it does the work of the existing blocks through their interfaces. It reads intent from the Source of Truth and state from Observability, and it changes the network only through the Orchestrator and the Executor, under the same governance as any other change. The Orchestrator holds each agent’s definition and starts it; the work itself can sit in any block. Agents do not replace workflows. Workflows handle the cases you can predict, and agents handle the ones no workflow anticipated, inside bounds a human sets. Chapter 8 introduces the pattern in its Agentic Orchestration section, and Chapter 18 builds it into a decision layer.

Dive into Chapter 8 to learn about workflow design, event-driven automation, and orchestration platforms.

After introducing these core components of the architecture, we should not forget how important it is to expose the proper interface to the users of network automation.

Presentation#

Presentation is usually a blurry area because all the tools we have already introduced have some sort of user interface: CLI, API, or web-based. In some cases, you may decide it is good enough. In other cases, you may create your own user interface to get the best of all worlds and simplify user experience. It depends.

Traditionally, external users had phone calls and email, and network teams had the CLI and vendor tools.

One way or another, this layer must allow flexible authentication and authorization (it is the entry point of your system), and then adjust to the actual needs. Sometimes, this could be a network-specific platform, or sometimes it could integrate with company-wide systems (ServiceNow, Slack, etc.).

It could cover write or read operations, depending on the role, but always consider the needs of your different types of users to get the best results.

Explore user experience, interface design, and integration patterns in Chapter 9.

Last but not least, we have to understand the capabilities of the network to support automation, and the network is no longer just devices and cables.

The Network#

The network itself is both a constraint and an enabler for your entire automation architecture. Unlike the previous six blocks, which you have control over, the network infrastructure (your devices, platforms, services, and connectivity) may have limitations that affect what is possible. Virtualization and cloud networking have made the network a mix of physical, virtual, and cloud services.

Network capabilities fall into several categories:

  • Interfaces & Protocols: What management interfaces does your network support? SSH CLI? NETCONF? gNMI? REST APIs? SNMP? Some platforms support many, some support few. These choices directly constrain what the Collector and the Executor can do.
  • Data Models: Even if a device supports gNMI, the Yet Another Next Generation (YANG) models it exposes may be incomplete. For example, your device may claim gNMI support but not expose the specific configuration you need to manage. Understanding these gaps is critical during planning.
  • Operational Maturity: Newer platforms may have modern APIs but undocumented behaviors. Older platforms may be stable but lack APIs entirely. Test the actual maturity; the marketed features are only a starting point.

To effectively support automation, your network infrastructure should ideally provide:

  • Development & Testing Environments: Like software development, automation requires safe places to test. This might mean lab networks (often expensive and limited), virtual network environments (Containerlab, GNS3), or vendor lab images.
  • Consistent Interfaces: If 90% of your devices support NETCONF but 10% only support SSH, you will need either to standardize or to build and maintain an adapter for each interface. Every inconsistency increases complexity.
  • Adequate Telemetry: If you cannot get the data you need from your devices, Observability becomes meaningless. Ensure your devices can export telemetry (streaming telemetry, SNMP, syslog) with the granularity and detail you need.

The network is the hardest part of the architecture to change. You cannot easily swap your routers. So understand its constraints early, and design your automation within them. This is why the Network block deserves careful attention during architecture planning.

Understand network capabilities, device APIs, and test environments in Chapter 10.

Next, to summarize this section, here is a very simple use case and how the architecture maps to it.

A Practical Example#

Scenario: An application team has requested a new application segment, with a new VLAN, IP subnet, routing policy, and access control zone. The campus network runs about 800 access and distribution switches from three different vendors. The operations team needs to fulfill it end-to-end without manual CLI work on hundreds of devices.

The flow below is described by function rather than by product, on purpose: every role here can be filled by more than one tool, one tool can fill several roles, and the architecture is what tells you how they fit together. The tools named at the end are illustrative options for mapping the concepts onto something concrete, not recommendations.

How the architecture could solve it:

  1. Intent (Source of Truth): A network engineer requests the new service through the Source of Truth’s UI. The Source of Truth allocates the VLAN ID and the subnet, and resolves which switch groups the service applies to. The result is stored as the desired state for 800 devices.
  2. Orchestrator: The Orchestrator receives a webhook from the Source of Truth about the change and triggers the execution workflow, coordinating the steps in the right order and handling failures per device.
  3. Executor: The Executor reads the service definition from the Source of Truth, renders the device-specific configuration for each vendor (each of the three requires different syntax), and pushes changes via NETCONF. Each run is idempotent: running it again on already-configured switches produces no change.
  4. Collector: After deployment, the Collector connects to each switch over gNMI and retrieves actual VLAN membership, interface state, and routing entries.
  5. Observability: The collected data flows into a time-series database. A query compares desired state (from Intent) against actual state (from the Collector). Switches where the VLAN is missing are exposed as metrics and trigger alerts.
  6. Orchestrator: When an alert fires (“VLAN 412 not present on sw-b-acc-07”), the Orchestrator re-runs the Executor on that switch under a standing change for this class of drift (Chapter 16), re-collects data, and validates the fix.
  7. Presentation: A dashboard shows all 800 switches grouped by building and platform, highlighting which are compliant and which have drifted. The application team can track the rollout without CLI access. IT ops can trigger manual remediations without writing code.
  8. The Network: The success of this flow depends on what the devices actually support. On two of the three platforms, NETCONF works cleanly. Several older switches on the third only support SSH CLI, so a separate Executor adapter handles them, less elegant but necessary. No architecture removes vendor constraints; it just makes them explicit.

No single tool did this. Six functions worked together, and several products can fill each one. Intent can live in a source-of-truth platform such as Nautobot, and execution can run through a framework such as Ansible. Collection can use a gNMI collector such as gNMIc, and observability a time-series database such as Prometheus. Orchestration fits a workflow engine such as AWX, and presentation a dashboard such as Grafana. Swap any one of them and the architecture does not change, which is the whole point of having one.

This is what architectural thinking enables: systematic and composable automation.

Throughout Part 2 (Chapters 4 to 10), we return to this same campus network to explore each building block in depth. Intent and the SoT define and store the VLAN service (Chapters 4 and 5), and the Executor deploys it (Chapter 6). Observability monitors it (Chapter 7), and the Orchestrator coordinates the full lifecycle (Chapter 8). The Presentation layer exposes it to different audiences (Chapter 9), and The Network chapter closes with a simulation-based pre-production gate (Chapter 10).

How to Use an Architecture#

Now that you understand the different building blocks of the NAF network automation architecture, you might be wondering: “How do I actually get started with this in my projects?”

Sequential Approach for Adoption#

The reference architecture is a framework for thinking about and organizing your automation solutions. Adapt it; do not follow it to the letter. Figure 3.3 shows a practical, sequential approach to applying it:

Six Phase Approach

Figure 3.3: A sequential, six-phase approach to adopting the reference architecture.

Phase 1: Understand Your Current State

Start by mapping your existing tools and processes to the architectural blocks. This assessment exercise helps you identify gaps, overlaps, and potential areas for improvement:

  • Is your data scattered across multiple systems?
  • Are you collecting network state effectively, or are you flying blind?
  • How do you currently execute changes? Manually? Ad hoc scripts? Organized frameworks?

If you discover excellent execution capabilities but poor observability, you have identified a high-impact problem to solve next.

Write down five numbers at the same time, because later design decisions depend on them:

  • Scale and growth: how many devices today, and in three years. This decides when sharding and federation become necessary (Chapter 12).
  • Change rate and windows: how many changes a week, and in which hours you may make them. These decide batch and wave sizes (Chapter 6 and Chapter 8).
  • Recovery time for the automation itself: how long the network can run with the automation platform down. This sets its availability design.
  • Compliance regime: which framework audits your changes, if any. This sets the evidence you must keep (Chapter 13).
  • Data residency: where configurations and telemetry may be stored or sent. This constrains hosted tools and, later, AI models (Chapter 18).

Phase 2: Plan Your Automation Journey

Use the architecture to guide your automation roadmap. You do not need to implement all blocks at once. Start with components that address your most critical pain points:

  • If you are struggling with configuration drift, focus on Intent/Source of Truth first, then the Collector and Observability that compare the network against it.
  • If you cannot detect problems quickly, prioritize Collector and Observability.
  • If your automation is fragmented and unreliable, invest in Orchestration.
  • If users are confused about how to request changes, improve Presentation.

Prioritize by business impact, not by architectural completeness.

Phase 3: Make Better Tool & Design Decisions

When evaluating new tools or building custom solutions, ask yourself:

  • Which architectural block does this serve?
  • Does it integrate well with my other components?
  • What data flows do I need between blocks?

This prevents tool sprawl and ensures your automation ecosystem remains cohesive. It also clarifies whether you should build or buy. If a tool cleanly fits one block and has well-defined interfaces, it is usually better and cheaper to buy than build.

Write each of these decisions down as you make it. An architecture decision record (ADR) is a short file kept next to the automation code that states the context, the options considered, the choice, and its consequences. Years later, it is the only reliable answer to “why is it built this way?” (Chapter 14).

Phase 4: Design for Integration

Understanding the boundaries between components helps you design better interfaces. Key principle: components should not need to know each other’s internals.

  • Your Executor does not need to know how Intent stores data: it just needs a well-defined API to query desired state.
  • Your Orchestrator should not care whether you are using Ansible or Terraform: it just triggers execution and monitors results.
  • Your Observability system should not need to know about Collector internals: it just needs clear metrics and events.

This decoupling is what allows you to evolve each component independently.

Phase 5: Communicate with Stakeholders

The architecture provides a common language for discussing automation with different audiences (internal and external):

  • To management: “We’re strengthening our Observability posture to decrease Mean Time to Recovery (MTTR).”
  • To your team: “Let’s standardize how our Collector sends data to Observability.”
  • To other departments: “Our Presentation layer will integrate with your ITSM instance.”

Clear architectural language reduces confusion and helps secure buy-in.

Phase 6: Evolve Incrementally

The architecture allows you to swap components as your needs change:

  • Today you might use Git as your Source of Truth, but tomorrow you could adopt NetBox or Infrahub without completely redesigning your automation workflows, as long as you maintain clear interfaces.
  • You might start with a simple script as your Orchestrator, later replacing it with AAP or Windmill.
  • You can migrate from one TSDB to another in Observability without disrupting how the Collector retrieves its data.

This evolutionary approach minimizes risk and allows you to learn as you go.

Do not fall into the trap of over-engineering. The goal is not architectural purity, but practical automation that solves real problems. Sometimes the best solution is a simple script that spans multiple architectural blocks. The architecture is a guide, not a straitjacket.

The key takeaway: use the architecture as a mental model to organize your thinking, identify gaps, and make deliberate design decisions.

Common Pitfalls to Avoid#

Be realistic: you will make mistakes. But learning from others can save you a lot of pain. Here are common pitfalls I have observed:

  1. Trying to Implement Everything at Once

    It is tempting to think: “If this architecture is good, I should build all seven blocks perfectly.” That leads to massive, multi-year projects that become outdated before they are done.

    Better approach: Start with one or two blocks that solve your most urgent problem. Build incrementally. Early success builds momentum and buy-in.

  2. Believing “One Tool to Rule Them All”

    Some vendors claim their platform does everything. While that might be true, it often means:

    • You are locked into their way of doing things
    • You cannot swap out components later
    • You are paying for features you do not need

    Better approach: Choose best-of-breed tools for each block, but make sure they have clear APIs and integration points. Accept that you may need to integrate 3 to 5 tools, but you will have flexibility.

  3. Ignoring Network Constraints

    You design a beautiful Executor using gNMI, but 30% of your devices only support SSH CLI. Or you want streaming telemetry, but your older platforms only support SNMP.

    Better approach: Understand your network infrastructure’s capabilities first. These constraints shape your architecture. You cannot ignore physics, and you cannot ignore what your devices can actually do.

  4. Assuming Interfaces Will Be Simple

    You say: “The Executor will just call the Intent API for desired state.” But Intent uses NetBox with custom extensions, and the Executor expects flat YAML. Suddenly you are writing translation layers.

    Better approach: Invest up front in clear, well-documented interfaces. Use standards where possible (REST APIs, gRPC Remote Procedure Call (gRPC), clear schema definitions). Good interfaces cost less now than translation layers cost later.

  5. Building Custom Tools When Good Ones Exist

    Your team decides to build a custom Collector because “no tool exactly meets our needs”. Six months later, you have 3,000 lines of code maintaining proprietary telemetry pipelines.

    Better approach: Evaluate existing tools first (Telegraf, Vector, gNMIc). They handle 80% of use cases and they are battle-tested. Customize them or build adapters if needed, but do not build from scratch.

  6. Treating Observability as an Afterthought

    Many teams focus on Intent and Executor, then realize too late they cannot see what is actually happening in the network. Observability gets bolted on last.

    Better approach: Plan Observability from day one. What metrics will you collect? How will you detect drift? What alerts matter? Answer these before you build the Executor.

  7. Forgetting About Users

    Engineers build a powerful Orchestrator, but the only way users can interact with it is via CLI commands. Non-technical users get confused; adoption is poor.

    Better approach: Think about your users early. What interfaces do they need? APIs? Web UI? ServiceNow integration? Sometimes the Presentation layer makes or breaks adoption.

Each of these pitfalls comes from a real automation project.

Where to Start#

The architecture defines seven blocks. Nobody implements all seven at once. Two starting patterns account for the majority of real deployments.

Pattern A: Config-driven start (most common)

Teams that already manage configurations manually and want to make that process consistent and automated. Start with Intent and Executor: get a Source of Truth in place and build the playbooks to deploy from it. Decide on day one what you will need to observe, as the pitfall above warns, and build the Collector and Observability as soon as execution is stable enough to need feedback on what was actually deployed.

Pattern B: Visibility-driven start

Teams whose main pain is not knowing the current state of the network. Start with Collector and Observability: build the data pipeline first, understand what is actually deployed, then add Intent and Executor once you have a reliable picture to deploy against.

In both patterns, Orchestrator and Presentation come after the core data flows are stable. Starting with the Orchestrator before reliable Intent or Execution is premature: there is nothing meaningful to coordinate yet. Presentation becomes important once internal teams are using the automation and need a proper interface rather than direct API or CLI access.

These are starting points, not blueprints. Your constraints (existing tooling, team skills, the most urgent pain) should determine the order. Pick a starting point on purpose. Building everything in parallel usually finishes nothing.

Owning Blocks Across Teams#

Seven blocks raise an organizational question as much as an architectural one: who owns what, and how do several teams share the same blocks without stepping on each other?

Chapter 11 settles this in full. In short, three teams are involved:

  • The network automation team builds and runs the Network Automation Platform (NAP): the SoT schema and APIs, the Orchestrator, the Observability pipeline, the Presentation layer, and the shared Collector infrastructure. Its job is to keep them reliable, versioned, and available.
  • The network engineering team (or several domain teams, one per technology area) owns the network and the automation content that runs on the NAP: intended data, design patterns, and the workflow definitions for their own domain. They use the NAP; they do not maintain it.
  • A developer productivity team, where one exists, runs the Internal Developer Platform (IDP) the NAP itself runs on: repositories, pipeline runners, registries, and compute.

Block boundaries then become team boundaries. The SoT is shared, but different teams write different parts of it: the IP addressing team may own the IPAM data, the campus team the switch inventory, the security team the firewall policy data. The SoT’s Role-Based Access Control (RBAC) model must map to these ownership boundaries. A write to the wrong domain is an incident waiting to happen.

The Orchestrator splits the same way. The network automation team owns the runtime and the core change workflows; the domain teams own the workflow definitions for their domain, kept in version control and pulled by the Orchestrator at deployment, never edited in its UI. That keeps the two teams from interfering with each other’s work.

Presentation divides further. An internal API used by other automation tools belongs to the NAP. A self-service portal for application teams is a product decision, which Chapter 15 covers. Settle these boundaries early, or every team builds its own interface to the same blocks.

Summary#

Architectural thinking (or design thinking) changed my life. At some point, I started seeing every complex system as a composition of blocks that have clear boundaries and contracts that let them evolve independently (the OSI model popped up in my network engineering brain). But this approach needs a reference architecture that becomes a common lingo between engineers and vendors.

In this chapter, I explained the NAF Framework and its seven building blocks: Intent, Executor, Collector, Observability, Orchestrator, Presentation, and the Network itself. These blocks and responsibilities are defined without tangling them with the tools that host them. One tool can host many responsibilities, and one responsibility can be spread over multiple tools.

Take the framework as a reference. It can help you to assess your current state, plan the next extension, choose the best tool for the job, or clarify the integrations between the blocks (in the technical and people dimensions).

With this chapter, we close Part 1 and lay the foundation for Part 2 to go deeper into each block, providing recommendations about how to implement them in your own projects.

References#

💬 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 →