When it comes to bringing usage data into Splynx, one of the methods that can be applied is NetFlow accounting. NetFlow accounting uses the NetFlow protocol that is universal for many manufacturers of network equipment. Using this protocol is convenient as the router (sensor) transfers packets with usage data information to the server for analysis at the right time. The following topology sample shows how the protocol collects and analyses usage data.
Splynx has used the NetFlow protocol for traffic accounting since version 3.1.
Below is the topology sample that depicts the captured flow of how Splynx and NetFlow accounting work.
Splynx server is both a NetFlow collector and NetFlow analyser at the same time. When receiving NetFlow packets, these data are instantly analysed, and the exact amount of traffic used by a subscriber is determined.
NetFlow packets are stored on the server. To prevent the unnecessary aggregation of already analysed packets, you can control the storage period and the amount of NetFlow packet data for each router in Splynx, setting them in
Config → Networking → NetFlow Accounting → Expire options. Take a real-life look at the location of the Netflow packet data in the Splynx demo.
You first need to specify the port on which the server will scan and collect NetFlow packets (udp/9995 by default) and the session timeout.
The next step is to configure the router in the system. In Internet services, specify which router is used.
After configuration, the server will start a process that will collect traffic data on the specified port, divide and analyze it for each router.
In addition, you can configure subnets for tariffs that include services where data usage accounting is ignored.
To set up the subnets, go to
Config — Networking — Traffic class. In the tariff settings, specify which subnets will be excluded from the traffic accounting.
Splynx uses some scripts from the
nfdump package to calculate traffic:
daemon nfcapdscans the port, and the data can be received there. When the interval for data collection ends, the data will be recorded in a file.
./var/www/splynx/system/scripts/accounting-neflow startsruns the
nfdumpprocess with the specific parameters. The script gets a response and converts it into the acceptable format for the Splynx Accounting Processor.
To check if the
nfcapd daemon runs, use this script:
ps -aux | grep nfcapd
To check the log:
sudo tail -f /var/log/syslog | grep nfcapd
In the customer’s internet session statistics, you can notice that the last two sessions are listed without MAC and Session ID values. This is a common condition due to the limitations in NetFlow v5, which results in such data not being transferred to Splynx.
Read more detailed information about the settings and the use of NetFlow accounting on the example of the Mikrotik router configuration.
Overview of RADIUS failover server
One of the methods used to authorize Internet services in Splynx is the RADIUS protocol. More details about the Splynx R...
How to configure NetFlow accounting in Splynx
Learn how to configure NetFlow accounting to to bring usage data into Splynx.
The Hotspot add-on was built to help businesses from low-income communities grow and earn more.
Juniper Radius configuration with variables
This article is the second part of the Juniper MX Radius configuration tutorial.
How to configure Radius Juniper MX
Juniper Networks is one of the leading vendors producing networking equipment. Together with Cisco, Juniper defines wher...
How to configure Mikrotik IPv6
This blog post describes how to configure the Mikrotik router to act as a PPPoE server with IPv6 enabled.
How to configure Cisco IOS XR Radius (ASR 9000 series)
We've implemented PPPoE Radius authentication on Cisco one of the most powerful BRASes ASR 9000, that runs the IOS XR op...
How to configure Juniper Radius server (updated)
This is an updated version of the Radius server configuration with Juniper using variables for speed limitations.
How to configure Huawei NE (NetEngine) router Radius
We'll tackle the configuration of the Huawei NE20 and Huawei NE40 router with the Radius server. We will be using Splynx...
IPv6 CPE and home routers support
This article shows examples of 3 different CPEs from 3 other vendors. We have selected IPv6 routers that are used in net...
Find out how Splynx helps ISPs growLearn more