Course contents

Unit 8: Management and basic policiesLesson 8.4 (4 of 6 in this unit)50 of 62 in the Cisco SD-WAN course

Hub-and-spoke versus mesh topology

Why the default overlay is a full mesh, how control policy makes it hub-and-spoke or partial mesh, tunnel counts, and how to check the result with BFD.

Intermediate · 10 min read

You'll learn to compare full mesh, hub-and-spoke and partial mesh in Cisco SD-WAN, count the tunnels each needs, and check from the CLI which topology a site is actually using.

Technical definition

SD-WAN topology is the pattern of data plane tunnels between sites. By default every WAN Edge can build tunnels to every other edge it learns about over OMP, which is a full mesh. Centralized control policy changes which TLOCs and routes each site is told about, and so changes which tunnels form and which paths traffic takes.

Default is a full mesh

Take the course lab with sites HUB-01, BR-01 and BR-02. Each edge sends its TLOC to the Controller, and the Controller passes all of them to every other edge. Each edge then tries to bring up a BFD session to every TLOC where colours allow it. With no policy, every site has a direct path to every other site, and no traffic needs to pass through a hub.

Diagram
Five sites: full mesh against hub and spoke
Five sites: full mesh against hub and spoke
Five sites: full mesh against hub and spokeOn the left, five sites joined by ten tunnels, one for every pair. On the right, one hub joined to four spokes by four tunnels. Traffic between two spokes passes through the hub.Full mesh: 10 tunnelsS1S2S3S4S5Hub and spoke: 4 tunnelsHUBS1S2S3S4S5S1 to S4 is directS1 to S4 goes via the hub

On small screens, swipe sideways or focus the diagram and use the arrow keys.

Tunnels in a full mesh grow as n(n-1)/2 for each colour pair. Hub and spoke grows by one per spoke, but spoke-to-spoke traffic takes a longer path.
Diagram
How tunnel count grows
How tunnel count grows
SitesFull mesh, one colour pairHub and spoke, one hub
5104
2019019
501,22549
1004,95099
Full mesh needs n(n-1)/2 tunnels for each colour pair. Each extra transport colour multiplies the count again.

Making it hub-and-spoke

To build a hub-and-spoke topology, a control policy on the Controller changes what the spokes are told. A common pattern has two parts. The Controller advertises only the hub's TLOCs to the spokes, so spokes have nobody else to build a tunnel to. It also sends each spoke's routes to other spokes with the hub as the next hop, so spoke-to-spoke traffic reaches the hub first. Many releases provide a topology builder that creates these rules from a hub list and a spoke list.

Diagram
What a spoke is told
What a spoke is told

Same Controller, different advertisement.

Full meshSpoke sees every TLOCBuilds a tunnel to each
Hub and spokeSpoke sees hub TLOCsOther spokes' routes pointat the hub
Spokes learn nothing about each other's TLOCs, so they cannot build tunnels to each other.
Example output written for this lesson, simplified; real output has more fields and a different layout
BR-02#show sdwan bfd sessions
SYSTEM IP    SITE ID  STATE  COLOR         TRANSITIONS
10.255.1.1   100      up     biz-internet  0
10.255.1.2   200      up     biz-internet  0
After a hub-and-spoke control policy, BR-02 has BFD sessions only to the two hubs (system IPs 10.255.1.1 and 10.255.1.2). Before the policy, the list would also have included BR-01 and any other branch. If a branch still shows sessions to other branches after the policy is activated, check the site lists and whether the policy is applied in the correct direction.

Worked case: the cost of going through the hub

After the hub-and-spoke policy, users say voice between BR-01 (LAN 192.168.20.0/24) and BR-02 (LAN 192.168.30.0/24) is worse than before. The two branches are in the same city and exchange a lot of traffic. First check what BR-02 now believes about BR-01.

Example output written for this lesson, simplified; real output has more fields and a different layout
BR-02#show sdwan omp routes 192.168.20.0/24
VPN  PREFIX            FROM PEER    STATUS  TLOC IP      COLOR
10   192.168.20.0/24   10.255.0.11  C,I,R   10.255.1.1   biz-internet
10   192.168.20.0/24   10.255.0.11  C,I,R   10.255.1.2   biz-internet
BR-01's prefix is reachable through the two hub TLOCs, 10.255.1.1 and 10.255.1.2. BR-01's own TLOC, 10.255.2.1, is not in the list, so BR-02 has no direct path to it. This is the policy working as designed.
Diagram
BFD sessions on BR-02, before and after the policy (computed)
BFD sessions on BR-02, before and after the policy (computed)
Remote siteSystem IPFull meshHub and spoke
HUB-0110.255.1.1SessionSession
HUB-0210.255.1.2SessionSession
BR-0110.255.2.1SessionNone
Total32
BR-02 has one colour, biz-internet, so each remote site gives one session. The missing session to 10.255.2.1 is the direct path.

The next step is to put numbers on the detour. The values below are assumptions for the lesson, with the branch delays standing for a hub in another city.

Diagram
What the detour costs (assumed inputs, computed results)
What the detour costs (assumed inputs, computed results)
ItemValueHow it is worked out
Delay BR-02 to hub, hub to BR-0118 ms and 22 msAssumed, one way
Delay BR-02 to BR-01 directly9 msAssumed, one way
Path through the hub40 ms18 + 22
Extra delay31 ms, 4.4 times the direct path40 minus 9, and 40 divided by 9
Share of a 150 ms one-way voice budget26.7 percent, against 6.0 percent direct40 and 9 divided by 150
150 ms one way is a commonly quoted target for voice, not a Cisco setting. The shape matters more than the exact figures.

The hub also pays for every call between spokes, because each packet arrives and leaves again. Take 40 branches that each peak at 6 Mbps, with a quarter of that traffic going to other branches.

Diagram
Transit load on the hubs (assumed inputs, computed results)
Transit load on the hubs (assumed inputs, computed results)
ItemValue
Branch-to-branch traffic per branch6 Mbps x 25 percent = 1.5 Mbps
Arriving at the hubs for transit40 x 1.5 Mbps = 60 Mbps
Leaving the hubs again60 Mbps, as the same packets go out to the other branch
Per hub, if two hubs share the traffic evenly30 Mbps in and 30 Mbps out
This is only the transit. Traffic that ends at the hub, such as data centre applications, comes on top.
Diagram
Evidence from the hub-and-spoke case
Evidence from the hub-and-spoke case

Voice between two nearby branches got worse after the policy. The route to the other branch points at the hub TLOCs, and there is no direct session. The path now crosses the hub, which adds delay and uses hub bandwidth. The policy is correct for the design, so the choice is whether to keep it or to allow a direct path for this pair.

  1. SymptomVoice between nearby branchesgot worse after the policy
  2. RouteBR-01's prefix points at the hubsBR-01's own TLOC is not listed
  3. TunnelsBR-02 has 2 sessions instead of 3the direct one is gone
  4. Cost40 ms instead of 9 ms one wayand 60 Mbps of transit at the hubs
  5. ChoiceKeep it and document it, or allowa direct tunnel for this pair
The policy worked as written. What changed is the path, and the path has a price.
Diagram
Three ways to answer the complaint
Three ways to answer the complaint
OptionGainCost
Keep hub-and-spokeOne place to inspect and apply policyThe delay and the transit load stay
Allow a direct tunnel for the pair9 ms for the traffic that mattersA partial mesh to design, document and test
Add a regional hub near the two branchesA short detour for the whole regionAnother hub to buy, secure and monitor
Choose by how much of the traffic is between the same few sites.

Partial mesh and per-VPN designs

Few networks are purely one or the other. Common mixes are a full mesh among data centres and regional hubs with hub-and-spoke below them, a mesh among a few branches that exchange a lot of traffic, or different topologies in different VPNs (a finance VPN through the hub, a guest VPN straight to the internet). Control policy can be applied per VPN and per site list, which is how these mixes are built. Large fabrics can also build some direct tunnels only when traffic needs them, which is a topic of the advanced course.

Diagram
Common designs
Common designs

Three shapes and when they fit.

Topology
  • Full meshsmall, branch-to-branch heavy
  • Hub and spokecentral firewall,shared services
  • Partial meshregions, orper-VPN
Pick by traffic pattern first, then by scale.
Diagram
What each choice costs
What each choice costs
ChoiceGainsCosts
Full meshDirect, shortest path between sitesMany tunnels and BFD sessions; load on small routers
Hub and spokeFew tunnels; one place to inspect trafficSpoke-to-spoke path is longer; hub bandwidth and failure matter
Partial meshFits real trafficMore policy to design, document and troubleshoot
There is no best topology, only a best fit for the traffic.
  • Hub bandwidth must cover the sum of the spoke-to-spoke traffic that crosses it, not only the traffic that ends there.
  • Plan two hubs for resilience, as in the lab with HUB-01 and HUB-02, and test the failure of one.
  • Document the topology policy. When someone finds that two branches cannot reach each other directly, the answer should be written down.

Learn more: TLOC-Based Tunnel Discovery and EligibilityPolicy Types

Test yourself

Predict · scenario 1

A fabric of 50 sites has no policy and one colour on every site. How many tunnels exist in total?

Predict · scenario 2

After a hub-and-spoke policy, a spoke still has BFD sessions to other spokes. What do you check first?

Predict · scenario 3

Which is the main cost of hub-and-spoke compared with a full mesh?

Predict · scenario 4

After a hub-and-spoke policy, show sdwan omp routes on a spoke lists the other spoke's prefix with the hub TLOCs. What does that tell you?

Predict · scenario 5

Forty spokes each send 1.5 Mbps to other spokes through the hubs. How much transit traffic arrives at the hubs in total?

Predict · scenario 6

A spoke reaches its neighbour in the same city through a hub in another city and voice suffers. Which change fits best?

FAQ

Why does a fabric with no policy form a full mesh?
Each edge advertises its TLOCs, the Controller passes them to every other edge, and each edge builds BFD sessions to every TLOC it can use. Nothing in the default behaviour limits who builds tunnels to whom.
Is hub-and-spoke only for a data centre design?
No, but it is most often used when traffic is meant to pass through a central point, such as a data centre with a firewall or shared services. A regional hub can serve a region the same way.
Does hub-and-spoke stop a spoke from sending traffic to another spoke?
No. The traffic still arrives, but through the hub. Spoke-to-spoke traffic takes two tunnels and the hub's bandwidth.