ハードウェアリソースのカスタムプロファイル
このトピックでは、ハードウェアリソースのカスタムプロファイルの概要を説明します
ハードウェアプロファイル
hw-db-profileを使用すると、ハードウェアリソースを静的に予約できます。ただし、hw-db-profile は、個別に管理する必要があるリソースがあるため、すべての hw リソースに使用できるわけではありません。代わりにカスタムプロファイルインフラストラクチャを使用して、アプリケーション要件に応じてハードウェアリソースの割り当てをカスタマイズできます。カスタムプロファイルインフラストラクチャを使用して、アプリケーション固有の動的なハードウェアリソース割り当てを作成できます。
以下の設定スタンザでは、ハードウェアプロファイル(hw-profile)は、システムに適用されている現在アクティブなカスタムハードウェアプロファイルを指定する最上位の設定ステートメントです。 hw-profile-name は、システムに適用されている現在アクティブなカスタムハードウェアプロファイルの名前です。コミットに成功すると、システムはPFEを再起動します。このCLIを使用すると、複数のカスタムハードウェアプロファイルを作成できますが、現在アクティブなカスタムハードウェアプロファイルとして使用できるのは1つだけです。
system {
packet-forwarding-options {
hw-profile {
<hw-profile-name>
}
}
}
カスタムハードウェアプロファイル
前のセクションで説明したように、カスタムハードウェアプロファイル(hw-profile-name)はユーザー定義であり、カウンターなどのハードウェアリソース用に作成されたカスタムプロファイルの詳細を保持します。
以下の構成スタンザでは、 <hw-profile-name> は、カウンター (counter-profile <counter-profile>) ハードウェア・リソース用に作成されたカスタム・プロファイルの詳細を保持するカスタム・ハードウェア・プロファイルの名前です。
system {
packet-forwarding-options {
custom-profiles {
hw-profiles <hw-profile-name> {
counter-profile <counter-profile>
}
}
}
}
以下の設定スタンザでは、カウンター(ハードウェアリソース)用にカスタムプロファイルが作成されます。カウンター用に作成されたカスタムプロファイルは、カウンタープロファイルと呼ばれます。Junos OSリリース25.3では、カウンタープロファイルのみがサポートされています。
system {
packet-forwarding-options {
custom-profiles {
counter-profiles <counter-profile-name> {
app {
tcam-ingress {
counter-4k <num-of-counter-engines>
counter-8k <num-of-counter-engines>
counter-16k <num-of-counter-engines>
external-cntr <num-of-entries>
}
voq {
counter-4k <num-of-counter-engines>
counter-8k <num-of-counter-engines>
counter-16k <num-of-counter-engines>
}
ifl-ingress {
counter-4k <num-of-counter-engines>
counter-8k <num-of-counter-engines>
counter-16k <num-of-counter-engines>
}
.....
}
}
}
}
}
したがって、従うべき一連の手順は次のとおりです。
-
カスタムカウンタプロファイルを作成します。カウンタプロファイルを参照してください
-
カスタムハードウェアプロファイルを作成します。各カスタムハードウェアプロファイルは、1つから複数の異なるカスタムプロファイルで定義できます。 「hw-profiles」を参照してください。
-
アクティブなハードウェアプロファイルとして1つのカスタムハードウェアプロファイルを適用します。 「hw-profile」を参照してください。
カスタムカウンタープロファイル
カスタムカウンタプロファイルは、アプリケーションごとにカウンタエンジンを割り当てるメカニズムを提供します。割り当ては、アプリケーションのスケール要件に基づいて行われます。カウンターリソースは、さまざまなカウンターエンジンを通じて提供されます。カウンターエンジンは、サポートするカウンターの数に基づいて3種類あります。4Kカウンターエンジンは4Kカウンターをサポートします。同様に、8K および 16 カウンタ エンジンは 8K および 16K カウンタをサポートします。カウンタエンジンの数はプラットフォームによって異なります。 カウンタープロファイルを参照してください。
以下の設定スタンザでは、 <counter-profile-name> がカスタムカウンタプロファイルの名前です。 appの下には、 tcam-ingress、 voq、および ifl-ingressは、カウンターハードウェアリソースが割り当てられているアプリケーションの名前です。
system {
packet-forwarding-options {
custom-profiles {
counter-profiles <counter-profile-name> {
app {
tcam-ingress {
counter-4k <num-of-counters>
counter-8k <num-of-counters>
counter-16k <num-of-counters>
external-cntr <num-of-entries>
}
voq {
counter-4k <num-of-counters>
counter-8k <num-of-counters>
counter-16k <num-of-counters>
}
ifl-ingress {
counter-4k <num-of-counters>
counter-8k <num-of-counters>
counter-16k <num-of-counters>
}
}
}
}
}
}
例文
次の例は、アプリケーションのカウンタリソースを設定する方法を示しています。2つのカスタムカウンタープロファイルが作成されます。カスタムカウンタープロファイルごとに2つのカスタムハードウェアプロファイルが作成されます。1つのカスタムハードウェアプロファイルがアクティブなハードウェアプロファイルとして設定されます
手順は次のとおりです。
2つのカスタムカウンタープロファイルを作成しますcntr1cntr2
set system packet-forwarding-options custom-profiles counter-profiles cntr1 app tcam-ingress counter-8k 3 set system packet-forwarding-options custom-profiles counter-profiles cntr1 app voq counter-16k 2 set system packet-forwarding-options custom-profiles counter-profiles cntr1 app ifl-ingress counter-8k 2 set system packet-forwarding-options custom-profiles counter-profiles cntr1 app perf-mon-ingress counter-4k 1 set system packet-forwarding-options custom-profiles counter-profiles cntr1 app policer-ingress counter-16k 1 set system packet-forwarding-options custom-profiles counter-profiles cntr1 app tcam-egress counter-4k 1 set system packet-forwarding-options custom-profiles counter-profiles cntr1 app ifl-egress counter-8k 2 set system packet-forwarding-options custom-profiles counter-profiles cntr1 app perf-mon-egress counter-4k 1 set system packet-forwarding-options custom-profiles counter-profiles cntr1 app policer-egress counter-16k 1 set system packet-forwarding-options custom-profiles counter-profiles cntr2 app tcam-ingress counter-8k 3 set system packet-forwarding-options custom-profiles counter-profiles cntr2 app ifl-ingress counter-4k 1 set system packet-forwarding-options custom-profiles counter-profiles cntr2 app ifl-ingress counter-8k 2 set system packet-forwarding-options custom-profiles counter-profiles cntr2 app ifl-ingress counter-16k 1 set system packet-forwarding-options custom-profiles counter-profiles cntr2 app perf-mon-ingress counter-16k 1 set system packet-forwarding-options custom-profiles counter-profiles cntr2 app policer-ingress counter-16k 1 set system packet-forwarding-options custom-profiles counter-profiles cntr2 app tcam-egress counter-4k 1 set system packet-forwarding-options custom-profiles counter-profiles cntr2 app ifl-egress counter-4k 1 set system packet-forwarding-options custom-profiles counter-profiles cntr2 app ifl-egress counter-8k 2 set system packet-forwarding-options custom-profiles counter-profiles cntr2 app ifl-egress counter-16k 1 set system packet-forwarding-options custom-profiles counter-profiles cntr2 app storm-control counter-4k 1 set system packet-forwarding-options custom-profiles counter-profiles cntr2 app mcast counter-4k 1
2つのカスタムカウンタープロファイルに対して、それぞれ2つのカスタムハードウェアプロファイルを作成します
set system packet-forwarding-options custom-profiles hw-profiles hw1 counter-profile cntr1 set system packet-forwarding-options custom-profiles hw-profiles hw2 counter-profile cntr2
アクティブなハードウェアプロファイルとして1つのカスタムハードウェアプロファイルを設定します
set system packet-forwarding-options hw-profile hw1
カウンタプロファイル管理における考慮事項
デフォルトの動作
-
カスタムカウンタプロファイルが定義されていない場合、プラットフォームはデフォルトの静的に割り当てられたカウンタプロファイルを使用します。この割り当ては、25.3リリース以前の既存の割り当てと同じです。
-
カスタムプロファイルが定義されると、カスタムカウンタープロファイルに記載されているアプリケーションのみが、ユーザーが設定したカウンター割り当てを持つようになります。
VOQ統計 - 予約済みカウンター
-
ACX7100/ACX7509プラットフォームには、ポートVOQ統計用に内部で予約された1つの8Kカウンターエンジンがあります。
-
他のプラットフォームでは、デフォルトで1つの4Kカウンターエンジンを予約しています。
-
明示的なVOQ割り当てなしでカスタムカウンタープロファイルが設定されている場合、予約済みエンジンはポートVOQのみをサポートします。HQoS統計では、アプリ
voqを含むカスタムカウンタープロファイルを設定する必要があります。
TCAMおよびポリサーエンジン
-
25.3リリースでカスタムカウンタプロファイルを定義する際には、ユーザーが設定できるようになるまで、TCAMとポリサーアプリケーション(tcam-ingress、tcam-egress、policer-ingress、policer-egress)を設定することが必須です。TCAMとポリサーアプリを、デフォルトのプロファイル値以外の値で設定することはできません。
-
これらのアプリケーションに設定された値は、プラットフォームのデフォルトの割り当てと正確に一致する必要があります。
-
デフォルトのカウンタ発生から逸脱すると(例えば、tcam-ingress counter-8k をデフォルトの 3 ではなく 2 に設定すると)、コミット中に検証エラーが発生します。
-
カウンターエンジンは、カウンターとポリサーの間で共有されます。ポリサーを使用するアプリケーションは、リソースの競合を回避するために、必要な数のカウンターエンジンを明示的に予約する必要があります。
マルチキャストルート統計
-
リリース25.3以降、マルチキャスト統計はカウンタープロファイルインフラストラクチャを通じてサポートされており、リソースの柔軟性とアプリケーション固有の割り当てが可能になります。
-
下位互換性を確保するため、レガシー CLI:
set system packet-forwarding-options mcast stats-enableは、該当するリリースで保持(非表示)されます。これにより、新しいモデルに移行しながら、古い構成をサポートできます。 -
検証は、マルチキャストのカウンターエンジン予約の重複を防ぎ、従来のCLIと新しいプロファイルベースのアプローチ間の設定競合を回避するために導入されました。
-
ユーザーは、カスタムカウンタプロファイルを使用してマルチキャスト統計を明示的に設定し、従来のCLI設定を削除して、明確さを確保し、意図しない動作を回避することをお勧めします。
OP2(ACX7332)の外部カウンター(external-cntr)
-
ACX7332では、TCAMはIFF/FTFベースのフィルターに対してOP2でカウンタエンジンを使用します。ただし、ポリサーやその他の用途では、TCAMは引き続き内部カウンタエンジンを使用します。したがって、それに応じて割り当てを行う必要があります。
-
external-cntrは、カウンターエントリーの数に基づいて割り当てられます。external-cntrエントリーを予約できるのはtcam-ingressアプリケーションのみで、262142エントリーに設定されています。
設定ガイドライン
以下の表は、各アプリケーションのカウンターエンジンの設定に関する推奨事項をまとめたものです。ユーザーは、アプリケーションスケールの数に合わせてカウンターエンジンの数を設定することをお勧めします。
| アプリケーション |
設定ガイドライン |
|---|---|
| ストーム制御 |
ストーム制御は、カウンターエンジンに依存してポリシング機能を実装します。そのため、アプリケーションスケールを超えてカウンタエンジンを設定する必要はありません。 |
| VOQ |
統計情報をサポートするHQoSスケールは、利用可能な無料のカウンタエンジンリソースに基づいて増加させることができます。 HQoS スケールの増加は、他のハードウェア リソースにも依存するため、カウンター エンジンの可用性に正比例しません。」 カウンタエンジンは、HQoSのシステムレベルで割り当てられます |
| TCAMイングレス |
カウンターエンジンは改造できないため適用されません。 |
| perf-mon-ingress |
TWAMP とインライン sFlow 機能は、それぞれタイムスタンプとシーケンスの目的でカウンターエンジンを利用します。そのため、アプリケーションスケールを超えてカウンタエンジンを設定する必要はありません。 |
| ifl-ingress |
IFLが複数のPFEに対称的に分散されている場合は、より少ない数のカウンターエンジンエントリーで十分な場合があります。例えば、16K IFLが2つのPFEに均等に分割されている場合(PFEあたり8K IFL)、8Kのカウンターエンジンエントリーで十分な場合があります。これは、カウンタエンジン自体もPFE全体に対称的に分散されているためです。 ただし、単一のPFEで同じIFLの総数(例:16K IFL)が設定されている場合は、システムレベルでカウンターエンジンエントリーの全量(例:16K)をプロビジョニングして、すべてのインターフェイスの統計情報を収集できるようにすることをお勧めします。 上記の説明は、物理的なIFLには当てはまりますが、論理的なIFLには当てはまりません。 |
| ポリサーイングレス |
カウンタエンジンは変更できないため、該当なし |
| TCAM-egress |
カウンタエンジンは変更できないため、該当なし |
| パフォーマンスモンエグレス |
インラインSflowアプリケーションのperf-mon-ingressと同じです。 |
| iflエグレス |
ifl-ingressと同じ |
| ポリサーエグレス |
カウンタエンジンは変更できないため、該当なし |
| マルチキャスト |
カウンタエンジンは、マルチキャストルートのシステムレベルで割り当てられます。 マルチキャスト ルートの統計情報の可用性は、他のハードウェア リソース(FEC-3 階層)にも依存します |
-
ACX7100-32CやACX7100-48Lなどのプラットフォームでは、特定のアプリの内部予約により、デフォルトのカウンタープロファイル設定をカスタムプロファイルに直接コピーすることはできません。その結果、ユーザーは、必要に応じて、カスタムプロファイルのカウンターエンジンを、デフォルトプロファイルの動作やスケールに合わせて手動で調整する必要があります。
例えば、以下のデフォルトのカウンタープロファイルは、カウンターエンジンの割り当てです。
show system packet-forwarding-options hw-profile counter-profile Active Hw-Profile : default-hw-profile Active Counter-Profile : default-counter-profile Counter Profile Status : SUCCESS ---------------------------------------------------------------------------------------- Application-Name | 4K | 8K | 16K | External | Total | Status | Engines | Engines | Engines | | (K) | ---------------------------------------------------------------------------------------- STORM_CONTROL | 1 | 0 | 0 | 0 | 4 | SUCCESS VOQ | 1 | 0 | 2 | 0 | 36 | SUCCESS TCAM_INGRESS | 0 | 3 | 0 | 0 | 24 | SUCCESS IFL_INGRESS | 0 | 2 | 0 | 0 | 16 | SUCCESS PERF_MON_INGRESS | 1 | 0 | 0 | 0 | 4 | SUCCESS POLICER_INGRESS | 0 | 0 | 1 | 0 | 16 | SUCCESS IFL_EGRESS | 0 | 2 | 0 | 0 | 16 | SUCCESS TCAM_EGRESS | 1 | 0 | 0 | 0 | 4 | SUCCESS PERF_MON_EGRESS | 1 | 0 | 0 | 0 | 4 | SUCCESS POLICER_EGRESS | 0 | 0 | 1 | 0 | 16 | SUCCESS カウンターエンジンを調整することで、以下の方法でデフォルトのカウンタープロファイルと同じスケールを実現できます。(内部VOQは8Kを予約しています。内部予約は
show cntr-app-map)で確認できます。show system packet-forwarding-options hw-profile counter-profile Active Hw-Profile : hw1 Active Counter-Profile : cntr1 Counter Profile Status : SUCCESS ---------------------------------------------------------------------------------------- Application-Name | 4K | 8K | 16K | External | Total | Status | Engines | Engines | Engines | | (K) | ---------------------------------------------------------------------------------------- STORM_CONTROL | 1 | 0 | 0 | 0 | 4 | SUCCESS VOQ | 1 | 3 | 0 | 0 | 28 | SUCCESS 8k internally reserved (28+8=36K) TCAM_INGRESS | 0 | 3 | 0 | 0 | 24 | SUCCESS IFL_INGRESS | 0 | 0 | 1 | 0 | 16 | SUCCESS PERF_MON_INGRESS | 1 | 0 | 0 | 0 | 4 | SUCCESS POLICER_INGRESS | 0 | 0 | 1 | 0 | 16 | SUCCESS IFL_EGRESS | 0 | 0 | 1 | 0 | 16 | SUCCESS TCAM_EGRESS | 1 | 0 | 0 | 0 | 4 | SUCCESS PERF_MON_EGRESS | 1 | 0 | 0 | 0 | 4 | SUCCESS POLICER_EGRESS | 0 | 0 | 1 | 0 | 16 | SUCCESS ---------------------------------------------------------------------------------------- Total-Allocated | 4 | 6 | 4 | 0 | Total-Free | 2 | 0 | 1 | 0 | Total-Engines | 6 | 6 | 5 | 0 | ----------------------------------------------------------------------------------------- -
ACX7024の場合、デフォルトのカウンタープロファイルの割り当ては次のとおりです。
show system packet-forwarding-options hw-profile counter-profile Active Hw-Profile : default-hw-profile Active Counter-Profile : default-counter-profile Counter Profile Status : SUCCESS ---------------------------------------------------------------------------------------- Application-Name | 4K | 8K | 16K | External | Total | Status | Engines | Engines | Engines | | (K) | ---------------------------------------------------------------------------------------- STORM_CONTROL | 1 | 0 | 0 | 0 | 4 | SUCCESS VOQ | 0 | 0 | 1 | 0 | 16 | SUCCESS TCAM_INGRESS | 0 | 0 | 1 | 0 | 16 | SUCCESS IFL_INGRESS | 0 | 1 | 0 | 0 | 8 | SUCCESS PERF_MON_INGRESS | 1 | 0 | 0 | 0 | 4 | SUCCESS POLICER_INGRESS | 0 | 0 | 1 | 0 | 16 | SUCCESS IFL_EGRESS | 0 | 1 | 0 | 0 | 8 | SUCCESS TCAM_EGRESS | 1 | 0 | 0 | 0 | 4 | SUCCESS PERF_MON_EGRESS | 1 | 0 | 0 | 0 | 4 | SUCCESS POLICER_EGRESS | 0 | 0 | 1 | 0 | 16 | SUCCESSカスタムプロファイル設定では、1 4kがVOQに内部的に予約されているため、4kカウンターエンジンはデフォルトよりも小さくなります。したがって、以下に示すように、どちらかのアプリ
PERF_MON_INGRESS or PERF_MON_EGRESS8k に調整する必要があります。show system packet-forwarding-options hw-profile counter-profile Active Hw-Profile : hw1 Active Counter-Profile : cntr1 Counter Profile Status : SUCCESS ---------------------------------------------------------------------------------------- Application-Name | 4K | 8K | 16K | External | Total | Status | Engines | Engines | Engines | | (K) | ---------------------------------------------------------------------------------------- STORM_CONTROL | 1 | 0 | 0 | 0 | 4 | SUCCESS VOQ | 0 | 0 | 1 | 0 | 16 | SUCCESS >>> 16+4 (20K available,adjust as needed) TCAM_INGRESS | 0 | 0 | 1 | 0 | 16 | SUCCESS IFL_INGRESS | 0 | 1 | 0 | 0 | 8 | SUCCESS PERF_MON_INGRESS | 0 | 1 | 0 | 0 | 8 | SUCCESS >>> Moved to 8k POLICER_INGRESS | 0 | 0 | 1 | 0 | 16 | SUCCESS IFL_EGRESS | 0 | 1 | 0 | 0 | 8 | SUCCESS TCAM_EGRESS | 1 | 0 | 0 | 0 | 4 | SUCCESS PERF_MON_EGRESS | 1 | 0 | 0 | 0 | 4 | SUCCESS POLICER_EGRESS | 0 | 0 | 1 | 0 | 16 | SUCCESS ---------------------------------------------------------------------------------------- Total-Allocated | 3 | 3 | 4 | 0 | Total-Free | 0 | 1 | 0 | 0 | Total-Engines | 3 | 4 | 4 | 0 |
検証例
以下は、設定ステートメントをコミットする前にシステムがチェックを実行するための検証例です。
ingressとegressのIfl対称検証
user@host# set system packet-forwarding-options custom-profiles counter-profiles cntr1 app ifl-ingress counter-4k 7
[edit]
user@host# commit
[edit system packet-forwarding-options custom-profiles counter-profiles cntr1]
'app'
Number of ifl ingress and egress counters should be same. Current configuration has ingress: 7 egress: 1
error: commit failed: (validation hook evaluation failed)
設定されたエンジンの数がサポートされているエンジンを超えています
root@acx7100-w-pfe-17# set system packet-forwarding-options custom-profiles counter-profiles cntr1 app perf-mon-ingress counter-4k 2
root@acx7100-w-pfe-17# commit
[edit system packet-forwarding-options custom-profiles counter-profiles cntr1]
'app'
'4k' counter engine exceeds limit. Only '5' 4k counter engine can be configured across application. Current configured is 6
error: commit failed: (validation hook evaluation failed)
アプリ固有の検証 - インラインSflowは設定されているが、Sflowに必要なカウンターエンジンは設定されていない
[edit system packet-forwarding-options custom-profiles hw-profiles hw1 counter-profile]
'counter-profile cntr1'
perf-mon-ingress and perf-mon-egress counter engine required for sflow is not configured.
error: commit failed: (validation hook evaluation failed)
現在のリリースにおけるTCAMとポリサーアプリの必須設定
root@acx7100-w-pfe-17# set system packet-forwarding-options custom-profiles counter-profiles cntr2 app ifl-ingress counter-4k 1
[edit system packet-forwarding-options custom-profiles counter-profiles cntr2]
'app'
Error: None of the required applications (policer-ingress, policer-egress, tcam-ingress, tcam-egress) are configured with counters. Default values for these applications are:
policer-ingress: {'4k': 0, '8k': 0, '16k': 1, 'ext': 0}
policer-egress: {'4k': 0, '8k': 0, '16k': 1, 'ext': 0}
tcam-ingress: {'4k': 0, '8k': 3, '16k': 0, 'ext': 0}
tcam-egress: {'4k': 1, '8k': 0, '16k': 0, 'ext': 0}
error: commit failed: (validation hook evaluation failed)
TCAM and policer app cannot be configured other than default profile values.
TCAMアプリのデフォルトプロファイルと同じ値を設定します
root@acx7100-w-pfe-17# set system packet-forwarding-options custom-profiles counter-profiles cntr1 app tcam-ingress counter-8k 2
[edit]
root@acx7100-w-pfe-17# commit
[edit system packet-forwarding-options custom-profiles counter-profiles cntr1]
'app'
Error: Need to configure the same value as the default profile for app 'tcam-ingress' counter-8k. Default value is 3
アップグレードとダウングレードシナリオの処理
カスタムプロファイルインフラストラクチャをサポートしていないJunos OSバージョンにダウングレードするには、ハードウェアプロファイル、すべてのカスタムハードウェアプロファイル、およびすべてのカスタムカウンタープロファイルを削除する必要があります。カスタムプロファイルがサポートされているJunos OSバージョンにアップグレードするには、通常のJunos OSアップグレード手順に従ってから、カスタムプロファイルインフラストラクチャの使用を開始します。
25.3リリース以前は、CLI set system packet-forwarding-options mcast stats-enableを使用してマルチキャストルート統計がサポートされていたため、システムは次の表にまとめた方法で、アップグレードおよびダウングレード手順のマルチキャストルート統計を処理します。
| シナリオ |
予想される動作 |
|---|---|
| カスタムプロファイルをサポートするイメージにアップグレード - マルチキャスト統計がデバイスで設定されていない場合。 |
アップグレードは成功します。必要に応じて、ユーザーは |
| カスタムプロファイルサポート付きのイメージへのアップグレード - デバイスでマルチキャスト統計が設定されている場合。 |
|
| カウンタープロファイルインフラストラクチャがサポートされていない古いJunos OSイメージへのダウングレード/ロールバック、および |
ダウングレードに失敗します。古いJunos OSバージョンに正常にダウングレードするには、 カスタムプロファイルインフラストラクチャがサポートされていない古いJunosイメージにダウングレードした後、ユーザーは古いマルチキャスト統計CLIを使用してマルチキャスト統計サポートを設定できます - |
| カウンタプロファイルインフラストラクチャがサポートされておらず、マルチキャスト統計設定がすでにを使用して設定されている古いJunos OSイメージへのダウングレード/ロールバック |
古いイメージへのダウングレードは成功し、イメージのダウングレード後にマルチキャストカウンターエンジンが予約されます。 |
トラブルシューティング - hw-profile
-
表示コマンド
show system packet-forwarding-options hw-profileとshow system packet-forwarding-options hw-profile counter-profileを使用して、カウンタプロファイルとハードウェアプロファイルのアクティベーションの失敗を表示します。 -
また、PFEコマンド(
show evo-pfemand cntr-infoとshow evo-pfemand cntr-app-map)を使用して、PFEの障害を診断することもできます。show evo-pfemand cntr-infoには、各機能に割り当てられたカウンタエンジンが表示されます。これは、ユーザーが設定したカウンターエンジンの数と一致する必要があります。show evo-pfemand cntr-app-mapには、PFEの各機能のカウンタ設定が成功または失敗か、および失敗の理由が表示されます。
showコマンド出力 hw-profileが設定されていない場合 - デフォルトのhwプロファイル
user@router# run show system packet-forwarding-options hw-profile Active Hw-Profile : default-hw-profile Profile Status : SUCCESS ------------------------------------------------------------- Profile-Name | App | Status ------------------------------------------------------------- default-counter-profile | COUNTER | SUCCESS
user@router# run show system packet-forwarding-options hw-profile counter-profile
Active Hw-Profile : default-hw-profile
Active Counter-Profile : default-counter-profile
Counter Profile Status : SUCCESS
----------------------------------------------------------------------------------------
Application-Name | 4K | 8K | 16K | External | Total | Status
| Engines | Engines | Engines | | (K) |
----------------------------------------------------------------------------------------
STORM_CONTROL | 1 | 0 | 0 | 0 | 4 | SUCCESS
VOQ | 1 | 0 | 2 | 0 | 36 | SUCCESS
TCAM_INGRESS | 0 | 3 | 0 | 0 | 24 | SUCCESS
IFL_INGRESS | 0 | 2 | 0 | 0 | 16 | SUCCESS
PERF_MON_INGRESS | 1 | 0 | 0 | 0 | 4 | SUCCESS
POLICER_INGRESS | 0 | 0 | 1 | 0 | 16 | SUCCESS
IFL_EGRESS | 0 | 2 | 0 | 0 | 16 | SUCCESS
TCAM_EGRESS | 1 | 0 | 0 | 0 | 4 | SUCCESS
PERF_MON_EGRESS | 1 | 0 | 0 | 0 | 4 | SUCCESS
POLICER_EGRESS | 0 | 0 | 1 | 0 | 16 | SUCCESS
hw-profile設定時のShow Command Outputs
user@router# run show system packet-forwarding-options hw-profile Active Hw-Profile : hw1 Profile Status : SUCCESS ------------------------------------------------------------- Profile-Name | App | Status ------------------------------------------------------------- cntr1 | COUNTER | SUCCESS
user@router# run show system packet-forwarding-options hw-profile counter-profile
Active Hw-Profile : hw1
Active Counter-Profile : cntr1
Counter Profile Status : SUCCESS
----------------------------------------------------------------------------------------
Application-Name | 4K | 8K | 16K | External | Total | Status
| Engines | Engines | Engines | | (K) |
----------------------------------------------------------------------------------------
TCAM_INGRESS | 0 | 3 | 0 | 0 | 24 | SUCCESS
POLICER_INGRESS | 0 | 0 | 1 | 0 | 16 | SUCCESS
TCAM_EGRESS | 1 | 0 | 0 | 0 | 4 | SUCCESS
POLICER_EGRESS | 0 | 0 | 1 | 0 | 16 | SUCCESS
----------------------------------------------------------------------------------------
Total-Allocated | 1 | 3 | 2 | 0 |
Total-Free | 4 | 4 | 3 | 0 |
Total-Engines | 5 | 7 | 5 | 0 |
-----------------------------------------------------------------------------------------
PFEデバッグコマンド - デフォルトのカウンタープロファイル
user@router:pfe> show evo-pfemand cntr-app-map
Counter Profile Name: default-counter-profile
Counter App Map Info:
Appname Counter4k Counter8k Counter16k CounterExt Status
================================================================================
STORM_CONTROL 1 0 0 0 SUCCESS
VOQ 1 0 2 0 SUCCESS
TCAM_INGRESS 0 3 0 0 SUCCESS
IFL_INGRESS 0 2 0 0 SUCCESS
PERF_MON_INGRESS 1 0 0 0 SUCCESS
POLICER_INGRESS 0 0 1 0 SUCCESS
IFL_EGRESS 0 2 0 0 SUCCESS
TCAM_EGRESS 1 0 0 0 SUCCESS
PERF_MON_EGRESS 1 0 0 0 SUCCESS
POLICER_EGRESS 0 0 1 0 SUCCESS
================================================================================
Total-used 5 7 4 0
================================================================================
Total-Usr-Available 5 7 5 NA
================================================================================
Total-BCM-Available 8 8 6 NA
================================================================================
user@router:pfe> show evo-pfemand cntr-info
InitDone:1
Total Num of Engines:22
Bitmap: num_units=1 size=22 utilized=72.7273% Used=16 peak utilization=16% lastUnitIdx=22 mask=8000000000000000 BM_UNIT_SIZE=64HWM Ts=1752158450972060177%
BM[ 0]= XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX0011111111011100011111 = 0xff71f
EngineType StartIdx EndIdx
===============================
4kEngine: 0 7
8kEngine: 8 15
16kEngine: 16 21
EngineId AppName
==========================
0 Storm Control
1 Voq Stats
2 FW StatsEgr
3 Oamp Egress Stats
4 Oamp Stats
8 FW StatsIng
9 FW StatsIng
10 FW StatsIng
12 Ingress Lif Stats
13 Ingress Lif Stats
14 Egress Lif Stats
15 Egress Lif Stats
16 Voq Stats
17 Voq Stats
18 FW PolicerIng
19 FW PolicerEgr
トラブルシューティング - カスタムカウンタープロファイル
デバッグコマンド - カウンタプロファイルが設定されました
user@router:pfe> show evo-pfemand cntr-app-map Counter Profile Name: cntr1 Counter App Map Info: Appname Counter4k Counter8k Counter16k CounterExt Status ================================================================================ TCAM_INGRESS 0 3 0 0 SUCCESS POLICER_INGRESS 0 0 1 0 SUCCESS TCAM_EGRESS 1 0 0 0 SUCCESS POLICER_EGRESS 0 0 1 0 SUCCESS Reserved Counter App Map Info: VOQ 1 0 0 0 SUCCESS ================================================================================ Total-used 2 3 2 0 ================================================================================ Total-Usr-Available 5 7 5 NA ================================================================================ Total-BCM-Available 8 8 6 NA ================================================================================
user@router:pfe> show evo-pfemand cntr-info
InitDone:1
Total Num of Engines:22
Bitmap: num_units=1 size=22 utilized=31.8182% Used=7 peak utilization=7% lastUnitIdx=22 mask=8000000000000000
BM_UNIT_SIZE=64HWM Ts=1748943680386874258%
BM[ 0]= XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX0000110000011100000011 = 0x30703
EngineType StartIdx EndIdx
===============================
4kEngine: 0 7
8kEngine: 8 15
16kEngine: 16 21
EngineId AppName
==========================
0 FW StatsEgr
1 Voq Stats
8 FW StatsIng
9 FW StatsIng
10 FW StatsIng
16 FW PolicerIng
17 FW PolicerEgr
注意事項
-
ポリサーは16Kエンジンでのみ割り当て可能
-
一部のカウンターは内部使用用に予約されており、ユーザーは利用できません。
-
ACX7332では、TCAMはIFF/FTFベースのフィルターに対してOP2でカウンタエンジンを使用します。ただし、ポリサーやその他の用途では、TCAMは引き続き内部カウンタエンジンを使用します。したがって、それに応じて割り当てを行う必要があります。
-
Ifl-ingressまた、ifl-egressカウンターエンジンは対称的に配置する必要があります。 -
25.3リリース以前は、マルチキャストカウンターエンジンはLSP/IPトンネルカウンターエンジンと共有され、それぞれのCLIを使用して有効にできるのはそのうちの1つだけです。そのため、LSP/IPアプリケーションによって予約されたカウンターエンジンは引き続き予約されます。古いCLI(
set system packet-forwarding-options mcast stats-enable)を介してマルチキャスト統計を有効にすると、LSP/トランジットと共有するカウンターエンジンが引き続き静的に予約されます。マルチキャスト統計がカウンタープロファイルを介して有効になっている場合、カスタムカウンタープロファイルで利用可能なリソースが使用されます。 -
ポートVOQは、内部で予約されたカウンターを使用します。HQoS用にユーザーが設定したカウンタエンジンが使い果たされると、ポートVOQカウンタの残りのエントリと重複することがあります。
制限事項
-
アプリケーションが割り当てられたカスタムプロファイルカウンターエンジンの数を超えてスケーリングされた場合、動作は非決定的になります。例えば、IFLスケールが8kで、4kカウンタエンジンが1つしか設定されていない場合、どのIFL統計が表示されるかは保証できません。
-
hw-db-profileとカスタムハードウェアプロファイルがシステム上に共存する場合、BNG DBプロファイルは hw-db-profile からサポートされません。
-
evo-pfemandが再起動されるため、CLIが正常にコミットされると、既存の統計情報がクリアされます。