Enable Subscriber and Service Accounting for BNG CUPS Telemetry
Junos Telemetry streams accounting statistics on the Juniper® BNG CUPS (Broadband Network
Gateway Control and User Plane Separation) Controller by subscribing to the
subscriber sensor. The statistics information includes actual subscriber
transit statistics, firewall filter statistics, and subscriber metadata.
user@host> show agent sensors
Sensor Information Sensor name :__default_fabric_sensor__
Resource :/junos/system/linecard/fabric
Object ID :2277069355
Sensor ID :9288676508521003
Polling Interval :2000000000
Server Information Server name :__default__snmp_server__
Server ID :33
Scope ID :0
Remote-Address :0.0.0.0
Remote-port :0
Profile Information: Profile
name :__default_snmp_export_profile__
profile ID :1
Rep-interval :2000
Local-Address :0.0.0.0
Local-port :0
Timestamp :0
Format :1
Transport :0
Sensor Information Sensor name :ddos
Resource :/junos/system/linecard/ddos/
Object ID :3440566888
Sensor ID :21110626693866088
Polling Interval :1000
Server Information Server
name :sserver
Server ID :75
Scope ID :0 Remote-
Address :10.0.0.1
Remote-port :2000
Local-Address :10.0.0.10
Local-port :21111
Timestamp :1
Format :1
Transport :0The following table describes the sensor subscription path and their data models:
|
Data Exported |
Sensor Path |
Usage Group |
Data Model |
|---|---|---|---|
|
Subscriber information |
/junos/system/subscriber-management/cups/cp-instances/cp- instance/subscribers/subscriber-info |
interface-information group |
Uses the data model as in Integrated BNG, except data streamed is CP specific. There are additional fields added to the interface-information group: PeerSid – This field gives the session ID on the user plane. User-plane:port – This field gives the user plane name and port on which the session has come up. SGRP Name– This field gives the SGRP (subscriber group) name of the session. Device ID– This field gives the device ID of the session. |
|
Subscriber statistics |
/junos/system/subscriber-management/cups/cp-instances/cp-instance/subscribers/accounting-statistics |
actual-transit-statistics group |
The data model remains same as subscriber-statistics in integrated BNG, except for the sensor subscription path. |
|
Service statistics |
/junos/system/subscriber-management/cups/cp-instances/cp-instance/subscribers/service-statistics |
service-filter-statistics group |
The data model remains same as service-statistics in integrated BNG, except for the sensor subscription path. |
Junos Telemetry exports all the above sensor data to an external collector through telemetry for each control plane.
The configuration hierarchy for the dynamic-profiles statement is as
follows.
telemetry {
subscriber-info {
subscriber-statistics;
service-statistics;
}
queue-statistics {
interface $junos-interface-name {
refresh rate;
queues queue set;
}
interface-set $junos-interface-set-name {
refresh rate;
queues queue set;
}
}
}The subscriber-info configuration statement is mandatory under
telemetry. Within the subscriber-info statement, there are two optional
configurations: service-statistics and
subscriber-statistics.