Hi all,
I’m familiar with VyOS but never tried advanced featuyres like QoS. I read the manual but probably I didn’t understand something so I need your help. My goal is emulate a wan with some issue like delay and packet loss. If I add a single policy it works fine, for example, if I add the traffic loss policy I can clearly see the impact on a ping, the same for a delay policy, but if I add first one policy and then the other, both on the same interface seems that only the last one works properly. I read something about the shaper but I’m not sure to understood it. Any help?
Which bit of the configuration you posted would you like help with? Which bit was it that worked, and then I wasn’t able to figure out which bit you added that then didn’t work as you expected.
I also wasn’t quite able to determine from the config/logs that you shared what version of VyOS you’re using?
Could you please paste the current config using something like “show config commands | strip-private”?
With QoS you have policing and shaping, one is for incoming traffic and the other is how to queue up outgoing traffic.
My guess is that you have incorrectedly setup your QoS as two different queues which gives that you get delay OR loss while you should set it up in the same action as “delay_and_loss”.
You can only apply a single policy …to a single interface…in one direction.
If you want to apply multiple policies, use them on both in and out interface, or on same interface in in direction.
Normally, policy is applied in egress direction, using IFB you can apply QoS ingress too