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 [2026/02/03 14:20] – 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: | ||
| - | ====== Full NetFlow | + | ====== |
| - | {{indexmenu_n> | + | {{indexmenu_n> |
| - | ===== General Settings ===== | + | ===== General |
| - | Enabling statistics collection and export:\\ | + | Enabling statistics collection and export: |
| < | < | ||
| - | * 0 or not set - the option | + | * 0 or not specified |
| - | * 1 - export statistics by protocols | + | * 1 - export statistics by protocol |
| - | * 2 - export statistics by directions | + | * 2 - export statistics by destination |
| - | * 4 - export | + | * 4 - Export |
| - | * 8 - export | + | * 8 - Export |
| - | <note important> | + | <note important> |
| - | 12 = 8 + 4 — simultaneous export of full NetFlow and billing | + | |
| - | Network interface | + | <note warning> |
| + | |||
| + | The name of the network interface | ||
| < | < | ||
| + | <note tip> | ||
| + | IPFIX/ | ||
| + | The '' | ||
| + | If IPFIX/ | ||
| + | </ | ||
| + | |||
| + | <note tip>For receiving, processing, and storing IPFIX, we recommend using the [[en: | ||
| + | |||
| + | Any universal IPFIX collector that supports templates, or the [[en: | ||
| + | |||
| + | ==== Configuration Example ==== | ||
| + | [[en: | ||
| + | |||
| + | ===== General Additional NetFlow Configuration Settings===== | ||
| Data export interval (in seconds): | Data export interval (in seconds): | ||
| < | < | ||
| + | The default value is 30 seconds. | ||
| Session timeout: | Session timeout: | ||
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| - | To smooth | + | To smooth |
| - | <note important> | + | |
| - | Setting an insufficient | + | |
| - | Information about this event will be recorded in the log **/ | + | |
| - | < | + | < |
| - | <note tip> | + | ==== Sending a template via IPFIX ==== |
| - | IPFIX/ | + | - TCP transport protocol.\\ The template is sent once after a TCP session is established. |
| - | The configuration parameter '' | + | - UDP transport protocol.\\ By default, |
| - | If IPFIX/ | + | |
| - | </ | + | |
| - | + | ||
| - | ===== Full NetFlow ===== | + | |
| - | IP address and port number of the **NetFlow | + | =====Full NetFlow Configuration===== |
| + | Specify the IP address and port number of the **Full NetFlow** | ||
| < | < | ||
| - | In NetFlow5 format, | + | Specify |
| - | < | + | |
| - | For compatibility with older collectors, this setting also applies to the IPFIX format, but it is not recommended to use it together with IPFIX, since protocol information in IPFIX is transmitted in a separate dedicated field. | + | |
| - | + | ||
| - | It is also necessary to define the full NetFlow export format: | + | |
| < | < | ||
| - | Possible values: | + | Possible values: |
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| - | < | + | < |
| - | The NetFlow protocol does not guarantee packet delivery (as it runs over UDP), and if the collector cannot handle the incoming data rate, some packets will simply be lost. Exporting full NetFlow | + | The NetFlow protocol does not guarantee packet delivery (since it operates |
| - | Check the capabilities of your collector before sending NetFlow | + | \\ |
| - | + | When sending IPFIX over UDP, errors may occur due to incorrect settings on the receiving end, which can result in data loss. Examples | |
| - | The '' | + | '' |
| - | | + | '' |
| - | * '' | + | </ |
| - | The '' | + | The '' |
| - | By default, the mask value is '' | + | :!: Affects the calculation |
| - | :!: Affects the formation | + | Values used to construct the mask: |
| - | Mask values: | + | * '' |
| - | * '' | + | |
| * '' | * '' | ||
| - | * '' | + | * '' |
| - | * '' | + | * '' |
| * '' | * '' | ||
| - | * '' | + | * '' |
| * '' | * '' | ||
| - | The '' | + | The '' |
| - | + | ||
| - | The '' | + | |
| - | + | ||
| - | <note tip>For receiving, processing, and storing IPFIX data, it is recommended to use the [[en: | + | |
| - | + | ||
| - | For collecting data in IPFIX format, any universal IPFIX collector that supports templates, or the [[en: | + | |
| + | 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 128: | 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, | ||