NETWORKS · CCNA V1.1 · CHAPTER 13

Automation and programmability

You close the course with the biggest paradigm shift in networking: stop typing commands box by box and start programming the whole network from a controller. SDN, APIs, SD-Access, DNA Center, REST and the tools that configure the network with code.

50 min read · 3 sessionsDomain 6 · Automation and programmabilityLevel: intermediateAGLE method · A, G, L, E
AGLE methodSelf-studyAll the chapter text, at your own pace.

From point A to point B

Point A: you can configure a router or a switch from the CLI, but if you were asked to change a VLAN on a hundred boxes you would do it by hand, one by one; «SDN», «controller», «API», «REST», «JSON» or «Ansible» ring a bell but you don’t know what they have to do with the network. Point B: by the end you will explain what a controller and the network planes are, tell the Southbound and Northbound APIs apart, describe SD-Access and DNA Center, read a REST API, recognize JSON, XML and YAML, and compare Ansible, Puppet and Chef.

This chapter covers domain 6 of the v1.1 exam (automation and programmability) and is built on Jesús Espinoza’s SDN series. It is the close of the course and the most conceptual one: almost no commands, but a change of mindset. Your new focus will be to model and provision the network, not just operate it with repetitive tasks a computer can do faster and cheaper.

The controller and the control planes

An SDN controller is centralized software from which all the network devices are controlled more easily and based on programmability. It replaces the traditional model, known as the distributed control plane. It can be anywhere in the network: its only requirement is IP reachability.

Traditional vs. controller-based networkIn the traditional model (distributed control plane) each box has its own control and is configured by hand over the CLI: slow, costly and error-prone. In the controller-based model, an SDN controller centralizes control and programs the whole network by software.DISTRIBUTED CONTROL (CLI) vs CENTRAL SDN CONTROLLERTRADITIONALAdministratorCLI to each boxCONTROLLER-BASEDAdministratorSDN controllerPrograms the whole network

Distributed control (each box, over the CLI) vs. a central SDN controller. Diagram: The House of Routing.

To understand SDN you have to remember that every router and switch works in three functional planes.

The functional planes of the networkEvery router or switch works in three planes. The data plane forwards packets; the control plane decides where (routing, STP, MAC/ARP tables); the management plane is how you administer it (Telnet, SSH). In the traditional model control is distributed; SDN separates it and centralizes it in a controller.MANAGEMENT · CONTROL · DATA (FORWARDING)MANAGEMENT PLANEHow you administer the device · Telnet · SSHCONTROL PLANEDecides the path · routing · STP · MAC, ARP, IP tablesDATA PLANEForwards frames · encapsulates · applies ACL and Port Security

Management, control and data. Diagram: The House of Routing.

  • Data plane (forwarding plane): all the activities to send the data: encapsulating frames, matching them with the IP forwarding table, filtering with ACL or Port Security.
  • Control plane: any activity that controls the data plane. It creates and maintains the tables the data plane uses (IP routing, MAC, ARP, STP). Routing protocols are part of the control plane.
  • Management plane: the protocols with which you administer and configure the device, such as Telnet and SSH.

In the traditional model each box has its own control plane, working in sync with the others: this is the distributed control plane. SDN separates the control plane from the data plane and centralizes it in the controller, achieving faster, more consistent management with fewer human errors.

The APIs: Southbound and Northbound

An API (Application Programming Interface) is code a programmer writes so two applications can exchange data. To be consumed, an API needs an address or URI (Uniform Resource Identifier), which identifies the resource, and it can take parameters (what comes after the question mark) to filter the information.

SDN architecture: the controller, NBI and SBIThere is an SDN architecture when the control plane is physically separated from the data plane: a controller manages the boxes. On top, the Northbound API (NBI) connects the controller with third-party applications (REST). Below, the Southbound API (SBI) programs the forwarding tables of the boxes.APPLICATIONS · CONTROLLER · INFRASTRUCTURETHIRD-PARTY APPLICATIONSCRM, ERP, monitoring, mobile and IoT appsNorthbound API (NBI) — REST — toward the applicationsSDN CONTROLLERCentralizes the control plane · global view of the networkSouthbound API (SBI) · Telnet · SSH · SNMP · NETCONF · RESTCONF · OpenFlowINFRASTRUCTURESwitches and routers (data plane)

The controller with its Northbound and Southbound APIs. Diagram: The House of Routing.

There is an SDN architecture when the control plane is physically separated from the data plane, that is, when a controller manages the boxes. The controller has two programming interfaces:

  • SBI — Southbound Interface: the API that looks «down» (south), between the controller and the network devices. Its purpose is for the controller to program the forwarding tables (data plane) of the boxes. This is where the network management protocols run: Telnet, SSH, SNMP, NETCONF, RESTCONF, OpenFlow, OpenFlex and BGP.
  • NBI — Northbound Interface: the API that looks «up» (north), between the controller and third-party applications (CRM, ERP, monitoring systems, mobile apps, IoT). It is usually a REST API.

An easy way to remember it: when we talk about integration with applications, it is the NBI; when we talk about network management protocols, it is the SBI.

SD-Access (SDA) architecture

SD-Access (SDA), or Software Defined Access, is Cisco’s SDN proposal for the enterprise network (its data-center counterpart is ACI, with the APIC controller and intent policies applied to endpoint groups). SDA offers an operational mode different from the traditional one, is managed with DNA Center and relies on a spine-leaf topology.

Cisco SD-Access (SDA) architectureSDA is Cisco’s SDN proposal for the enterprise network, managed by DNA Center over a spine-leaf topology. It splits the network into underlay (the boxes and their physical IP connectivity) and overlay (VXLAN tunnels that carry the data end to end); the sum of both is the fabric. It uses LISP to locate the endpoints.FABRIC = UNDERLAY + OVERLAY · VXLAN · LISPOVERLAYVXLAN tunnels · carries the dataUNDERLAYBoxes and physical IP connectivityFABRIC = UNDERLAY + OVERLAYFabric nodeFunctionEdge nodeAccess: connects the endpoints (like the access switch)Border nodeConnects the SDA network with outside the domainControl nodeLISP map server: locates the endpoints (RLOC)

Underlay, overlay, fabric and the fabric nodes. Diagram: The House of Routing.

SDA splits the network, logically and physically, with its own terminology:

  • Underlay: all the boxes and the physical connections that provide basic IP connectivity.
  • Overlay: the VXLAN tunnels that encapsulate the data and carry it from one end of the fabric to the other.
  • Fabric: the sum of underlay + overlay, managed as a unit.

The underlay has three node types: the edge node (access, where the endpoints connect), the border node (connects the SDA network with outside the domain) and the control node, which runs LISP (Locator ID Separation Protocol) as a map server to locate the endpoints. The SDA network uses a routed access layer: there is no longer VLAN, STP or HSRP as in the traditional model. It is deployed as a new project (green field) or by migrating gradually from the traditional network.

Cisco DNA Center

Cisco DNA Center (Digital Network Architecture) is Cisco’s software-based SDN controller, which can come preinstalled as an appliance. It is the controller that manages SDA, but it also supports traditional (non-SDA) networks.

Cisco DNA CenterDNA Center is Cisco’s SDN controller, built on the IBN (Intent-Based Networking) paradigm. It offers its NBI toward the applications and its SBI (Telnet, SSH, RESTCONF) toward the boxes. It manages both SDA networks and traditional (non-SDA) networks and replaces the old Cisco Prime Infrastructure.IBN CONTROLLER · NBI (APPS) · SBI (TELNET / SSH / RESTCONF)APPLICATIONSNorthbound API (NBI)CISCO DNA CENTERIBN controller · automates and assuresSouthbound API (SBI) · Telnet · SSH · RESTCONFSDA network (modern)Traditional network (non-SDA)

DNA Center as an IBN controller, with NBI and SBI, over SDA and traditional networks. Diagram: The House of Routing.

Like any controller, it has its NBI (toward the applications) and its SBI (Telnet, SSH, RESTCONF). Its great value is that it is built on the IBN (Intent-Based Networking) paradigm: «DNA Center is IBN ready». Its goals are to reduce costs and risks, improve security and compliance, and achieve fast provisioning with automation and programmability.

DNA Center replaces, in the short or medium term, Cisco’s traditional management software, Prime Infrastructure. The big difference is that DNA Center supports SDA and modern network management, while Prime is based on the traditional model. Among its own modules are Path Trace, Device/Client 360, Network Time Travel and encrypted-traffic analysis.

REST API

There are many types of API (SOAP, XML-RPC…), but for the CCNA you focus on the REST API. An API is basically a web service; APIs are not new, they have evolved with the Internet and programming languages. A REST API is based on conventions, exchanges information as variables and lets you query, add, update and delete, with interoperability across languages and code reuse.

REST API: HTTP verbs and CRUDA REST API uses HTTP for two applications to exchange data, identifying the resource with a URI. Each HTTP verb maps to a CRUD operation. It is client-server, stateless and usually exchanges the data in JSON.CLIENT → HTTP(S) → SERVER · STATELESS · URI · JSONHTTP verbCRUDWhat it doesPOSTCreateCreates a resourceGETReadReads / queries a resourcePUT / PATCHUpdateModifies a resourceDELETEDeleteDeletes a resource

The HTTP verbs and their mapping to CRUD. Diagram: The House of Routing.

REST relies on the HTTP verbs, which map to the four CRUD operations: POST creates (Create), GET reads (Read), PUT/PATCH updates (Update) and DELETE deletes (Delete). A GET request queries a URI and the server replies with a GET response that returns the data. A RESTful API meets six attributes: client-server architecture, stateless operation, declared cacheability, uniform interface (the resource is identified by a URI), layers and code on demand.

Data encoding: JSON, XML and YAML

If programs exchange data, that data is encoded with serialization languages so a machine can read it unambiguously. The CLI is designed for human reading (it shows you only what you ask for); encoded data is meant for another computer to do something with it. In fact, typing show ip interface brief is, deep down, a GET request to the device’s database.

Data encoding: JSON, XML and YAMLAutomation exchanges structured data a machine can read, unlike the CLI (designed for humans). They are serialization languages: JSON is the most important for the CCNA (objects and key:value pairs); XML uses tags (the data encoding of Cisco UCS); YAML uses no tags and is used by Ansible.SAME DATA, THREE SYNTAXES · OBJECT · KEY : VALUEJSONThe CCNA one · key:value pairs{ "host": "R1", "vlan": 10}XMLTags <…> · Cisco UCS<cfg> <host>R1</host> <vlan>10</vlan></cfg>YAMLNo tags · Ansiblehost: R1vlan: 10

The same data in JSON, XML and YAML. Diagram: The House of Routing.

  • JSON (JavaScript Object Notation): the serialization language of the CCNA. It presents the data in objects with key:value pairs (the key is the variable name; the value, its content).
  • XML (eXtensible Markup Language): an evolution of HTML, based on tags, which makes it harder for a human to read. It is the data encoding of Cisco UCS solutions.
  • YAML (YAML Ain’t Markup Language): it uses no tags, so it feels «simple and clear». It is centered on data-structure modeling and is used extensively in Ansible.

Who defines the format? Usually the application you work with. The key is to master the concepts of object and key:value pair, along with lists and dictionaries. And a tip from the author: for your Cisco certifications, focus on learning Python.

Ansible, Puppet and Chef

Automation tools replace the manual, box-by-box configuration and let you administer and configure the devices together. They solve three classic problems: configuration drift (the log does not say who changed what or when), version control (they rely on Git as a central repository) and configuration enforcement (preventing improper changes made directly on the boxes).

Network automation toolsAnsible, Puppet and Chef replace the manual, box-by-box configuration and solve three problems: configuration drift (no one knows who changed what), version control (with Git) and configuration enforcement. They differ in push vs. pull, with or without an agent, and the language.ANSIBLE · PUPPET · CHEFToolModelAgentLanguage / filesAnsiblePushAgentless (SSH/NETCONF)YAML · playbooks, inventory, Jinja2PuppetPullAgent (or Puppet Proxy)Declarative · manifest, class, moduleChefPullAgent (client/server)Ruby · recipe, cookbook, run-list

The three tools and their differences. Diagram: The House of Routing.

  • Ansible: agentless (uses SSH or NETCONF) and push model (it sends the configuration to the boxes). It uses YAML; its files are the playbook (action and logic), the inventory (the devices), the templates (with the Jinja2 language) and the variables. It does both provisioning and monitoring.
  • Puppet: agent-based architecture (there is an agentless option, Puppet Proxy) and pull model (the agent asks the server for the config). It uses a declarative language: you declare the final state and Puppet takes the steps. Its files: manifest, resource, class, module and template.
  • Chef: client/server architecture with an agent and pull model, based on Ruby. Its files use the kitchen metaphor: resource (ingredients), recipe, cookbook and run-list. Note: many Cisco devices do not support Chef.

What you take away

  • An SDN controller is centralized software that replaces the distributed control plane; it only needs IP reachability.
  • Three planes: data (forwards the frames), control (decides the path: routing, STP, tables) and management (Telnet, SSH). SDN separates control from data and centralizes it.
  • An API needs a URI; it takes parameters. SBI (Southbound): controller ↔ devices (NETCONF, RESTCONF, OpenFlow…). NBI (Northbound): controller ↔ third-party applications (REST).
  • SD-Access: Cisco’s SDN proposal for the enterprise, with DNA Center and spine-leaf. Underlay (physical) + overlay (VXLAN tunnels) = fabric; LISP locates endpoints; edge, border and control nodes. No VLAN/STP/HSRP.
  • DNA Center: Cisco’s IBN controller, with NBI and SBI (Telnet/SSH/RESTCONF); manages SDA and non-SDA; replaces Prime Infrastructure.
  • REST: client-server, stateless, by URI, in JSON. HTTP verbs ↔ CRUD: POST=Create, GET=Read, PUT/PATCH=Update, DELETE=Delete.
  • Data encoding: JSON (the CCNA one, objects and key:value), XML (tags, UCS) and YAML (no tags, Ansible). Learn Python.
  • Tools: Ansible (push, agentless, YAML), Puppet and Chef (pull, agent). They solve configuration drift with Git and enforcement.

With this you close the CCNA 200-301 v1.1 journey from The House of Routing. You have now covered all six exam domains, from cable to code. The next step is yours: practice in the lab, review the assessments and sit the certification. Point A was «I don’t know where to start»; point B, today, is «I know how a modern network works end to end».

AGLE methodInstructor-guidedThe class slides and videos.

Slides

These slides go with the class: watch them here, full screen, or download the PDF for your notes. Part 1 covers the controller, the planes and the APIs; part 2, SD-Access and DNA Center; part 3, REST API and data encoding; and part 4, the automation tools.

AGLE methodLabsHands-on practice in Packet Tracer.
AGLE methodContinuous assessmentExam-style questions to measure your progress.

Chapter assessment

There are 100 single-choice questions across 10 tabs of 10. Each tab mixes every topic of the chapter and steps up in level: questions 1 to 3 are easy, 4 to 8 medium and 9 to 10 hard.

We do not store your answers. They run in your browser, and if you close or reload the page you start over. Getting it wrong here is the cheapest way to learn.

Additional resources

These links take you to official sites outside this portal. Use them to practice, dig deeper and confirm what you learned.

To study and practice

Exam and certification

Reference documentation

Source and credits. Chapter built from Jesús Espinoza’s SDN series (7 posts): the controller and the control planes, APIs in controller environments, SD-Access, DNA Center, REST API, data encoding and the automation tools. Paraphrased, updated and aligned with domain 6 of the official CCNA 200-301 v1.1 exam topics. Text written with AI assistance; original diagrams by The House of Routing. Technical facts were checked against Cisco’s official documentation (SDN, SD-Access, DNA Center, REST API) and the NETCONF (RFC 6241), RESTCONF (RFC 8040) and VXLAN (RFC 7348) standards.

Navigate