From: Chris Lewis \(chrlewis\) (chrlewis@cisco.com)
Date: Tue Sep 06 2005 - 10:53:20 GMT-3
Hi Gladston,
PVC queues use a default output queue limit of 40 for FIFO and 600 for
CBWFQ. The default can be changed by the frame-relay holdq command, this
is for the PVC, not the class operating within the PVC. Setting the
queue limit on the class and the hold queue for the PVC are two separate
things.
It appears you have frame relay traffic shaping enabled on the interface
and are applying the service policy in a class-map configuration.
The difference you see here is related to the fact you are using a
bandwidth statement on the silver class, but for the class default you
are using fair-queue, if you change the class default to use a bandwdith
statement, you should see the max threshold appear and be set to the
value configured in the queue-limit command.
In my setup I have this
!
class-map match-all test
match protocol ip
!
!
policy-map pm1
class test
bandwidth 16
queue-limit 25
class class-default
fair-queue
!
interface Serial2/0
no ip address
encapsulation frame-relay
no fair-queue
frame-relay class mclass1
frame-relay traffic-shaping
!
map-class frame-relay mclass1
frame-relay holdq 20
service-policy output pm1
sho fram pvc 122
PVC Statistics for interface Serial2/0 (Frame Relay DTE)
DLCI = 122, DLCI USAGE = UNUSED, PVC STATUS = ACTIVE, INTERFACE =
Serial2/0
input pkts 0 output pkts 0 in bytes 0
out bytes 0 dropped pkts 0 in pkts dropped 0
out pkts dropped 0 out bytes dropped 0
in FECN pkts 0 in BECN pkts 0 out FECN pkts 0
out BECN pkts 0 in DE pkts 0 out DE pkts 0
out bcast pkts 0 out bcast bytes 0
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
switched pkts 0
Detailed packet drop counters:
no out intf 0 out intf down 0 no out PVC 0
in PVC down 0 out PVC down 0 pkt too big 0
shaping Q full 0 pkt above DE 0 policing drop 0
pvc create time 00:22:02, last time pvc status changed 00:21:44
cir 56000 bc 7000 be 0 byte limit 875 interval 125
mincir 28000 byte increment 875 Adaptive Shaping none
pkts 0 bytes 0 pkts delayed 0 bytes delayed 0
shaping inactive
traffic shaping drops 0
service policy pm1
Serial2/0: DLCI 122 -
Service-policy output: pm1
Class-map: test (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol ip
Queueing
Output Queue: Conversation 25
Bandwidth 16 (kbps) Max Threshold 25 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0
Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
Queueing
Flow Based Fair Queueing
Maximum Number of Hashed Queues 16
(total queued/total drops/no-buffer drops) 0/0/0
Output queue size 0/max total 20/drops 0 <---------------------for the
PVC, not class-default
This gives me expected results, the pvc output queue is set to 20 and
there is no queue-limit on the class-default.
I can change the class-default queue depth by the following:
Router1(config-pmap-c)#no fair
Router1(config-pmap-c)#band 8
Router1(config-pmap-c)#queue-limit 30
Router1(config-pmap-c)#do sho fram pvc 122
PVC Statistics for interface Serial2/0 (Frame Relay DTE)
DLCI = 122, DLCI USAGE = UNUSED, PVC STATUS = ACTIVE, INTERFACE =
Serial2/0
input pkts 0 output pkts 0 in bytes 0
out bytes 0 dropped pkts 0 in pkts dropped 0
out pkts dropped 0 out bytes dropped 0
in FECN pkts 0 in BECN pkts 0 out FECN pkts 0
out BECN pkts 0 in DE pkts 0 out DE pkts 0
out bcast pkts 0 out bcast bytes 0
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
switched pkts 0
Detailed packet drop counters:
no out intf 0 out intf down 0 no out PVC 0
in PVC down 0 out PVC down 0 pkt too big 0
shaping Q full 0 pkt above DE 0 policing drop 0
pvc create time 00:26:34, last time pvc status changed 00:26:16
cir 56000 bc 7000 be 0 byte limit 875 interval 125
mincir 28000 byte increment 875 Adaptive Shaping none
pkts 0 bytes 0 pkts delayed 0 bytes delayed 0
shaping inactive
traffic shaping drops 0
service policy pm1
Serial2/0: DLCI 122 -
Service-policy output: pm1
Class-map: test (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol ip
Queueing
Output Queue: Conversation 25
Bandwidth 16 (kbps) Max Threshold 25 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0
Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
Queueing
Output Queue: Conversation 26
Bandwidth 8 (kbps) Max Threshold 30 (packets)
<-------------------------------------------------------
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0
Output queue size 0/max total 20/drops 0
Chris
________________________________
From: gladston@br.ibm.com [mailto:gladston@br.ibm.com]
Sent: Monday, September 05, 2005 12:01 PM
To: Chris Lewis (chrlewis)
Cc: ccielab@groupstudy.com
Subject: RE: Dual Fifo Queue Size
Thanks Chris,
It is clear now about dual FIFO queue size.
Reading again the doc you suggested...
....I did not notice before, but 'queue-limit xxx' under CBWFQ does not
change the Output queue size of the class class-default.
The strange is that it works for other class, like class 'silver' on the
following test.
It is necessary to use 'frame-relay holdq <size>', under map-class, to
change the size of queue class-default. And this command just change the
size of the class-default.
Any comments appreciated.
Tests:
policy-map Manage-queue-under-FRTS
class silver
bandwidth 16
queue-limit 400 <-------------
class class-default
fair-queue
queue-limit 500 <-------------
Rack2R5(config-pmap-c)#do sh fram pvc 502
Service-policy output: Manage-queue-under-FRTS
Class-map: silver (match-all)
137 packets, 12604 bytes
1 minute offered rate 0 bps, drop rate 0 bps
Match: ip precedence 6
Queueing
Output Queue: Conversation 25
Bandwidth 16 (kbps) Max Threshold 400 (packets)
<--------------------------
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0
Class-map: class-default (match-any)
155 packets, 157073 bytes
1 minute offered rate 5000 bps, drop rate 0 bps
Match: any
Queueing
Flow Based Fair Queueing
Maximum Number of Hashed Queues 16
(total queued/total drops/no-buffer drops) 0/0/0
Output queue size 0/max total 600/drops 0
<----------------------------
Rack2R5(config-pmap-c)#map-class frame-relay Shaping-for-R2
Rack2R5(config-map-class)#fram holdq 333
Rack2R5(config-map-class)#do sh fram pvc 502
PVC Statistics for interface Serial0/0 (Frame Relay DTE)
Service-policy output: Manage-queue-under-FRTS
Class-map: silver (match-all)
348 packets, 31921 bytes
1 minute offered rate 0 bps, drop rate 0 bps
Match: ip precedence 6
Queueing
Output Queue: Conversation 25
Bandwidth 16 (kbps) Max Threshold 400 (packets)
(pkts matched/bytes matched) 0/0
(depth/total drops/no-buffer drops) 0/0/0
Class-map: class-default (match-any)
385 packets, 389436 bytes
1 minute offered rate 6000 bps, drop rate 0 bps
Match: any
Queueing
Flow Based Fair Queueing
Maximum Number of Hashed Queues 16
(total queued/total drops/no-buffer drops) 0/0/0
Output queue size 0/max total 333/drops 0
Cordialmente,
------------------------------------------------------------------
Alaerte Gladston Vidali
IBM Global Services - SO
Tel.55+11+2121-2879 Fax:55+11+2121-2449
"Chris Lewis \(chrlewis\)" <chrlewis@cisco.com>
05/09/2005 11:21
To
Alaerte Gladston Vidali/Brazil/IBM@IBMBR, <ccielab@groupstudy.com>
cc
Subject
RE: Dual Fifo Queue Size
AFAIK, that is the only way to change these values, I don't think you
can change them independently of each other.
http://www.cisco.com/en/US/tech/tk543/tk544/technologies_tech_note09186a
00800a4754.shtml
Has a good discussion of this in case you haven't seen it.
Chris
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
gladston@br.ibm.com
Sent: Monday, September 05, 2005 7:57 AM
To: ccielab@groupstudy.com
Subject: Dual Fifo Queue Size
Do you know if it is possible to change the size of the interface high
queue when enabling dual fifo on the interface?
I could just change it indirectly, using 'hold-queue 3000 ou'.
It seems the high queue is two times the normal queue.
Output queue: high size/max/dropped 0/6000/0
Output queue: 0/3000 (size/max)
This archive was generated by hypermail 2.1.4 : Sun Oct 02 2005 - 14:40:14 GMT-3