Routing Strategies

What is a routing strategy for Syntropy Agent?

The Syntropy Agent dynamic route selection strategy is used to determine the best route for each data packet, but it's your decision which strategy you want to use. There are two strategies available: speed and dr. The speed strategy always selects the quickest route, while the dr strategy uses the public path by default to evaluate the threshold and base speed to determine if an SDN route should be selected and which one. The Agent considers latency, reliability, and security when making its decision and chooses the route that best fits the chosen strategy.

Types of strategies

Speed (default)

Speed-oriented routing, which selects the fastest path and treats all routes equally, is the default strategy used by all agents. With this strategy, we're constantly seeking the best path, so the only way to switch to another path is to decrease latency.

DR (direct route)

Direct Route strategy will attempt to use the public route whenever possible, SDN will be used as a backup in order to maintain a continuous connection.

Comparison

Threshold: 10% or 10ms decrease of the current latency - whichever (% or fixed size) is bigger

TimeSpeed StrategyDR StrategyWhy?
t1Public: 50ms ✅
SDN1: 70ms
SDN2: 54ms
SDN3: 65ms
Public: 50ms ✅
SDN1: 70ms
SDN2: 54ms
SDN3: 65ms
This is the starting point.
t2Public: 100ms
SDN1: 70ms
SDN2: 54ms ✅
SDN3: 65ms
Public: 100ms
SDN1: 70ms
SDN2: 54ms ✅
SDN3: 65ms
In both scenarios, the fastest path is SDN2.
t3Public: 50ms
SDN1: 66ms
SDN2: 54ms ✅
SDN3: 62ms
Public: 50ms ✅
SDN1: 66ms
SDN2: 54ms
SDN3: 62ms
The threshold is 10% of:
SPEED: 54ms * 10% = 5,4ms (no changes)
DR: PUBLIC latency value:
10%*50ms = 5ms
t4Public: 50ms
SDN1: 49ms
SDN2: 54ms ✅
SDN3: 62ms
Public: 50ms ✅
SDN1: 49ms
SDN2: 54ms
SDN3: 62ms
Even though SDN1 is the quickest,
there's not enough change due to
the thresholds in both scenarios.
t5Public: 50ms
SDN1: 40ms
SDN2: 35ms ✅
SDN3: 55ms
Public: 50ms
SDN1: 40ms
SDN2: 35ms ✅
SDN3: 55ms

How to switch between the strategies?

Strategies can be set on each agent installation by setting the correct variable: SYNTROPY_ROUTE_STRATEGY provided in the config file.

Default value: speed
Possible values: speed, dr

Example:

SYNTROPY_ROUTE_STRATEGY=speed