On Huawei OLTs, the standard QoS pipeline for upstream packets is: first perform traffic classification (identify flows), then marking (set CoS/DSCP as required), next apply traffic policing (rate-limit and color traffic), followed by congestion avoidance (AQM such as RED/WRED), and finally congestion management (queue scheduling/priority queuing). This ordered sequence ensures correct identification and marking before any rate enforcement, and that packets encounter AQM prior to scheduler-based dequeue.