Daily deals & top stores
Contact

Software-Defined Networking Interview Questions and Answers

A production OpenFlow switch can hold anywhere from a few hundred flow entries to several hundred thousand, depending entirely on whether it does hardware TCAM-based forwarding or software forwarding. That single number is what most SDN interview questions circle: how much intelligence sits in the controller, how that controller fails, and what happens when a flow table runs out of room. This guide covers the control and data plane split, OpenFlow’s real version history, how OpenDaylight, ONOS, Ryu, and Floodlight actually differ, a named flow-table exhaustion attack with real figures, and a worked answer to the design question that separates junior from senior candidates.

Core Concepts: Control Plane vs. Data Plane

control data plane

In SDN, the control plane, the logic that decides where traffic should go, moves off individual switches and into a centralized controller, while the data plane, the actual packet forwarding, stays on the switches themselves. The architecture is usually described in three layers: an application layer where network services and policies get defined, a control layer where the SDN controller lives, and an infrastructure layer of switches that just forward packets on instruction.

The controller talks upward to applications through a northbound API, most commonly a REST interface, and downward to switches through a southbound API, most commonly OpenFlow. OpenFlow has allowed a switch to maintain connections to more than one controller at once since version 1.2, published in February 2012 by the Open Networking Foundation, which is the feature that makes every multi-controller resilience pattern later in this guide possible.

What’s the difference between SDN and NFV?
SDN centralizes the control plane for a network’s switches and routers. NFV replaces dedicated hardware appliances, firewalls and load balancers among them, with software running on standard servers. A network can use NFV without SDN and SDN without NFV, though most modern carrier deployments combine both.

OpenFlow: The Protocol Behind Every SDN Interview Question

openflow protocol versions

OpenFlow is the southbound protocol that lets a controller add, modify, and delete entries in a switch’s flow table. The version an interviewer expects you to know is 1.3, the version most production Open SDN deployments and open-source switches still target, even though the published specification has moved further.

Version Published Key addition Where it stands today
1.0 2008 Single flow table; matches on Ethernet and IPv4 fields Origin point, from Stanford’s Ethane research; superseded everywhere
1.1 Feb 2011 Multiple flow tables, MPLS tag support Rare in current deployments
1.2 Feb 2012 IPv6 support, multiple concurrent controllers Fully implemented in Open vSwitch
1.3 2012 Auxiliary, parallel controller connections Most widely targeted version in production and open-source switches
1.5.1 2014, revised 2015 Egress tables, packet-type-aware pipeline Latest published spec; adoption lags well behind 1.3

version adoption gap

Open vSwitch, the software switch behind most SDN testbeds and a large share of production deployments, lists its OpenFlow 1.0 through 1.2 support as complete but flags 1.3 support as requiring additional work beyond that baseline, according to the Open vSwitch project documentation. That gap between the published spec and what the most-used software switch actually implements is the practical reason 1.3 fluency is treated as sufficient in an interview and 1.5 knowledge as a bonus.

A Cisco Catalyst 2960-X switch configured for OpenFlow makes the scarcity concrete: per Cisco’s configuration guide, the platform supports at most 500 Layer 3 flow entries across a maximum of 48 OpenFlow-enabled ports, accepts new flow programming from the controller at a sustained rate of no more than 50 flows per second, and does the matching in software instead of a hardware TCAM, because of ASIC limitations on that platform.

Which OpenFlow version should I say I know in an interview?
1.3. It’s the version most vendors implement and most open-source stacks target. Naming 1.5 features, egress tables and packet-type-aware pipelines among them, as a bonus signals depth without overclaiming what’s actually deployed.

Controllers: OpenDaylight, ONOS, Ryu, and Floodlight

sdn controllers comparison

OpenDaylight and ONOS are the two controllers interviewers ask about most. The functional difference between them is their consistency model: OpenDaylight elects a single leader per cluster for high availability, while ONOS keeps an eventually-consistent distributed store shared across every instance.

Controller Governance / language Consistency model Best-fit scenario Key limitation
OpenDaylight (Vanadium SR1, Apr 2026) Linux Foundation Networking; Java Leader election, high availability Cloud and NFV integration with OpenStack and Kubernetes Largest codebase; steeper operational learning curve
ONOS (2.7.0 and later) Open Networking Foundation; Java Eventually consistent, distributed store Carrier and service-provider scale, intent-based networking Requires distributed-systems tuning to run well
Ryu Independent open-source; Python Single instance, no built-in clustering Teaching, prototyping, small testbeds No production-grade HA out of the box
Floodlight Big Switch Networks-backed; Java Single instance Environments needing broad OpenFlow 1.0 to 1.4 support Slower feature cadence than OpenDaylight or ONOS

controller selection criteria

OpenDaylight’s current named release, Vanadium SR1, shipped April 22, 2026 on Java 21, per the OpenDaylight project. ONOS reached its 24th release, 2.7.0, in a lineage stretching back to its December 2014 debut, with the codebase growing from roughly 50,000 lines of code to over 500,000, according to the Open Networking Foundation’s release notes. Per Aptira’s controller review, OpenDaylight carries the largest open-source community of the group; its companion ONOS review notes ONOS’s intent-based framework and native multi-site routing support. Floodlight, meanwhile, is the only one of the four still commonly paired with the full OpenFlow 1.0 through 1.4 range, per an arXiv systematic literature review of NFV and SDN architectures.

The choice mostly comes down to two questions: does the team already run Java-based network infrastructure, and does the deployment need carrier-scale distributed consistency or a single, simpler point of control.

If your SDN controller goes down, what happens to existing traffic flows?
Already-installed flow entries keep forwarding traffic on the switches, since the data plane doesn’t depend on an active controller connection for packets that already match a rule. What breaks is anything needing a new decision: unmatched packets that would normally reach the controller instead get dropped or handled by whatever table-miss behavior was configured, which is why production deployments run multiple controller instances instead of one.

Security and Failure Modes: Beyond the Generic List

flow table attack

A strong security answer names a concrete way an attacker exploits the controller’s centralization, such as a flow-table exhaustion attack against the switch’s TCAM, instead of only listing centralization as a generic risk. Hardware OpenFlow switches store flow entries in ternary content-addressable memory for fast lookups, and TCAM’s cost and power draw mean commercial switches typically cap out at a few hundred thousand entries, per research published in Security and Communication Networks.

slow tcam exhaustion

Researchers demonstrated a Slow-TCAM attack that denies service to legitimate traffic in as little as 38 seconds while sending fewer than 40 packets per second, specifically because it stays under the volume-based triggers that catch conventional flooding attacks, according to the peer-reviewed study “Disrupting SDN via the Data Plane”. The standard mitigation is rate-limiting flow installation with a token bucket, the same class of control the Cisco Catalyst platform above already enforces at 50 flows per second.

How would you defend against a flow-table exhaustion attack on an OpenFlow switch?
Rate-limit how fast the controller installs new flow entries, use short idle timeouts so stale entries clear quickly, and monitor flow-table occupancy directly instead of relying on traffic-volume alarms, since slow exhaustion attacks are built to stay under volume-based thresholds.

SDN vs. NFV vs. SD-WAN

sdn nfv sdwan comparison

These three terms describe different layers of the same shift and get confused constantly in interviews: SDN decouples control from forwarding inside a network, NFV replaces dedicated appliances with software, and SD-WAN is an SDN application aimed specifically at wide-area links.

Technology What it decouples or replaces Primary use case Example
SDN Control plane from data plane Data center and campus network control An OpenFlow-managed switch fabric
NFV Dedicated hardware appliance from a software function Running firewalls or load balancers as VMs A virtual firewall replacing a physical appliance
SD-WAN Manual WAN link configuration from centralized policy Multi-site enterprise WAN connectivity Branch traffic steered across broadband and MPLS links

The three are complementary rather than competing, so an interviewer asking you to distinguish them is testing whether you can place a specific deployment in the right layer, not whether you can recite three separate definitions.

What a Rushed SDN Rollout Usually Gets Wrong

sdn rollout mistakes

The most common failure mode in production SDN rollouts is centralizing control over a network that never needed it in the first place: a 50-switch branch network gains little from a distributed controller cluster and instead inherits a new single point of failure with none of the carrier-scale benefit. The second common mistake is skipping controller redundancy during a pilot, then discovering during the first controller restart that every unmatched packet has nowhere to go. Neither mistake shows up in a proof-of-concept; both show up in the first unplanned outage.

The “Weeks to Minutes” Provisioning Claim: What the Record Shows

provisioning claim evidence

The claim that SDN cuts provisioning from weeks to minutes appears across vendor blogs and guides with no attached source, repeated as a generic industry fact. One version of it is traceable: AT&T’s network chief John Donovan stated publicly that the carrier’s SDN-based Network On-Demand service cut provisioning cycle times by up to 95%, describing a move from a process measured in weeks to one measured in minutes, as reported by Light Reading. That’s a named claim about one carrier’s specific service, not a universal guarantee for any SDN deployment.

Designing a Fault-Tolerant Control Plane: A Worked Scenario

fault tolerant design

For a 500-switch data center, the design question is how many failure domains to plan controllers around, and which consistency model tolerates a lost instance without losing the whole cluster’s view of the network.

A workable answer: split the fabric into 3 to 5 controller clusters mapped to physical failure domains, per pod or per row, and run each cluster with an odd number of instances, 3 as the common baseline, so leader election or the consistency protocol keeps a majority after a single loss. Confirm that the chosen controller’s southbound stack supports the multiple-controller connections OpenFlow has allowed since version 1.2. This is also where the controller choice from the table above matters in practice: an eventually-consistent, cluster-oriented option like ONOS is built for exactly this kind of spread, and a leader-election model like OpenDaylight’s works too, provided the design accounts for what happens to switches whose leader instance sat in the failed domain until a new one is elected.

Leave a Reply

Your email address will not be published. Required fields are marked *