What Is Network Automation?
Network automation is the ability to configure and manage network devices via Application Programming Interfaces (APIs). An API offers a method to interact with an application, device, or system by pulling information, or pushing commands, via a well-defined set of instructions or routines.
Traditionally, network devices (like routers, switches, and firewalls) are configured by network engineers and administrators via Command Line Interface (CLI) or Graphical User Interface (GUI). In this context, the network engineer establishes a CLI session via telnet/ssh, or a GUI session via a web browser, and applies a configuration. This network management method is still widely used but destined to be obsolete in the coming years.
Benefits of Network Automation
The driving force behind the shift from human configuration to network automation is simple: Network automation optimizes the way network devices are configured and managed in a way that human configuration cannot. This is possible by enabling software applications to automate the most frequent and repetitive tasks. Having been a network engineer for several years, I realize three quick wins of network automation:
- Reduction of dedicated personnel to configure and manage a network infrastructure
- Reduction of time required to create new services and scale a network infrastructure
- Reduction of human driven outages caused by mis-configuration of network devices
Network Automation and Network Engineers
Will network automation cause network engineers’ extinction? I doubt it. For sure, network automation will require less network engineers to operate a network. On the other end, enterprise networks will keep growing in size, and will still require network engineers and architects to handle their design and implementation. It also means that network engineers will start getting more familiar with concepts that were typically part of software development. If you are a network engineer, you may want to start familiarizing with network automation tools and concepts.
First Steps in Network Automation
If you are interested in learning more about network automation, here are some basic concepts you should start familiarizing with:
- Data Formats – A data format specifies the way that information is formatted and presented, so it can be transferred from one device to another. Example of data formats are JSON and XML. Here’s the example of a NetBeez test results formatted in JSON and obtained by querying the NetBeez public API:
- Data models – A data model is a method to describe an object. In the network automation world, data models describe devices, device resources, and services. A data model amply adopted in for network automation is Yang (Yet-Another-Next-Generation), which was developed by the Internet Engineering Task Force (IETF).
- Communication protocols – There are two communication protocols developed by IEFT to interact with network devices: netconf and restconf. Netfconf was first formalized by RFC4741 in 2006, while restconf in 2017 by RFC8040. There are many differences between the two protocols, one of which is that netconf only supports XML data format, while restconf both XML and JSON. Also, restconf is HTTP-based and makes it more appropriate for web-based network managers and applications.
- Programming language – A programming language is defined as a set of instructions and rules that enable humans to interact and give instructions to computers by writing an application. One of the most versatile programming languages for network automation is Python. Python is, in general, one of the most widely used programming languages – it’s interpreted, and object oriented. It’s written in human readable instructions and can rely on a vast amount of external libraries developed by a large community. If you are taking network automation seriously, Python is your friend.
This post only scratches the surface of the complex network automation world. I wouldn’t be surprised to find a Gartner report stating that “right now, only a few percentages of companies use network automation, but that in three or four years, 1 out of 2 will”. In my opinion, network automation is a major improvement in the way network engineers interact and manage an enterprise network, and I am very bullish about this new technology.