Elephant Flow Detection
Cisco Secure Firewall Elephant Flow Detection
Language: English | 日本語
Introduction
This document discusses the elephant flow detection and throttling features in release 7.2 of the Cisco Secure Firewall Threat Defense. An elephant flow is a long-lived connection and is generally quite large in the number of bytes transferred.
Elephant flows are important because they can potentially consume an inordinate amount of CPU resources. This can impact other competing flows for detection resources and cause issues such as increased latency or packet drops.
Release 7.1 introduced elephant flow identification and monitoring with Snort 3. The configuration shown here requires both Firewall Management Center (FMC) and Threat Defense 7.2 or later, with Snort 3 on the managed devices. In this deployment, Elephant Flow Settings replaces Intelligent Application Bypass and lets you configure detection and optional remediation by bypassing inspection or throttling eligible flows.
In this document, the terms flow and connection are used interchangeably and mean the same thing – packets flowing between a source and destination host.
Configuration
Elephant flow detection and remediation can produce these outcomes:
- Alerting - by adding a note to the Reason field in a connection event.
- Flow bypass* - when remediation criteria are met, you can bypass inspection for all eligible applications, including unidentified traffic, or only for traffic matching selected application criteria.
- Flow throttling* - the system can rate-limit the flow while continuing to inspect it. Reducing the processing load can help prevent issues such as increased latency or packet drops.
Note* Firepower 2100 Series devices can detect elephant flows. Bypass and throttling are unavailable on this series.
When a flow is identified as an elephant flow, an applicable connection event can show Elephant Flow in its Reason field. Enable connection logging as described below to see this information.

Unified Events View
Elephant flow detection is enabled by default. In the default settings shown below, the flow size must exceed 1024 MB (1 GB) and its duration must exceed 10 seconds. Detection applies to eligible unencrypted traffic that reaches Snort. Encrypted traffic and flows that bypass Snort, including prefiltered, trusted, and fast-forwarded flows, are outside the detection scope.
NoteEnabling elephant flow detection alone does not generate additional connection events. To see the Elephant Flow notation in FMC, enable connection logging in the applicable access control rules. For example, enable logging in selected rules or use a logging Monitor rule for the traffic you want to observe.
To view or configure additional settings, follow the steps below.
Step 1: Navigate to Policies -> Access Control and edit your Access Control policy.
Step 2: Click the Advanced tab and then click the pencil icon next to Elephant Flow Settings. The Elephant Flow configuration dialog will appear.

Elephant Flow Default Dialog
The default setting enables detection only. You can adjust the flow size and duration thresholds. To configure a remediation action, enable Elephant flow Remediation.

Elephant Flow Remediation Enabled
When a flow meets the remediation criteria, the system applies the configured bypass or throttle action. A bypassed flow continues without Snort inspection. A throttled flow continues to be inspected, at a reduced rate. The system reduces the flow throughput in 10% increments until CPU utilization falls below the configured threshold.
Remediation can take effect after the system identifies an elephant flow and detects Snort duress under the configured criteria. If the matching Allow rule has an intrusion policy, Snort processes the flow under that policy before applying the remediation action.
To understand how flows are handled, see the flow diagram below.

Elephant Flow Diagram
There are a couple of items worth highlighting in the flow diagram. First, note that no action will be taken unless a Snort duress condition is detected. This means Snort is having trouble processing all the flows/packets on a particular inspection thread. The system will not throttle or bypass a flow just because it’s large. Also, the actions of throttle and bypass are mutually exclusive. This means you can either bypass or throttle a flow but not both.
Configure the CPU utilization and packet drop thresholds and the fixed time window under Elephant flow Remediation. The system derives CPU utilization for each elephant flow from its latency and measures packet drops per CPU. When the flow CPU utilization and the packet drop percentage on that CPU both exceed their configured thresholds within the time window, the system applies the action enabled for that flow.
You can restrict bypass to specified applications and optionally throttle other eligible elephant flows that are causing duress. The selected applications skip further Snort inspection when bypassed. Flows that the system throttles continue to be inspected at a reduced rate. If you enable bypass for all applications, including unidentified applications, throttling is unavailable.
Enable Bypass the flow and choose Select Applications/Filters to limit which eligible flows bypass inspection. In the following example, bypass is configured for applications with low risk and high business relevance.

Application Selection Dialog
Select the applications and return to the main dialog. To throttle the remaining eligible flows that are causing duress, enable Throttle the remaining flows as shown below. Click OK, save the access control policy, and deploy the changes.

Elephant Flow with selected bypass
Once you have your Elephant Flow settings configured you should monitor your connection events to see if any flows are detected, bypassed or throttled. You will see this in the Reason field of your connection event. The three Reasons for Elephant Flow connections are:
- Elephant Flow
- Elephant Flow Throttled
- Elephant Flow Trusted
To see elephant flow information in the connection events, verify that the applicable access control rules have connection logging enabled. Elephant Flow in a mid-flow event indicates detection. A subsequent event can report Elephant Flow Throttled or Elephant Flow Trusted when the system takes that action.
Summary
In release 7.2, the elephant flow settings enable detection and optional remediation for eligible Snort 3 flows. Use bypass filters to select which flows may skip further Snort inspection. Throttle other flows causing duress to reduce their throughput while maintaining inspection.
📚Additional Resources
Updated 5 days ago
