Course contents

Unit 1: Enterprise designLesson 1.2 (1 of 5 in this unit)1 of 63 in the Advanced Cisco SD-WAN course

Controller placement and scaling

Place the Validators, Controllers and Manager across failure domains, see how controller groups and affinity pick an edge's Controllers, and check load and failure headroom with computed tables before building.

Advanced · 22 min read

You'll learn to place the Validators, Controllers and Manager across sites, explain how controller groups and affinity decide which Controllers an edge uses, and check a design for load and failure headroom before it is built.

Technical definition

Controller placement and scaling is the design of where the SD-WAN control components run and how many instances there are. Placement decides which failures leave something running. Scaling decides whether the instances that survive a failure can carry the load of the ones that were lost.

Three components, three kinds of load

The control side of an overlay has three components, and each one is stressed by something different. A design that treats them as one "controller" sizes the wrong thing. The Validator is stressed by devices joining, the Controller by the OMP sessions and control connections of every edge, and the Manager by the number of managed devices, their statistics and the people and scripts that use it.

Diagram
What each control component carries
What each control component carries

The overlay control side has a Validator, a Controller and a Manager. The Validator is the first contact for a device that joins. The Controller holds the OMP sessions and distributes routes and policy. The Manager holds configuration, monitoring and the API.

Overlay control
  • Validatorfirst contact,joins and rejoins
  • ControllerOMP sessions,routes and policy
  • Managerconfiguration,statistics, API
Each component grows with a different count, so each is sized separately.
Diagram
What to size for each component
What to size for each component
ComponentLoad that growsIf every instance is lostRedundancy approach
ValidatorDevices joining or rejoiningNew and restarted devices cannot joinSeveral instances behind one name
ControllerOMP sessions and control connections from every edgeRoutes and policy stop updating; held routes go staleSeveral instances in controller groups
ManagerManaged devices, statistics, templates, API usersNo changes or monitoring; forwarding continuesA cluster in one site and a copy in another
Based on the usual roles of the components. The control outage lesson covers what keeps working during each loss.

Place by failure domain first

A failure domain is whatever can fail together: a rack, a power feed, a data centre, a cloud region or the network in front of it. The first placement rule is that no single failure domain holds every instance of a component. The Validators and Controllers are spread across two sites, and the references read say to include the Validators in that spread. Putting all instances in one site gives redundancy against a box failure and none against a site failure.

Diagram
One site against two sites
One site against two sites

With every control component in one site, a power or network failure at that site removes all of them. With instances split across two sites, one site can fail and an edge still reaches a Validator and a Controller in the other.

Everything in one sitetwo boxes, onefailure domain
Spread over two sitesa site loss leavessome of each
Count the failure domains, not the boxes.

Reachability matters as much as location. An edge uses whichever transport is up, so the Validators and Controllers have to be reachable over every transport the edges use. On an Internet transport that normally means a public or translated address. On a private transport such as MPLS it means an address that the carrier network can route. One Cisco design case study warns that private addressing used on MPLS may prevent tunnels from forming on the other transports. The Validators are usually given one name that resolves to several addresses, and a device tries them in turn, according to a secondary reference.

Diagram
Placement rules and how to check them
Placement rules and how to check them
RuleWhyHow to check
Spread Validators and Controllers across two sitesA site loss leaves some of eachFail one site in a test and read the control connections of an edge
Keep the nodes of one Manager cluster togetherCluster nodes need a fast, short link between themMeasure bandwidth and delay between the nodes
Put the second region's Manager in as a disaster-recovery copyA cluster cannot be stretched over a long distanceTest the manual switchover and record how long it takes
Make every control component reachable on every transportThe edge uses whichever transport is upTest from a branch that has only the Internet circuit
Give the Validators one name with several addressesA device tries the addresses in turnResolve the name from a branch and read every address returned
The documentation read gave no round-trip limit between an edge and a Controller, so choose Controller sites by failure domain first. Then test the control connections from the farthest branch.

How an edge picks its Controllers

An edge does not choose Controllers at random from the whole overlay. It starts with the Validator, which tells it which Controllers exist. Controllers carry a group number, and the edge has a list of the groups it may use, the controller group list. This is called affinity. Inside a group the edge connects to one Controller, picked by a hash, and when that Controller fails the edge tries another in the same group.

Diagram
From the Validator to a Controller session
From the Validator to a Controller session

The edge learns the Controllers from the Validator. It filters them by its controller group list. In each group it connects to one Controller. It keeps no more OMP sessions than the maximum set for the device. If a Controller fails, it tries another Controller in the same group.

  1. Validator listthe edge learnsthe Controllers
  2. Group filteronly listed groupsare candidates
  3. One per groupa hash picks theinstance
  4. Session limitno more sessionsthan the maximum
  5. Failurenext instance inthe same group
The design controls the groups, and the edge picks the instance inside a group.
Diagram
The settings that shape the choice
The settings that shape the choice
SettingWhat it limitsValue in the references readCaution
Controller group list on the deviceWhich groups the edge may use, in order of preferenceControllers are in group 0 unless setThe device and the Controllers must agree on group numbers
Excluded groups on a tunnel interfaceGroups that one transport must not useNoneApplies to one transport, not the whole device
Maximum OMP sessionsHow many different Controllers the device keeps OMP sessions with2Counted per device, not per interface
Maximum control connectionsControl connections per tunnel interface to Controllers2 in one reference; a reader disputes itCheck the release and the platform
Names, defaults and where each is set (command line, feature template or configuration group) vary by platform and release, and one source was a secondary reference. Confirm in the configuration guide for the release in use.

The example below is an edge with two transports, a group list of 1 and 2, and two Controllers in each group. Both transports hold a control connection to the same two Controllers, one in each group, which is four connections for two OMP sessions. Real releases differ in how an edge fills its sessions when a whole group is unreachable, so the failure behaviour needs a test and not an assumption.

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-01#show sdwan control connections | include vsmart
PEER TYPE  SYSTEM IP     SITE ID  GROUP  LOCAL COLOR   STATE
vsmart     10.255.0.11   1        1      mpls          up
vsmart     10.255.0.14   2        2      mpls          up
vsmart     10.255.0.11   1        1      biz-internet  up
vsmart     10.255.0.14   2        2      biz-internet  up
Two Controllers appear, 10.255.0.11 in group 1 at site 1 and 10.255.0.14 in group 2 at site 2, each over both transports. The other two instances, 10.255.0.13 in group 1 and 10.255.0.15 in group 2, are the partners that take over if one of these fails. Real output has more fields and a different layout.

Count what the Controllers carry

Two counts drive Controller load, and they are counted differently. Control connections are counted per tunnel interface, because each interface builds its own to the Controllers it uses. OMP sessions are counted per device, because the device keeps one OMP session with each Controller, whatever the number of interfaces.

Diagram
Counted per interface and counted per device
Counted per interface and counted per device

Control connections are counted for each tunnel interface, so a device with more transports holds more of them. OMP sessions are counted once per device and Controller, so adding a transport does not add a session.

Control connectionsper interface, perController used
OMP sessionsper device, perController used
A second transport doubles the connections and leaves the sessions alone.
Diagram
Connections and sessions per edge (computed)
Connections and sessions per edge (computed)
EdgeTunnel interfacesControl connections to ControllersOMP sessions
Single-transport branch122
Dual-transport branch242
Hub edge with three transports362
Computed as interfaces times two Controllers per interface, with two OMP sessions per device. This is the model of this lesson with the defaults in the references read. Check the real values with the control connections output.
Diagram
A 3,200-edge network, four Controllers (computed)
A 3,200-edge network, four Controllers (computed)
Edge typeCountControl connections eachTotal connectionsTotal OMP sessions
Single-transport branches2,00024,0004,000
Dual-transport branches1,00044,0002,000
Hub edges20061,200400
All edges3,200-9,2006,400
Per Controller, 2 groups of 2, even spread--2,3001,600
Computed by script. The edge counts are an example. The even spread is a simplification: the hash spreads edges roughly, not exactly. Cisco's scale documents state each limit in their own unit, so find out whether the unit is devices, connections or sessions before comparing.

Failure headroom: the partner carries the group

When a Controller in a group fails, the edges that were on it move to the others in the same group. With two Controllers in a group, the surviving partner carries the whole group, which is double its normal load. That is the arithmetic that placement tends to skip: two Controllers each at 60 percent of their limit provide no redundancy, because the partner would need 120 percent.

Diagram
What each Controller carries as failures arrive
What each Controller carries as failures arrive

In normal operation each Controller in a group carries an even share of the group. After one failure the survivors share the group between them, so each carries more. After a whole site fails, the other site's Controllers keep the sessions they already had, and each edge is left with fewer sessions than it was designed for.

  1. NormalEach Controller carriesthe group's load divided by its size
  2. One lostSurvivors share the groupso each carries more
  3. Site lostThe other site keeps its sessionsand each edge has fewer than designed
Plan the survivor's load, not the normal load.
Diagram
Sessions per Controller for 3,200 edges (computed)
Sessions per Controller for 3,200 edges (computed)
Controllers in each groupNormalAfter one is lostAfter two are lostNormal load must stay below
2 per group1,6003,200-50.0 % of the limit
3 per group1,0671,6003,20066.7 % of the limit
4 per group8001,0671,60075.0 % of the limit
Computed by script: two groups, one session per edge in each group, an even spread inside the group. The last column is (n minus 1) divided by n, which keeps the survivors within the limit after one loss.

The same table scales with the number of edges. At 6,400 edges the pair of Controllers in a group would carry 3,200 sessions each in normal operation and 6,400 for the survivor, and at 800 edges the figures fall to 400 and 800. Doubling the edges doubles every cell, which is why a design that fits today needs the check repeated when the number of sites grows.

A worked case: the design review

Priya reviews a design before purchase. It has 3,200 edges, two groups with one group in each site, and two Controllers per group. The vendor sizing says that the planned instance size has a limit of 2,500 in the unit used for the sessions. That number is an example for this lesson and not a Cisco figure, so the real review uses the number from the current document. She applies the table to it.

Diagram
The design review against an example limit of 2,500 (computed)
The design review against an example limit of 2,500 (computed)
Controllers in each groupAfter one is lostAgainst 2,500After two are lostAgainst 2,500
2 per group3,200Over the limit--
3 per group1,600Within the limit3,200Over the limit
4 per group1,067Within the limit1,600Within the limit
Computed from the previous table. The limit of 2,500 is an invented example. The comparison shows the method, and the real limit comes from the scale document for the release and size.

With two per group, one failure already puts the survivor over the limit, so the design fails its own review. With three per group, one failure is covered and two simultaneous failures in one group are an accepted risk that the team has to write down. With four, both are covered, and the cost is the extra instances. The decision belongs to the owner of the risk, and the arithmetic makes the choice visible.

The Manager: a cluster in one site, a copy in another

The Manager scales differently. More load is handled by a cluster of nodes that share the work, and the nodes need a fast, short link between them. The documentation read asks for at least 1 Gbps and a latency of 4 ms or less between cluster nodes, with 10 Gbps recommended. A Cisco design case study for a large network used a six-node cluster in each of two data centres, one primary and one backup, and notes that a smaller cluster could have been the start. The largest supported cluster size and the number of devices per cluster size come from the current documents and were not confirmed in the pages read.

Diagram
Cluster against disaster-recovery copy
Cluster against disaster-recovery copy

A cluster spreads load across nodes in one site that are close together and linked by a fast connection. A disaster-recovery copy is a second Manager in another site that receives replicated data, and the switch to it is a manual step.

Clusternodes close togetherfast link, shared work
Disaster-recovery copysecond site, replicateddata, manual switch
A cluster handles load. A copy handles the loss of a site.

The 4 ms figure limits distance. The table turns it into kilometres under stated assumptions, reading the figure as a round trip, which is the stricter reading because the documentation does not say which it is.

Diagram
How far apart can cluster nodes be? (computed)
How far apart can cluster nodes be? (computed)
Straight-line distanceEstimated round trip in fibreAgainst a 4 ms limit
10 km, same metro area0.15 msWithin
50 km0.75 msWithin
100 km1.50 msWithin
250 km3.75 msWithin, with little room for equipment delay
500 km7.50 msOver
1,000 km, other region15.00 msOver
Computed by script from 5 microseconds per kilometre each way and a fibre route 1.5 times the straight line, with no delay from switches, routers or firewalls. Real links add delay, so the usable distance is shorter. A disaster-recovery copy needs open ports between the sites, and replication of a large database can take hours according to the Cisco document read for release 20.12.

The disaster-recovery copy fits the second region. The documents read describe the switch to it as a manual step, so the runbook has to name who performs it and how long the replication lag is allowed to be.

Learn more: Controller HA and Failure DomainsControl Outage versus Forwarding OutageController Certificate FailuresOnboarding the Controllers

Test yourself

Predict · scenario 1

3,200 edges each keep one session in group 1 and one in group 2, and each group has two Controllers. One Controller in group 1 fails. How many sessions does its partner carry?

Predict · scenario 2

The same network has three Controllers in each group. One Controller in group 1 fails. How many sessions does each survivor carry?

Predict · scenario 3

Two Controllers in a group each run at 60 percent of their limit. One fails. What does the survivor need?

Predict · scenario 4

In this lesson's model, an edge has three tunnel interfaces, two Controllers per interface and two OMP sessions per device. How many control connections and OMP sessions does it hold toward the Controllers?

Predict · scenario 5

A team plans a three-node Manager cluster with one node in each of three regions, about 80 ms apart. What is wrong?

Predict · scenario 6

After a rebuild, branches that have only an Internet circuit cannot join. The Validators use addresses that only the MPLS network can route. What is the fix?

Predict · scenario 7

A design needs the device limit of a Controller size. What is the sound way to get it?

Predict · scenario 8

Which command on an edge shows which Controllers it holds control connections with, and in which groups?

FAQ

How many Controllers does a network need?
At least two instances in production, so that one can fail or be upgraded, placed in different sites. How many beyond that depends on the number of edges, the Controller size and the headroom rule in this lesson. The device limit for each size is in Cisco's current scale and compatibility documents for the release in use, and the numbers differ between releases.
What does a controller group do?
It labels a set of Controllers so that an edge can be told which ones to prefer. An edge lists the groups it may use, and it connects to Controllers in those groups, so a design can steer regions to nearby Controllers or keep a branch away from a group. Which Controller inside a group an edge ends up on is chosen by the edge, not by the engineer.
Can a Manager cluster be spread across two regions?
The documentation read asks for a link of at least 1 Gbps and a latency of 4 ms or less between cluster nodes, which keeps the nodes in one site or one metro area. A second region is covered by a disaster-recovery copy with a manual switchover, not by stretching the cluster.
Does losing every Controller stop traffic?
Existing tunnels keep carrying traffic for a while, and routes the edge already holds are kept as stale routes. New routes and policy changes stop arriving. The control outage lesson shows how to tell this from a forwarding outage.
Why does this lesson not quote a device limit per Controller?
The pages read for this lesson did not give one, and the published figures depend on the release and on the size of the instance. Take the limit from the scale document for the release and size, note the unit it uses (devices, control connections or sessions), and apply the headroom rule to that number.