cisco · 36 стр.

Cisco Configuring Flexible NetFlow User Guide: Prereqs, Restrictions & Configuration Examples (EN)

Оригинальное название: Cisco Configuring Flexible NetFlow User Guide: Prereqs, Restrictions & Configuration Examples

Читать онлайн

Похожие инструкции

Содержание

Текст документа

Prerequisites for Flexible NetFlow

Configuring Flexible NetFlow Prerequisites for Flexible NetFlow, on page 1 Restrictions for Flexible NetFlow, on page 2 Information About Flexible NetFlow, on page 4 How to Configure Flexible Netflow, on page 20 Monitoring Flexible NetFlow, on page 32 Configuration Examples for Flexible NetFlow, on page 32 Feature History for Flexible NetFlow, on page 36 Prerequisites for Flexible NetFlow • You are familiar with the Flexible NetFlow key fields as they are defined in the following commands: match flow match interface match { ipv4 | ipv6 } match routing match transport • You are familiar with the Flexible NetFlow nonkey fields as they are defined in the following commands:

collect counter collect flow collect interface collect { ipv4 | ipv6 } collect routing collect timestamp sys-uptime collect transport collect policy Configuring Flexible NetFlow 1

Стр. 1

Restrictions for Flexible NetFlow

• The networking device must be running a Cisco release that supports Flexible NetFlow. IPv4 Traffic • The networking device must be configured for IPv4 routing. • One of the following must be enabled on your device and on any interfaces on which you want to enable Flexible NetFlow: Cisco Express Forwarding or distributed Cisco Express Forwarding. IPv6 Traffic • The networking device must be configured for IPv6 routing. • One of the following must be enabled on your device and on any interfaces on which you want to enable Flexible NetFlow: Cisco Express Forwarding IPv6 or distributed Cisco Express Forwarding.

Restrictions for Flexible NetFlow The following are restrictions for Flexible NetFlow: • Flexible NetFlow is not supported on the Layer 2 port-channel interface, but is supported on the Layer 2 port-channel member ports. • Flexible NetFlow is supported on the Layer 3 port-channel interfaces and member ports but not on both at the same time for the same traffic type and direction. • Flexible NetFlow Version 9 and Version 10 (IPFIX) export formats are supported. Flexible Netflow Version 5 Export Protocol is also supported. However, if you have not configured the export protocol, Version 9 export format is applied by default.

• Flexible Netflow without AVC and other NBAR or AVC enabled features cannot be configured at the same time on the same interface. Use AVC Flexible Netflow with these features. For information on how to configure AVC Flexible Netflow, refer "Configuring Application Visibility and Control in a Wired Network" section of the System Management Configuration guide. • Layer 2, IPv4, and IPv6 traffic types are supported. A unique flow monitor for each traffic type can be applied for a given interface and direction. Multiple flow monitors for the same traffic type cannot be applied to an interface in the same direction.

• Layer 2, VLAN, Layer 3 and SVI interfaces are supported, but the device does not support tunnels. • The following NetFlow table sizes are supported: • Depending on the switch type, a switch will have one or more forwarding ASICs, with multiple cores per ASIC. The capacities listed in the above table are on a per-Core/per-ASIC basis. Configuring Flexible NetFlow Restrictions for Flexible NetFlow Trim Level Ingress NetFlow Table Egress NetFlow Table Network Essentials 32 K 32 K Network Advantage 32 K 32 K Configuring Flexible NetFlow 2

Стр. 2

Restrictions for Flexible NetFlow

• The hardware NetFlow tables which exist on separate ASIC cores cannot be combined. Flows will be created in the table on the core which processed that packet. • NetFlow hardware implementation supports four hardware samplers. You can select a sampler rate from 1 out of 2 to 1 out of 1024. Both — random and deterministic — sampling modes are supported. • NetFlow hardware uses hash tables internally. Hash collisions can occur in the hardware. Therefore, in spite of the internal overflow Content Addressable Memory (CAM), the actual NetFlow table utilization could be about 80 percent. • Depending on the fields that are used for the flow, a single flow could take two consecutive entries.

IPv6 and datalink flows also take two entries. In these situations, the effective usage of NetFlow entries is half the table size, which is separate from the above hash collision limitation. • The device supports up to 15 flow monitors. • Ingress flows are stored in the ingress table for the corresponding ASIC and core that received the packets for that flow. Egress flows are stored in the egress table for the corresponding ASIC and core that sent packets for that flow. • The reported value for the bytes count field (called “bytes long”) is Layer-2-packet-size—18 bytes. For classic Ethernet traffic (802.3), this will be accurate. For all other Ethernet types, this field will not be accurate.

Use the "bytes layer2” field, which always reports the accurate Layer 2 packet size. For information about supported Flexible NetFlow fields, see 'Supported Flexible NetFlow Fields' topic. • Flexible NetFlow export is not supported on the Ethernet management port, GigabitEthernet 0/0. • When a flow record has only Source Group Tag (SGT) and Destination Group Tag (DGT) fields (or only either of the two) and if both the values are not applicable, then a flow will still be created with zero values for SGT and DGT. The flow records are expected to include source and destination IP addresses, along with SGT and DGT fields.

• On non-Cisco TrustSec interfaces, an SGT value of zero implies that there is no command header. On Cisco TrustSec interfaces, an SGT value of zero implies an unknown tag. • When a quality of service (QoS) marked packet is received on an interface which has NetFlow configured in the ingress direction, the QoS value of the packet is captured by the NetFlow collector. However, when the packet is received on an interface which has NetFlow configured in the egress direction and the QoS value has been rewritten on ingress by the switch, the new QoS value of the packet is not captured by the collector.

• For an IPv6 flow monitor, Source Group Tag (SGT) and Destination Group Tag (DGT) fields cannot co-exist with MAC address fields. • NetFlow records do not support MultiProtocol Label Switching-enabled (MPLS-enabled) interfaces. • Data capture based on MPLS label inside the MPLS network is not supported. Capture of IP header fields of an MPLS tagged packet is not supported. • Egress flow monitors do not capture flows that are egressing out in EoMPLS mode or in L3VPN Per-Prefix mode. • Flow exporter exports the flow data only after the template data time out period ends. Configuration changes such as VPN ID modification or VRF deletion will take effect after the time out period ends.

Configuring Flexible NetFlow Restrictions for Flexible NetFlow Configuring Flexible NetFlow 3

Стр. 3

Original NetFlow and Benefits of Flexible NetFlow

• A flow monitor cannot be shared across Layer 3 physical interfaces and logical interfaces (such as, Layer 3 port-channel interface, Layer 3 port-channel member, and switch virtual interface [SVI]), but a flow monitor can be shared across logical interfaces or Layer 3 physical interfaces. • When Flexible NetFlow and Network Address Translation (NAT) are configured on an interface, • Flexible NetFlow will display and export the actual flow details; but not the translated flow details. Application-level gateway (ALG) flow details are not part of the actual flow details that are exported.

• If the ALG traffic gets translated through the CPU, Flexible NetFlow will display and export the translated flow details for the ALG traffic. Information About Flexible NetFlow The following sections provide information about Flexible NetFlow. Flexible NetFlow Overview Flexible NetFlow uses flows to provide statistics for accounting, network monitoring, and network planning. A flow is a unidirectional stream of packets that arrives on a source interface and has the same values for the keys. A key is an identified value for a field within the packet. You create a flow using a flow record to define the unique keys for your flow.

The device supports the Flexible NetFlow feature that enables enhanced network anomalies and security detection. Flexible NetFlow allows you to define an optimal flow record for a particular application by selecting the keys from a large collection of predefined fields. All key values must match for the packet to count in a given flow. A flow might gather other fields of interest, depending on the export record version that you configure. Flows are stored in the Flexible NetFlow cache. You can export the data that Flexible NetFlow gathers for your flow by using an exporter and export this data to a remote system such as a Flexible NetFlow collector.

The Flexible NetFlow collector can use an IPv4 address. You define the size of the data that you want to collect for a flow using a monitor. The monitor combines the flow record and exporter with the Flexible NetFlow cache information. Starting with the Cisco IOS XE 16.12.1 release, Source Group Tag (SGT) and Destination Group Tag (DGT) fields over Flexible NetFlow are supported for IPv6 traffic. Starting with the Cisco IOS XE Dublin 17.12.1 release, Flexible NetFlow Version 5 is supported. Original NetFlow and Benefits of Flexible NetFlow Flexible NetFlow allows the flow to be user defined. The benefits of Flexible NetFlow include:

• High-capacity flow recognition, including scalability and aggregation of flow information. • Enhanced flow infrastructure for security monitoring and dDoS detection and identification. • New information from packets to adapt flow information to a particular service or operation in the network. The flow information available will be customizable by Flexible NetFlow users. Configuring Flexible NetFlow Information About Flexible NetFlow Configuring Flexible NetFlow 4

Стр. 4