[an error occurred while processing this directive][an error occurred while processing this directive]

Configuring How Accounting Statistics Are Collected for Subscriber Access

You can configure how the subscriber access management feature collects and uses accounting statistics. For example, you can specify when statistics collection is terminated, the order in which different accounting methods are used, the types of statistics collected, and how often statistics are collected. You can also configure the router or switch to request that the RADIUS server immediately update the accounting statistics when certain events occur, such as when a subscriber logs in or when a CoA occurs.

Table 1 table shows the RADIUS attributes and Juniper Networks VSAs that RADIUS captures in accounting statistics for subscriber access. If a subscriber session has both IPv4 and IPv6 families enabled, the router reports both IPv4 and IPv6 statistics.

Table 1: RADIUS Attributes and VSAs Used for Subscriber Management Statistics

Attribute Number

Attribute Name

26–151

IPv6-Acct-Input-Octets

26–152

IPv6-Acct-Output-Octets

26–153

IPv6-Acct-Input-Packets

26–154

IPv6-Acct-Output-Packets

26–155

IPv6-Acct-Input-Gigawords

26–156

IPv6-Acct-Output-Gigawords

47

Acct-Input-Packets

48

Acct-Output-Packets

52

Acct-Input-Gigawords

53

Acct-Output-Gigawords

To configure how accounting statistics are collected:

  1. Specify that you want to configure accounting.
    [edit access profile isp-bos-metro-fiber-basic]user@host# edit accounting
  2. (Optional) Configure AAA to issue an Acct-Stop message if the AAA server denies access to the subscriber.
    [edit access profile isp-bos-metro-fiber-basic accounting]user@host# set accounting-stop-on-access-deny
  3. (Optional) Configure AAA to send an Acct-Stop message if the subscriber fails AAA but is granted access by the AAA server.
    [edit access profile isp-bos-metro-fiber-basic accounting]user@host# set accounting-stop-on-failure
  4. (Optional) Configure the order in which multiple accounting methods are used.
    [edit access profile isp-bos-metro-fiber-basic accounting]user@host# set order radius
  5. (Optional) Configure the types of statistics to gather. You can specify that the router or switch collect both volume and time statistics or only time statistics for subscriber sessions. When you change the type of statistics being collected, current subscribers continue to use the previous collection specification. Subscribers who log in after the change use the new specification.
    [edit access profile isp-bos-metro-fiber-basic accounting]user@host# set statistics time
  6. (Optional) Configure the number of minutes between accounting updates. You can configure an interval from 10 through 1440 minutes. If you specify an interval of 10 through 15, the interval is rounded up to 15.
    [edit access profile isp-bos-metro-fiber-basic accounting]user@host# set update-interval 12
  7. (Optional) Configure the router or switch to send an Acct-Update message to the RADIUS accounting server when the router or switch receives a response (for example, an ACK or timeout) to the Acct-Start message.

    [edit access profile isp-bos-metro-fiber-basic accounting]user@host# set immediate-update
  8. (Optional) Configure the router or switch to send an Acct-Update message to the RADIUS accounting server when a CoA occurs.
    [edit access profile isp-bos-metro-fiber-basic accounting]user@host# set coa-immediate-update

Published: 2010-04-26

[an error occurred while processing this directive]