All about the 4.x SD WAN Routing Behaviour Part 2: Routing, Route Redistribution and Preferences

 

SD-WAN has a kind of Plug&Play strategy when it comes to connectivity and routing.
  • Therefore automatically a default route is established on every working WAN-Interface and on every Overlay tunnel.
  • Additionally there is an automatic bidirectional redistribution on every Edge between Underlay, LAN  and Overlay routes.

From a networking point of view a kind of routing nightmare with Mutual Redistribution in both direction on every Edge.

BUT by using an internal clever preferencing algorithm, routing loops and blackholes are mostly avoided.

A SD WAN administrator can avoid pitfalls and wrong paths by following some basic rules: 

  1. Only enable Dynamic Routing when it is really necessary
  2. Never run a Dynamic Routing Protocol direct between Edges

If Dynamic Routing is needed then there are some further rules to consider:

  1. Prevent Redistribution form Overlay to Underlay (it is not needed in most cases)
  2. Restrict Redistribution from Underlay to Overlay to Edges (Hub) who are playing the role of transit points to reach underlay destinations
  3. Use features like UPLINK to de-preference announcements if they are only used as last resort, when preferred paths are not available
  4. Never redistribute dynamically learned tunnel endpoints for Overlay tunnels to the Overlay
First we consider Preferences for Routing which are set on the Orchestrator (Configure/Overlay Flow Control) using Preferred VPN exits
 

 You can remove various route types OR change the ranking and thus the preference of learned routes
 
But what are those routes:

0. Non SD Wan Destination Routes (NSD)

    • Prefix typically reachable via IPSec from Edge or Gateway

 - Only used when DCC is enabled

1. Edge

Prefix reachable through VMware SD-WAN Edge

2. Router

Prefix reachable through underlay, such as PE router

3. Partner Gateway

Prefix reachable through Partner Gateway

4. Hub

specific Prefix reachable through HUB Devices
-
any BGP route from Hub marked as „Uplink“ via Flag or community
- OSPF E1/E2
routes from Hub
-> all
others (local) routes are considered Edge Routes


Now let us look into various mechanism to restrict Redistribution

Underlay to Overlay Redistribution 

...is controlled via Orchestrator (Configure/Overlay Flow Control/Edit)

by Checking/Unchecking Global Advertise Flags

for BGP redistribution can also be prevented by either specifying

  • Uplink Feature (set per BGP neighbor)

or

  • Uplink Community Flag (set per prefix)

 But this can be overwritten in the OFC by checking

If checked such marked routes are redistributed from Underlay to Overlay but with a high metric so that they are typically only used as last resort when other paths are not available. 
 
Additionally to the OFC setting static routes also need the Preferred and Advertise Flag set, else they are considered as local only 
 

Overlay to Underlay Redistribution 

This is controlled on the Protocol/Device/Interface Level
 

for OSPF
                          
 
 
 
 
 
 
 
for BGP 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Note: You can also redistribute between OSPF and BGP. This can be necessary when you want to advertise OSPF learned local routes via Underlay in case you prefer some direct underlay communication to non SD-Wan enabled sites who could reside on MPLS. 
 
 
If you want to go deeper into some principal aspects of Underlay/Overlay routing there is a nice but older program guide from VMware named


Routing Design Guide 

Underlay/Overlay Routing












This concludes the mini series on VMware SD-WAN version 4.x Routing.

Comments

Popular posts from this blog

Orchestrator Upgrade to Version 5.2

Deep Dive on DMPO and its Performance Features (available and missing) Part 1

Deep Dive on DMPO and its Performance Features (available and missing) Part 2