The qos-car exclude-interframe command configures the device not to count the inter-frame gap and preamble of packets when the device calculates the traffic policing rate or rate limit.
The undo qos-car exclude-interframe command configures the device to count the inter-frame gap and preamble of packets when the device calculates the traffic policing rate or rate limit.
By default, the device calculates the inter-frame gap and preamble of packets when the device calculates the traffic policing rate or rate limit.
Usage Scenario
When traffic policing or rate limiting is configured on an interface, the device calculates the inter-frame gap and preamble of packets for the traffic policing rate or rate limit. As a result, the rate is inaccurate. After the qos-car exclude-interframe command is used, the device does not count the inter-frame gap and preamble of packets for the traffic policing rate or rate limit.
The qos-car exclude-interframe command affects calculation of the traffic policing rate and inbound rate limit. When the car (traffic behavior view) and qos lr inbound commands are used to configure traffic policing and inbound rate limiting, the device does not count the inter-frame gap and preamble for the traffic policing rate or rate limit.
Precautions
Before this command is used, the following formula is used to calculate the traffic policing rate or rate limit:
Traffic policing rate/Rate limit = (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 policing rate or rate limit:
Traffic policing rate/Rate limit = Original packet length x Number of packets forwarded per second