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.
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.
- Validatorfirst contact,joins and rejoins
- ControllerOMP sessions,routes and policy
- Managerconfiguration,statistics, API
| Component | Load that grows | If every instance is lost | Redundancy approach |
|---|---|---|---|
| Validator | Devices joining or rejoining | New and restarted devices cannot join | Several instances behind one name |
| Controller | OMP sessions and control connections from every edge | Routes and policy stop updating; held routes go stale | Several instances in controller groups |
| Manager | Managed devices, statistics, templates, API users | No changes or monitoring; forwarding continues | A cluster in one site and a copy in another |
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.
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.
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.
| Rule | Why | How to check |
|---|---|---|
| Spread Validators and Controllers across two sites | A site loss leaves some of each | Fail one site in a test and read the control connections of an edge |
| Keep the nodes of one Manager cluster together | Cluster nodes need a fast, short link between them | Measure bandwidth and delay between the nodes |
| Put the second region's Manager in as a disaster-recovery copy | A cluster cannot be stretched over a long distance | Test the manual switchover and record how long it takes |
| Make every control component reachable on every transport | The edge uses whichever transport is up | Test from a branch that has only the Internet circuit |
| Give the Validators one name with several addresses | A device tries the addresses in turn | Resolve the name from a branch and read every address returned |
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.
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.
- Validator listthe edge learnsthe Controllers
- Group filteronly listed groupsare candidates
- One per groupa hash picks theinstance
- Session limitno more sessionsthan the maximum
- Failurenext instance inthe same group
| Setting | What it limits | Value in the references read | Caution |
|---|---|---|---|
| Controller group list on the device | Which groups the edge may use, in order of preference | Controllers are in group 0 unless set | The device and the Controllers must agree on group numbers |
| Excluded groups on a tunnel interface | Groups that one transport must not use | None | Applies to one transport, not the whole device |
| Maximum OMP sessions | How many different Controllers the device keeps OMP sessions with | 2 | Counted per device, not per interface |
| Maximum control connections | Control connections per tunnel interface to Controllers | 2 in one reference; a reader disputes it | Check the release and the platform |
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.
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
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.
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.
| Edge | Tunnel interfaces | Control connections to Controllers | OMP sessions |
|---|---|---|---|
| Single-transport branch | 1 | 2 | 2 |
| Dual-transport branch | 2 | 4 | 2 |
| Hub edge with three transports | 3 | 6 | 2 |
| Edge type | Count | Control connections each | Total connections | Total OMP sessions |
|---|---|---|---|---|
| Single-transport branches | 2,000 | 2 | 4,000 | 4,000 |
| Dual-transport branches | 1,000 | 4 | 4,000 | 2,000 |
| Hub edges | 200 | 6 | 1,200 | 400 |
| All edges | 3,200 | - | 9,200 | 6,400 |
| Per Controller, 2 groups of 2, even spread | - | - | 2,300 | 1,600 |
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.
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.
- NormalEach Controller carriesthe group's load divided by its size
- One lostSurvivors share the groupso each carries more
- Site lostThe other site keeps its sessionsand each edge has fewer than designed
| Controllers in each group | Normal | After one is lost | After two are lost | Normal load must stay below |
|---|---|---|---|---|
| 2 per group | 1,600 | 3,200 | - | 50.0 % of the limit |
| 3 per group | 1,067 | 1,600 | 3,200 | 66.7 % of the limit |
| 4 per group | 800 | 1,067 | 1,600 | 75.0 % of the limit |
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.
| Controllers in each group | After one is lost | Against 2,500 | After two are lost | Against 2,500 |
|---|---|---|---|---|
| 2 per group | 3,200 | Over the limit | - | - |
| 3 per group | 1,600 | Within the limit | 3,200 | Over the limit |
| 4 per group | 1,067 | Within the limit | 1,600 | Within the limit |
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.
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.
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.
| Straight-line distance | Estimated round trip in fibre | Against a 4 ms limit |
|---|---|---|
| 10 km, same metro area | 0.15 ms | Within |
| 50 km | 0.75 ms | Within |
| 100 km | 1.50 ms | Within |
| 250 km | 3.75 ms | Within, with little room for equipment delay |
| 500 km | 7.50 ms | Over |
| 1,000 km, other region | 15.00 ms | Over |
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
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?
The same network has three Controllers in each group. One Controller in group 1 fails. How many sessions does each survivor carry?
Two Controllers in a group each run at 60 percent of their limit. One fails. What does the survivor need?
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?
A team plans a three-node Manager cluster with one node in each of three regions, about 80 ms apart. What is wrong?
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?
A design needs the device limit of a Controller size. What is the sound way to get it?
Which command on an edge shows which Controllers it holds control connections with, and in which groups?