Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:dpi:dpi_options:opt_statistics:statistics_settings [2025/05/26 13:59] – elena.krasnobryzh | en:dpi:dpi_options:opt_statistics:statistics_settings [2026/02/03 14:01] (current) – elena.krasnobryzh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | {{indexmenu_n> | + | {{indexmenu_n> |
| - | The option is configured or disabled | + | Changing the settings or disabling the option is done by editing |
| + | The configuration file is ''/ | ||
| + | <note warning> | ||
| - | <note warning> | + | ===== NetFlow |
| - | + | IP address and NetFlow collector | |
| - | ===== Statistics export configuration ===== | + | |
| - | + | ||
| - | To switch | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | * 0 or no parameter - export disabled; | + | |
| - | * 1 - export statistics by protocols | + | |
| - | * 2 - export statistics by directions (independent systems' | + | |
| - | * 4 - export statistics for billing; | + | |
| - | * 8 - export the complete statistical information on sessions; | + | |
| - | + | ||
| - | <note important> | + | |
| - | + | ||
| - | The network interface name to export netflow with statistics: | + | |
| - | < | + | |
| - | + | ||
| - | Data export period in seconds: | + | |
| - | < | + | |
| - | + | ||
| - | ===== Configuration of each type NetFlow | + | |
| - | IP address and port number | + | |
| < | < | ||
| - | + | ===== NetFlow in directions ===== | |
| - | <note warning> | + | IP address and NetFlow collector |
| - | + | ||
| - | IP address and port number | + | |
| < | < | ||
| - | Directions | + | Directions |
| - | + | ||
| - | * 1 for external independent systems only (OK for household operators as there are no other independent systems rather than the operator itself on one side); | + | |
| - | * 2 for internal independent systems only; | + | |
| - | * 3 = 1 + 2 for both (OK for transit operators. However, as the aggregation by AS is made separately, data would be counted twice in the exported statistics - for each of AS participating in data transmission). | + | |
| < | < | ||
| - | + | * 1 - only for external autonomous systems (suitable for home operators, since there are no other autonomous systems on one side apart from the operator himself) | |
| - | IP address and port number of NetFlow collector with** statistics for billing.** One has to specify the separate collector | + | * 2 - only for internal autonomous systems |
| - | + | * 3 = 1 + 2 - suitable for transit operators, but since AS is an independent aggregation, | |
| - | < | + | ===== NetFlow for billing ===== |
| - | + | IP address and NetFlow collector | |
| - | <note important> | + | < |
| - | IPFIX does not pass information about the host IP:port with which the subscriber | + | <note important> |
| - | + | IPFIX does not transmit | |
| - | Setting up the statistics | + | Determination of the format |
| < | < | ||
| - | * 0 - netflow_v5 ( default ) | + | * 0 - netflow_v5 (default) |
| * 1 - ipfix udp | * 1 - ipfix udp | ||
| * 2 - ipfix tcp | * 2 - ipfix tcp | ||
| - | The whole traffic volume is counted by default. This includes packet headers as well. In order to count the useful traffic only((The traffic with no packet headers | + | By default, the full amount of information transmitted, |
| - | + | < | |
| - | < | + | In netflow, the TOS field of billing statistics transmits |
| - | + | ||
| - | [[en: | + | |
| - | + | ||
| - | IP address and port number of netflow collector with full statistics. One has to specify the separate collector to avoid data messing with other statistics: | + | |
| - | + | ||
| - | < | + | |
| - | netflow_passive_timeout=30 | + | |
| - | netflow_active_timeout=300 | + | |
| - | </ | + | |
| - | + | ||
| - | Here | + | |
| - | * netflow_passive_timeout=30 - is the time to wait for session activity. If no activity in this time, the session is treated as closed and its information is transmitted | + | |
| - | * netflow_active_timeout=300 - is the time to report on the long sessions: in fact, such sessions are split into fragments of this duration. | + | |
| - | + | ||
| - | The complete statistics preserved original port numbers. The information on detected protocols is sent in normally empty bytes 46-47. In case one needs to analyse the protocols in use, the system can be configured to send the protocol information in the port number: | + | |
| - | < | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | At the same time short peaks up to 100 Mb/s may happen when sending netflow from DPI. Few collectors are able to receive such data flow with no losses, for example nfsen/ | + | |
| - | + | ||
| - | In order to smooth such peaks and load the collector in a uniform way one can set the parameter: | + | |
| - | + | ||
| - | < | + | |
| - | + | ||
| - | Here 60 is the maximal netflow rate in Mb/s. | + | |
| - | + | ||
| - | <note important> | + | |
| - | + | ||
| - | =====Sending Template in IPFIX===== | + | |
| - | - Transport protocol TCP.\\ The Template is sent once after the TCP session is established. | + | |
| - | - Transport protocol UDP.\\ The Template is sent by default every 20 seconds. This is controlled by the '' | + | |
| - | + | ===== Sending template to IPFIX ===== | |
| - | ===== Configuration Example | + | - The TCP.\\ Template transport protocol |
| - | An example | + | - The UDP.\\ Template transport protocol is sent by default every 20 seconds. Adjusted by '' |
| + | ===== Example of configuration ===== | ||
| + | [[en: | ||