SDN vs NFV
Clear definitions and comparison of SDN (separating control and data planes) and NFV (running network functions as software on virtualised infrastructure), with architecture, benefits, trade-offs, examples and exam-style guidance.
Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Network engineers use SDN and NFV to make networks easier to program, scale and operate. SDN lets a single software controller manage many switches by separating the control plane (decision-making) from the data plane (packet forwarding). NFV lets operators run network functions (firewalls, load balancers) as software called VNFs on general-purpose servers, reducing dependence on special hardware.
Key ideas
- Data plane — the part that actually forwards packets according to state programmed by the control plane. Also called the forwarding plane.
- Software-Defined Networking (SDN) — an architecture where the control plane is logically centralized and separated from the data plane. Exact definition used in exams: "SDN is a network architecture that decouples the control plane from the data plane and uses open, programmable interfaces between them." Assumptions: devices support a protocol (for example OpenFlow) or an API that allows reading and writing of forwarding state. Draw and label: a controller box at top labelled SDN Controller (control plane), arrows down to multiple switch boxes labelled OpenFlow switch (data plane), and east-west arrow showing controller-to-controller communication (if multiple controllers).
- Network Functions Virtualisation (NFV) — an approach to implement network functions as software instances called Virtual Network Functions (VNFs) that run on general-purpose servers (virtual machines or containers). Exact definition (ETSI's commonly used): NFV separates network functions from proprietary hardware by implementing them in software on standard servers. Assumptions: there is a virtualization layer (hypervisor or container runtime) and an orchestration/management system.
- VNF (Virtual Network Function) — the software implementation of a network function. Example: a virtual firewall image running as a VM or container.
- MANO (Management and Orchestration) — the NFV management subsystem (components per ETSI: NFV Orchestrator (NFVO), VNF Manager (VNFM), Virtualised Infrastructure Manager (VIM)).
How SDN and NFV relate and differ (stepwise derivation asked in exams):
- Both increase software control and reduce hardware dependence, but they solve different problems: SDN reorganises control vs forwarding; NFV moves functions from specialised appliances to software on commodity servers.
- If you start with a network of hardware appliances doing both control and forwarding, you can apply SDN to centralize their control while keeping appliances for forwarding; you can apply NFV to replace appliances with VNFs; both can be applied together. Draw: three-column diagram — left: legacy (appliance with control+data), middle: SDN (controller + hardware switches), right: NFV (VNFs on servers, with MANO). Label arrows showing that the SDN controller programs physical/virtual switches (not the internal logic of VNFs); VNFs are deployed and configured by MANO, with coordination via northbound APIs if needed.
- Control plane centralization in SDN reduces per-device state duplication, enabling global optimization (routing, traffic engineering). NFV reduces CapEx and improves deployment time for new services because VNFs are software images. Exams often ask for pros and cons; list them explicitly: SDN pros: centralized control and global visibility; programmability via open APIs; vendor-agnostic policy; automation/integration with orchestration. SDN cons: controller scalability/failover risks; control-channel latency (reactive delays); interoperability/debugging complexity; securing the controller and APIs. NFV pros: lower CapEx/OpEx using COTS; fast service rollout and elastic scaling; flexible service chaining; decoupled hardware/software lifecycles. NFV cons: performance/IO overhead vs appliances; MANO/orchestration complexity; noisy-neighbor/resource contention; limited observability without acceleration (e.g., SR-IOV/DPDK).
Design and performance assumptions often tested:
- SDN assumes a reliable, low-latency control channel between controller and switches; if control-channel latency is high, reactive flow installation causes packet delay.
- NFV assumes the virtualization layer adds overhead (CPU, memory, I/O) and that VNFs can be scaled horizontally (more instances) or vertically (stronger VM) to meet load.
Where to draw diagrams in answers:
- SDN logical view: a central controller, southbound API to data-plane devices, northbound API to applications. Label each API and arrow direction.
- NFV architecture: three-layer diagram showing (top) NFV Orchestrator / OSS-BSS, (middle) VNFs + VNF Manager, (bottom) Virtualised Infrastructure (compute, storage, network) + VIM. Label components and control flows.
Formulas
Throughput = Packets / Time — Packets in number; Time in seconds; Throughput in packets s^-1. Applies when counting packets per second.
Throughput_data = Bandwidth_link × (1 - overhead_fraction) — Bandwidth_link in bits per second (bps); overhead_fraction is unitless fraction of link used for headers/encapsulation; Throughput_data in bps. Use this to estimate effective throughput when adding encapsulation (e.g., VXLAN with NFV/SDN overlays).
T_total = T_control + T_forwarding — T_total in seconds: total time to process a new flow when controller involvement required. T_control is controller processing + RTT to device; T_forwarding is data-plane forwarding time. Applies when flows are installed reactively in SDN.
X_eff = X_native × (1 - overhead_v) — X_eff is effective processing throughput of a VNF, X_native is throughput on bare metal; overhead_v is the fractional slowdown due to virtualization (unitless). Use to estimate VNF capacity.
Worked examples
Example 1 — Short-answer model: "Compare SDN and NFV in 200–300 words." Model answer (write as exam answer):
- Definition lines: Define SDN and NFV precisely (one sentence each). 2. Architectural difference: SDN separates control and data planes; NFV replaces appliances with VNFs on virtualised servers. 3. Use-cases: SDN for centralized traffic engineering and programmability; NFV for rapid service deployment (firewall, DPI). 4. Interaction: SDN can be used to steer traffic between VNFs; NFV can use SDN-managed virtual networks for connectivity. This traffic steering is often called Service Function Chaining (SFC) in IETF terminology. 5. Trade-offs: SDN needs reliable control channels and careful controller scaling; NFV faces performance overhead and orchestration complexity (MANO). Conclude with a short recommendation: use SDN+NFV together for agile data centres.
Example 2 — Mapping VNFs to servers (bin-packing trace): Problem: Three VNFs require 4, 3 and 5 CPU cores. Two servers have 6 and 6 CPU cores. Place VNFs to fit CPU. Steps:
- Sort VNFs descending: 5, 4, 3.
- Place VNF(5) on Server A (remaining A:1, B:6).
- Place VNF(4) on Server B (remaining A:1, B:2).
- Place VNF(3): cannot fit on A (1 free), cannot fit on B (2 free) — so this packing fails. Try different order (first-fit decreasing may fail); try 4,3,5 instead.
- Place VNF(4) on A (A:2, B:6). Place VNF(3) on B (A:2, B:3). Place VNF(5): cannot fit. Conclusion: with two servers of 6+6 CPU, total CPU=12, required CPU=12, but no placement fits because largest VNF=5 forces fragmentation. No feasible placement: one server must host the 5-core VNF alone (leaving 1 core unused), and the remaining 4+3=7 cores do not fit into the other 6-core server. Therefore we need either a server with 7 cores or split VNF into microservices. Exam point: explain you need bin-packing heuristics or split VNF (scale-out) to fit.
Example 3 — SDN reactive flow latency calculation:
Given: controller RTT to switch = 10 ms, controller processing = 5 ms, switch forwarding time per packet = 0.1 ms. Compute T_total for first packet of a reactive flow.
Formula: T_total = T_control + T_forwarding where T_control = RTT + controller processing = 10 ms + 5 ms = 15 ms. Then T_total = 15 ms + 0.1 ms = 15.1 ms. Final: 15.1 ms.
Common mistakes
- Ignoring control-plane latency in SDN reactive examples — must include RTT and controller processing time (see worked example 3).
- Forgetting MANO components or misnaming them — list them exactly as required by the syllabus (verify ETSI names in verify list).
- Treating VNFs as zero-overhead substitutes for hardware. Always mention virtualization overhead and performance testing.
- Mixing northbound and southbound APIs: northbound APIs talk from controller to applications; southbound APIs are between controller and switches/devices.
For your exam
Typical question types:
- Definitions: define SDN, NFV, VNF, MANO, control plane and data plane. Full marks: give precise one-line definitions and an example.
- Short notes: pros and cons of SDN; pros and cons of NFV; how SDN and NFV work together. Full marks: list at least 4 bullet points each, with an example for each pro or con.
- Diagram question: draw SDN architecture or NFV MANO stack. Full marks: show components, arrows for control and data flows, label northbound/southbound APIs or VIM/VNF Manager/Orchestrator.
- Derivations / calculations: calculate reactive flow latency or effective throughput with overlay overhead. Full marks: show formula, substitute numbers with units, step-by-step arithmetic, and final answer with units.
- Design/problem solving: place VNFs on servers, or describe sequence to deploy a virtual firewall chain with SDN steering. Full marks: show steps, mention assumptions (CPU, memory, link bandwidth), and consider failure/resilience.
Quick check
- What is the primary architectural change SDN introduces compared to traditional networks?
- What does NFV stand for and what does a VNF mean?
- Name one advantage and one challenge of combining SDN and NFV.
Answers: 1) Separation of control plane and data plane with logical centralization of control. 2) Network Functions Virtualisation; a Virtual Network Function is a software implementation of a network function running on virtualised infrastructure. 3) Advantage: faster service deployment and global traffic control; Challenge: added orchestration complexity and performance/latency concerns.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?