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.
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.
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.
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.
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.
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.
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.
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).
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».
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.
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
- Cisco U.: Implementing and Administering Cisco Solutions path (CCNA)u.cisco.com
- Cisco DevNet: APIs, sandboxes and automation learningdeveloper.cisco.com
- Cisco Learning Network: community, forums and study resourceslearningnetwork.cisco.com
Exam and certification
- Official CCNA 200-301 v1.1 exam topics (PDF)learningcontent.cisco.com
- Official CCNA certification pagecisco.com
Reference documentation
- Cisco: what is SDN (software-defined networking)cisco.com
- Cisco: SD-Access (Software Defined Access)cisco.com
- Cisco DNA Centercisco.com
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.
