Skip to main content Skip to search
Katie Tregurtha
Posted by
Katie Tregurtha on
January 6, 2020

Transforming Your Network Infrastructure Using APIs

Enterprises are embarking on digital transformation initiatives to increase revenue, provide a superior customer experience, and stay ahead of the competition. Delivering capabilities via apps and new digital experiences that wow existing customers and prospective consumers in a rapid fashion is central to such initiatives. IT - and networking teams - play a crucial role here.

But, network engineers spend an inordinate amount of time deploying, configuring, and managing network services and infrastructure. According to Gartner, nearly 80% of enterprise networking activities are manually driven. Time spent on mundane, repetitive tasks prevents network engineers - and consequently the entire organization enterprise – from responding quickly to changing business needs.

Application modernization using microservices and use of hybrid cloud environments have resulted in an unprecedented need for creating and managing networks - specifically IP Address Management (IPAM) and management of DNS and DHCP. Without automation tools, network engineers are unable to focus on value-generating activities such as optimizing for better performance or developing new architectures for modern applications. Development and operations teams use their own tools to achieve high feature velocity and automated load balancing without appropriate input from the networking team.

As a result, enterprises end up with a disconnected collection of cloud-specific network services and a rat’s nest of dynamic services, IP addresses, scaling mechanisms, and routing updates. This grinds digital transformation efforts to a halt. Network teams, to keep up in this age of digital transformation, need to embrace automation or be left behind.



Network Automation via Infrastructure as Code

Although experienced network engineers have always scripted with appliance -specific CLIs, the approach isn’t scalable enough to tackle today’s enterprise-wide challenges. Treating network infrastructure as code (IaC) changes the traditional "device by device management approach" to automating networking tasks. Instead of configuring each device separately each time by running a script, network engineers create software files that define consistent ways of provisioning, configuring and deploying infrastructure, for example:

  • An entire environment can be templatized for rapid provisioning using declarative approach to describe what is needed (e.g., to move this workload to a cloud infrastructure, it needs a virtual network with two public subnets, a compute instance on one of them, on the other a compute instance with an attached block volume).
  • Network engineers can define and automate step-by-step deployment procedures as code with tools such as Chef and Ansible.
  • Configuration drift across multiple devices can be prevented by using provisioning tools like Terraform to treat every configuration change as a new deployment.

Version control becomes easier

Every change in infrastructure configuration can be tracked using software version control tools. The actual state of network configurations can be logged, tracked, and audited. This simplifies verification that changes were implemented as planned.

Additionally, changes to automation artifacts (i.e. configuration templates, policies, deployment scripts, etc.) can also be tracked. This means no more accidentally overwritten configuration files or forgetting to update file names with new dates and times. It is easier to review changes made by multiple people before the automation is triggered to run on production networks. If there is an issue, reverting to an earlier version of the code is also much easier.

APIs Power Infrastructure as Code (IaC)

Infrastructure as Code (IaC) is made possible through application programming interfaces (APIs). APIs are simply how software on one system communicates with software on another system. In other words, the capabilities made available through the infrastructure’s API give us the ability to configure and manage the infrastructure as code. Therefore, a more comprehensive API gives you more flexibility in managing infrastructure as code.


Overcoming Other Barriers to Digital Transformation

Check out our guide to learn more about other barriers that are slowing down your organization's digital transformation initiatives, and best practices to overcome them.

Driving Automation with NS1 APIs

NS1 APIs drives network automation that empowers multiple groups to rapidly obtain appropriate changes to core network services (i.e. DNS, DHCP, IPAM). NS1’s API-first architecture enables network, application, and cloud teams to treat DNS, DHCP, and IPAM infrastructure and records as code.

Comprehensive Catalog of all APIs

With NS1’s comprehensive catalog of APIs, teams have more automation flexibility to deliver a range of business value:

  • Create networks, configure IP ranges, and manage IP allocations.
  • Create and manage DNS zones and records, including large zone imports, record QPS reporting, and configuring DNS record metadata to incorporate traffic steering policies, global load-balancing requirements, and real-time infrastructure conditions.
  • Automate service discovery by ingesting data from microservices and/or cloud environments (e.g. Consul DNS, Kubernetes, etc.) to maintain a single source of truth about IP allocations and DNS records.
  • Automatically assign IPs to new devices by managing DHCP scopes, scope groups, leases and IP reservations for new devices (e.g. printers, VoIP phones, etc.) as part of the provisioning template for new branch locations.
  • Automate deployment of lightweight, local DHCP and DNS server containers at branch or remote locations for ongoing IP assignments for employee laptops and mobile devices.

How to use APIs to streamline network service workflows

NS1 APIs can also update DNS metadata with information about the back-end infrastructure that results in superior reliability and resilience. Without APIs it is very difficult to bring together the DNS/IP administration and change management tasks with the global traffic load balancing tasks to improve end-to-end application performance.

For example, to automate infrastructure awareness, you would have to write a script to alert you that the destination infrastructure is overloaded. Then you’ll need more scripts to automate what happens when that alert is received. In this case, scripts are needed to update the DNS metadata and change DNS answers to steer incoming traffic around the problem.

NS1 streamlines this workflow, changing the steps into configuration data that can be automatically updated. Through our integrations, NS1’s APIs can be used to:

  • Feed telemetry directly from servers, load balancers, servers, and other infrastructure monitoring tools
  • Update DNS metadata so that our Filter Chain technology automatically adjusts query responses to reflect real-time infrastructure conditions
  • Send alerts and information to operations dashboards and workflows of the conditions and changes made

Conclusion

Enterprises are developing, deploying, and updating applications faster and more efficiently than ever before. Network automation is critical to ensure changes are rapidly made in a repeatable manner that is fully observable by network teams. NS1’s API and integrations are designed to be performant and scalable to meet enterprise automation needs.

For more information, check out the following resources:


Further Reading