SDN AND AUTOMATION · FUNDAMENTALS OF NETWORK PROGRAMMABILITY · CHAPTER 9

Data Modeling

From the information model to the data model, with YANG and NETCONF.

6 min readCourse: Fundamentals of Network ProgrammabilityLevel: Intermediate
AGLE methodSelf-studyAll the chapter text, at your pace.

Information vs. data

Programmability requires strong, stable data modeling, backed by information modeling. There are two levels:

Data formats: JSON, XML and YAMLAutomation exchanges structured data that a machine can read. JSON is the most used in REST APIs; XML is used by NETCONF; YAML is used by Ansible and config files. All three represent the same thing (key-value pairs, lists and objects) with different syntax.SAME DATA, THREE SYNTAXES · KEY → VALUEJSONREST API · braces { } and quotes{ "host": "R1", "vlan": 10}XMLNETCONF · tags <…><cfg> <host>R1</host> <vlan>10</vlan></cfg>YAMLAnsible · indentation, no braceshost: R1vlan: 10

Data is encoded in JSON, XML or YAML. Diagram: The House of Routing.

  • Information Model (IM): conceptual and high-level (uses UML). More abstraction; it hides protocols and implementation details; it defines relationships between objects.
  • Data Model (DM): low abstraction, detailed and protocol-specific. Implementation-oriented. The data model is the input for Machine Learning. There is no IBN without DM, because a unified, consistent model is required.

NETCONF and YANG

NETCONF and YANG provide a standard that enables a programmable interface to each device or service. This is the core of network automation. YANG has started a transformation in operation known as Data-Driven Management: management driven by the data model.

What you take away

  • The Information Model is conceptual (UML, high-level); it hides protocols.
  • The Data Model is detailed, protocol-specific and the input for Machine Learning.
  • There is no IBN without a unified, consistent data model.
  • NETCONF + YANG give a programmable interface: the core of automation (Data-Driven Management).

The next chapter: telemetry, the new SNMP.

AGLE methodContinuous assessmentQuestions to gauge your progress.

Challenge

Answer before opening the solution.

1. What distinguishes the Information Model from the Data Model?

The IM is conceptual and high-level (hides protocols); the DM goes down to the detail and is protocol-specific.

2. Why is the Data Model key for IBN?

Because there is no IBN without a data model that is unified and consistent; it is also the input for Machine Learning.

3. Which pair gives a programmable interface to each device?

NETCONF and YANG, the core of network automation.

4. What transformation did YANG start?

Data-Driven Management: management driven by the data model.

Resources

Links to go deeper outside this portal.

From the author

Documentation and practice

Source and credits. Course built from Jesús Espinoza’s «Fundamentals of Network Programmability» material (The House of Routing), paraphrased and expanded. Text written with AI assistance; original diagrams by The House of Routing. Checked against Cisco’s official documentation and industry standards.

Navigate