![]() |
![]()
| ![]() |
![]()
NAMEipfixcol2-ipfix-output - IPFIX (output plugin) DESCRIPTIONThe plugin writes incoming IPFIX Messages to an IPFIX File or a series of IPFIX Files. An IPFIX File is a serialized stream of IPFIX Messages. Simply put, the plugin stores all valid packets received by the collector into one or more IPFIX Files. Although this is not an optimal way to store flows, it can be quite useful for testing purposes - capture flow records into IPFIX File(s) and replay them using ipfixsend2 tool. LIMITATIONSIn a situation when multiple exporters are using the same ODID at a time, the file format can store flow records only from one of the conflicting exporters with the given ODID. This is due to fact that the IPFIX Data Records (i.e. flow records) are formatted based on so called (Options) Template definitions (i.e. descriptions of flow record structures), which are unique for combination of a Transport Session (e.g. connection to a flow exporter) and an ODID. As there is no session information in raw IPFIX Messages, we can't distinguish Messages from multiple sessions using the same ODID. For this reason, each ODID can be used only by one session at a time, and all messages from other sessions using the same ODID that's already in use are ignored and a warning message is shown. Once a Transport Session is closed, ODIDs used by the session are released and can be later reused by another session. EXAMPLE CONFIGURATION<output> PARAMETERS
NOTEAfter a new IPFIX File is created, all previously seen and still valid (Options) Templates of the each ODID are written to the file once the first IPFIX Message corresponding to the ODID arrives with at least one successfully parsed data record. This is necessary so each file can be used independently of the (Options) Template definitions from previous files. ipfixsend2 tool doesn't support sequential reading of multiple IPFIX Files right now. However, there is a workaround - you can merge multiple IPFIX Files using cat tool e.g. cat file1.ipfix file2.ipfix > merge.ipfix and then use ipfixsend2 -i merge.ipfix to send data. AUTHORMichal Sedlák (xsedla0v@stud.fit.vutbr.cz), Lukáš Huták (lukas.hutak@cesnet.cz) COPYRIGHTCopyright © 2019 CESNET, z.s.p.o.
|