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_li:li_ipfix:start [2023/08/14 15:07] – elena.krasnobryzh | en:dpi:dpi_options:opt_li:li_ipfix:start [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== 3 IPFIX export ====== | ||
- | {{indexmenu_n> | ||
- | |||
- | For Clickstream data analisys (subscribers' | ||
- | |||
- | A list of the correspondence between the Protocol and the port number in netfow5 can be found __[[en: | ||
- | |||
- | Any universal IPFIX collector that accepts templates or the __[[en: | ||
- | |||
- | To receive, process and store ClickStream, | ||
- | |||
- | If the link quality between SSG and NetFlow/ | ||
- | |||
- | < | ||
- | [NFLW] very long operation …. | ||
- | </ | ||
- | |||
- | Starting from version 12.0, the statistics for sending NetFlow/ | ||
- | |||
- | < | ||
- | [STAT ][2022/ | ||
- | |||
- | a - number of sending cycles | ||
- | b - number of sending cycles, when the time spent on sending exceeded the cycle execution period | ||
- | c - percentage of exceeding the number of sending cycles: 100 * b/a | ||
- | d - time of maximum sending cycle duration, microseconds | ||
- | e - time of the period of sending statistics, microseconds ('' | ||
- | |||
- | Example: | ||
- | [STAT ][2022/ | ||
- | </ | ||
- | ===== ClickStream export Setup ===== | ||
- | Clickstream experts is configured by following parameters: | ||
- | |||
- | <code bash> | ||
- | ipfix_dev=em1 | ||
- | ipfix_udp_collectors=1.2.3.4: | ||
- | ipfix_tcp_collectors=1.2.3.6: | ||
- | dbg_log_mask=0x80 | ||
- | </ | ||
- | |||
- | here | ||
- | * **//em1//** - NIC using for export. | ||
- | * **// | ||
- | * **// | ||
- | * **// | ||
- | |||
- | ==== IPFIX format template for Clickstream ==== | ||
- | |||
- | The format of IPFIX templates for IPV6 differs only in the // | ||
- | |||
- | ^ № ^ Size in bytes ^ | ||
- | | 1003 | 16 | IPv6 | 43823 |IP_SOURCE |Sender address| | ||
- | | 1004 | 16 | IPv6 | 43823 |IP_DESTINATION |Recipient address| | ||
- | |||
- | ^ IPFIX format template for Clickstream | ||
- | ^ № ^ Size in bytes ^ | ||
- | | 1001 | 4 | int32 | | ||
- | | 1002 | - | string | | ||
- | | 1003 | 4 | IPv4 | | ||
- | | 1004 | 4 | IPv4 | | ||
- | | 1005 | - | string | | ||
- | | 1006 | - | string | | ||
- | | 1007 | - | string | | ||
- | | 1008 | - | string | | ||
- | | 1009 | - | string | | ||
- | | 2000 | 8 | int64 | | ||
- | | 1010 | 8 | int64 | | ||
- | | 1011 | 1 | int8 | | ||
- | | 1012 | 1 | int8 | | ||
- | | 1013 | 2 | int16 | | ||
- | | 1014 | 2 | int16 | | ||
- | | 2016 | 2 | ||
- | | 1024 | 2 | ||
- | | 1025 | - | ||
- | | 58 | 2 | ||
- | | 59 | 2 | ||
- | | 56 | 6 | ||
- | | 57 | 6 | ||
- | | 2017 | - | ||
- | | 2018 | 4 | ||
- | |||
- | **ND: | ||
- | * LOCKED contains the blocking mark if its value !=0 (0x3 for HTTP, 0x1 for everything else), | ||
- | * HOST TYPE = 1 in case of HTTP, 2 - CNAME, 3 - SNI, 4 - QUIC | ||
- | * METHOD = 1 - GET, 2 - POST, 3 - PUT, 4 - DELETE | ||
- | |||
- | If the configuration parameter "// | ||
- | |||
- | ^ Clickstream export template IPFIX format for HTTP responses((for the IPv6 variant see difference above)) | ||
- | ^ № ^ Size in bytes ^ Type ^ IANA ^ Description | ||
- | | 1001 | 4 | int32 | 43823 |TIME_STAMP| | ||
- | | 1002 | - | string | ||
- | | 1003 | 4 | IPv4 | 43823 |IP_SOURCE| | ||
- | | 1004 | 4 | IPv4 | 43823 |IP_DESTINATION| | ||
- | | 1020 | 4 | int32 | 43823 |RESULT_CODE| | ||
- | | 1021 | 8 | int64 | 43823 |CONTENT_LENGTH| | ||
- | | 1022 | - | string | ||
- | | 2000 | 8 | int64 | 43823 |SESSION_ID| | ||
- | | 1023 | - | string | ||
- | | 2016 | 2 | int16 | 43823 |BRIDGE_CHANNEL_NUM| Channel (vchannel) or bridge number. If vchannel is set in the DPI configuration, | ||
- | | 58 | 2 | int16 | - |VlanId|VLAN| | ||
- | | 59 | 2 | int16 | - |postVlanID|POST VLAN| | ||
- | | 56 | 6 | mac_address | ||
- | | 57 | 6 | mac_adress | ||
- | | 2017 | - | raw | 43823 |MPLS Labels|| | ||
- | |||
- | If the configuration parameter "// | ||
- | |||
- | ^ Clickstream export template IPFIX format for responses over SSL/TLS, HTTPS((for the IPv6 variant, see difference above)) | ||
- | ^ № ^ Size in bytes ^ Type ^ IANA ^ Description | ||
- | | 1001 | 4 | int32 | 43823 |TIME_STAMP| | ||
- | | 1002 | - | string | ||
- | | 1003 | 4 | IPv4 | 43823 |IP_SOURCE| | ||
- | | 1004 | 4 | IPv4 | 43823 |IP_DESTINATION| | ||
- | | 2000 | 8 | int64 | 43823 |SESSION_ID| | ||
- | | 1030 | 2 | int16 | 43823 |SSL_VERSION| | ||
- | | 1031 | 2 | int16 | 43823 |CIPHER_SUITE| | ||
- | | 1032 | 1 | int8 | 43823 |COMPRESSION_METHOD| | ||
- | | 2016 | 2 | ||
- | | 58 | 2 | ||
- | | 59 | 2 | ||
- | | 56 | 6 | ||
- | | 57 | 6 | ||
- | | 2017 | - | ||
- | | 1011 | 1 | int8 | 43823 | type_host || | ||
- | | 1005 | - | string | ||
- | |||
- | |||
- | ===== Metadata Export Setting ===== | ||
- | Export of metadata of other protocols for SORM is configured by the following parameters | ||
- | |||
- | <code bash> | ||
- | ipfix_dev=em1 | ||
- | ipfix_meta_udp_collectors=1.2.3.4: | ||
- | ipfix_meta_tcp_collectors=1.2.3.6: | ||
- | dbg_log_mask=0x80 | ||
- | </ | ||
- | |||
- | where | ||
- | * **//em1//** - network interface name for export\\ | ||
- | * **// | ||
- | * **// | ||
- | * **// | ||
- | |||
- | ==== IPFIX metadata export template formats ==== | ||
- | |||
- | ^ SIP metadata export template IPFIX format | ||
- | ^ № ^ Size in bytes ^ Type ^ IANA ^ Description | ||
- | | 1001 | 4 | int32 | 43823 | TIME_STAMP | | ||
- | | 1002 | - | string | ||
- | | 1003 | 4 | IPv4 | 43823 | IP_SRC | | ||
- | | 1004 | 4 | IPv4 | 43823 | IP_DST | | ||
- | | 2000 | 8 | int64 | 43823 | SESSION_ID | | ||
- | | 3000 | - | string | ||
- | | 3001 | 2 | int16 | 43823 | STATUS_CODE | | ||
- | | 3002 | - | string | ||
- | | 3003 | - | string | ||
- | | 3004 | - | string | ||
- | | 3005 | - | string | ||
- | | 3006 | - | string | ||
- | | 3007 | - | string | ||
- | | 3008 | - | string | ||
- | **Notes:** \\ | ||
- | IP_SRC - IP SOURCE\\ | ||
- | IP_DST - IP DESTINATION\\ | ||
- | GATEWAYS - comma separated list of gateways (IP or hostname) | ||
- | |||
- | ^ FTP Metadata Export Template IPFIX Format | ||
- | ^ № ^ Size in bytes ^ Type ^ IANA ^ Description ^ | ||
- | | 1001 | 4 | int32 | 43823 | TIME_STAMP | | ||
- | | 1002 | - | string | ||
- | | 1003 | 4 | IPv4 | 43823 | IP_SRC | | ||
- | | 1004 | 4 | IPv4 | 43823 | IP_DST | | ||
- | | 2000 | 8 | int64 | 43823 | SESSION_ID | | ||
- | | 3050 | - | string | ||
- | | 3051 | - | string | ||
- | | 3052 | - | string | ||
- | | 3053 | 1 | int8 | 43823 | MODE | | ||
- | | 1020 | 4 | int32 | 43823 |RESULT_CODE| | ||
- | |||
- | **Note:** the MODE field contains the ftp connection type 0 - active, 1 - passive | ||
- | |||
- | ^ Messenger Metadata Export Template IPFIX Format (XMPP) | ||
- | ^ № ^ Size in bytes ^ Type ^ IANA ^ Description | ||
- | | 1001 | 4 | int32 | 43823 | TIME_STAMP | | ||
- | | 1002 | - | string | ||
- | | 1003 | 4 | IPv4 | 43823 | IP_SRC | | ||
- | | 1004 | 4 | IPv4 | 43823 | IP_DST | | ||
- | | 2000 | 8 | int64 | 43823 | SESSION_ID | | ||
- | | 3100 | - | string | ||
- | | 3101 | - | string | ||
- | | 3102 | - | string | ||
- | | 3103 | - | string | ||
- | | 3104 | 1 | int8 | 43823 | IM_PROTOCOL | | ||
- | | 3105 | - | string | ||
- | | 1020 | 4 | int32 | 43823 | RESULT_CODE | | ||
- | |||
- | **Note:** the IM_PROTOCOL field contains the type of protocol used: 0 - ICQ, 7 - XMPP, 106 - ZELLO | ||
- | |||
- | ^ IPFIX format of mail protocol metadata export template (POP, | ||
- | ^ № ^ Size in bytes ^ Type ^ IANA ^ Description | ||
- | | 1001 | 4 | int32 | 43823 | TIME_STAMP | | ||
- | | 1002 | - | string | ||
- | | 1003 | 4 | IPv4 | 43823 | IP_SRC | | ||
- | | 1004 | 4 | IPv4 | 43823 | IP_DST| | ||
- | | 2000 | 8 | int64 | 43823| SESSION_ID| | ||
- | | 3150 | - | string | ||
- | | 3151 | - | string | ||
- | | 3152 | - | string | ||
- | | 3153 | - | string | ||
- | | 3154 | - | string | ||
- | | 3155 | - | string | ||
- | | 3156 | 1 | int8 | 43823 | EVENT | | ||
- | | 3157 | 1 | int8 | 43823 | ATTACHMENT| | ||
- | | 3158 | 1 | int8 | 43823 | MAIL_PROTOCOL| | ||
- | | 1020 | 4 | int32 | 43823 |RESULT_CODE| | ||
- | |||
- | **Note:** the EVENT field indicates the event type 1 - send, 2 - receive, \\ | ||
- | ATTACHMENT sign of an attachment, mail_protocol = 0 - smtp, 1 - pop3, 2 - imap | ||
- | |||
- | ^ The raw unparsed metadata export template IPFIX format | ||
- | ^ № ^ Size in bytes ^ Type ^ IANA ^ Description | ||
- | | 1001 | 4 | int32 | 43823 | TIME_STAMP | | ||
- | | 1002 | - | string | ||
- | | 1003 | 4 | IPv4 | 43823 | IP_SRC| | ||
- | | 1004 | 4 | IPv4 | 43823 | IP_DST| | ||
- | | 2000 | 8 | int64 | 43823 | SESSION_ID| | ||
- | | 2013 | 1 | int8 | 43823 | FLW_DIR| | ||
- | | 2014 | 1 | int8 | 43823 | DIR_DATA| | ||
- | | 2015 | 2 | int16 | 43823 | VDPI_PROTO| | ||
- | | 2900 | 2 | int16 | 43823 | META_PROTO| | ||
- | | 2901 | - | string | ||
- | **Note:** field | ||
- | * **// | ||
- | * **// | ||
- | * **// | ||
- | * **// | ||
- | * **// | ||
- | |||
- | Aggregating raw_data, clickstream, | ||
- | or executing a database query with the session_id key, or support in the rcollector utility. | ||
- | |||
- | =====DNS===== | ||
- | Parameters: | ||
- | * **// | ||
- | * **// | ||
- | * **// | ||
- | * **// | ||
- | * **// | ||
- | |||
- | Switching to the next file occurs when the file size reaches // | ||
- | |||
- | ajb_save_dns_format : format for writing to a text file | ||
- | * **" | ||
- | * **" | ||
- | * **" | ||
- | * **" | ||
- | * **" | ||
- | |||
- | * **" | ||
- | * **" | ||
- | * **" | ||
- | * **" | ||
- | * **" | ||
- | * **" | ||
- | * **" | ||
- | * **" | ||
- | * **" | ||
- | Now: | ||
- | <code bash>// | ||
- | // transport for DNS | ||
- | // | ||
- | typedef enum en_dns_transport : u_int8_t | ||
- | { | ||
- | edns_udp=0 | ||
- | edns_tcp=1, | ||
- | edns_max = 2, | ||
- | } en_dns_transport_t;</ | ||
- | |||
- | |||
- | |||
- | Default: | ||
- | //" | ||
- | |||
- | |||
- | <code bash>// IPFIX collectors. Format as usual: | ||
- | ipfix_dns_udp_collectors | ||
- | ipfix_dns_tcp_collectors </ | ||
- | |||
- | // | ||
- | <code bash> | ||
- | brg_lgmsk_dpi = 0x01, // display dpi statistics | ||
- | brg_lgmsk_mem_usage = 0x02, // display statistics on memory usage | ||
- | brg_lgmsk_plc = 0x04, // output policing statistics | ||
- | brg_lgmsk_clstr_wthr = 0x08, // print statistics on cluster worker threads | ||
- | brg_lgmsk_ajb = 0x10, // display statistics on the use of ajb buffers | ||
- | brg_lgmsk_stat_ddos = 0x20, // display statistics on DDOS parameters | ||
- | brg_lgmsk_call_udr = 0x40, // output to alert the results of the UDR call function | ||
- | brg_lgmsk_ipfix = 0x80, // Show IPFIX statistics | ||
- | brg_lgmsk_flow = 0x100, // Data output by flow (session output) | ||
- | brg_lgmsk_ip_proto = 0x200, // output statistics by ip type | ||
- | brg_lgmsk_eth_type = 0x400, // display statistics by type of ethernet packet | ||
- | brg_lgmsk_slice_stat = 0x800, // print slice statistics for flow and IP | ||
- | brg_lgmsk_dna_cluster = 0x1000, // debug DNA cluster creation | ||
- | brg_lgmsk_lock_stat = 0x2000, // multicluster lock statistics | ||
- | brg_lgmsk_all_cpu_stat = 0x4000, // load statistics for all cores | ||
- | brg_lgmsk_load_vchannels= 0x8000, // vcahnnels loading statistics | ||
- | brg_lgmsk_redirect = 0x10000,// redirect operations | ||
- | brg_lgmsk_dna_cluster_stat= 0x20000, // record statistics for pfring_zc_stats | ||
- | brg_lgmsk_nat = 0x40000, // NAT initialization | ||
- | brg_lgmsk_bind = 0x80000, // bind operations | ||
- | brg_lgmsk_stat_nat_whbl = 0x100000, // output NAT statistics on white block | ||
- | brg_lgmsk_print_ip = 0x200000, // Printing IP data to the statistics file | ||
- | brg_lgmsk_print_nat = 0x400000, // Print NAT data to statistics file | ||
- | brg_lgmsk_check_nat = 0x800000, // check NAT | ||
- | brg_lgmsk_tm_nflw_ipfix = 0x1000000, // output netflow/ | ||
- | brg_lgmsk_stat_nat = 0x2000000, // output NAT statistics to fastdpi_stat.log | ||
- | brg_lgmsk_tod_brg_sync = 0x4000000, // trace time synchronization gettimeofday <--> rtdsc | ||
- | |||
- | brg_lgmsk_ctrlopt = 0x8000000, // Display data for CTRLOPT in statistics | ||
- | |||
- | brg_lgmsk_auth = 0x10000000,// | ||
- | brg_lgmsk_apartment = 0x20000000, // apartment statistics | ||
- | brg_lgmsk_conmon = 0x40000000, // print connection monitor traces to alert | ||
- | brg_lgmsk_task_scheduler= 0x80000000, // output scheduler traces to alert | ||
- | brg_lgmsk_tfrwd =0x100000000, | ||
- | };</ | ||