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.

  • That structure supports controller architecture decision route: SDN controller architecture decision route.
  • 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.
  • At responsibilities and boundaries, Applications makes the architecture testable.
  • They should not need direct switch-rule access.
  • The controller validates requests, combines state, computes rule changes, resolves conflicts, and records decisions.
SDN controller boundary map
SDN controller boundary map
iotclass.org

Major section

Responsibilities and Boundaries (continued)

They need safe defaults for times when the controller is unavailable.

  • 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.
iotclass.org

Major section

Core Controller Services

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

  • Together they explain the stale state and controller loss need safe device defaults figure claim: SDN controller decision loop from application intent through observed state and policy to scoped rule installation and evidence.
  • Other services depend on its freshness and failure handling.
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

Core Controller Services (continued)

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.
  • Owns state freshness, leader or owner selection, shared records, replay protection, and failover behavior.
  • A diagram that lists services but does not show state ownership still leaves important architecture risk hidden.
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.

  • That observation connects this visual to the chapter's running narrative: use it to justify the next design decision and to record what evidence would confirm it in operation.
  • Reactive design should be bounded by scope, rate, and fallback behavior.
SDN controller packet-event message flow
SDN controller packet-event message flow
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.
  • They need safe defaults for times when the controller is unavailable.
iotclass.org

Retrieval practice

Recall check

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 for the unavailable-controller state
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

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.
iotclass.org