Exporting Packet Forwarding Engine Traffic Sensor Data
Starting with Junos OS Release 17.4R1, you can export Packet Forwarding Engine traffic statistics. Use the Junos Telemetry for Juniper Networks® MX Series Universal Routing Platforms and Juniper Networks PTX Series Routers. Use both UDP and gRPC.
This sensor tracks reporting of Packet Forwarding Engine statistics counters and provides
visibility into Packet Forwarding Engine error and drop statistics. The resource name for the
sensor is /junos/system/linecard/packet/usage/. The OpenConfig paths report
data specific to CPU, NPU and center chip (CC). The following paths are supported:
-
/components/component[name='FPCid:NPUid']/properties/property[name='counter']/state/value, where FPC refers to the Flexible PIC Concentrator and NPU refers to the network processing unit (packet forwarding engine). A sample resource path is/components/component[name='FPC0:NPU3']/properties/property[name='ts-output-pps']/state/valuewherehwds-data-erroris the counter forHardware Discards: Data Error. -
/components/component[name='FPCid:CCid’]/properties/property[name='counter’]/state/value, where FPC refers to the Flexible PIC Concentrator and CC refers to the center chip. A sample resource path is/components/component[name='FPC0:CC1']/properties/property[name='lpbk-packets’']/state/valuewherelpbk-packetsis the count ofForward packetsspecific to FPC0, center chip 1. -
/components/component[name='FPCid’]/properties/property[name='counter’]/state/value, where FPC refers to the Flexible PIC Concentrator. A sample resource path is/components/component[name='FPC0']/properties/property[name='lts-input-packets’']/state/valuewherelts-input-packetsis the CPU counterLocal packets input.
To provision the sensor to export data through gRPC, use the
telemetrySubscribe RPC to specify telemetry parameters. For streaming
through UDP, all parameters are configured at the [edit services analytics]
hierarchy level.
The following is a map of counters to output fields in the show pfe statistics
traffic command or show pfe statistics traffic detail command
(supported only on MX Series routers).
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