This KB article explains the working of Shaped Deficit Weighted Round Robin (SDWRR) algorithm on Class of Service in JUNOS. It explains in two parts, one the default behavior without any transmit-rates configured and the second in which the algorithm works for a given transmit rate configuration.