This article describes how to rate-limit SD-WAN traffic on Versa FlexVNF
In some scenarios, customer wants to limit/rate-limit the SD-WAN traffic.
For example In Hub-Spoke topology customer might want to rate-limit the SD-WAN traffic on spoke site to avoid congestion on HUB site.
We need to apply policer to limit the traffic. On Versa FlexVNF, a policer works in inbound direction. Policer action is configured on QoS profile (Step 1), further we need to associate this profile with a particular traffic flow using QoS policy rule (Step 3).
In this example we have 1 Gbps WAN link and we want to allow maximum 10Mbps of Internet traffic. So, here we need to configure 10Mbps policer on the “SD-WAN-traffic-profile” which is mapped with Customer traffic flow coming from LAN1 interface and going out on vni-0/0 interface (ptvi zone).


We need to define Peak rate of internet traffic which needs to be allowed (i.e. 10Mbps ) and Burst size is in Byte [ 5000 Byte Default ]
Please Note: Burst size needs to be chosen carefully as it affects policer rate. Choosing burst size too large may cause policer to allow traffic more than the specified rate. Also choosing burst size too low may result in early drops than the specified rate.


Match source and destination zones. Here source zone is “Intf-LAN1-Zone” where SD-WAN traffic is coming.
As the SDWAN traffic traverses out of tunnel interface, we need to select “ptvi“ as destination zone.
We can match other parameters as well based on requirement.


Initiate the traffic and check if configured qos-policy getting hits. If the qos policy rule is not getting hits, then cross check source/destination parameters.
admin@CPE1-cli> show orgs org-services AGR class-of-service qos-policies AGR-QoS-Policy rules qos-policy-stats SD_WAN-limit
QOS QOS QOS QOS PPS PPS KBPS KBPS
QOS DROP QOS DROP FORWARD FORWARD SESSION POLICER POLICER POLICER POLICER
HIT PACKET BYTE PACKET BYTE DENY PKTS BYTES PKTS BYTES
RULE NAME COUNT COUNT COUNT COUNT COUNT COUNT DROPPED DROPPED DROPPED DROPPED
--------------------------------------------------------------------------------------------------------
SD_WAN-limit 7 49505 41683210 12911 10854954 0 0 0 49505 41683210 <<< Drops due to policer
vsm-vcsn0> show vsm statistics dropped
DPDK ERROR STATISTICS
~~~~~~~~~~~~~~~~~~~~~
DATAPATH ERROR STATISTICS
~~~~~~~~~~~~~~~~~~~~~~~~~
# Packets Dropped - Filter Lookup Module Action Denied : 10
THRM ERROR STATISTICS
~~~~~~~~~~~~~~~~~~~~~~
NFP ERROR STATISTICS
~~~~~~~~~~~~~~~~~~~~
# Dropped Anchor rate limiting : 102 <<< Drops due to policer
VSF ERROR STATISTICS
~~~~~~~~~~~~~~~~~~~~
VUNET ERROR STATISTICS
~~~~~~~~~~~~~~~~~~~~~~
COS DROPS
~~~~~~~~~~~~~
# Shaper drops : 0