Traditional networks are built from boxes, each configured by hand. SDN and NFV turn networks into software that can be programmed and changed quickly.
Traditional Networks and Their Limits
In a traditional network, every router and switch contains both the control plane (deciding where traffic should go, by running routing protocols) and the data plane (forwarding packets). Each device is configured individually, often with vendor-specific commands, so changes are slow, error-prone and hard to automate, and new features depend on vendors.
Definition: Software-Defined Networking. An architecture that separates the control plane from the data plane, placing control in a centralised, programmable software controller that tells simple forwarding devices how to handle traffic.
SDN Architecture
SDNseparates the control plane from the data plane. A logically centralised controller (such as OpenDaylight or ONOS) has a global view of the network and decides how traffic flows. The switches become simple forwarding devices that follow flow tables installed by the controller. The architecture has three layers: the application layer (programs for routing, load balancing, firewalls and monitoring), the control layer (the controller), and the infrastructure layer (switches). The controller talks to applications through northbound APIs (usually REST) and to switches through southbound APIs, chiefly OpenFlow. An OpenFlow flow entry has match fields (such as input port, MAC or IP addresses, ports), a priority, actions (forward to a port, drop, modify, send to controller) and counters. A packet that matches no entry may be sent to the controller, which decides and installs a new rule.
Benefits of SDN
SDN gives centralised management, programmability and automation, faster introduction of services, vendor independence, fine-grained traffic engineering, and better visibility. Challenges are the controller as a single point of failure (handled by clustering), scalability and security of the controller. Google's B4 network between its data centres is a famous SDN deployment, and SD-WAN applies the idea to links between branch offices.
Network Function Virtualization
NFV runs network functions — firewalls, load balancers, NAT, routers, intrusion detection, WAN optimisers — as software (virtual network functions, VNFs) on standard servers, instead of dedicated hardware appliances. It reduces cost, allows rapid deployment and scaling, and lets functions be chained together (service function chaining). Its framework (from ETSI) has the NFV infrastructure, the VNFs, and MANO (management and orchestration). SDN and NFV are complementary: SDN controls where traffic goes; NFV provides the functions that process it.
Table 4.5: SDN and NFV
| Feature | SDN | NFV |
|---|---|---|
| Main idea | Separate control from data plane | Network functions as software |
| Focus | Programmable traffic control | Replacing hardware appliances |
| Key standard | OpenFlow | ETSI NFV framework |
| Runs on | Controller and switches | Standard servers, VMs, containers |
Example 4.5: A flow table in action
Problem: A switch's flow table, in priority order, has: 1) TCP destination port 22 → drop; 2) destination IP 10.0.0.5 → output port 2; 3) anything else → send to controller. What happens to: (a) a web packet to 10.0.0.5, (b) an SSH packet to 10.0.0.5, (c) a packet to 10.0.0.9?
Solution:
- (a) Port 80 does not match rule 1; it matches rule 2: forwarded to port 2.
- (b) Port 22 matches rule 1 first: dropped.
- (c) No specific match, so rule 3: sent to the controller, which may install a new rule.
Result: Port 2, dropped, and sent to the controller.
flows = [({"tcp_dst": 22}, "drop"),
({"ip_dst": "10.0.0.5"}, "output:2"),
({}, "controller")]
counters = [0, 0, 0]
def handle(pkt):
for i, (match, action) in enumerate(flows):
if all(pkt.get(k) == v for k, v in match.items()):
counters[i] += 1
return action
for pkt in [{"ip_dst": "10.0.0.5", "tcp_dst": 80},
{"ip_dst": "10.0.0.5", "tcp_dst": 22},
{"ip_dst": "10.0.0.9", "tcp_dst": 443}]:
print(pkt, "->", handle(pkt))
print("rule counters:", counters)
Output
{'ip_dst': '10.0.0.5', 'tcp_dst': 80} -> output:2
{'ip_dst': '10.0.0.5', 'tcp_dst': 22} -> drop
{'ip_dst': '10.0.0.9', 'tcp_dst': 443} -> controller
rule counters: [1, 1, 1]
Common mistakes
- Thinking SDN removes the data plane. Switches still forward packets; only control moves.
- Treating SDN and NFV as the same thing. They solve different problems and work together.
- Forgetting that a centralised controller must be made reliable and secure.
Key takeaways
- SDN separates control and data planes, with a programmable central controller.
- Northbound APIs connect applications; southbound APIs (OpenFlow) program switches.
- Flow entries have match fields, priority, actions and counters.
- NFV runs network functions as software on standard servers; it complements SDN.
Practice questions
- What does SDN separate?
- What is OpenFlow?
- Give two examples of virtual network functions.
Answers to the practice questions
- The control plane from the data plane.
- A southbound protocol that lets an SDN controller install flow entries in switches.
- Firewalls and load balancers (also NAT, routers, IDS).
Sources
- Official BCA syllabus Computer Networks, course code 26BCA404DS02, Unit IV
