The qos-shaping exclude-interframe command configures the device not to count the inter-frame gap and preamble of packets when the device calculates the traffic shaping rate.
The undo qos-shaping exclude-interframe command configures the device to count the inter-frame gap and preamble of packets when the device calculates the traffic shaping rate.
By default, the device counts the inter-frame gap and preamble of packets when the device calculates the traffic shaping rate.
Usage Scenario
After traffic shaping is configured on an interface, the device counts the inter-frame gap and preamble of packets for the traffic shaping rate. As a result, the rate is inaccurate. After the qos-shaping exclude-interframe command is used, the device does not calculate the inter-frame gap and preamble of packets for the traffic shaping rate.
The qos-shaping exclude-interframe command affects calculation of the traffic shaping rate and outbound rate limit. When the qos queue shaping and qos lr outbound commands are used to configure traffic shaping and outbound rate limiting, the device does not count the inter-frame gap and preamble for the traffic shaping rate.
Precautions
Before this command is used, the following formula is used to calculate the traffic shaping rate:
Traffic shaping rate = (Original packet length + Inter-frame gap + Preamble) x Number of packets forwarded per second
The inter-frame gap and preamble occupy 20 bytes.
After this command is used, the following formula is used to calculate the traffic shaping rate:
Traffic shaping rate = Original packet length x Number of packets forwarded per second
When the rate of the MultiGE interface on the S6720-SI is 5 Gbit/s, the qos-shaping exclude-interframe command does not take effect.