Information Technology is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

Network functions virtualisation

Network Functions Virtualisation (NFV) is the practice of implementing network functions as software (VNFs) running on general-purpose hardware, letting engineers deploy, scale and chain functions more flexibly than with fixed hardware appliances.

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 operators and cloud/data-centre engineers use NFV to replace fixed hardware middleboxes (firewalls, NAT, load balancers, DPI) with software versions called VNFs (Virtual Network Functions). This reduces vendor lock-in, improves deployment speed, and lets orchestration systems scale and place network functions where resources and latency requirements are best met.

Key ideas

  • Virtual Network Function (VNF) — definition: a software implementation of a network function (such as firewall, NAT, or load balancer) that runs on virtualised infrastructure and exposes network interfaces.

  • NFV Infrastructure (NFVI) — definition: the physical and virtual resources (compute, storage, networking) that host VNFs. In a diagram you should draw: (bottom) Physical servers, switches, storage; (middle) Hypervisor / container runtime and virtual networks; (top) VNFs.

  • Management and Orchestration (MANO) — definition: the set of functions that manage lifecycle (instantiate, scale, heal, terminate) VNFs and the network services they form. ETSI MANO components (draw and label in architecture diagram): NFV Orchestrator (NFVO), VNF Manager (VNFM), Virtualised Infrastructure Manager (VIM). Also include OSS/BSS and external SDN controllers in the diagram. Also include Element Managers (EMs) that provide VNF-specific management. Common ETSI NFV-MANO reference points to label in diagrams: Or-Vnfm, Or-Vi, Vi-Vnfm, Ve-Vnfm, Nf-Vi, Os-Ma. Descriptors you may be asked to name: VNFD (VNF Descriptor), NSD (Network Service Descriptor), and VNFFGD (VNF Forwarding Graph Descriptor).

  • Service Function Chaining (SFC) — definition: the ordered sequence of VNFs a packet flows through to implement a network service. SFC requires mechanisms to steer traffic (encapsulation, metadata) so packets traverse VNFs in the required order. Key SFC components (IETF SFC): the Classifier (assigns flows to chains) and the Service Function Forwarder (SFF) that forwards along the chain. With NSH, remember the Service Path Identifier (SPI) and Service Index (SI) fields used to identify the chain and position.

  • Placement and Scaling: VNFs must be placed on hosts so resource constraints (CPU, memory, bandwidth, NICs) are respected. Horizontal scaling (more VNF instances) and vertical scaling (giving an instance more CPU/memory) are used. Exact placement often maps to known combinatorial problems (bin-packing, virtual network embedding).

  • Stateful vs Stateless VNFs: a stateful VNF keeps per-flow or per-session data (e.g., connection tables in a firewall); a stateless VNF treats each packet/event independently. Placement and scaling are harder for stateful VNFs because state must be migrated or shared.

  • Performance considerations: virtualisation adds overhead (CPU cycles, context switch, I/O path). Techniques to improve performance: SR-IOV and DPDK for fast packet I/O, CPU pinning, NUMA-aware placement, and kernel-bypass user-space drivers.

  • Interplay with SDN: SDN and NFV are complementary. SDN separates control and data planes and provides programmability (see earlier SDN topics); NFV virtualises network functions. SDN can provide programmability for SFC and steering traffic between VNFs.

  • Reliability and high availability: VNFs can be restarted or moved; MANO handles healing. But stateful VNFs require special checkpointing or active-standby designs.

Clarifications: ETSI NFV-MANO defines standard reference points including Or-Vnfm, Or-Vi, Vi-Vnfm, Ve-Vnfm, Nf-Vi, and Os-Ma; the NFV definition given aligns with the ETSI NFV white paper; and VNF placement/embedding is NP-hard (e.g., by reduction from bin-packing/knapsack in the literature).

Formulas

Throughput = total bits transmitted / total time — Throughput in bits per second (b/s). Use for link or VNF processing throughput.

Utilisation (ρ) = arrival_rate λ / service_rate μ — For a queuing server. λ in packets/s, μ in packets/s, unitless. Applies when modelling single-queue processing (M/M/1 assumptions: Poisson arrivals, exponential service times, single server, infinite queue). Requires ρ < 1 for stability (steady state).

Average number in system (M/M/1) L = ρ / (1 − ρ) — packets; Average queue length (M/M/1) Lq = ρ^2 / (1 − ρ) — packets (valid for ρ < 1).

Average waiting time (M/M/1) Wq = ρ / (μ (1 − ρ)) — seconds; Average time in system (M/M/1) W = 1 / (μ − λ) — seconds.

Processing_time_per_packet = cycles_per_packet / CPU_frequency — cycles_per_packet in cycles/packet, CPU_frequency in cycles/second (Hz), gives seconds/packet.

CPU_demand (cycles/s) = packets_per_second × cycles_per_packet — Gives cycles/s required; divide by CPU_frequency to get fraction of core.

Placement capacity constraint (vector form): For each host h: sum_{v in VNFs_on_h} resource_requirement_{v,r} ≤ capacity_{h,r} — r indexes resources (CPU, RAM, net). Units per resource (e.g., CPU cores, bytes, b/s).

Notes: Many NFV exam problems reduce to checking these inequalities for a given assignment.

Worked examples

  1. VNF capacity check (numerical)

Problem: A VNF requires 10,000 CPU cycles per packet to process. Incoming traffic is 2000 packets/s. The server CPU runs at 2.5 GHz (2.5×10^9 cycles/s) and we will pin the VNF to one core. Is one core enough? Show steps.

Solution:

  1. Formula: CPU_demand = packets_per_second × cycles_per_packet.
  2. Numbers: CPU_demand = 2000 pkt/s × 10,000 cycles/pkt = 20,000,000 cycles/s.
  3. Available cycles on one core: 2.5×10^9 cycles/s.
  4. Utilisation = 20,000,000 / 2,500,000,000 = 0.008 = 0.8%.
  5. Since utilisation << 1, one core is more than sufficient in raw cycles. Answer: one core suffices. (But remember to check memory, NIC, and virtualization overhead.)
  1. Service Function Chain trace (theory/algorithmic)

Problem: Draw and explain the packet path through an SFC: clients → load-balancer VNF → firewall VNF → IDS VNF → web server. Describe SFC encapsulation and handling of a TCP SYN packet.

Model answer (what to write/draw):

  • Draw boxes left to right: Client → LB → FW → IDS → Web Server. At each VNF box, label if it is stateful (LB might be stateful for session affinity; FW is stateful; IDS often stateless for detection but may keep flow context).
  • Explain: The SDN controller or SFC proxy steers the packet by encapsulating with an SFC header (e.g., NSH — Network Service Header) or by installing flow rules in virtual switch to forward to the correct next-hop VNF.
  • For a TCP SYN: LB receives and may rewrite destination IP to chosen server, updates its session table (stateful). Packet forwarded to FW, which checks policy; if allowed, it updates connection table and forwards to IDS. IDS inspects payload and metadata; if no alert, forwards to web server. Return packets traverse reverse chain; stateful VNFs must match existing sessions.
  1. VNF placement (small combinatorial example)

Problem: Two servers each with 4 CPU cores. VNFs A,B,C require 2,1,2 cores respectively. Can you place them on two servers? Give one valid placement.

Solution: Server1: A (2 cores) + B (1 core) = 3 cores used. Server2: C (2 cores) = 2 cores used. This fits. Show vector check: S1 used 3/4, S2 used 2/4.

Common mistakes

  • Forgetting I/O and NIC limits: checking only CPU but not link bandwidth, RX/TX queues, or NIC capabilities (SR-IOV) causes performance surprises.
  • Using M/M/1 blindly: queuing model assumptions (Poisson arrivals, exponential service) may not hold; justify model choice.
  • Thinking VNFs always reduce cost: operational complexity, orchestration, debugging, and performance tuning still cost time and money.

For your exam

Question types you will see

  • Definitions and short notes: define NFV, VNF, NFVI, MANO, SFC, stateful vs stateless.
  • Diagrams: draw ETSI NFV reference architecture and label NFVI, VNFs, MANO (NFVO, VNFM, VIM), OSS/BSS, and SDN controller.
  • Derivations and reasoning: show capacity calculations, apply queuing formulas, or prove feasibility of placement with inequalities.
  • Comparisons and discussion: NFV vs traditional appliances, NFV vs SDN, benefits and challenges of NFV.
  • Small algorithm traces: show packet flow through SFC or VNF chaining.

What a full-marks answer includes

  • Clear definitions with bolded terms (in your answer write the term then definition).
  • A neat labeled diagram when asked (draw boxes stacked: Physical → Virtualisation layer → VNFs; show MANO separately managing VNFs). Describe arrows for control and data paths.
  • For numerical problems: write formulas, substitute numbers with units, compute step-by-step, check units, state assumptions (e.g., neglect hypervisor overhead), mention other constraints (memory, NIC).
  • For design/discussion: list advantages, limitations, and practical considerations (state handling, performance tuning, orchestration complexity).

Quick check

  1. What is a VNF?
  2. Name the three ETSI MANO functional blocks.
  3. Give the utilisation formula for an M/M/1 queue (define symbols).

Answers: 1. A VNF is a software implementation of a network function running on virtualised infrastructure. 2. NFV Orchestrator (NFVO), VNF Manager (VNFM), Virtualised Infrastructure Manager (VIM). 3. ρ = λ / μ, where λ is arrival rate (packets/s) and μ is service rate (packets/s).

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?