パケット転送エンジントラフィックセンサーデータのエクスポート
Junos OS リリース 17.4R1 以降、パケット転送エンジン トラフィック統計をエクスポートできます。ジュニパーネットワーク®スのMXシリーズユニバーサルルーティングプラットフォームおよびジュニパーネットワークスのPTXシリーズルーターには、Junos Telemetryを使用します。UDP と gRPC の両方を使用します。
このセンサーは、パケット転送エンジン統計情報カウンターのレポートを追跡し、パケット転送エンジンエラーとドロップの統計情報を可視化します。センサーのリソース名は /junos/system/linecard/packet/usage/ です。OpenConfigパスは、CPU、NPU、およびセンターチップ(CC)に固有のデータを報告します。次のパスがサポートされています。
-
/components/component[name='FPCid:NPUid']/properties/property[name='counter']/state/valueここで、FPCはフレキシブルPICコンセントレータを指し、NPUはネットワーク処理ユニット(パケット転送エンジン)を指します。サンプルのリソースパスは/components/component[name='FPC0:NPU3']/properties/property[name='ts-output-pps']/state/valueで、hwds-data-errorはHardware Discards: Data Errorのカウンターです。 -
/components/component[name='FPCid:CCid’]/properties/property[name='counter’]/state/valueここで、FPCはフレキシブルPICコンセントレータを指し、CCはセンターチップを指します。サンプル リソース パスは/components/component[name='FPC0:CC1']/properties/property[name='lpbk-packets’']/state/valueで、lpbk-packetsは FPC0、センター チップ 1 に固有のForward packetsの数です。 -
/components/component[name='FPCid’]/properties/property[name='counter’]/state/value(FPCはフレキシブルPICコンセントレータ)を指します。サンプルのリソースパスは、lts-input-packetsが CPU カウンターLocal packets inputである/components/component[name='FPC0']/properties/property[name='lts-input-packets’']/state/valueです。
gRPC を介してデータをエクスポートするようにセンサーをプロビジョニングするには、 telemetrySubscribe RPC を使用してテレメトリ パラメーターを指定します。UDP経由のストリーミングの場合、すべてのパラメーターは [edit services analytics] 階層レベルで構成されます。
以下に、 show pfe statistics traffic コマンドまたは show pfe statistics traffic detail コマンド(MXシリーズ ルータでのみサポート)の出力フィールドに対するカウンターのマップを示します。
CPU stats: (FPCX:CPUY)
Packet Forwarding Engine local traffic statistics:
Local packets input : 2
Local packets output : 1
Software input control plane drops : 0
Software input high drops : 0
Software input medium drops : 0
Software input low drops : 0
Software output drops : 0
Hardware input drops : 0
Counter
lts-input-packets Local packets input
lts-output-packets Local packets output
lts-sw-input-control-drops Software input control plane drops
lts-sw-input-high-drops Software input high drops
lts-sw-input-medium-drops Software input medium drops
lts-sw-input-low-drops Software input low drops
lts-sw-output-low-drops Software output drops
NPU stats: (FPCX:CCY)
Input packets: 1169 0 pps
Output packets: 0 0 pps
Fabric Input : 277235149 16078 pps
Fabric Output : 277235149 16079 pps
Counter
ts-input-packets Input packets
ts-input-packets-pps Input packets in pps
ts-output-packets Output packets
ts-output-packets-pps Output packets in pps
ts-fabric-input-packets Fabric Input
ts-fabric-input-packets-pps Fabric Input in pps
ts-fabric-output-packets Fabric Output
ts-fabric-output-packets-pps Fabric Output in pps
Packet Forwarding Engine loopback statistics:
Forward packets : 0 0 pps
Forward bytes : 0 0 bps
Drop packets : 0 0 pps
Drop bytes : 0 0 bps
Counter
lpbk-packets Forward packets
lpbk-packets-pps Forward packets pps
lpbk-packets-byte Forward bytes
lpbk-packets-bps Forward bytes bps
lpbk-drop-packets Drop packets
lpbk-drop-packets Drop packets pps
lpbk-drop-packets Drop bytes
lpbk-drop-packets Drop bytes bps
Lu chips stats: FPCx:NPUY
Counter
lts-hw-input-drops
hwds-normal Hardware discards normal discard
hwds-fabric Hardware discards fabric drops
hwds-info-cell Hardware discards info cell drops
hwds-timeout Hardware discards timeour
hwds-truncated-key Hardware discards truncated key
hwds-bits-to-test Hardware discards bits to test
hwds-stack-underflow Hardware discards stack underflow
hwds-stack-overflow Hardware discards stack overflow
hwds-data-error Hardware discards data error
hwds-extended Hardware discards extended discard
hwds-invalid-iif Hardware discards invalid interface
hwds-input-checksum Hardware discards input checksum
hwds-output-mtu
hwds-inet-bad-route
hwds-inet6-bad-route
hwds-filter-discard
hwds-dlu-not-routable