In the implementation of rate limit on Coarse grain card (non-EQ DPCE), when rate limit is configured, we see RED drops for traffic beyond the configured CIR.
During a test, we sent 1024 Bype packets to VPLS instance. The traffic is sent to realtime queue, which is strict high and rate limit to 80M. However, we see RED drops when traffic is over 80M. The following was also observed:
On a non-queuing DPC, by design, the rate-limited statistics are not displayed under RL-stats (under 'show interfaces xxxx queue' command). The rate-limit drops are indeed displayed as RED drops on a non-queuing DPC.
'show interfaces xxxx queue'
Queue: 1, Forwarding classes: REALTIME Queued: Packets : 867461310 9607 pps Bytes : 891750226680 79012080 bps Transmitted: Packets : 803778081 8897 pps Bytes : 826283867268 73168928 bps Tail-dropped packets : 0 0 pps RL-dropped packets : 0 0 pps RL-dropped bytes : 0 0 bps RED-dropped packets : 63683229 712 pps Low : 63683229 712 pps Medium-low : 0 0 pps Medium-high : 0 0 pps High : 0 0 pps RED-dropped bytes : 65466359412 5855488 bps Low : 65466359412 5855488 bps Medium-low : 0 0 bps Medium-high : 0 0 bps High : 0 0 bps
Related config:
set class-of-service interfaces ge-1/0/7 scheduler-map sched-map1 set class-of-service scheduler-maps sched-map1 forwarding-class REALTIME scheduler sched_realtime_80M set class-of-service schedulers sched_realtime_80M transmit-rate percent 8 set class-of-service schedulers sched_realtime_80M transmit-rate rate-limit set class-of-service schedulers sched_realtime_80M priority strict-high