Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - The definition of traffic shaping in traffic shaping
The definition of traffic shaping in traffic shaping
Traffic shaping is a measure to actively adjust the flow output rate.

The typical application is to control the output of local traffic based on the TP index of downstream network nodes. The main difference between traffic shaping and traffic policing is that traffic shaping caches packets that need to be discarded in traffic policing, and usually puts them in a buffer or queue, also known as traffic shaping (ts). When there are enough tokens in the token bucket, these cached messages will be sent out evenly. Another difference between traffic shaping and traffic control is that plastic surgery may increase delays, while control will hardly introduce additional delays.

As shown in the above figure, when messages arrive at the interface, they are classified according to the following conditions. For messages that do not participate in traffic shaping, continue to send directly. For the message participating in traffic shaping, if there is a shaping queue, the message directly enters the queue and waits for the queue to schedule and forward the message according to the shaping algorithm. For the message participating in traffic shaping, if there is no shaping queue, it is decided whether to send the message according to the shaping algorithm. When the message arrives at the interface, it is found that the shaping queue is full, and the message is discarded.