A telecoms firm will replace its dedicated firewall and load balancer appliances with the same functions running as software on standard servers. How its routers choose paths will not change.
Software-defined networks, SD-WAN and NFV
Networks were once set up box by box, each switch and router deciding for itself. Now one central program can steer a whole network, links between offices can be chosen by software, and firewalls can run as programs on ordinary servers. No background is assumed. A security professional needs it because control moved into software, so whoever controls that software controls the network.
By the end of this unit you will be able to:
- Explain how a software-defined network separates deciding from forwarding
- Name the three SDN layers and the northbound and southbound interfaces between them
- Tell apart SDN, SD-WAN and network functions virtualisation
- Explain why the SDN controller is both a single point of failure and a single point of compromise
- Explain what software-defined security changes and what it adds to protect
The university that changed 400 switches in a minute
An illustrative example
A university replaces its campus network with a software-defined one. A small team now changes every switch from one console instead of visiting each. When a laboratory reports a virus, they cut its machines off in under a minute.
Six months later an intern's account on that console is phished. The attacker redirects all traffic from the finance office through a laptop in a student residence. No switch shows any fault, because every switch is doing exactly what it was told.
What should the university have protected as carefully as it once protected the doors of its wiring cupboards?
One controller decides for many switches
A traditional switch or router does two jobs inside one box. Its works out where traffic should go. Its data plane, also called the forwarding plane, moves each accordingly. A third, the , is how administrators configure and monitor the device, for example over Secure Shell (SSH) or the Simple Network Management Protocol (SNMP). Every box decides for itself from what it learns from its neighbours.
In a software-defined network (SDN) the deciding is taken out of the boxes and given to central software, the SDN controller. The controller keeps a view of the whole network and tells each device how to forward. The devices only forward.
Air traffic control
Pilots do not each work out a route by watching other aircraft. A control centre sees every aircraft and tells each one where to fly. If the control centre goes down or is taken over, every aircraft is affected at once.
Central control brings consistent rules everywhere, changes made in minutes, and the ability to isolate a device or reroute traffic from one place. It also concentrates , which the rest of this topic is about.
Three layers and the interfaces between them
An application programming interface (API) is a defined way for one program to ask another to do something. is built from three layers that talk through APIs.
A controller sits between applications and switches
Read this figure as text
A software-defined network is built from three layers that talk through application programming interfaces. North is where the applications are, south is where the switches are, and the controller sits between them.
- Application layer: programs that say what the network should do, such as a security application that quarantines infected machines, or one that balances load.
- Northbound interface: the APIs between applications and the controller.
- Control layer: the controller, which turns those requests into forwarding instructions for each device. Controllers in a cluster share one view of the network over the east-west interface.
- Southbound interface: the protocol between the controller and the devices. OpenFlow was the first standard southbound protocol; it lets the controller write directly into a switch's forwarding tables.
- Infrastructure layer: the physical and virtual switches and routers that forward packets as instructed.
- Beside the control layer: the controller is a single point of compromise. Whoever controls it, or can call its northbound API, can redirect, copy or drop any traffic in the network. It is also a single point of failure, so controllers are run as a group of several.
- Application layer
- Programs that say what the network should do: a security application that quarantines infected machines, or one that balances load.
- Control layer
- The controller, which turns those requests into forwarding instructions for each device.
- Infrastructure layer
- The physical and virtual switches and routers that forward packets as instructed.
- Northbound interface
- The APIs between applications and the controller. They point up the diagram, towards the applications.
- East-west interface
- The link between controllers in a cluster, so they share one view of the network.
- Southbound interface
- The protocol between the controller and the devices. OpenFlow was the first standard southbound protocol. It lets the controller write directly into a switch's forwarding tables.
North is where the applications are. South is where the switches are. The controller sits between them.
The controller is a single point of failure and of compromise
Because the controller makes every decision, it carries two risks at once.
- Single point of failure
- If a switch cannot reach its controller, traffic that needs new instructions stops until the connection returns. Controllers are therefore run as a group of several, in different places.
- Single point of compromise
- Whoever controls the controller, or can call its northbound API, can redirect, copy or drop any traffic in the network, as the university found.
- Place controllers on a separate management network that ordinary users cannot reach.
- Require and for anyone, person or program, using the northbound API.
- Authenticate and the southbound channel, so that a device obeys only its real controller.
- Log every change and send the logs where the controller's administrators cannot alter them.
- Put changes to network through , as for any other critical system.
SDN also uses virtual switches, which run in software inside a hypervisor and connect the virtual machines on one physical server. Traffic between two virtual machines on the same server may never reach a physical cable, so physical monitoring devices never see it. It has to be copied out by the hypervisor's own port mirroring to be inspected.
SD-WAN against MPLS for joining offices
A wide area network (WAN) joins an organisation's sites across a country or the world. For many years the usual choice was Multiprotocol Label Switching (MPLS), a private network run by a telecoms carrier that carries voice, video and data for its customers. reaches the internet only through a few chosen points, so traffic from a branch often travels to head office and back out again.
A software-defined wide area network (SD-WAN) applies SDN's central control to the links between sites. A controller sets policy for every branch device, and each device chooses for each application the best of whatever links it has: MPLS, broadband or 4G and 5G mobile data.
| Point | MPLS | SD-WAN |
|---|---|---|
| Who runs it | A carrier, on its own network | The organisation or a provider, as software over any links |
| Internet access | Through a few central points | Often straight out from each branch |
| Choosing a path | Fixed by the carrier | Per application, by load and priority |
| Where traffic is inspected | Centrally, where it leaves for the internet | At each branch or in a cloud service |
Sending a branch's internet traffic straight out, called local breakout, makes it faster. It also bypasses the head-office , so inspection must move to the branch device or to a cloud service. New branch devices that configure themselves from the controller must be authenticated before they are trusted.
Network functions virtualisation is not SDN
Network functions virtualisation (NFV) runs network functions, such as firewalls, routers, load balancers and , as software on standard servers instead of on dedicated appliances. A new firewall becomes a program to start rather than a box to buy and install.
and SDN complement each other but do not depend on each other. Either can be used without the other.
| Idea | What moves into software | Main security concern |
|---|---|---|
| SDN | The deciding: where traffic goes | The controller and its APIs |
| SD-WAN | The choice of links between sites | Local breakout and branch device trust |
| NFV | The devices themselves: firewalls, routers | The hypervisor and shared servers |
When a firewall is a program, the hypervisor and server under it become part of the firewall's security. A flaw that lets one virtual machine reach another could also reach the firewall.
Software-defined security: controls written as policy
Software-defined security applies the same shift to security controls. The control is a policy held centrally and pushed out by software, not a setting typed into each box.
- Virtual firewalls inside the hypervisor separate virtual machines on the same server.
- Software agents on each server enforce wherever the server runs.
- A software-defined perimeter keeps resources invisible until a user is authenticated and authorised, then connects that user to those resources only.
- Cloud services deliver firewalling and web filtering to any site or user, an approach called secure access service edge (SASE).
- Network configuration is written as code, tested and deployed through a pipeline that records every change.
The gains are rules applied the same way everywhere, quick change and an of every change. The cost is the same as in SDN. The policy store, the controller and the pipeline that deploys changes become the most valuable targets, and protecting them is protecting every control at once.
A question, worked through
A hospital trust is moving its campus network to SDN. In the design, the controller cluster sits on the general office network so that the network team can reach it from their desks. The trust's risk register lists ransomware on office computers as its highest risk.
Which design change should the security manager require FIRST?
Decide on your answer, then open the reasoning
- The question asks what to fix first in a design that exposes the controller to the network where the top threat lives.
- Rule out d: enabling OpenFlow more widely puts more devices under a controller that is still exposed.
- Rule out c: direct internet links from wards add exposure and do nothing for the controller.
- Between a and b: virtual firewalls change how firewalls are delivered, but a compromised controller could reroute traffic around any of them.
- The controller decides for the whole network, so it is protected first, on its own network with strong authentication. The answer is a.
Answer: A. Move the controllers to an isolated management network with MFA
Choosing between good answers
- A scenario asks what is most critical to protect in an SDN
- choose the controller and its northbound API: isolation, strong authentication, logging and redundancy.
- Options mix up SDN and NFV
- SDN centralises the decisions about forwarding. NFV turns network devices into software on standard servers.
- Branches move to SD-WAN with local internet breakout
- look for the answer that moves inspection to the branch or a cloud security service.
- Traffic between virtual machines on one host is not being inspected
- the answer is a virtual firewall or port mirroring in the hypervisor, not a physical sensor.
Check your understanding
4 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.
These questions are drafts that no named reviewer has approved yet.
Question 1 of 4
What to remember
- SDN separates deciding (the control plane, in a controller) from forwarding (the data plane, in the devices).
- SDN has application, control and infrastructure layers. Northbound APIs face the applications; southbound protocols such as OpenFlow face the devices.
- The controller is a single point of failure and a single point of compromise, so it is isolated, duplicated, authenticated and logged.
- SD-WAN applies central software control to links between sites. Local breakout moves internet inspection to the branch or the cloud.
- NFV runs firewalls, routers and similar functions as software on standard servers. It complements SDN but does not need it.
- Software-defined security holds controls as central policy pushed out by software, which makes the policy store and pipeline prime targets.
Say it from memory
Describe SDN's layers and interfaces, and tell SDN, SD-WAN and NFV apart.
SDN has an application layer, a control layer (the controller) and an infrastructure layer of devices. Applications reach the controller through northbound APIs; the controller programs devices through a southbound protocol such as OpenFlow. SD-WAN applies central control to links between sites. NFV runs network functions such as firewalls as software on standard servers. The controller is a single point of failure and of compromise.
What do the control, data and management planes do, and what changes in a software-defined network?
The control plane works out where traffic should go. The data, or forwarding, plane moves each packet accordingly. The management plane is how administrators configure and monitor the device. In a software-defined network the deciding is taken out of the boxes and given to a central SDN controller, and the devices only forward.
Why must the SDN southbound channel be authenticated, and why can traffic between two virtual machines escape physical monitoring?
The southbound channel is authenticated and encrypted so that a device obeys only its real controller. Traffic between two virtual machines on the same server passes through a virtual switch in the hypervisor and may never reach a physical cable. It has to be copied out by the hypervisor's own port mirroring to be inspected.
What is local breakout in SD-WAN, and what security consequence follows?
Local breakout sends a branch's internet traffic straight out from the branch, rather than through a few central points as MPLS does. It is faster, but it bypasses the head-office firewall, so inspection must move to the branch device or to a cloud service. New branch devices must be authenticated before they are trusted.
What does network functions virtualisation move into software, and what becomes part of the firewall's security?
NFV runs network functions such as firewalls, routers, load balancers and intrusion detection as software on standard servers. When a firewall is a program, the hypervisor and the server under it become part of its security. NFV and SDN complement each other, and either can be used without the other.
Sources
- Software-Defined Networking: The New Norm for Networks, Open Networking FoundationIn SDN the control and data planes are decoupled and network intelligence is logically centralised in software controllers. The application, control and infrastructure layers, with APIs to applications. OpenFlow as the first standard interface between the control and forwarding layers.
- RFC 7426: Software-Defined Networking Layers and Architecture Terminology, Internet Research Task ForceThe application, control and forwarding planes, the SDN northbound and southbound interfaces, and flows becoming unavailable when a switch loses its controller, with multiple controllers improving partition tolerance. The management plane monitors, configures and maintains devices, and communication between control-plane entities is called the east-west interface.
- NIST SP 800-125B: Secure Virtual Network Configuration for Virtual Machine (VM) Protection, NISTVirtual switches operate inside the hypervisor to connect virtual machines, and monitoring inter-VM traffic requires port mirroring configured in the hypervisor.
- NIST SP 800-215: Guide to a Secure Enterprise Network Landscape, NISTMPLS reaches the internet only through limited points. SD-WAN decouples control and data planes, sets central policy, uses MPLS, broadband and 4G or 5G links, chooses paths by application, integrates security functions and authenticates new appliances. Virtual firewalls in the hypervisor, host agents for micro-segmentation, the software-defined perimeter, SASE, and network configuration as code with audit.
- Network Functions Virtualisation: Introductory White Paper, ETSI (network operator authors)NFV implements network functions, including firewalls, routers, load balancers and intrusion detection, in software on industry standard servers, and is complementary to SDN but not dependent on it.
- NIST SP 800-125: Guide to Security for Full Virtualization Technologies, NISTThe hypervisor's place in the security of virtualised systems.