Cloud, SDN & Production Architectures · Study deck

SDN Controllers: Architecture Foundations

The controller must read current state, choose a rule, install it, and show that the service still works.

Cloud Clara is your guide for this deck.

Cloud Clara, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Map the major services inside an SDN controller and explain what each service owns.
  • Trace a packet event or application request through validation, policy checks, rule computation, southbound installation, and proof collection.
  • Distinguish state that needs strong coordination from state that can be sampled, stale, local, or externally verified.
  • Compare proactive, reactive, and hybrid rule installation without relying on unsupported latency promises.
iotclass.org

Major section

Start With the Controller Job

The controller must read current state, choose a rule, install it, and show that the service still works.

  • Telemetry means status and measurements reported by network parts.
  • Latency means the time from the request to the result that matters.
  • An accepted request is not proof of useful forwarding.
  • Request one allowed change and one forbidden change.
iotclass.org

Major section

Start With the Controller Job (continued)

Central coordination can improve the network, but it should not erase the device's failure boundary.

  • This opening does not choose one controller layout or promise instant change.
  • Staff should see the rule state, service result, owner, and safe fallback without guessing.
  • An SDN controller is not just a dashboard.
iotclass.org

Major section

Controller Architecture Decision Route

At controller architecture decision route, Service intent makes the architecture testable.

  • The rule result then names matches, actions, timeouts, and affected devices; installation can be accepted, rejected, partial, or degraded.
  • A topology change or missing proof reopens review, since a controller decision is only as current as the state and outcome it can show.
  • Close the route by comparing controller records with switch counters, receiver behaviour, alert state, and rollback proof; that final comparison reconnects the controller decision to the service intent that opened the route.
SDN controller architecture decision route
SDN controller architecture decision route
iotclass.org

Major section

Responsibilities and Boundaries

The controller sits between applications and forwarding devices.

  • It should not erase the boundary between them.
  • The controller validates those requests, combines state, resolves conflicts, computes changes, and records its decision.
  • Switches and gateways then enforce installed behaviour locally, including a safe default when the controller is absent.
  • A controller decision is not proof that the service outcome occurred.
SDN controller boundary map
SDN controller boundary map
iotclass.org

Major section

Responsibilities and Boundaries (continued)

Operations closes the path by asking who requested the change, what was installed, where it landed, what result appeared, and whether rollback was tested.

  • They should not need direct switch-rule access.
  • The controller validates requests, combines state, computes rule changes, resolves conflicts, and records decisions.
  • They need safe defaults for times when the controller is unavailable.
iotclass.org

Major section

Responsibilities and Boundaries (continued)

Operations needs proof: who asked, what changed, where it was installed, what worked, and how rollback was tested.

  • The controller should coordinate network behavior, not forward routine packets through software.
  • Routine traffic should stay in the data plane after rules are installed.
  • Controller involvement should be deliberate, observable, and bounded.
iotclass.org

Major section

Core Controller Services

A controller implementation may use different names, but most designs need the same service responsibilities.

  • Other services depend on its freshness and failure handling.
  • Tracks device sessions, capabilities, switch roles, ports, supported actions, and connection changes.
  • Translates approved decisions into match-action rules, priorities, timeouts, counters, and install or remove actions.
SDN controller decision loop from application intent through observed state and policy to scoped rule installation and evidence
SDN controller decision loop from application intent through observed state and policy to scoped rule installation and evidence
iotclass.org

Major section

State Model and Ownership

Controller state does not all need the same consistency model.

  • Policy ownership, conflicting writes, active rule records, rollback gates, and controller role decisions need clear ownership.
  • Topology and device capability records can change.
  • A controller should know when this state is stale before computing new rules.
Controller records need distinct ownership and freshness rules: coordinate policy and rule state strongly, freshness-check topology and device state, sample telemetry, and verify the external service separately.
Controller records need distinct ownership and freshness rules: coordinate policy and rule state strongly, freshness-check topology and device state, sample telemetry, and verify the external service separately.
iotclass.org

Major section

State Model and Ownership (continued)

Telemetry counters and trends can often be delayed or approximate, as long as decisions account for that delay.

  • Switch tables, buffers, port state, cached rules, and fallback behavior must be verified at the device, not assumed from the controller.
  • Receiver health, application acknowledgement, gateway logs, incident records, and operator approval prove the service outcome.
  • The most important decision question is: "Could two controller paths make conflicting decisions for the same scope?" If yes, define a decision owner, idempotency rule, and conflict resolution path before trusting automation.
iotclass.org

Major section

Message Flow: Packet Event to Rule

Reactive events are useful when the controller must decide about traffic it has not seen before.

  • The switch sends an event or summary to the controller, which validates switch identity, ingress port, and state freshness before consulting topology and policy.
  • Reactive design should be bounded by scope, rate, and fallback behavior.
  • The rule manager computes changes for the current and affected devices, but each switch may accept, reject, partly apply, or defer them.

Why it matters

Because this reactive path adds delay and load, its scope, rate, and fallback behaviour must remain bounded.

SDN controller packet-event message flow
SDN controller packet-event message flow
iotclass.org

Major section

Message Flow: Packet Event to Rule (continued)

Because this reactive path adds delay and load, its scope, rate, and fallback behaviour must remain bounded.

  • The controller record must combine its decision with switch responses, counter movement, receiver evidence, and rollback state.
  • Unknown or suspicious traffic can be reactive.
  • Known sensor-to-gateway paths, protected alerts, routine telemetry, and maintenance rollback paths usually need planned rules or local fallback.
iotclass.org

Deck summary

Key takeaways

The controller must read current state, choose a rule, install it, and show that the service still works.

  • Central coordination can improve the network, but it should not erase the device's failure boundary.
  • At controller architecture decision route, Service intent makes the architecture testable.
  • The controller sits between applications and forwarding devices.
  • Operations closes the path by asking who requested the change, what was installed, where it landed, what result appeared, and whether rollback was tested.
iotclass.org

Retrieval practice

Recall check 1 of 3

Cloud Clara says: answer from memory, then check your reasoning.

Q1A topology update triggers an SDN rule change. What should happen before rule computation?

ATreat the event source as sufficient authorization
BUse a prior topology snapshot without a freshness check
CCheck current state, policy, capability, and ownership
DInstall a rule and identify its owner later
Show answer

Answer: C The route first evaluates the request against a fresh and scoped controller view.

Q2An SDN controller becomes unavailable. What should forwarding devices have prepared?

AA new intent vocabulary without installed behavior
BSafe local defaults when the controller is unavailable
CDirect application access to bypass request validation
DAn operations report instead of forwarding behavior
Show answer

Answer: B The device boundary includes local enforcement and safe defaults.

iotclass.org

Retrieval practice

Recall check 2 of 3

Cloud Clara says: answer from memory, then check your reasoning.

Q3An SDN controller manages rule ownership while switches report changing link counters. Which state needs stronger coordination?

AThe latest topology screenshot, rather than who may write flow rules.
BRule intent and ownership before rival controllers install policy.
CEvery sampled switch counter, treated as shared controller intent.
DA cached traffic graph showing old link rates rather than policy.
Show answer

Answer: B Conflicting rule owners can change forwarding behavior.

iotclass.org

Retrieval practice

Recall check 3 of 3

Cloud Clara says: answer from memory, then check your reasoning.

Q4An SDN switch carries protected alerts and sometimes sees unfamiliar traffic. Which rule plan is defensible?

APreinstall alert path; bound reactive unknown traffic; retain local fallback.
BSend every data packet to the controller for a live decision.
CInstall no fallback because controller uptime is normally high.
DAllow unfamiliar packets permanently through one broad rule.
Show answer

Answer: A Planned rules protect known traffic while bounded reaction handles uncertainty.

iotclass.org

Print reference

Answers

Answer key.

  1. C · The route first evaluates the request against a fresh and scoped controller view.
  2. B · The device boundary includes local enforcement and safe defaults.
  3. B · Conflicting rule owners can change forwarding behavior.
  4. A · Planned rules protect known traffic while bounded reaction handles uncertainty.
iotclass.org