Cisco IOS Release 12.0(25)SX および Release 12.3(7)XI より前のリリースでは、すべての IP precedence レベルについて、合計のランダムおよびテールドロップの統計情報だけが保持されます。
Cisco IOS Release 12.0(25)SX および Release 12.3(7)XI 以降のリリースでは、各 IP precedence、DSCP、 および廃棄クラスの値ごとに個別の WRED ドロップ統計情報が保持されます。
ルータは、次の統計情報を収集します。
• 現在の平均キュー長
• 各 precedence で、ランダムおよび最大しきい値に基づいてドロップされたパケット数とバイト
数
パケットドロップを確認およびモニタするには、特権 EXEC モードで次のコマンドを使用します。
状態を診断する場合には、特権 EXEC モードで次のコマンドを使用します。
コマンド 目的
Router# show interface type slot/module/port.subinterface
現在のキュー制限を含め、指定したインターフェイスの設定情報を表示 します。
Router# show policy-map policy-map-name 指定したポリシーマップの設定情報を表示します。
Cisco IOS Release 12.3(7)XI 以降のリリースでは、各 IP precedence、DSCP 値、および廃棄クラスについて WRED ドロップ カウントが表示されま す。
Cisco IOS Release 12.3(7)XI より前の全リリースでは、各クラスのドロッ プカウントが表示されます。
Router# show policy-map interface すべてのインターフェイス上のサービスポリシーに設定されているクラ スの設定情報が表示されます。
Router# show pxf cpu queue interface インターフェイスまたは VC のキューイング統計情報を表示します。
コマンド 目的
Router# show pxf cpu queue interface 特定のインターフェイスの出力キュー統計情報を表示します。インター フェイスを指定しないと、ルートプロセッサのキュー統計情報が表示さ れます。
このコマンドでは、トラフィックが正しく送信されているかどうかを判 別できます。
(注) 各インターフェイスには、プライオリティが高いキューと低い キューの 2 つのキューが設定されます。このコマンドを入力する と、次のフィールドを含む出力が表示されます。
wq_len:インターフェイスの出力キューの現在の深度
wq_limit_drop:出力キューが満杯であるためにドロップされた パケット数
packet xmit:出力されたパケット数
byte xmit:出力されたバイト数
第11章 パケット キューの輻輳管理 レイヤ 3 パケット ドロップの確認およびモニタ
(注) show pxf コマンドは、PRE1 では、show hardware pxf コマンドとして入力します。
キュー サイズおよびパケット ドロップの確認例
例11-6 に、show policy-map interface コマンドの出力例を示します。この例では、インターフェイ ス serial 1/0/0 に、3 つのトラフィック クラスを含む Traffic-5-PR というポリシー マップが付加され ています。Voice-5-PR クラスに設定されているキュー制限は 32 パケットで、ドロップ パケット数 は 0 です。Gold-5-PR クラスも、ドロップパケット数は 0 です。Silver-5-PR クラスに設定されてい るキュー制限は 64 パケットで、ドロップパケット数は 0 です。
例11-6 キュー サイズおよびドロップ パケット数の表示 Router# show policy-map interface serial 1/0/0 Serial1/0/0
Service-policy output: Traffic-Parent (1051) Class-map: class-default (match-any) (1068/0) 2064335 packets, 120273127 bytes
5 minute offered rate 1000 bps, drop rate 0 bps Match: any (1069)
126970 packets, 3982597 bytes 5 minute rate 0 bps
Shape : 6000 kbps
Service-policy : Traffic-5-PR (1052)
Class-map: Voice-5-PR (match-all) (1053/1) 82310 packets, 4938600 bytes
5 minute offered rate 0 bps, drop rate 0 bps Match: ip precedence 5 (1054)
Output queue: 0/32; 82310/4938600 packets/bytes output, 0 drops Absolute priority
Queue-limit: 32 packets Police:
304000 bps, 1536 limit, 0 extended limit
conformed 82312 packets, 4938720 bytes; action: transmit exceeded 0 packets, 0 bytes; action: drop
violated 0 packets, 0 bytes; action: drop Router# show pxf cpu queue interface
summary
次の情報を含む、キューのスケーリング情報を表示します。
• キュー数およびリサイクル中のキュー数 • 使用できる QID 数
• パケットバッファ数、リサイクル中のパケットバッファ数、空きパ ケットバッファ数
(注) Cisco IOS Release 12.2(33)SB では、このコマンドは物理インター フェイスと論理リンク数のみを表示するように修正され、PRE3
と PRE4 に実装されました。コマンドの出力にプライオリティ
キュー数、クラスキュー数などは表示されなくなりました。
Router# show pxf cpu schedule 転送エンジンから各インターフェイスへのパケット転送レートを表示し
ます。
コマンド 目的
Class-map: Gold-5-PR (match-any) (1058/2) 1125476 packets, 67528560 bytes
5 minute offered rate 0 bps, drop rate 0 bps Match: ip precedence 3 4 (1059)
1125476 packets, 67528560 bytes 5 minute rate 0 bps
Output queue: 0/128; 1125503/67530180 packets/bytes output, 0 drops Bandwidth : 188 kbps (Weight 3)
Class-map: Silver-5-PR (match-any) (1061/3) 697908 packets, 41874480 bytes
5 minute offered rate 0 bps, drop rate 0 bps Match: ip precedence 0 1 2 (1062)
697908 packets, 41874480 bytes 5 minute rate 0 bps
Output queue: 0/64; 697919/41875140 packets/bytes output, 0 drops Bandwidth : 71 kbps (Weight 1)
Random-detect (precedence-based):
Exponential weight: 9 (1/512)
Current average queue length: 0 packets
Min Max Prob Rand-Drops Tail-Drops
0 16 32 1/10 0 0
1 18 32 1/10 0 0
2 20 32 1/10 0 0
3 22 32 1/10 0 0
4 24 32 1/10 0 0
5 26 32 1/10 0 0
6 28 32 1/10 0 0
7 30 32 1/10 0 0 Queue-limit: 64 packets
Class-map: class-default (match-any) (1066/0) 158641 packets, 5931487 bytes
5 minute offered rate 0 bps, drop rate 0 bps Match: any (1067)
158641 packets, 5931487 bytes 5 minute rate 0 bps
Output queue: 0/128; 31672/1695625 packets/bytes output, 0 drops
第11章 パケット キューの輻輳管理 レイヤ 3 パケット ドロップの確認およびモニタ
DSCP ベースの WRED の確認例
例 11-7 に、show policy-map interface コマンドの出力例を示します。この例では、nyusers クラス キューに DSCP ベースの WRED が設定されています。平均キュー サイズの計算に使用されている 指数の重みは、9 です。ここでは、WRED は、DSCP 8 および DSCP 0(デフォルト)に基づくパ ケットドロップを実行していません。
例11-7 DSCP ベースの WRED の統計情報の表示
Router# show policy-map interface GigabitEthernet 3/0/0 GigabitEthernet3/0/0
Service-policy output: manhattan Class-map: nyusers (match-all) 0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps Match: access-group 101
Output queue: 0/128; 0/0 packets/bytes output, 0 drops Bandwidth : 47 kbps (Weight 0)
Random-detect (DSCP-based):
Exponential weight: 9 (1/512)
Current average queue length: 0 packets
Diff-Serv Min Max Mark Rand-Drops Tail-Drops codepoint thres thres probability
8 24 40 1/50 0 0 Default 64 128 1/10 0 0 Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps Match: any
Output queue: 0/4096; 0/0 packets/bytes output, 0 drops
例11-8 に、show class-map コマンドの出力例を示します。show class-map コマンドの出力から、ト ラフィックはデフォルトの DSCP 0 および DSCP 1、2、3、および 5 に基づいて分類されていること がわかります。これらのすべての DSCP 値に一致するトラフィックだけが、per_dscp_class トラ フィック クラスに割り当てられます。
例11-8 show class-map コマンドの出力例 Router# show class-map per_dscp_class Class Map match-all per_dscp_class (id 11) Match ip dscp default 1 2 3 5
例11-9 に、show policy-map コマンドの出力例を示します。show policy-map コマンドの出力から、
per_dscp_class クラスのドロップポリシーが DSCP 1、2、3、および 5 に基づいていることがわかり ます。
例11-9 show policy-map コマンドの出力例 Router# show policy-map per_dscp_policy Policy Map per_dscp_policy
Class per_dscp_class priority
random-detect dscp-based random-detect dscp 1 10 20 50 random-detect dscp 2 10 40 20 random-detect dscp 3 100 400 20 random-detect dscp 5 22 60 30
IP precedence ベースの WRED の確認例
例11-10 に、show policy-map interface コマンドの出力例を示します。この例では、new-users クラ ス キューに IP precedence ベースの WRED が設定されています。各 precedence レベルについて、最 小しきい値および最大しきい値、mark probability の値、RED によるドロップパケット数、テール ドロップによるドロップパケット数が表示されます。
例11-10 IP precedence ベースの WRED の統計情報の表示 Router# show policy-map interface FastEthernet 3/0/0 FastEthernet3/0/0
Service-policy output: voice Class-map: new-users (match-all) 0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps Match: access-group 101
Output queue: 0/128; 0/0 packets/bytes output, 0 drops Bandwidth: 47 kbps (Weight 0)
Random-detect (precedence-based):
Exponential weight: 9 (1/512)
Current average queue length: 0 packets
---TOS MinMaxMark Rand-DropsTail-Drops
precedencethresthresprobability
---0 204840961/10105
1 230440961/1031 2 256040961/1000 3 281640961/1000 4 307240961/1051 5 332840961/1000 6 358440961/1020 7 384040961/1000
第11章 パケット キューの輻輳管理 レイヤ 3 パケット ドロップの確認およびモニタ
廃棄クラス ベースの WRED の確認例
例 11-11 に、show policy-map interface コマンドの出力例を示します。この例では、vlan1 クラス キューに廃棄クラスに基づく WRED が設定されています。各廃棄クラスのレベルについて、最小 しきい値および最大しきい値、マーク確率値、RED によるドロップパケット数、テールドロップ によるドロップパケット数が表示されます。
例11-11 廃棄クラス ベースの WRED の統計情報の表示 Router# show policy-map interface GigabitEthernet 1/0/0 GigabitEthernet1/0/0
Service-policy output: bronze Class-map: vlan1 (match-all) 0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps Match: access-group 101
Output queue: 0/128; 0/0 packets/bytes output, 0 drops Bandwidth: 47 kbps (Weight 0)
Random-detect (discard-class-based):
Exponential weight: 9 (1/512)
Current average queue length: 0 packets
---DiscardMinMaxMarkRand-DropsTail-Drops
classthresthresprobability
---0 10 100 1/402 100
1 100 200 1/4015 0 2 256040961/100 0 3 281640961/100 0 4 307240961/100 0 5 332840961/100 0 6 358440961/100 0 7 384040961/100 0
ATM CLP ベースの WRED の確認例
例 11-12 に、show policy-map interface コマンドの出力例を示します。この例では、PRE3 搭載の Cisco 10000 シリーズ ルータに ATM CLP ベースの WRED が設定されています。出力には、CLP 1 のしきい値設定が表示されます。
例11-12 ATM CLP ベースの WRED の統計情報の表示(PRE3)
Router# show policy-map policymap1 Service-policy output: policymap1
Class-map:class1 (match-all) 0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps Match:none
Queueing
Queue limit 50 packets
(queue depth/total drops/no-buffer drops) 0/0/0 (pkts output/bytes output) 0/0
bandwidth 20% (00000 kbps)
Exp-weight-constant: 9 (1/512) Mean queue depth:0 bytes
clp Transmitted Random drop Tail drop Minimum Maximum Mark pkts/bytes pkts/bytes pkts/bytes thresh thresh prob
0 0/0 0/0 0/0 0 0 1/0
1 0/0 0/0 0/0 12 25 1/10
例11-13 に、show policy-map コマンドの出力例を示します。この例では、PRE2 搭載の Cisco 10000 シリーズ ルータに ATM CLP ベースの WRED が設定されています。出力には、CLP 1 のしきい値設 定が表示されます。
例11-13 ATM CLP ベースの WRED の統計情報の表示(PRE2)
Router# show policy-map policymap1 Service-policy output: policymap1
Class-map:class1 (match-all) 0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps Match:none
Output queue:0/16384; 0/0 packets/bytes output, 0/0 drops Bandwidth :200000 kbps (Weight 20)
Random-detect (clp-based) : Exponential weight: 9 (1/512)
Current average queue length:0 packets
---ATM Min Max Mark Rand-Drop Tail-Drop
CLP thres thres probability Pkts Bytes Pkts Bytes
---0 4097 8192 1/10 0 0 0 0
1 12 25 1/10 0 0 0 0
第11章 パケット キューの輻輳管理