228行目: |
228行目: |
| end | | end |
| </syntaxhighlight> | | </syntaxhighlight> |
| + | |
| + | == 確認コマンド (IOS-XE 16.x-) == |
| + | IOS-XE 15.x など古い Version の場合、fed switch や active の指定が要らない場合があります。 |
| + | |
| + | === show platform hardware fed switch <active|standby|switch_num> qos queue config interface <int_num> === |
| + | バッファ量や優先度などが確認できるコマンド。 |
| + | |
| + | qos queue-softmax-multiplier や queue-buffers ratio を変更した際に、差分を確認すると良いです。<syntaxhighlight lang="diff"> |
| + | show platform hardware fed switch active qos queue config interface Gi1/0/1 |
| + | |
| + | Asic:0 Core:0 DATA Port:5 GPN:1 LinkSpeed:0x1 |
| + | AFD:Disabled FlatAFD:Disabled QoSMap:0 HW Queues: 40 - 47 |
| + | DrainFast:Disabled PortSoftStart:2 - 1080 |
| + | DTS Hardmax Softmax PortSMin GlblSMin PortStEnd |
| + | ----- -------- -------- -------- -------- --------- |
| + | 0 1 6 120 3 480 7 320 0 0 3 1440 |
| + | 1 1 5 0 7 720 4 480 2 180 3 1440 |
| + | 2 1 5 0 6 0 6 0 0 0 3 1440 |
| + | 3 1 5 0 6 0 6 0 0 0 3 1440 |
| + | 4 1 5 0 6 0 6 0 0 0 3 1440 |
| + | 5 1 5 0 6 0 6 0 0 0 3 1440 |
| + | 6 1 5 0 6 0 6 0 0 0 3 1440 |
| + | 7 1 5 0 6 0 6 0 0 0 3 1440 |
| + | Priority Shaped/shared weight shaping_step sharpedWeight |
| + | -------- ------------- ------ ------------ ------------- |
| + | 0 0 Shared 50 0 0 |
| + | 1 0 Shared 75 0 0 |
| + | 2 0 Shared 10000 0 0 |
| + | 3 0 Shared 10000 0 0 |
| + | 4 0 Shared 10000 0 0 |
| + | 5 0 Shared 10000 0 0 |
| + | 6 0 Shared 10000 0 0 |
| + | 7 0 Shared 10000 0 0 |
| + | Port Port Port Port |
| + | Priority Shaped/shared weight shaping_step |
| + | -------- ------------- ------ ------------ |
| + | 2 Shaped 254 255 |
| + | |
| + | Weight0 Max_Th0 Min_Th0 Weigth1 Max_Th1 Min_Th1 Weight2 Max_Th2 Min_Th2 |
| + | ------- ------- ------- ------- ------- ------- ------- ------- ------ |
| + | 0 0 478 0 0 534 0 0 600 0 |
| + | 1 0 573 0 0 641 0 0 720 0 |
| + | 2 0 0 0 0 0 0 0 0 0 |
| + | 3 0 0 0 0 0 0 0 0 0 |
| + | 4 0 0 0 0 0 0 0 0 0 |
| + | 5 0 0 0 0 0 0 0 0 0 |
| + | 6 0 0 0 0 0 0 0 0 0 |
| + | 7 0 0 0 0 0 0 0 0 0 |
| + | |
| + | </syntaxhighlight> |
| + | |
| + | === show platform hardware fed switch <active|standby|switch_num> qos queue stats interface <int_num> === |
| + | キューレベルでパケットを送信した数とドロップ数を確認できるコマンド。 |
| + | |
| + | この出力例では、qos queue-stats-frame-count でバイト数からフレーム数へ変更してあります。<syntaxhighlight lang="diff"> |
| + | #show platform hardware fed switch active qos queue stats interface Gi1/0/1 |
| + | |
| + | ---------------------------------------------------------------------------------------------- |
| + | AQM Global counters |
| + | GlobalHardLimit: 5773 | GlobalHardBufCount: 0 |
| + | GlobalSoftLimit: 7539 | GlobalSoftBufCount: 0 |
| + | |
| + | ---------------------------------------------------------------------------------------------- |
| + | Asic:0 Core:0 Port:5 Hardware Enqueue Counters |
| + | ---------------------------------------------------------------------------------------------- |
| + | Q Buffers Enqueue-TH0 Enqueue-TH1 Enqueue-TH2 Qpolicer |
| + | (Count) (Frames) (Frames) (Frames) (Frames) |
| + | -- ------- -------------------- -------------------- -------------------- -------------------- |
| + | 0 0 0 0 0 0 |
| + | 1 0 0 0 0 0 |
| + | 2 0 0 0 0 0 |
| + | 3 0 0 0 0 0 |
| + | 4 0 0 0 0 0 |
| + | 5 0 0 0 0 0 |
| + | 6 0 0 0 0 0 |
| + | 7 0 0 0 0 0 |
| + | Asic:0 Core:0 Port:5 Hardware Drop Counters |
| + | -------------------------------------------------------------------------------------------------------------------------------- |
| + | Q Drop-TH0 Drop-TH1 Drop-TH2 SBufDrop QebDrop QpolicerDrop |
| + | (Frames) (Frames) (Frames) (Frames) (Frames) (Frames) |
| + | -- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- |
| + | 0 0 0 0 0 0 0 |
| + | 1 0 0 0 0 0 0 |
| + | 2 0 0 0 0 0 0 |
| + | 3 0 0 0 0 0 0 |
| + | 4 0 0 0 0 0 0 |
| + | 5 0 0 0 0 0 0 |
| + | 6 0 0 0 0 0 0 |
| + | 7 0 0 0 0 0 0 |
| + | |
| + | </syntaxhighlight> |
| + | |
| + | == 印加するトラフィックについて == |
| + | 以下のように実施すると、レートやドロップの割合が計算しやすくなるため、推奨します。 |
| + | |
| + | # カウンタをクリア |
| + | # カウンタの事前ログを取得 |
| + | # トラフィックを 100 などキリが良い数字で印加 |
| + | # カウンタの事後ログを取得 |
| + | |
| + | 例えば 1000 バイト 1000 フレームを印加すると 1M バイトになります。 |
| + | |
| + | ビットで揃えたければ、125 バイト 1000 フレームを印加すれば 1M ビットになります。 |
| + | |
| + | 1000 フレーム中 50 フレームがドロップした場合、 |
| + | |
| + | * 50 ドロップ フレーム / 1000 送信フレーム * 100 = 5% のドロップ率 |
| + | |
| + | ということになります。 |
| + | |
| + | == カウンタのクリア == |
| + | |
| + | ==== clear platform hardware fed switch active qos statistics interface Gi1/0/1 ==== |
| + | show platform で取得できる、QoS のカウンタをクリアするコマンド。 |
| + | |
| + | ==== clear counters Gi1/0/1 ==== |
| + | show interfaces で取得できる、インターフェースのカウンタをクリアするコマンド。 |
| + | |
| + | == 不要なフレーム・プロトコルを止める == |
| + | カウンタを取得する際、余計なプロトコルが動いていると、QoS の計測用に印加したトラフィックと混ざってカウントされてしまいます。 |
| + | |
| + | 以下のプロトコルは止めて試験したほうが良いケースがあります。 |
| + | |
| + | * Loopback フレーム : no keepalive |
| + | * DTP フレーム : switchport nonegotiate |
| + | * CDP フレーム : no cdp enable |
| + | * VTP フレーム : vtp mode transparent |
| + | * LLDP フレーム : no lldp transmit , no lldp receive |
| + | * STP BPDU フレーム : no spanning-tree vlan <Vlan-ID> |
| | | |
| == トラフィック生成 == | | == トラフィック生成 == |