キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 
cancel
1788
閲覧回数
10
いいね!
1
コメント
ykai
Cisco Employee
Cisco Employee

 

 

はじめに


本ドキュメントでは、Catalyst 3650 / Catalyst 3850 / Catalyst 9000 における「qos queue-stats-frame-count」コマンドのサポート、及びそれによる影響について記載します。

 

 

コマンド追加の背景及び影響範囲

 

Catalyst 3650 / Catalyst 3850 / Catalyst 9000 では、バージョンと関係なく、Default で下記三項目は bytes 表記になります。

 

1. 「show interface x/x/x」の Total output drops 値
2. 「show policy-map interface x/x/x」の (bytes output) 値
3. 「show platform hardware fed switch x qos queue stats interface x/x/x」の各項目の値

 

CSCve59640 の元でコード変更を実施し、16.6 Train の 16.6.3 から「qos queue-stats-frame-count」コマンドのサポートが始まり、当該コマンドの実行で上記 bytes 単位から packets 単位へ切り替えられます。

16.6 より前のTrain では当該コマンドをサポートしていません。

 

また、CSCve59640 の記載通り、「qos queue-stats-frame-count」コマンドの投入で、Total output drops 値が packets 単位に変更されるのに伴い、SNMP で取得する「ifOutDiscards」の値も packets 単位になります。

 

 

コマンド実行例

 

1.「show interface x/x/x」の Total output drops 値

switch#show interface gi 1/0/1
<snip>
Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 1534786   <<< bytes 数
<snip>
switch#
switch(config)#qos queue-stats-frame-count
clear the counters by executing "clear counters"
switch(config)#end
switch#clear counter
Clear "show interface" counters on all interfaces [confirm]
switch#

---大よそ同量のトラフィックを印加---

Switch#show interface gi 1/0/1
<snip>
Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 1308   <<< packet数
<snip>

 

2.「show policy-map interface x/x/x」の (bytes output) 値

switch#show policy-map interface gi 1/0/1
<snip>
(bytes output) 2443152000    <<< bytes 数
switch#
switch(config)#qos queue-stats-frame-count
clear the counters by executing "clear counters"
switch(config)#end
switch#clear counter
Clear "show interface" counters on all interfaces [confirm]
switch#

---大よそ同量のトラフィックを印加---

Switch#show policy-map interface gi 1/0/1
<snip>
(pkts output) 4910606    <<< packet 数

※「qos queue-stats-frame-count」の実行により、(bytes output) 表記から(pkts output)表記へ変更します。

 

3. 「show platform hardware fed switch x qos queue stats interface x/x/x」の各項目の値

switch#show platform hardware fed switch 1 qos queue stats interface gigabitEthernet 1/0/1
<snip>
----------------------------------------------------------------------------------------------
Asic:0 Core:1 DATA Port:0 Hardware Enqueue Counters
----------------------------------------------------------------------------------------------
Q Buffers Enqueue-TH0 Enqueue-TH1 Enqueue-TH2 Qpolicer
(Count) (Bytes) (Bytes) (Bytes) (Bytes)   <<<<
-- ------- -------------------- -------------------- -------------------- --------------------
0 0 0 512 18444 0   <<<<
1 0 0 0 0 0
2 0 0 0 0 0
<snip>
switch#
switch(config)#qos queue-stats-frame-count
clear the counters by executing "clear counters"
switch(config)#exit
switch#
switch#show platform hardware fed switch 1 qos queue stats interface gigabitEthernet 1/0/1
<snip>
----------------------------------------------------------------------------------------------
Asic:0 Core:1 DATA Port:0 Hardware Enqueue Counters
----------------------------------------------------------------------------------------------
Q Buffers Enqueue-TH0 Enqueue-TH1 Enqueue-TH2 Qpolicer
(Count) (Frames) (Frames) (Frames) (Frames) <<<<
-- ------- -------------------- -------------------- -------------------- --------------------
0 0 0 8 118 0 <<<<
1 0 0 0 0 0
2 0 0 0 0 0
<snip>

 

※「qos queue-stats-frame-count」コマンドを投入した後、再起動を実施する必要が特にありませんが、上記 1 及び 2 の場合、効果を出せるため、上述実行例のように「clear counters」コマンドの実行が必要となります。3 の場合は「qos queue-stats-frame-count」を実行直後、Bytes から Frames への変換が可能ですので、「clear counters」を実行しなくても構いません。

※ コマンド実行時に通信や筐体への影響は特にありません。

 

 

参考情報

 

https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9600/software/release/16-12/command_reference/b_1612_9600_cr/qos_commands.html?dtid=osscdc000283#wp1201301339

 

qos queue-stats-frame-count



 

 

コメント
ykai
Cisco Employee
Cisco Employee

追記:
Catalyst 9000 ではTotal output drop の表記に仕様変更があります。
詳細は「Catalyst 3650 / 3850 / 9000 : Total output drop の表記について」の
内容を参照してください。

 

Getting Started

検索バーにキーワード、フレーズ、または質問を入力し、お探しのものを見つけましょう

シスコ コミュニティをいち早く使いこなしていただけるよう役立つリンクをまとめました。みなさんのジャーニーがより良いものとなるようお手伝いします