Layer 2 accounting statistics are available on a per class-of-service basis. Both bytes and packet total are counted (flow rates are not).
A single, aggregate counter can be used with each forwarding class to count inet and inet6 flows. For ingress, only packets forwarded to the fabric are counted, and for egress, only packets forwarded to the WAN are counted. You can exclude overhead bytes from the count, as well as dropped packets and non-relevant network protocols such as ARP, BFD, and EOAM. Counters can be configured with any or all of the following parameters:
Configure the counters using the enhanced command under forwarding-class-accounting in the CLI.
| Product / Application | Software | Introduced Release |
|---|---|---|
| MX80 | Junos OS | 14.1R1 |
| MX150 | Junos OS | 17.3R1 |
| MX204 | Junos OS | 17.4R1 |
| MX240 | Junos OS | 14.1R1 |
| MX301 | Junos OS | 25.4R1 |
| MX304 | Junos OS | 22.2R3 |
| MX480 | Junos OS | 14.1R1 |
| MX960 | Junos OS | 14.1R1 |
| MX2008 | Junos OS | 15.1F7 |
| MX2010 | Junos OS | 14.1R1 |
| MX2020 | Junos OS | 14.1R1 |
| MX10003 | Junos OS | 17.3R1 |
| MX10004 | Junos OS | 22.3R1 |
| MX10008 | Junos OS | 18.2R1 |
| MX10016 | Junos OS | 19.2R1 |
| vMX | Junos OS | 14.1R5 |