Northbound & Southbound APIs in Networking
Detailed Explanation & Practical Examples
What are APIs in Networking?
API (Application Programming Interface): A set of rules and protocols that allows different software components to communicate.
Role: APIs enable programmability, automation, and integration in modern networks, allowing external applications or systems to control, configure, monitor, and gather analytics from the network.
Importance: APIs are fundamental in Software-Defined Networking (SDN) and controller-based environments, driving automation, agility, and seamless integration between network infrastructure and business applications.
+--------------------+ Northbound APIs +--------------------+ | Applications & | <---------------------------> | Controller | | Orchestration | +--------------------+ +--------------------+ Southbound APIs | (e.g. SDN, DNA | | | Center, etc.) | | +--------------------+ | | +-----------------------------+ | Network Devices (Switches, | | Routers, APs, Firewalls) | +-----------------------------+
Northbound APIs
Definition: Interfaces exposed by a network controller to applications, management systems, or orchestration platforms above it.
Purpose:
- Allow external systems to request network information, push policies, or automate workflows.
- Enable custom applications to use the controller for analytics, monitoring, or policy enforcement.
- RESTful APIs (most common; HTTP-based, data in JSON or XML)
- SOAP (legacy, XML web services)
- RESTCONF (REST-style for YANG models)
Southbound APIs
Definition: Interfaces used by the controller to communicate with the underlying network devices (switches, routers, access points, firewalls).
Purpose:
- Push configurations, retrieve operational state, or collect telemetry.
- Allow the controller to program network behavior in real time.
- OpenFlow (SDN flow programming)
- NETCONF (configuration/state, XML/YANG)
- SNMP (monitoring, basic config)
- gNMI (modern, telemetry via gRPC)
- CAPWAP (manage wireless APs)
Differences Between Northbound and Southbound APIs
Aspect | Northbound API | Southbound API |
---|---|---|
Direction | Controller <--> Apps/Orchestration | Controller <--> Network Devices |
Audience | Orchestration, analytics, management apps | Switches, routers, firewalls, APs |
Protocols | REST, RESTCONF, SOAP, GraphQL | OpenFlow, NETCONF, SNMP, gNMI, CAPWAP |
Data Format | JSON, XML | XML, JSON, or protocol-specific (binary) |
Usage Focus | Automation, analytics, policy | Configuration, monitoring, telemetry |
Example | App adds VLAN via DNA Center API | Controller pushes config via NETCONF |
Common Use Cases
Northbound APIs:- Network Orchestration: Automating provisioning or scaling of services.
- Integration with OSS/BSS: Operations/business systems activate network services.
- Policy Management & Analytics: Apps enforce policies or extract network data for analytics.
Southbound APIs:
- Device Configuration: Controller pushes new VLANs or ACLs to switches using NETCONF.
- Real-Time Telemetry: Collect streaming telemetry data using gNMI or SNMP.
- Topology Discovery: Controller queries routers for up-to-date topology using BGP-LS.
API Protocols and Standards
Northbound Protocol | Description |
---|---|
REST | Most popular, language-agnostic, human-readable. |
RESTCONF | RESTful interface for network config using YANG models. |
Southbound Protocol | Description |
---|---|
OpenFlow | For flow-level control/programming in SDN. |
NETCONF | Device configuration/state (XML/YANG models). |
SNMP | Monitoring and basic config/trap handling. |
gNMI | Modern telemetry/streaming data protocol (by Google). |
Security Considerations
- Authentication & Authorization: Strong authentication (tokens, certificates) and role-based access control required.
- Encryption: All API communication should use TLS/SSL (HTTPS, secure websockets, etc.).
- Rate Limiting: Protect APIs from abuse/DoS via call limits.
- Best Practice: Restrict who can access APIs, monitor usage, and log all API transactions.
Challenges in API Integration
- Vendor Interoperability: Different vendors may implement proprietary extensions or unique data models.
- Versioning/Compatibility: API changes (upgrades) can break integrations. Always verify documentation and backward compatibility.
- Scaling: As the network grows, controller/API performance can be a bottleneck.
Examples of Controller Platforms Using APIs
- Cisco DNA Center: Exposes REST northbound APIs and integrates southbound via NETCONF, SNMP, CLI, etc.
- OpenDaylight: SDN controller supporting OpenFlow (southbound) and REST APIs (northbound).
- VMware NSX: Northbound REST APIs for automation and various southbound protocols to network devices.
Future Trends
- Intent-Based Networking: Applications express the desired outcome (intent) via northbound APIs. Controller translates intent into device configurations using southbound APIs.
- AI/ML Integration: APIs allow AI/ML-driven analytics and automation tools to monitor, optimize, and self-heal the network in real time.
Practical Example
DNA Center, via its southbound NETCONF/SNMP/CLI APIs, pushes this configuration to all switches.
The “HR” VLAN appears on all relevant switches without any manual CLI input.
Key Points & Exam Tips
- Northbound API: Controller ↔ Applications/orchestration (REST, RESTCONF, etc.)
- Southbound API: Controller ↔ Network devices (OpenFlow, NETCONF, SNMP, gNMI, etc.)
- Know the direction, protocols, and target of each API type.
- Security is critical: enforce authentication, encryption, and access controls.
- Understand challenges (vendor compatibility, API upgrades, performance).
- Be familiar with popular controller platforms and automation/orchestration workflows.