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 [2024/09/26 15:29] – внешнее изменение 127.0.0.1 | en:dpi:dpi_options:opt_li:li_ipfix [2025/10/31 08:56] (current) – elena.krasnobryzh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| {{indexmenu_n> | {{indexmenu_n> | ||
| Line 8: | Line 8: | ||
| Any universal IPFIX collector that accepts templates or the __[[en: | Any universal IPFIX collector that accepts templates or the __[[en: | ||
| - | To receive, process and store ClickStream, | + | To receive, process and store ClickStream, |
| If the link quality between SSG and NetFlow/ | If the link quality between SSG and NetFlow/ | ||
| Line 41: | Line 41: | ||
| here | here | ||
| - | * **//em1//** - NIC using for export. | + | * **'' |
| - | * **//ipfix_udp_collectors//** - IP of udp collectors. | + | * **'' |
| - | * **//ipfix_tcp_collectors//** - IP of tcp collectors. | + | * **'' |
| - | * **//dbg_log_mask=0x80//** - logging statistics about export. | + | * **'' |
| + | The '' | ||
| ==== IPFIX format template for Clickstream ==== | ==== IPFIX format template for Clickstream ==== | ||
| - | The format of IPFIX templates for IPV6 differs only in the //IP_SOURCE// and //IP_DESTINATION// fields. | + | The format of IPFIX templates for IPV6 differs only in the **IP_SOURCE** and **IP_DESTINATION** fields. |
| ^ № ^ Size in bytes ^ | ^ № ^ Size in bytes ^ | ||
| Line 54: | Line 55: | ||
| | 1004 | 16 | IPv6 | 43823 |IP_DESTINATION |Recipient address| | | 1004 | 16 | IPv6 | 43823 |IP_DESTINATION |Recipient address| | ||
| - | ^ IPFIX format template for Clickstream | + | ^ IPFIX format template for Clickstream |
| - | ^ № ^ Size in bytes ^ | + | ^ № ^ Size in bytes ^ Type |
| - | | 1001 | 4 | int32 | | + | | 1001 |
| - | | 1002 | - | string | | + | | 1002 |
| - | | 1003 | 4 | IPv4 | 43823 |IP_SOURCE|Sender address| | + | | 1003 |
| - | | 1004 | 4 | IPv4 | 43823 |IP_DESTINATION|Recipient address| | + | | 1004 |
| - | | 1005 | - | string | | + | | 1005 |
| - | | 1006 | - | string | | + | | 1006 |
| - | | 1007 | - | string | | + | | 1007 |
| - | | 1008 | - | string | | + | | 1008 |
| - | | 1009 | - | string | | + | | 1009 |
| - | | 2000 | 8 | int64 | | + | | 2000 |
| - | | 1010 | 8 | int64 | | + | | 1010 |
| - | | 1011 | 1 | int8 | 43823 |HOST_TYPE| | + | | 1011 |
| - | | 1012 | 1 | int8 | 43823 |METHOD| | + | | 1012 |
| - | | 1013 | 2 | int16 | | + | | 1013 |
| - | | 1014 | 2 | int16 | | + | | 1014 |
| - | | 2016 | 2 | + | | 2016 |
| - | | 1024 | 2 | + | | 1024 |
| - | | 1025 | - | + | | 1025 |
| - | | 58 | 2 | + | | 58 |
| - | | 59 | 2 | + | | 59 |
| - | | 56 | 6 | + | | 56 |
| - | | 57 | 6 | + | | 57 |
| - | | 2017 | - | + | | 2017 |
| - | | 2018 | 4 | + | | 2018 |
| **ND: | **ND: | ||
| - | * LOCKED = 1 - blocked by HTTPS, 2 - HTTP redirect, 3 - blocked by HTTP (transmitted by bitmask) | + | * LOCKED = 1 — blocked by HTTPS, 2 — HTTP redirect, 3 — blocked by HTTP (transmitted by bitmask) |
| - | * HOST TYPE = 1 in case of HTTP, 2 - CNAME, 3 - SNI, 4 - QUIC | + | * HOST TYPE = 1 in case of HTTP, 2 — CNAME, 3 — SNI, 4 — QUIC |
| - | * METHOD = 1 - GET, 2 - POST, 3 - PUT, 4 - DELETE | + | * METHOD = 1 — GET, 2 — POST, 3 — PUT, 4 — DELETE |
| - | If the configuration parameter | + | If the configuration parameter |
| ^ Clickstream export template IPFIX format for HTTP responses((for the IPv6 variant see difference above)) | ^ Clickstream export template IPFIX format for HTTP responses((for the IPv6 variant see difference above)) | ||
| Line 106: | Line 107: | ||
| | 2017 | - | raw | 43823 |MPLS Labels| | | 2017 | - | raw | 43823 |MPLS Labels| | ||
| - | If the configuration parameter | + | If the configuration parameter |
| ^ Clickstream export template IPFIX format for responses over SSL/TLS, HTTPS((for the IPv6 variant, see difference above)) | ^ Clickstream export template IPFIX format for responses over SSL/TLS, HTTPS((for the IPv6 variant, see difference above)) | ||
| Line 139: | Line 140: | ||
| where | where | ||
| - | * **//em1//** - network interface name for export\\ | + | * **'' |
| - | * **//ipfix_meta_udp_collectors//** - udp addresses of collectors\\ | + | * **'' |
| - | * **//ipfix_meta_tcp_collectors//** - tcp addresses of collectors\\ | + | * **'' |
| - | * **//dbg_log_mask=0x80//** - output of statistical information about export to the log | + | * **'' |
| ==== IPFIX metadata export template formats ==== | ==== IPFIX metadata export template formats ==== | ||
| Line 168: | Line 169: | ||
| | 2017 | - | raw | 43823 |MPLS Labels| | | 2017 | - | raw | 43823 |MPLS Labels| | ||
| **Notes:** \\ | **Notes:** \\ | ||
| - | IP_SRC | + | **IP_SRC** — IP SOURCE\\ |
| - | IP_DST | + | **IP_DST** — IP DESTINATION\\ |
| - | GATEWAYS | + | **GATEWAYS** — comma separated list of gateways (IP or hostname) |
| ^ FTP Metadata Export Template IPFIX Format | ^ FTP Metadata Export Template IPFIX Format | ||
| Line 190: | Line 191: | ||
| | 2017 | - | raw | 43823 |MPLS Labels| | | 2017 | - | raw | 43823 |MPLS Labels| | ||
| - | **Note:** the MODE field contains the FTP connection type 0 --- active, 1 --- passive | + | **Note:** the MODE field contains the FTP connection type 0 — active, 1 — passive |
| ^ Messenger Metadata Export Template IPFIX Format (XMPP) | ^ Messenger Metadata Export Template IPFIX Format (XMPP) | ||
| Line 212: | Line 213: | ||
| | 2017 | - | raw | 43823 |MPLS Labels| | | 2017 | - | raw | 43823 |MPLS Labels| | ||
| - | **Note:** the IM_PROTOCOL field contains the type of protocol used: 0 --- ICQ, 7 --- XMPP, 106 --- ZELLO | + | **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, IMAP, SMTP) ^^^^^^ | ^ IPFIX format of mail protocol metadata export template (POP, IMAP, SMTP) ^^^^^^ | ||
| Line 237: | Line 238: | ||
| | 2017 | - | raw | 43823 | MPLS Labels | | | 2017 | - | raw | 43823 | MPLS Labels | | ||
| - | **Note:** the EVENT field indicates the event type 1 --- send, 2 --- receive, \\ | + | **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 | + | ATTACHMENT sign of an attachment, mail_protocol = 0 — smtp, 1 — pop3, 2 — imap |
| ^ The raw unparsed metadata export template IPFIX format | ^ The raw unparsed metadata export template IPFIX format | ||
| Line 263: | Line 264: | ||
| | 2017 | - | raw | 43823 |MPLS Labels| | | 2017 | - | raw | 43823 |MPLS Labels| | ||
| **Note:** | **Note:** | ||
| - | * **//FLW_DIR//** --- direction of packet on interfaces : 0 : subs --> | + | * **'' |
| - | * **//DIR_DATA//** --- direction of the packet by session: for TCP 0 : client | + | * **'' |
| - | * **//VDPI_PROTO//** --- protocol that defined | + | * **'' |
| - | * **//META_PROTO//** --- internal protocol identifier (3 --- SIP, 4 --- FTP, 5 --- SMTP, 6 --- POP3, 7 --- IMAP, 8 --- XMPP, 9 --- ICQ, 10 --- RSS, 11 --- NNTP, 12 --- H323, 13 --- ZELLO)\\ | + | * **'' |
| - | * **//RAW_DATA//** --- raw data | + | * **'' |
| Aggregating '' | Aggregating '' | ||
| - | =====DNS===== | + | =====Configuring the export of DNS responses or DNS queries===== |
| DNS export is configured with the following settings: | DNS export is configured with the following settings: | ||
| <code bash> | <code bash> | ||
| Line 279: | Line 280: | ||
| </ | </ | ||
| where | where | ||
| - | * **'' | + | * **'' |
| - | * **'' | + | * **'' |
| - | * **'' | + | * **'' |
| The format of IPFIX templates for IPV6 differs in the format of the '' | The format of IPFIX templates for IPV6 differs in the format of the '' | ||
| Line 311: | Line 312: | ||
| | 2017 | - | raw | 43823 | MPLS Labels | | 2017 | - | raw | 43823 | MPLS Labels | ||
| | 2016 | 2 | int16 | 43823 | BRIDGE_CHANNEL_NUM | | 2016 | 2 | int16 | 43823 | BRIDGE_CHANNEL_NUM | ||
| + | | 224 | ||
| + | | 3206 | 2 | uint16 | ||
| An alternative is to save the data in a local text log. Parameters: | An alternative is to save the data in a local text log. Parameters: | ||
| - | * **//ajb_save_dns//** - flag for writing to a text file | + | * **'' |
| - | * **//ajb_dns_ftimeout//** - timeout (minutes) for switching to the next file | + | * **'' |
| - | * **//ajb_dns_bufsize//** - file write buffer | + | * **'' |
| - | * **//ajb_dns_fsize//** - file size limit | + | * **'' |
| - | * **//ajb_dns_path//**- path where to write | + | * **'' |
| + | * **'' | ||
| + | * **'' | ||
| + | * **'' | ||
| + | * **'' | ||
| - | Switching to the next file occurs when the file size reaches | + | Switching to the next file occurs when the file size reaches |
| - | ajb_save_dns_format : format for writing to a text file | + | '' |
| - | * **"ts"** - time | + | * **'' |
| - | * **"ipsrc"** - ip source | + | * **'' |
| - | * **"ipdst"** - ip destination | + | * **'' |
| - | * **"ssid"** - session id | + | * **'' |
| - | * **"login"** - understandable | + | * **'' |
| - | * **"host"** - the name of which the information was requested | + | * **'' |
| - | * **"rrtype"** - RR types | + | * **'' |
| - | * **"rrclass"** - RR class | + | * **'' |
| - | * **"ttl"** - TTL | + | * **'' |
| - | * **"rdlen"** - rdata size | + | * **'' |
| - | * **"rdata"** - the resource itself | + | * **'' |
| - | * **"psrc"** - port source | + | * **'' |
| - | * **"pdst"** - port destination | + | * **'' |
| - | * **"transport"** - how the DNS query was received. | + | * **'' |
| Default: '' | Default: '' | ||
| + | |||
| + | =====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 '' | ||