Technical Tip: SD-WAN steering traffic based on TOS value with same source and destination
| Description | This article discusses a scenario where its required to steer UDP traffic with same source, destination, and service port (example: GPRS tunnel traffic) based on the Type of Service (TOS)/DSCP marking inside the packet header. |
| Scope | All FortiOS versions. |
| Solution | Traffic can be steered using SD-WAN rules based on TOS/DSCP value is supported and possible. For example:
config system sdwan config service edit 2 end
However, in the event of certain traffic types such as GPRS tunnel traffic, all UDP traffic will have the same source, destination, and ports. Due to this, the FortiGate will match the SD-WAN rule based on the TOS value inside the initial packets and create a session entry. If packets with a different TOS value arrive matching the existing connection, they will not be rematched and traffic will continue flowing through the existing connection entry and rule criteria.
Currently, FortiGate does not support the dynamic re-steering of an active session based on a change in the TOS value. Once a session is established, traffic continues to flow according to the initial SD-WAN rule match, regardless of subsequent modifications to the packet's TOS field. |
