Software-Defined Networks, VPCs and CDNs
Networks are increasingly defined in software and delivered as services. This lesson covers SDN, SD-WAN and network functions virtualisation, virtual private clouds and content distribution networks.
Learning outcomes
After completing this lesson, you will be able to:
- Explain SDN, SD-WAN and NFV and their security considerations.
- Describe VPC and CDN security features and risks.
Software-defined networking
Software-defined networking (SDN) separates the control plane from the data plane. A centralised controller programs forwarding devices through southbound APIs such as OpenFlow, and applications request network services through northbound APIs. SDN enables consistent, automated policy and rapid change, but the controller and its APIs become high-value targets that must be authenticated, segmented and monitored.
SD-WAN applies SDN to wide area networks, steering traffic across MPLS, broadband and cellular links according to policy and application needs. Network functions virtualisation (NFV) runs routers, firewalls, load balancers and other functions as software on standard servers. Security controls defined and deployed through software in this way are sometimes called software-defined security.
The security benefits and risks of SDN come from the same property: central control. When a security team needs to isolate a compromised server, a traditional network may require changes on several switches and firewalls by hand. With SDN, a single policy change at the controller, or an automated response from a security tool through the northbound API, applies the isolation everywhere within seconds. The same speed applies to mistakes and to attackers: a wrong policy or a malicious change spreads across the entire network just as quickly, which is why policy changes go through change management and the controller is protected as a critical asset.
SD-WAN changes the branch office. Instead of sending all branch traffic over an expensive private circuit to the head office, an SD-WAN device at the branch uses several links, such as broadband and cellular, chooses the best path for each application and builds encrypted tunnels between sites. Security policy must travel with that change, because traffic now leaves the branch directly to the internet, which is one reason SD-WAN is often combined with cloud-delivered security in a SASE design.
The following diagram shows the controller programming the switches and the controls that protect it.

Central control cuts both ways
Virtual private clouds
A virtual private cloud (VPC) is a logically isolated network in a public cloud. The customer defines address ranges, public and private subnets, route tables, internet and NAT gateways, and controls such as security groups (stateful, at the instance level) and network ACLs (stateless, at the subnet level). Peering and transit services connect VPCs, and private connections link them to on-premises networks.
Good practice places databases and internal services in private subnets without internet routes, uses private endpoints to reach cloud services, applies least-privilege rules and enables flow logs for visibility.
The difference between stateful and stateless controls matters in practice. A stateful security group remembers that it allowed an outbound request and automatically allows the reply. A stateless network ACL evaluates every packet independently, so a rule must explicitly allow the return traffic, usually on a range of temporary ports. A typical three-tier VPC places load balancers in public subnets, application servers in private subnets that accept traffic only from the load balancers' security group, and databases in private subnets that accept traffic only from the application servers' security group, so that no path leads from the internet directly to the database.
Security group or network ACL?
Content distribution networks
A content distribution network (CDN) caches and serves content from edge servers close to users. CDNs improve performance and availability, absorb DDoS attacks with their distributed capacity, and often include web application firewalls and bot management. Risks include caching sensitive content by mistake, exposing origin servers that should accept traffic only from the CDN, and trusting the CDN provider, which typically terminates TLS.
A CDN protects the origin only if attackers cannot reach the origin directly. If the origin server's real IP address is discovered, for example from old DNS records or email headers, an attacker can send a DDoS attack straight to it and bypass the CDN's capacity and web application firewall. The origin should therefore accept connections only from the CDN's addresses or require a secret header or certificate that only the CDN presents. Caching mistakes are the other common problem: a page that includes a logged-in user's account details must be marked as not cacheable, or the CDN may serve one customer's page to the next.
Protecting the origin
Protecting the SDN controller
A company deploys SDN across its data centre. A consultant warns that the controller is now the most important asset in the network. Why, and what controls follow?
The controller programs every switch, so an attacker who controls it can redirect, intercept or drop any traffic. Controls include placing the controller on an isolated management network, authenticating and encrypting its southbound and northbound API connections, strong administrator authentication with MFA, high availability, change management for policies and logging of every change.
Through which APIs does an SDN controller program forwarding devices?
Show answer
Southbound APIs, such as OpenFlow.
Exam Tips
Remember for the exam
- SDN separates control from forwarding; protect the controller.
- Keep databases in private subnets without internet routes.
- CDNs help availability and DDoS resilience; hide the origin.