Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:dpi:bras_bng:radius_integration:radius_accounting [2026/03/25 14:24] – elena.krasnobryzh | en:dpi:bras_bng:radius_integration:radius_accounting [2026/03/26 08:10] (current) – elena.krasnobryzh | ||
|---|---|---|---|
| Line 17: | Line 17: | ||
| * Enable local user authentication:< | * Enable local user authentication:< | ||
| - | * Assign service 9 (statistics export for billing) to the subscriber. The Access-Request response must include the following attribute: < | + | * Assign service 9 (statistics export for billing) to the subscriber. The Access-Request response must include the following attribute: < |
| <note important> | <note important> | ||
| Line 53: | Line 53: | ||
| * 1 — reverse the direction. | * 1 — reverse the direction. | ||
| - | ===== Rating Group Settings | + | ===== Rating Group ===== |
| - | Rating | + | A Rating |
| - | The following settings are available: | + | ==== Configuring RG in fastDPI ==== |
| - | * Number of groups:< | + | |
| - | * Maximum number of subscribers per rating group:< | + | |
| - | A value of “0” means that the feature is disabled. | + | RG storage and processing settings: |
| - | The rating group storage is initialized only when billing statistics are enabled. | + | * Number of groups: <code bash> |
| + | * Maximum number of subscribers with RG: <code bash> | ||
| - | The amount of memory required to store rating group statistics | + | The RG storage |
| + | The amount of memory required to store RG statistics is calculated using the following formula: | ||
| + | <code bash> | ||
| + | memory_required = 32 * rating_group_count * rating_group_max_subs * num_thread | ||
| + | </ | ||
| where: | where: | ||
| - | * 32 bytes — the size of counters per group; | + | * '' |
| - | * rating_group_count — the number of groups; | + | * '' |
| - | * rating_group_max_subs — the maximum number of subscribers; | + | * '' |
| - | * num_thread — the number of processing threads. | + | * '' |
| - | Calculation example: | + | Sample calculation for 10,000 subscribers, |
| - | < | + | < |
| rating_group_count = 256 | rating_group_count = 256 | ||
| rating_group_max_subs = 10000 | rating_group_max_subs = 10000 | ||
| num_thread = 8 | num_thread = 8 | ||
| - | |||
| memory_required = 32 * 256 * 10000 * 8 = 625M | memory_required = 32 * 256 * 10000 * 8 = 625M | ||
| </ | </ | ||
| - | <note important> | + | <note important> |
| {{anchor: | {{anchor: | ||
| - | The primary source of events for the start and end of accounting sessions is fastDPI, while the accounting database is maintained in fastPCRF. fastDPI transmits raw traffic data, and fastPCRF aggregates it and generates RADIUS messages. | ||
| - | Communication between fastDPI and fastPCRF takes place via an internal network protocol. Message loss can result in incorrect session states (for example, the absence | + | ==== Transmission |
| - | To improve reliability, | + | RG statistics are transmitted in separate Interim-Update packets. Only data for non-zero RGs is transmitted.\\ |
| + | Due to the RADIUS packet size limit (4096 bytes), RG data may be split across multiple Interim-Update packets. | ||
| - | **PCRF Request Queue Settings:** | + | A new VSA, '' |
| + | | ||
| + | | ||
| + | |||
| + | Each RG and its counters are transmitted in a **single** VSA with the following attributes: | ||
| + | | ||
| + | | ||
| + | * VasExperts-Acct-Output-Octets-64; | ||
| + | * VasExperts-Acct-Input-Packets-64; | ||
| + | * VasExperts-Acct-Output-Packets-64. | ||
| + | |||
| + | Packet and byte counters for each direction are output according to the < | ||
| + | |||
| + | Features of RG transmission: | ||
| + | * RGs are optional; if the subscriber does not have an RG, the data is not transmitted; | ||
| + | * if RADIUS does not acknowledge receipt of the RG packet, it is not resent—the latest data will be sent in the next Interim-Update; | ||
| + | * if the subscriber has RG statistics, the current RG data is sent before sending the Acct-Stop session. | ||
| + | |||
| + | ==== Setting the RG During Subscriber Authentication ==== | ||
| + | |||
| + | The RG is set at the subscriber level during authentication via a special service profile 9 named ' | ||
| + | <code bash> | ||
| + | VasExperts-Service-Profile : | ||
| + | </ | ||
| - | * Maximum request timeout | + | RG statistics can only be collected if Service 9 (bill stat) is enabled. If Service 9 is disabled, RG is also disabled. |
| - | * Maximum queue size:< | + | |
| - | Only critical messages | + | Examples: |
| + | * Service 9 enabled, RG disabled | ||
| + | * Service 9 enabled, RG enabled (RG data transmission): <code bash> | ||
| + | * Service 9 disabled, RG disabled (RADIUS Accounting not sent): <code bash> | ||
| ===== Internal Structure ===== | ===== Internal Structure ===== | ||