Lesson 4 of 4 Networking Fundamentals

Software-Defined Networking

Networks are increasingly defined and controlled by software. This lesson explains software-defined networking and its planes, SD-WAN, network virtualisation and network automation, and the security benefits and risks of each.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish the data, control and management planes.
  • Explain SDN and the importance of the controller.
  • Describe SD-WAN and SASE.
  • Describe network virtualisation and automation.

Planes of a network device

Every network device performs three kinds of work. The data plane (forwarding plane) moves packets from interface to interface according to tables. The control plane decides how traffic should be forwarded: it runs routing protocols, builds routing and forwarding tables and handles protocols such as spanning tree. The management plane is how administrators configure and monitor the device, through SSH, web interfaces, APIs and SNMP. In traditional networks all three run on each device, and each device is configured individually.

Software-defined networking

Software-defined networking (SDN) separates the control plane from the data plane and centralises it in an SDN controller. The controller has a global view of the network and programs the forwarding behaviour of switches and routers through southbound APIs (such as OpenFlow or vendor protocols). Applications and orchestration tools instruct the controller through northbound APIs.

SDN brings consistency (policy defined once and applied everywhere), agility (networks change in minutes rather than days) and visibility. Security policies such as segmentation can follow workloads automatically, and suspicious hosts can be quarantined programmatically. The cost is concentration of risk: the controller and its APIs become critical assets. An attacker who controls the controller can redirect or intercept traffic across the whole network, so it must be protected with strong authentication, encrypted and authenticated controller-to-device communication, restricted management access, redundancy, patching and monitoring.

SD-WAN

Software-defined wide area networking (SD-WAN) applies SDN principles to connections between sites. Instead of relying solely on expensive private circuits such as MPLS, an SD-WAN combines several links (MPLS, broadband internet, 4G or 5G) and a central controller steers each application's traffic over the best path according to policy and measured performance. Traffic between sites is encrypted, typically with IPsec tunnels.

SD-WAN often allows branches to send internet-bound traffic directly rather than back to headquarters, which improves performance but means security inspection must happen at the branch or in the cloud. This combination of SD-WAN with cloud-delivered security services (secure web gateway, CASB, zero trust network access and firewall as a service) is called secure access service edge (SASE).

The following diagram compares direct internet breakout from branches without and with nearby inspection.

What must change when SD-WAN sends branch internet traffic directly instead of through headquarters, where the web proxy and firewall inspected it. Inspection moves close to the branches, either on the branch SD-WAN appliance or as cloud-delivered security in a SASE model, so branch traffic is still filtered and logged.
The scenario is illustrative.
True or false

SDN and SD-WAN

Exam skills 6.1.5

Check facts about software-defined networking.

Log in to try this activity Interactive activities are free with an account.

Network virtualisation and automation

Network virtualisation creates virtual networks, switches, routers and firewalls in software on shared physical infrastructure. Overlay protocols such as VXLAN carry many isolated virtual networks over one physical network. Public cloud virtual private clouds (VPCs) are virtualised networks in which customers define subnets, route tables and security groups. Virtual firewalls can inspect east-west traffic between virtual machines that never leaves the host.

Network automation configures networks with scripts, configuration management tools and infrastructure as code, which defines network configuration in version-controlled files that are reviewed and deployed through pipelines. Automation reduces manual errors, enforces standard secure configurations and makes changes auditable. Its risks are that a mistake or malicious change propagates everywhere instantly, and that automation credentials and pipelines are powerful targets. Changes are therefore reviewed, tested and deployed through change management, and secrets are kept in vaults. The following comparison summarises traditional and software-defined approaches.

Traditional networking
Control planeDistributed on each device
ConfigurationDevice by device, often manual
Change speedSlow
Key security concernInconsistent configuration across devices
Software-defined networking
Control planeCentralised in a controller
ConfigurationPolicy-based through APIs and automation
Change speedFast
Key security concernCompromise of the controller, APIs or automation pipeline
Worked example

Protecting the controller

A data centre is moving to SDN. The controller's management API is reachable from the general server network with a single shared administrator account. What are the risks and fixes?

Anyone who compromises a server could reach the API, and the shared account destroys accountability. Compromise of the controller would let an attacker reconfigure forwarding across the whole data centre. Place the API on a dedicated, restricted management network, require individual accounts with MFA and role-based permissions, encrypt and authenticate controller communications, log and monitor all API changes, and deploy redundant controllers.

Worked example

Direct internet breakout

After deploying SD-WAN, branches send internet traffic directly instead of through headquarters, where the web proxy and firewall used to inspect it. What must change?

Inspection must move closer to the branches: either security functions on the branch SD-WAN appliance or cloud-delivered security services in a SASE model, such as a secure web gateway and firewall as a service, so that branch internet traffic is still filtered and logged. Otherwise the performance gain would come with a loss of protection.

Check yourself

What does SDN centralise?

Show answer

The control plane: forwarding decisions are made by a central controller that programs the data plane of network devices.

Exam Tips

Remember for the exam

  • SDN separates the control plane from the data plane and centralises control.
  • The SDN controller and automation pipelines are critical assets.
  • SD-WAN with direct internet breakout needs branch or cloud security inspection (SASE).