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_ipfix [2025/12/11 12:09] – [Table] elena.krasnobryzh | en:dpi:dpi_options:opt_statistics:statistics_ipfix [2026/03/18 10:26] (current) – [Export Template in IPFIX Format (Netflow v10) for IPv4 Protocol] elena.krasnobryzh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Configuring Full NetFlow Export in IPFIX Format ====== | ====== Configuring Full NetFlow Export in IPFIX Format ====== | ||
| - | {{indexmenu_n> | + | {{indexmenu_n> |
| - | The '' | + | ===== General Required |
| - | | + | Enabling statistics collection and export:\\ |
| - | * '' | + | < |
| - | * '' | + | * 0 or not specified - option disabled\\ |
| + | | ||
| + | * 2 - export | ||
| + | * 4 - Export statistics for billing; see the section [[en: | ||
| + | | ||
| + | <note important> | ||
| - | The '' | + | <note warning> |
| - | * '' | + | |
| - | * '' | + | |
| - | The '' | + | The name of the network interface through which NetFlow |
| - | :!: Affects the formation of the '' | + | < |
| - | Values that make up the mask: | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | * '' | + | |
| - | + | ||
| - | The '' | + | |
| <note tip> | <note tip> | ||
| - | IPFIX/ | + | IPFIX/ |
| - | The configuration parameter | + | The '' |
| - | If IPFIX/ | + | If IPFIX/ |
| </ | </ | ||
| - | <note tip>For receiving, processing, and storing IPFIX, | + | <note tip>For receiving, processing, and storing IPFIX, |
| - | For collecting information in IPFIX format, any universal IPFIX collector that understands | + | Any universal IPFIX collector that supports |
| + | |||
| + | ==== Configuration Example ==== | ||
| + | [[en: | ||
| + | |||
| + | ===== General Additional NetFlow Configuration Settings===== | ||
| + | Data export interval (in seconds): | ||
| + | < | ||
| + | The default value is 30 seconds. | ||
| + | |||
| + | Session timeout: | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | To smooth out spikes and distribute the load more evenly across the collector, set the configuration parameter < | ||
| + | |||
| + | <note important> | ||
| + | |||
| + | ==== Sending a template via IPFIX ==== | ||
| + | - TCP transport protocol.\\ The template is sent once after a TCP session is established. | ||
| + | - UDP transport protocol.\\ By default, the template is sent every 20 seconds. This can be adjusted using the '' | ||
| + | |||
| + | =====Full NetFlow Configuration===== | ||
| + | Specify the IP address and port number of the **Full NetFlow** collector. You must assign a separate collector to each FastDPI to ensure that the data is not mixed with other statistics: | ||
| + | < | ||
| + | |||
| + | Specify the **Full NetFlow** export format: | ||
| + | < | ||
| + | Possible values: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | < | ||
| + | The NetFlow protocol does not guarantee packet delivery (since it operates over UDP), and if the collector cannot handle the incoming data, some packets will simply be lost. Transmitting **Full NetFlow** for 10 Gbps of DPI traffic requires the collector to be capable of receiving data at a rate of at least 60 Mbps.\\ Check your collector’s capabilities before sending **Full NetFlow** statistics to it. At the same time, when transmitting **Full NetFlow** from DPI, short-term peaks of up to 100 Mbps may occur during spikes in the number of sessions.\\ | ||
| + | \\ | ||
| + | When sending IPFIX over UDP, errors may occur due to incorrect settings on the receiving end, which can result in data loss. Examples of such errors:\\ | ||
| + | '' | ||
| + | '' | ||
| + | </ | ||
| + | |||
| + | The '' | ||
| + | :!: Affects the calculation of the '' | ||
| + | Values used to construct the mask: | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | The '' | ||
| + | |||
| + | The parameter '' | ||
| ===== Export Template in IPFIX Format (Netflow v10) for IPv4 Protocol ===== | ===== Export Template in IPFIX Format (Netflow v10) for IPv4 Protocol ===== | ||
| - | ^ Export Template for IPv4 ||||||| | + | ^ Export Template for IPv4 |
| - | ^ № ^ Bytes ^ Data Type ^ IANA ^ Description | + | ^ № ^ Bytes ^ Data Type ^ IANA ^ Description |
| - | | 1 | 8 | int64 | 0 | OCTET_DELTA_COUNT | + | | 1 | 8 | int64 | 0 | OCTET_DELTA_COUNT |
| - | | 2 | 8 | int64 | 0 | PACKET_DELTA_COUNT | + | | 2 | 8 | int64 | 0 | PACKET_DELTA_COUNT |
| - | | 4 | 1 | int8 | 0 | PROTOCOL_IDENTIFIER | + | | 4 | 1 | int8 | 0 | PROTOCOL_IDENTIFIER |
| - | | 5 | 1 | int8 | 0 | IP_CLASS_OF_SERVICE | + | | 5 | 1 | int8 | 0 | IP_CLASS_OF_SERVICE |
| - | | 7 | 2 | int16 | 0 | SOURCE_TRANSPORT_PORT | + | | 7 | 2 | int16 | 0 | SOURCE_TRANSPORT_PORT |
| - | | 8 | 4 | int32 | 0 | SOURCE_IPV4_ADDRESS | + | | 8 | 4 | int32 | 0 | SOURCE_IPV4_ADDRESS |
| - | | 11 | 2 | int16 | 0 | DESTINATION_TRANSPORT_PORT | + | | 11 | 2 | int16 | 0 | DESTINATION_TRANSPORT_PORT |
| - | | 12 | 4 | int32 | 0 | DESTINATION_IPV4_ADDRESS | + | | 12 | 4 | int32 | 0 | DESTINATION_IPV4_ADDRESS |
| - | | 16 | 4 | int32 | 0 | BGP_SOURCE_AS_NUMBER | + | | 16 | 4 | int32 | 0 | BGP_SOURCE_AS_NUMBER |
| - | | 17 | 4 | int32 | 0 | BGP_DESTINATION_AS_NUMBER | + | | 17 | 4 | int32 | 0 | BGP_DESTINATION_AS_NUMBER |
| - | | 152 | 8 | int64 | 0 | FLOW_START_MILLISECOND | + | | 152 | 8 | int64 | 0 | FLOW_START_MILLISECOND |
| - | | 153 | 8 | int64 | 0 | FLOW_END_MILLISECOND | + | | 153 | 8 | int64 | 0 | FLOW_END_MILLISECOND |
| - | | 10 | 2 | int16 | 0 | INPUT_SNMP | + | | 10 | 2 | int16 | 0 | INPUT_SNMP |
| - | | 14 | 2 | int16 | 0 | OUTPUT_SNMP | + | | 14 | 2 | int16 | 0 | OUTPUT_SNMP |
| - | | 60 | 1 | int8 | 0 | IP_VERSION | + | | 60 | 1 | int8 | 0 | IP_VERSION |
| - | | 2000 | 8 | int64 | 43823 | SESSION_ID | + | | 2000 | 8 | int64 | 43823 | SESSION_ID |
| - | | 2001 | - | string | + | | 2001 | - | string |
| - | | 2002 | 2 | int16 | 43823 | DPI_PROTOCOL | + | | 2002 | 2 | int16 | 43823 | DPI_PROTOCOL |
| - | | 2003 | - | string | + | | 2003 | - | string |
| - | | 225 | 4 | int32 | 0 | POST_NAT_SOURCE_IPV4_ADDRESS | + | | 225 | 4 | int32 | 0 | POST_NAT_SOURCE_IPV4_ADDRESS |
| - | | 227 | 2 | int16 | 0 | POST_NAPT_SOURCE_TRANSPORT_PORT | + | | 227 | 2 | int16 | 0 | POST_NAPT_SOURCE_TRANSPORT_PORT |
| - | | 2010 | 2 | int16 | 43823 | FRGMT_DELTA_PACKS | + | | 2010 | 2 | int16 | 43823 | FRGMT_DELTA_PACKS |
| - | | 2011 | 2 | int16 | 43823 | REPEAT_DELTA_PACK | + | | 2011 | 2 | int16 | 43823 | REPEAT_DELTA_PACK |
| - | | 2012 | 4 | int32 | 43823 | PACKET_DELIVER_TIME | + | | 2012 | 4 | int32 | 43823 | PACKET_DELIVER_TIME |
| - | | 2016 | 2 | int16 | 43823 | BRIDGE_CHANNEL_NUM | + | | 2016 | 2 | int16 | 43823 | BRIDGE_CHANNEL_NUM |
| - | | 6 | 2 | int16 | 0 | TCP_FLAGS | + | | 6 | 2 | int16 | 0 | TCP_FLAGS |
| - | | 58 | 2 | int16 | 0 | SRC_VLAN | + | | 58 | 2 | int16 | 0 | SRC_VLAN |
| - | | 59 | 2 | int16 | 0 | DST_VLAN | + | | 59 | 2 | int16 | 0 | DST_VLAN |
| - | | 56 | 6 | mac_address | + | | 56 | 6 | mac_address |
| - | | 57 | 6 | mac_address | + | | 57 | 6 | mac_address |
| - | | 2017 | - | raw | 43823 | MPLS Lables | + | | 2017 | - | raw | 43823 | MPLS Lables |
| - | | 132 | 8 | int64 | 0 | DROPPED_BYTES | + | | 132 | 8 | int64 | 0 | DROPPED_BYTES |
| - | | 133 | 8 | int64 | 0 | DROPPED_PACKETS | + | | 133 | 8 | int64 | 0 | DROPPED_PACKETS |
| - | | 2019 | 1 | int8 | 43823 | originalTOS | + | | 2019 | 1 | int8 | 43823 | originalTOS |
| - | | 192 | 1 | int8 | 0 | IP_TTL | + | | 192 | 1 | int8 | 0 | IP_TTL |
| - | | 2020 | 2 | int16 | 43823 | RATING_GROUP | + | | 2020 | 2 | int16 | 43823 | RATING_GROUP |
| + | | 2021 | 8 | int64 | 43823 | SERVICE_FLAGS | ||
| + | | 2022 | 8 | int64 | 43823 | DETECTION_FLAGS | ||
| + | | 2023 | 8 | int64 | 43823 | ACTION_FLAGS | ||
| ===== Export Template in IPFIX Format (Netflow v10) for IPv6 Protocol ===== | ===== Export Template in IPFIX Format (Netflow v10) for IPv6 Protocol ===== | ||
| Line 81: | Line 130: | ||
| | 27 | 16 | int128 | | 27 | 16 | int128 | ||
| | 28 | 16 | int128 | | 28 | 16 | int128 | ||
| + | |||
| + | ===== Configuring NetFlow v5 ===== | ||
| + | In the Netflow v5 format, the original port numbers are retained in the full statistics, and information about the detected protocols is transmitted in the normally unused bytes 46–47. If you need to analyze the protocols in use, you can configure the system so that protocol information is transmitted in the port number: | ||
| + | < | ||
| + | For backward compatibility with older collectors, this setting also applies to the IPFIX format; however, using it in conjunction with IPFIX is not recommended, | ||