![]() | Note: Cflowd is supported only on the 7210 SAS-Mxp and 7210 SAS-Sx/S 1/10GE (standalone). |
This chapter provides information to configure the Cflowd tool.
Cflowd is a tool used to sample IPv4, IPv6, MPLS, and Ethernet traffic data flows through a router. Cflowd enables ISPs and traffic engineers to perform traffic sampling and analysis in order to support capacity planning, trends analysis, and characterization of workloads in a network service provider environment.
Cflowd is also useful for traffic engineering, network planning and analysis, network monitoring, developing user profiles, data warehousing and mining, and performing security-related investigations. Collected information can be interpreted in several ways such as in port, autonomous system (AS), or network matrices, and pure flow structures. The amount of data stored depends on the Cflowd configurations.
Cflowd maintains a list of router data flows. A flow is a unidirectional traffic stream defined by several characteristics such as source and destination IP addresses, source and destination ports, inbound interface, IP protocol, and Type-of-Service (TOS) bits.
When a router receives a packet for which it currently does not have a flow entry, a flow structure is initialized to maintain state information regarding that flow, such as the number of bytes exchanged, IP addresses, port numbers, AS numbers, and so on. Each subsequent packet matching the same parameters of the flow contributes to the byte and packet count of the flow until the flow is terminated and exported to a collector for storage.
Figure 12 shows the basic operation of the Cflowd feature. This sample flow only describes the basic Cflowd operation overview and is not intended to specify implementation and support on the 7210 SAS.
The logical sequence of Cflowd operation is as follows.
When a flow is exported from the cache, the collected data is sent to an external collector that maintains an accumulation of historical data flows, which network operators can use to analyze traffic patterns.
Data is exported in one of the following formats:
Figure 13 shows Version 5, Version 8, Version 9, and Version 10 flow processing.
As flows expire and are removed from the active flow cache, the export format is determined (either Version 5, Version 8, Version 9, and Version 10 record format) and one of the following processes occurs.
The sample rate and cache size are configurable values. The cache size is set up with the default number of entries.
A flow terminates when one of the following conditions is met.
There are several aggregate flow types including:
Version 8 is an aggregated export format. As individual flows are aged out of the raw flow cache, the data is added to the aggregate flow cache for each configured aggregate type. Each of these aggregate flows are also aged in a manner similar to the method the active flow cache entries are aged. When an aggregate flow is aged out, it is sent to the external collector in the Version 8 record format.
The Version 9 format is a more flexible and allows for different templates or sets of Cflowd data to be sent based on the sampled traffic type and the configured template set.
Version 9 is interoperable with RFC 3954, Cisco Systems NetFlow Services Export Version 9.
Version 10 is a new format and protocol that interoperates with the IETF specifications described in the IP Flow Information Export (IPFIX) standard. Like Version 9, Version 10 uses templates to export different data elements for a flow and handle different types of data flows, such as IPv4, IPv6, and MPLS.
Version 10 is interoperable with RFC 5150 and RFC 5102.
Figure 14 shows the process to configure Cflowd parameters.
Cflowd can be enabled to sample traffic on a specific interface in the Cflowd interface mode. In this mode, all traffic entering a specific port is subject to sampling as the configured sampling rate.
The following Cflowd components must be configured for Cflowd to be operational.