06-20-2019 10:33 PM
I have a 3945 router with an ethernet wan connection. I'm applying qos and shaping to the interface. The counters are showing a considerable number of outbound discards. I am wondering why that is as the link is only 50% utilised. What should i check?
06-21-2019 12:38 AM
Hello,
how do you measure link utilisation ? Most tools or graphs are not granular enough to account for traffic bursts that cause output drops, so even if link utilization (which is based on averages) seems low, output drops might still occur.
Can you post the QoS policy you have applied, as well as the output of 'show interfaces x' where 'x' is the interface that has the output drops ?
06-23-2019 07:49 PM
@Georg Pauweni would have thought that the use of shaping rather than policing would preclude the possibility of discards. At least until the buffers/queues fill up. How would i check if the queues/buffers are filling up? My QoS policy is:
interface GigabitEthernet0/1
description 20 MB Link To Carrier
bandwidth 20000
ip address 10.42.250.1 255.255.255.248
ip wccp 62 redirect in
duplex auto
speed auto
service-policy output GWIP-SHAPE
policy-map GWIP-SHAPE
class class-default
shape average 19800000
service-policy PM-WAN-QUEUE
policy-map PM-WAN-QUEUE
class CM-VOICE
priority percent 18
class CM-INTERACTIVE-VIDEO
bandwidth percent 15
class CM-CALL-SIGNALLING
bandwidth percent 5
random-detect dscp-based
class CM-NETWORK-CONTROL
bandwidth percent 5
class CM-CRITICAL-DATA
bandwidth percent 27
random-detect dscp-based
class CM-BULK-DATA
bandwidth percent 4
random-detect dscp-based
class CM-SCAVENGER
bandwidth percent 1
class class-default
fair-queue
random-detect dscp-based
06-21-2019 01:26 AM
Hello jmcgrady1,
you should compare the following two show commands
show interface <WAN>
! look for output drops here
and
show policy-map interface <WAN>
! look for drops in each class including class class-default if you have a parent shaper policy.
If drops appear only on show interface you are only facing drops caused by traffic bursts if drops are in the other show command means the software queues used to delay packets when shaping are sometimes full.
Hope to help
Giuseppe
06-24-2019 12:48 AM
I'm revamping my policy as follows
class-map match-all CM-REALTIME
match ip dscp ef cs3 cs5 af41 af42
class-map match-any CM-CRITICAL
match ip dscp af31 cs6 cs7 cs2 af21 af22
class-map match-any CM-BULK-DATA
match ip dscp af11 af12
policy-map PM-WAN-QUEUE
class CM-REALTIME
priority percent 33
class CM-CRITICAL
bandwidth remaining percent 80
fair-queue
class CM-BULK-DATA
bandwidth remaining percent 1
fair-queue
class class-default
bandwidth remaining percent 9
queue-limit 1600 packets
fair-queue
Some questions:
Do i need to include "random-detect dscp-based" in my policy map class statements?
Whats the recommendation as to when to include "fair queue" in the class statements?
Should i tune the "queue-limit" for each class?
Do i need to include a scavenger class (cs1)?
06-24-2019 09:57 PM
An item of interest from the show policy-map interface X output is:
Class-map: class-default (match-any)
10423137 packets, 9966185196 bytes
5 minute offered rate 8668000 bps, drop rate 0000 bps
Match: any
Queueing
queue limit 4000 packets
(queue depth/total drops/no-buffer drops/flowdrops) 0/4487/0/4487
(pkts output/bytes output) 10418650/9960660664
bandwidth remaining 9%
Is there a command i can run which would give me more detail? eg; dscp tag of dropped traffic, source or dest IP, or protocol? This is a gigabit ethernet interface shaped down to 20mb/s.
06-24-2019 10:27 PM
Hello jmcgrady1,
the most important fact is the number of output drops in class class-default is low compared to the total number of output packets in same class.
ratio is : 4487 /(4487 + 10418650 ) = 4,3048460362748757883543121423042e-4
There is no way to get more detais on dropped packets, however you have a GE interface with a 20 Mbps parent shaper and the class class-default gets only remaining percent 9% of those 20 Mbps.
I think this is acceptable in your scenario.
It is important to compare the output drops on show interface with the drops showed in show policy-map interface if the two numbers match or are very close all drops are performed by the shaper, otherwise if the total output drops at interface level is much greater then those seen in the show policy-map interface the drops caused by bursts of traffic are dominant.
Hope to help
Giuseppe
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide