Hi,
Traffic shaping controls the rate of outgoing packets to allow the traffic rate to match that on the downstream device. When traffic is transmitted from a high-speed link to a low-speed link or a traffic burst occurs, the inbound interface of the low-speed link is prone to severe data loss. To prevent this problem, traffic shaping must be configured on the outbound interface of the device connecting to the low-speed link, as shown in Figure 1.
Figure 1 Data transmission from the high-speed link to the low-speed link

As shown in Figure 2, traffic shaping can be configured on the outbound interface of an upstream device to make irregular traffic transmitted at an even rate, preventing traffic congestion on the downstream device.
Figure 2 Effect of traffic shaping

For details, please refer to:https://support.huawei.com/hedex/hdx.do?docid=EDOC1100109721&id=EN-US_CONCEPT_0172356883&lang=en
Any further questions, please let us know.