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.
On small screens, swipe sideways or focus the diagram and use the arrow keys.
| Sites | Full mesh, one colour pair | Hub and spoke, one hub |
|---|---|---|
| 5 | 10 | 4 |
| 20 | 190 | 19 |
| 50 | 1,225 | 49 |
| 100 | 4,950 | 99 |
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.
Same Controller, different advertisement.
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
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.
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
| Remote site | System IP | Full mesh | Hub and spoke |
|---|---|---|---|
| HUB-01 | 10.255.1.1 | Session | Session |
| HUB-02 | 10.255.1.2 | Session | Session |
| BR-01 | 10.255.2.1 | Session | None |
| Total | 3 | 2 |
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.
| Item | Value | How it is worked out |
|---|---|---|
| Delay BR-02 to hub, hub to BR-01 | 18 ms and 22 ms | Assumed, one way |
| Delay BR-02 to BR-01 directly | 9 ms | Assumed, one way |
| Path through the hub | 40 ms | 18 + 22 |
| Extra delay | 31 ms, 4.4 times the direct path | 40 minus 9, and 40 divided by 9 |
| Share of a 150 ms one-way voice budget | 26.7 percent, against 6.0 percent direct | 40 and 9 divided by 150 |
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.
| Item | Value |
|---|---|
| Branch-to-branch traffic per branch | 6 Mbps x 25 percent = 1.5 Mbps |
| Arriving at the hubs for transit | 40 x 1.5 Mbps = 60 Mbps |
| Leaving the hubs again | 60 Mbps, as the same packets go out to the other branch |
| Per hub, if two hubs share the traffic evenly | 30 Mbps in and 30 Mbps out |
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.
- SymptomVoice between nearby branchesgot worse after the policy
- RouteBR-01's prefix points at the hubsBR-01's own TLOC is not listed
- TunnelsBR-02 has 2 sessions instead of 3the direct one is gone
- Cost40 ms instead of 9 ms one wayand 60 Mbps of transit at the hubs
- ChoiceKeep it and document it, or allowa direct tunnel for this pair
| Option | Gain | Cost |
|---|---|---|
| Keep hub-and-spoke | One place to inspect and apply policy | The delay and the transit load stay |
| Allow a direct tunnel for the pair | 9 ms for the traffic that matters | A partial mesh to design, document and test |
| Add a regional hub near the two branches | A short detour for the whole region | Another hub to buy, secure and monitor |
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.
Three shapes and when they fit.
- Full meshsmall, branch-to-branch heavy
- Hub and spokecentral firewall,shared services
- Partial meshregions, orper-VPN
| Choice | Gains | Costs |
|---|---|---|
| Full mesh | Direct, shortest path between sites | Many tunnels and BFD sessions; load on small routers |
| Hub and spoke | Few tunnels; one place to inspect traffic | Spoke-to-spoke path is longer; hub bandwidth and failure matter |
| Partial mesh | Fits real traffic | More policy to design, document and troubleshoot |
- 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
A fabric of 50 sites has no policy and one colour on every site. How many tunnels exist in total?
After a hub-and-spoke policy, a spoke still has BFD sessions to other spokes. What do you check first?
Which is the main cost of hub-and-spoke compared with a full mesh?
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?
Forty spokes each send 1.5 Mbps to other spokes through the hubs. How much transit traffic arrives at the hubs in total?
A spoke reaches its neighbour in the same city through a hub in another city and voice suffers. Which change fits best?