The aggregated number of forwarding bytes and packets per direction in the subscriber management environment is supported on the following levels:
In addition to forwarding bytes and packets, the outer VLAN statistics also include the number of subscribers hosts active on that VLAN.
Aggregated statistics collection is supported for the following scenarios:
Statistics are aggregated for combined IPv4 and IPv6 traffic and are based on the subscriber queue and policer statistics. SAP queue statistics are excluded from the count.
When policers are deployed on egress, traffic flowing through them is also traversing a queue or a queue group to which the policer is associated. Policers are always associated with a queue or a queue group. To avoid double counting, statistics must be gathered only from a single entity in the chain (a policer or the next queue), but not both. The following is a list of supported egress deployments with policers that produce accurate aggregate statistics collection with no double counting:
The no queues-hqos-manageable command prevents HQoS from using the queue group statistics in its calculation, and therefore, avoids double counting.
Figure 240 shows an example of how egress statistics are used.

In Figure 240, the right side of the diagram represents traffic streams and their mapping to policers and queues according to the configuration statement shown on the left side. The four green lines represent traffic streams that are counted properly, and the two red lines represent the two streams that are counted incorrectly (they are either double counted, or not counted at all). The colored boxes numbered 1 through 6 represent a traffic stream with relevant classification fields. For example, the traffic stream in box 1 has the destination IP address set to 192.0.2.10 and DSCP value set to AF21.
The SR OS node preserves statistics from a subscriber even when the subscriber is disconnected, and the subscriber’s policers or queues are released. This prevents statistics fluctuation in relation to the subscriber’s presence and ensures that a statistic counter remains stable. After being counted on a VLAN, subscriber interface, or a group interface, the octet or packet remains accounted for during the life time of that VLAN, subscriber interface, or group interface. However, statistics can be manually cleared with the clear>subscr-mgmt>interface-statistics command.
Reporting absolute (or cumulative) counts in aggregated statistics allows smooth measurement of bandwidth per VLAN, subscriber interface, or group interface without dips caused by departing subscribers. The rate measurement can be performed externally by calculating the difference in byte count between two consecutive statistics polls, divided by the collection interval.
Sudden changes in rates can give an indication of a path failure in the network.
Statistics monitoring can be simultaneously enabled for all of the following entities:
The sum of monitored entities must not exceed 2,000.
Aggregate statistics collection is enabled by a configuration flag at a global level. The following shows the CLI configuration.
Once aggregate statistics collection is enabled, the MIB table is populated automatically with the current VLAN, subscriber interface, or group interface entries, up to the supported limit.
Aggregated statistics are provided in the form of a read-only MIB table for the currently active VLANs, subscriber interfaces, and group interfaces.
The keys for the VLAN MIB table are the port ID (which can also be a LAG ID or PW port ID) and the VLAN ID. Once the VLAN is instantiated (either statically or through MSAP), an entry is created in the MIB table.
When the VLAN is no longer present in the system, it is automatically removed from the table.
Each VLAN can be queried through SNMP either directly or as an SNMP walk, in which case, all entries in the table are read.
The MIB table name is tmnxSubSvlanStatsTable and has the format shown in Table 82 with up to 2000 tmnxSubSvlanStatsEntry entries.
Entry Objects | |
Entry Keys Index | tmnxSubSVlanStatsPort The port ID |
tmnxSubSVlanStatsVlan The VLAN ID | |
Statistics | tmnxSubSVlanStatsLastCleared The most recent time when the stats were cleared |
tmnxSubSVlanStatsIngPkts The number of packets forwarded on ingress | |
Statistics (cont.) | tmnxSubSVlanStatsIngOctets The number of octets forwarded on ingress |
tmnxSubSVlanStatsEgrPkts The number of packets forwarded on egress | |
tmnxSubSVlanStatsEgrOctets The number of octets forwarded on egress | |
tmnxSubSVlanStatsActiveSubHosts The number of subscriber hosts |

The key for aggregate statistics MIB table are the subscriber interface and group interface name and the router ID.
After the subscriber or group interface is created, it is placed as an entry in the MIB table. Once the subscriber or group interface is no longer present in the system (removed or deleted), it is automatically deleted from the table.
Each subscriber or group interface can be directly queried through SNMP or an SNMP walk can be issued to read all the entries in the table.
The MIB table name for the aggregated statistics under the subscriber and group interface is svcIfSubStatsTable and is described in Table 83.
Entry Objects | |
Entry Keys Index | iesIfIndex The subscriber or group interface name |
svcId The service ID | |
Statistics | svcIfSubStatsLastCleared The most recent time when the stats were cleared |
svcIfSubStatsIngPkts The number of packets forwarded on ingress | |
svcIfSubStatsIngOctets The number of octets forwarded on ingress | |
svcIfSubStatsEgrPkts The number of packets forwarded on egress | |
svcIfSubStatsEgrOctets The number of octets forwarded on egress |
