Welcome to SolarWinds NetFlow v9 Datagram Knowledge Series. This is a 7 part series of blogs to provide the IT professional a basic understanding of how flow technology works, specifically Cisco’s NetFlow v9, what metrics are being captured, and how they are interpreted to help you perform comprehensive network traffic monitoring.
Today's topic is the NetFlow v9 Options Template.
The Options Template is a special type of template record used to communicate the format of data related to the NetFlow process.
The Options Data Record is a special type of data record (based on an options template) with a reserved template ID that, rather than supplying information about IP flows, is used to supply "meta-data" about the NetFlow process itself.
FlowSet ID = 1
The FlowSet ID is used to distinguish template records from data records. A template record always has a FlowSet ID of 1. A data record always has a nonzero FlowSet ID which is greater than 255.
This field gives the total length of this FlowSet. Because an individual template FlowSet may contain multiple template IDs, the length value should be used to determine the position of the next FlowSet record, which could be either a template or a data FlowSet.
Length is expressed in TLV format, meaning that the value includes the bytes used for the FlowSet ID and the length bytes themselves, as well as the combined lengths of all template records included in this FlowSet.
As a router generates different template FlowSets to match the type of NetFlow data it will be exporting, each template is given a unique ID. This uniqueness is local to the router that generated the template ID. The Template ID is greater than 255. Template IDs inferior to 255 are reserved.
Option Scope Length
This field gives the length in bytes of any scope fields contained in this options template (the use of scope is described below).
This field gives the length (in bytes) of any Options field definitions contained in this options template.
Scope Field 1 Type
This field gives the relevant portion of the NetFlow process to which the options record refers. Currently defined values follow:
0x0003 Line Card
0x0004 NetFlow Cache
For example, sampled NetFlow can be implemented on a per-interface basis, so if the options record was reporting on how sampling is configured, the scope for the report would be 0x0002 (interface).
Scope Field 1 Length
This field gives the length (in bytes) of the Scope field, as it would appear in an options record.
Option Field 1 Type
This numeric value represents the type of the field that appears in the options record. Possible values are detailed in Table 6 above.
Option Field 1 Length
This number is the length (in bytes) of the field, as it would appear in an options record.
Padding should be inserted to align the end of the FlowSet on a 32 bit boundary. Pay attention that the Length field will include those padding bits.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community.
More than 150,000 members are here to solve problems, share technology and best practices, and directly
contribute to our product development process.
Learn more today by joining now.