Flow Monitoring configuration
The Flow Monitoring service consists of aggregators and exporters that accept flows and pass flows to other connected modules. Aggregator and exporter modules may be configured on an interface. The interface selectors generate defined fixed single-packet flows. For more information about the fields in these flows, refer to Exported NetFlow Version 9 and IPFIX IPv4 data. Aggregator modules can connect with other aggregator and exporter modules by using a next statement. You can configure multiple such connections.
You can define a rule for the aggregator. Each rule is a list of key or nonkey fields. A key field identifies a unique entry in the cache functionality provided by the aggregator module. Nonkey fields are aggregated: for example, if packetDeltaCount is added as a nonkey field, the collected values are aggregated and summed before exporting the values to the flow report. An aggregator must have a rule, and a rule must have at least one key field.
Exporter modules do not pass flows to other modules.
Configuring the flow-monitoring service shows how to configure the Flow Monitoring service on the R1 vRouter, as shown in the example in the following figure.
To configure the Flow Monitoring service on R1, perform the following steps in configuration mode.
Step |
Command |
---|---|
Create a flow-monitoring exporter and specify the IP address and UDP port of the NetFlow collector. |
|
Create a packet selector named foo and specify a sampling size of 10 packets. The sampling rate in this case is 1:10, which means that the router randomly selects one packet from every 10 packets that flow through any data plane interface with which the selector is associated. |
|
Create a packet aggregator named foo and specify an expiration time of 1,800 seconds for active flows and 15 seconds for inactive flows. |
|
Connect the aggregator to the exporter. |
|
Configure the aggregation rule for the foo aggregator . |
|
Apply the foo selector and foo aggregator to the dp0s7 data plane interface. |
|
Commit the configuration. |
|
Save the configuration. |
|
Verify the configuration. |
|
Exit the configuration mode. |
|
Show exporter statistics. |
|