Course contents

Unit 2: Advanced OMP and TLOCLesson 2.9 (8 of 8 in this unit)13 of 63 in the Advanced Cisco SD-WAN course

Tunnel groups for topology control

Use tunnel group IDs to divide a large hub-and-spoke network, count the tunnels on each head-end with real group sizes, and see what the groups cost in resilience.

Advanced · 18 min read

You'll learn to explain how a tunnel group ID decides which TLOCs form tunnels, work out how groups divide the tunnels on a head-end, and check a group design for uneven splits and for the resilience it removes.

Technical definition

Tunnel group is a number set on a tunnel interface so that TLOCs form tunnels only with TLOCs that carry the same number, independent of the colour. A TLOC without a number is described as forming tunnels with all groups. Groups let a design divide a large hub-and-spoke network into parts that build no tunnels to each other.

When one set of hubs means too many tunnels

In a hub-and-spoke network every branch builds a tunnel to the head-end for each of its transports. With 4,000 branches and two transports each, one head-end router holds 8,000 tunnels. Adding a second router does not help if both routers serve every branch, because each router still carries every tunnel. What helps is to divide the branches into parts and let each part use its own head-ends. Tunnel groups are the setting that makes the division.

Diagram
One pool of head-ends against groups
One pool of head-ends against groups

With one pool, every branch builds tunnels to every head-end router, so each router holds all of them. With groups, each branch builds tunnels only to the head-ends of its own group, so each router holds only the branches of that group.

One poolevery branch toevery head-end
Tunnel groupseach branch to thehead-ends of its group
The tunnels per head-end fall with the number of groups.
Diagram
Tunnels on one head-end router, 4,000 branches (computed)
Tunnels on one head-end router, 4,000 branches (computed)
GroupsBranches in each groupTunnels per head-end routerAgainst the 5,000-tunnel example limit
1 group4,0008,000Over the limit
2 groups2,0004,000Within the limit
4 groups1,0002,000Within the limit
8 groups5001,000Within the limit
Computed by script as branches times two transports divided by the number of groups, with the branches split evenly and each group served by head-ends that every branch in the group connects to. The 5,000-tunnel limit is an invented example, and the real limit comes from the datasheet and release notes of the head-end platform.

What a tunnel group does

A tunnel group is a number set on a tunnel interface, and it travels as an attribute of the TLOC. The references read describe three outcomes when two TLOCs consider a tunnel: the same number forms a tunnel, a missing number on one side forms a tunnel, and two different numbers form none. The colour does not matter for the match, unless the restrict option is also set, and then the colours have to match as well as the numbers.

Diagram
Three outcomes of the group rule
Three outcomes of the group rule

Two TLOCs with the same group ID form a tunnel. If one TLOC has no group ID, they form a tunnel anyway, according to the references read. If the two group IDs differ, no tunnel forms.

  1. Same groupGroup 1 with group 1A tunnel forms
  2. No group on one sideGroup 1 with no groupA tunnel forms
  3. Different groupsGroup 1 with group 2No tunnel forms
The colours are ignored in the group match, unless restrict adds the colour match.
Diagram
Colour, restrict and group compared
Colour, restrict and group compared
SettingWhat it controlsApplies toLimit noted in the references
ColourThe kind of transport, and by default the public and private pairingEach tunnel interfaceDifferent colours can still connect unless restricted
RestrictOnly same-colour TLOCs form tunnelsA colour on a routerOnly one interface per router can carry a given colour
Tunnel groupWhich sites may form tunnels, whatever the colourEach tunnel interfaceOne value per interface in the examples read
From training references and a Cisco design case study, which agree on the main rule. The pages read leave open what a group of 0 means, whether a TLOC can carry several groups, and the exact behaviour of restricted TLOCs that have no group.

Designing the groups

The case study read splits a very large network into two groups by geography, with each branch applying its group to all of its transports and each data centre serving each group with its own pair of head-ends. The same method works at any scale. The steps are to pick the dimension that divides the branches, give every transport of a branch the same group, and place the head-ends that serve each group.

Diagram
Building a group design
Building a group design

Pick the dimension that divides the branches, such as the region. Give every transport of a branch the same group ID. Place head-ends that serve each group. Count the tunnels on each head-end with the real group sizes. Test what happens when the head-ends of one group fail.

  1. Pick the splitregion or anothernatural dividing line
  2. Assign groupssame ID on everytransport of a branch
  3. Place head-endsa pair or a singlerouter for each group
  4. Counttunnels per head-endwith real sizes
  5. Test failurehead-ends of onegroup lost
Count with the real group sizes, not with an even split.

Groups are rarely equal in size. A split by geography follows where the branches are, and the busiest group sets the load on its head-ends, not the average.

Diagram
Uneven splits of 4,000 branches into two groups (computed)
Uneven splits of 4,000 branches into two groups (computed)
Split of the branchesTunnels, larger groupTunnels, smaller groupAgainst the 5,000-tunnel example limit
50 and 50 percent4,0004,000Both within
55 and 45 percent4,4003,600Both within
60 and 40 percent4,8003,200Both within, little headroom
70 and 30 percent5,6002,400Larger group over the limit
Computed by script as the branches in the group times two transports. With the same invented limit as before, a 70 and 30 split fails even though two groups were enough for an even split.

The price: groups are also walls

A group that keeps branches off the wrong head-ends also keeps them off the healthy ones when their own head-ends fail. Branches in group 1 form no tunnel to the head-ends of group 2, so if the group 1 head-ends are down, the group 1 branches have no path to the hubs at all, although the group 2 hubs are working. A hub without a group would form tunnels with every group, according to the references, and so can act as a shared standby, with the cost that it then carries the tunnels of every group it stands behind.

Diagram
What a group wall costs
What a group wall costs

Branches of one group cannot reach the head-ends of another group, so a failure of the head-ends of one group isolates its branches. A hub without a group can stand by for all groups but carries their tunnels. A redundant pair per group adds tunnels on every branch. A single head-end per group adds capacity and removes redundancy.

Group wall
  • Group failsits branches haveno hub path
  • Shared standbya hub without agroup carries all
  • Pair per groupmore tunnels onevery branch
  • Single per groupfewer tunnels,no redundancy
Each answer to the wall trades capacity, tunnels or resilience.
Diagram
Tunnels on a branch router by head-end design (computed)
Tunnels on a branch router by head-end design (computed)
Head-end design for the groupHead-end routersTunnels on each branch routerIf one head-end fails
Single router per group12The branch loses the hub path
Redundant pair per group24The other router carries the branch
Computed with two transports per branch and one tunnel per transport to each head-end router of the group. The pair doubles the tunnels on every branch, and each router of the pair still holds the tunnels of every branch in the group.

Checking the groups

The references read show the group as an attribute that the Controller advertises with each TLOC, and the check is to list the TLOCs with their groups. The commands in those references are in the style of vEdge routers, and the pages read gave no equivalent for other platforms, so confirm the command and the template field for the platform in use.

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-01#show omp tlocs
TLOC IP      COLOR         GROUP
10.255.1.1   biz-internet  1
10.255.1.2   biz-internet  2
10.255.2.1   biz-internet  1
10.255.2.2   biz-internet  2
The listing is shortened to the fields that matter here, and the third row is BR-01 itself. BR-01 carries group 1, so it forms a tunnel with HUB-01, which is also group 1, and none with HUB-02 or BR-02, which carry group 2. A TLOC with an empty group column would be the quiet error to look for, because it forms tunnels with every group. Real output has more fields and a different layout.

A worked case: the head-end that did not fit

Priya reviews a design for 4,000 branches with two transports each. The first plan uses one pair of head-ends for everyone. Each router would hold 8,000 tunnels, and the invented limit for the planned model is 5,000. She proposes two groups, north and south, with a head-end pair for each.

Diagram
The review, step by step (computed)
The review, step by step (computed)
StepTunnels on the busiest head-endAgainst 5,000What it says
One pair serves every branch8,000OverMore routers do not help while each serves everyone
Two groups, north and south, split 70 and 305,600OverGeography is uneven, so the split fails
Two groups, boundary moved to 55 and 454,400WithinThe design fits with about 12 percent headroom
Group 1 head-ends failGroup 1 branches isolated-Add a shared standby or accept the risk in writing
Computed from 4,000 branches and two transports. The 12 percent headroom is 600 of 5,000. The failure row follows from the group rule in the references read, so confirm it in the lab.

The review ends with a decision and not a number: two groups with a 55 and 45 split fit the example limit, and the failure row shows the cost, a group whose branches lose their hubs together. If that is not acceptable, the options are a standby hub without a group, which has to carry the tunnels of whichever group fails, or more groups, which make each failure smaller and the design larger.

Learn more: Full-Mesh Economics and Tunnel ScaleOn-Demand (Dynamic) TunnelsTLOC Components

Test yourself

Predict · scenario 1

4,000 branches with two transports each are split into 4 equal groups, and each group is served by its own head-end. How many tunnels does one head-end hold?

Predict · scenario 2

A branch TLOC has group 1 and a head-end TLOC has group 2. What happens, according to the references read?

Predict · scenario 3

A hub TLOC has no group ID and a branch TLOC has group 3. What is described for this pair?

Predict · scenario 4

Two groups split 4,000 branches 70 and 30 with two transports each. The example limit is 5,000 tunnels. What is the result?

Predict · scenario 5

The head-ends of group 1 fail and the group 2 head-ends are healthy. What happens to a group 1 branch that has no other hub?

Predict · scenario 6

How many tunnels does a branch with two transports hold toward a redundant pair of head-ends in its group?

Predict · scenario 7

What does restrict add when it is combined with a tunnel group?

Predict · scenario 8

Which statement about a hub without a group is supported by the references read?

FAQ

What is the difference between a colour and a tunnel group?
A colour names a kind of transport, such as mpls or biz-internet, and by default it decides which TLOC pairs connect through the public and private rules. A tunnel group is a number that decides which sites may connect at all, independent of the colour. A design can use both, and the restrict option then requires the colours to match as well.
What happens when one side has no group?
In the references read, a TLOC with no group forms tunnels with TLOCs of any group, and two TLOCs with no group behave as before, which is a full mesh. That makes a hub without a group useful as a meeting point between groups, and it also means a stray missing group can quietly create tunnels that the design meant to prevent.
Do branches in different groups reach each other?
Not directly. They form no tunnel between them, so traffic between the groups has to cross a hub that can form tunnels with both. A design that needs direct tunnels between some branches should not split them into separate groups.
Is this documented by Cisco for every platform?
The rules in this lesson come from secondary training references and a Cisco design case study, and the command examples are in the style of vEdge routers. The pages read gave no release, no platform list and no feature-template field name, so check the configuration guide for the platform and release before building.
How many groups should a design use?
Enough that the busiest head-end stays well under its tunnel limit with the groups at their real, uneven sizes, and no more, because each group is a failure wall and each redundant head-end adds tunnels on every branch in the group.