The accounting interim interval command sets an interval for real-time accounting and the conditions for sending real-time accounting packets and hashes real-time accounting packets.
The undo accounting interim interval command restores the default value.
By default, accounting schemes are not real-time.
Parameter | Description | Value |
---|---|---|
interval interval |
Specifies the real-time accounting interval. When second is included in the command, the unit is second; otherwise, the unit is minute. |
The value is an integer ranging from 0 to 65535. |
second |
Specifies the unit of accounting interval. The unit is second. |
- |
traffic |
Specifies that real-time accounting packets are sent when traffic increment is not zero. |
- |
hash |
Specifies that real-time accounting packets are hashed. |
- |
Usage Scenario
During real-time accounting for online users, the device periodically generates and sends accounting packets to a remote accounting server. Real-time accounting is a bill-protection measure to ensure minimum error and maximum accuracy of CDRs when a link is faulty.
To prevent the server from receiving a large number of real-time accounting packets so that server performance is not affected, configure hash or traffic. When a large number of users go online during the same time, a lot of real-time accounting packets are generated within a short period of time. If the interval values specified for these online users are the same, a lot of real-time accounting packets are generated at each interval. If the number of real-time accounting packets exceeds the processing capability of an accounting server, the performance of the accounting server is affected. In this situation, you can hash the real-time accounting packets. After that, the first real-time accounting packet for each user is generated after a random value between interval and 2 x interval, the other real-time accounting packets are generated at each interval. This prevents a large number of real-time accounting packets to be generated in a short period of time and minimize the influence on the performance of accounting servers. If the accounting server performs accounting according to traffic flow, you are advised to configure the parameter traffic. By doing this, the system sends real-time accounting packets when traffic increment of value-added services is not zero. In this way, the system will not generate a large number of real-time accounting packets in a short time, avoiding a serious impact on the accounting server.Precautions
If the accounting server performs accounting according to traffic duration, it is not necessary to configure the parameter traffic.
If the accounting interval is less than 1 hour, the system pressure may increase, causing the CPU usage to increase.