By default, the Orchestrator is actively involved in learning the dynamic routes. VMware SD-WAN Edges and Gateways rely on the Orchestrator to calculate initial route preferences and return them to the Edge and Gateway. The Distributed Cost Calculation feature enables you to distribute the route cost calculation to the Edges and Gateways.
This default method of involving the Orchestrator in both dynamic route calculation and the distribution of those routes to Edges and Gateways has the following drawbacks:
- If the Orchestrator is under a high load, the route convergence time is significantly high (for example, as much as 40 seconds for 2000+ routes), as the Orchestrator takes that time to calculate the preference for all the synchronized routes and returns those preferences to the Edges and Gateways.
- Using the Orchestrator for route calculation means that new dynamic routes learned while the Orchestrator was unreachable are not advertised until the Orchestrator becomes reachable again.
When a customer enterprise uses Dynamic Cost Calculation, the Orchestrator is no longer actively involved in the route preference calculation and instead routes are properly inserted in order by the Edge and Gateway instantly upon learning them and then convey these preferences to the Orchestrator.
When you choose to enable Dynamic Cost Calculation for the Edges and Gateways, the feature provides the following benefits:
- Minimizes the impact on route learning when an Orchestrator is unreachable.
- Route convergence time is reduced from minutes to seconds in large networks with thousands of dynamic routes.
- Network delays are significantly reduced.
- Provides instantaneous Data Plane convergence.
- Supports enhanced re-ordering and pinning of routes on the Overlay Flow Control.
- Provides an option to refresh routes in the Overlay Flow Control page. Whenever there is a change in the Overlay Flow Control policy, the Refresh Routes option applies the changes to the existing routes immediately, without the need to restart the Edge or Gateway.
Enabling Distributed Cost Calculation has the following impacts on the Customer Enterprise network:
- All the local dynamic routes are refreshed, and the preference and advertise action of these routes are updated. This updated information is advertised to the Gateway, Orchestrator, and eventually across the Enterprise. As this leads to an update in the routing table, there is a brief impact on the traffic for all the sites.
- Any existing flow using these routes can potentially be affected due to the change in the routing entries.
To configure Distributed Cost Calculation:
Ensure the following before you enable the Distributed Cost Calculation feature.
- All the Edges and Gateways must use software version 3.4.0 or later.
- The software image associated with the Operator Profile must use version 3.4.0 or later.
- In the Operator portal, navigate to Manage Customers.
- Select a customer and click or click the link to the customer.
- In the Enterprise portal, click .
- In the Customer Configuration page, select the Distributed Cost Calculation checkbox to delegate the cost calculation of routes to Edges and Gateways.
Note: Once you enable Distributed Cost Calculation, you cannot downgrade the Edges and Gateways to version earlier than 3.4.0, unless you also disable Distributed Cost Calculation. This feature does not work on a network if any Edge or Gateway in that network is using a software version earlier than 3.4.0.
- Click Save Changes.
Note: After enabling Distributed Cost Calculation, it is recommended to refresh the routes in the Overlay Flow Control page.
Once Distributed Cost Calculation is enabled, all the dynamic routes are assigned with new preferences and advertise action based on the Distributed Cost Calculation and the new information is propagated across the Enterprise Network.
The Orchestrator is no longer actively involved in the route preference calculation and instead the routes are properly inserted in order by the Edge and Gateway instantly upon learning them and then these preferences are conveyed to the Orchestrator.
The Overlay Flow Control policy is sent to Edges and Gateways in Control Plane Configuration updates. Edges and Gateways send the routes with computed cost and advertise action to the Orchestrator. Edges and Gateways handle the order of the routes based on the cost and route attributes.
To view a summary of all the routes in your network, click Overlay Flow Control page.in the Enterprise portal. You can view the routes and advertise action in the
Once you enable Distributed Cost Calculation, the Refresh Routes option is available in the Overlay Flow Control page.
When you click Refresh Routes, this option forces the Edges and Gateways to recalculate learned route costs and send them to the Orchestrator. In addition, the changes in the Overlay Flow Control are applied immediately on the new and existing learned routes.
You can reset the cost calculation for the subnets when there are pinned routes available. Click the Edit option for a subnet.
Click Reset, which enables the Orchestrator to clear the pinned routes, recalculate the cost for the selected subnet based on the policy, and send the results to the Edges and Gateways.