Hi,
hope this link can help:
Depth in AOS
You can also use search button in forum (top of the right side) for other examples.
Please read Network Configuration Guide for Bandwidth Shaping.
You can configure Traffic Shaping on the egress via "qos qort " and Traffic Policing on the ingress via QoS policies.
Here is an example of the Traffic Policing rate limiting the client on port 1/4 for upload with maximum bandwidth of 3M
policy condition c2 source port 1/4
policy action a2 maximum bandwidth 3.00M
policy rule r2 condition c2 action a2
Traffic shaping retains excess packets in a buffer and then schedules the excess for later transmission over time.
The result of the traffic shaping is a smoothed packet output.
In contrast, traffic policing propagates bursts.
When the traffic rate reaches the configured maximum bandwidth rate, excess traffic is dropped.
Maximum bandwidth policies do not work well with TCP application such as FTP for instance a max bandwidth of 3M will make FTP runs at 3M.
The reason is that TCP uses a window mechanism to adjust the number of data sent in a window when network is congested Bandwidth shaping drops data as soon as the rate exceed the maximum bandwidth.
Use maximum depth (in KBps) with maximum bandwidth to allow some buffering.
The depth you need to configured depends on the max bandwidth and the TCP stack being used;
so you will need to try different value to accommodate your needs
policy action a2 maximum bandwidth 3.00M maximum depth 2.00M