Managing High-Bandwidth Single-Flow UDP Streams & Packet Buffer Protection on Palo Alto Networks NGFWs

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Managing High-Bandwidth Single-Flow UDP Streams & Packet Buffer Protection on Palo Alto Networks NGFWs

L2 Linker

Hello Live Community!

Have you ever encountered a scenario where a single, high-bandwidth UDP stream (an "elephant flow") caused a spike in your firewall's packet buffer utilization? When migrating workloads or upgrading hardware, understanding how the data plane processes these massive single-pass streams is critical to maintaining peak performance and network stability.

 

This article provides an architectural breakdown of how Palo Alto Networks Next-Generation Firewalls (NGFWs) handle single-flow UDP streams, details how to leverage Packet Buffer Protection (PBP), and outlines a step-by-step workflow to safely offload trusted flows.

 

Technical Prerequisites & Architectural Context

  • Single-Core Flow Pinning: Standard Layer 3/Layer 4 session hashing maps identical IP 5-tuples to a single data-plane processing core/flow engine. Consequently, a single multi-gigabit UDP stream cannot be load-balanced across multiple cores.
  • UDP Behavior & Content Inspection: Unlike TCP, UDP lacks built-in windowing or flow control. When Security Profiles (Threat Prevention, IPS, Anti-Spyware) are attached to an unclassified (unknown-udp) multi-gigabit flow, packets are held in descriptor queues awaiting Content Inspection / Pattern Matching (the CTD engine)—particularly during abrupt session teardowns and immediate restarts.
  • Gen5 Hardware Considerations: Gen5 NGFWs with upgraded ASIC pipelines, higher single-thread clock speeds, and substantially larger packet descriptor pools. However, hardware upgrades alone do not eliminate single-core processing constraints if payload scanning remains enabled on a single multi-gigabit unclassified UDP stream.

 

  • Zone/DoS Protection vs. Packet Buffer Protection (PBP):
    • Zone & DoS Protection: Primarily mitigate flood rates (e.g., PPS spikes of new sessions) and will drop ingress packets early rather than helping inspect legitimate, established elephant flows cleanly.
    • Packet Buffer Protection (PBP): Actively protects the firewall from device-wide lockups by applying Random Early Drop (RED) or drop/block actions to an offending elephant session once shared buffer utilization (or latency) crosses its threshold .

Option 1 (Recommended): Offload Trusted Elephant Flows via Custom App-Override

When a multi-gigabit UDP stream comes from a known, trusted internal or telemetry source and does not require Layer 7 payload inspection, offloading the flow to hardware FastPath eliminates descriptor queue buildup and achieves line-rate throughput with zero buffer stress.

Step 1: Create a Custom Application Object

Note: Do not use the predefined unknown-udp system application in an App-Override policy; always define a dedicated custom application object.

  1. Navigate to Objects > Applications and click Add.
  2. Name the custom application (e.g., custom-high-bw-udp-stream) and assign an appropriate Category, Subcategory, and Technology (e.g., network-protocol).
  3. Under Advanced > Defaults, select Port and specify the exact protocol and destination port (e.g., udp/<port>).
  4. Click OK.

Step 2: Configure the App-Override Policy

  1. Navigate to Policies > App Override and click Add.
  2. On the General tab, provide a descriptive rule name (e.g., Offload-Telemetry-UDP-Flow).
  3. On the Source and Destination tabs, restrict the rule strictly to the known source/destination zones and IP addresses of the elephant flow.
  4. On the Protocol / Application tab, select the custom application created in Step 1 (custom-high-bw-udp-stream).
  5. Click OK and move the rule above broader App-Override rules if applicable.

Step 3: Commit and Verify FastPath Offload

  1. Click Commit in the top-right corner of the WebUI.
  2. Once active, verify via the CLI that the session is identified as your custom application and successfully offloaded to hardware without CTD inspection overhead:


show session all filter application custom-high-bw-udp-stream

 show running resource-monitor

 

Option 2: Tune Packet Buffer Protection (PBP) Thresholds

If you must keep Layer 7 inspection enabled, or need to prevent premature drops during brief micro-bursts while keeping global firewall stability intact, tune Packet Buffer Protection rather than disabling it . Disabling PBP altogether allows packet buffers to reach 100% utilization, risking device-wide unresponsiveness and impacting all legitimate production traffic.

Adjust Zone-Level Packet Buffer Protection

  1. Navigate to Network > Zones and select the ingress zone receiving the high-bandwidth traffic.
  2. Under Packet Buffer Protection, enable Packet Buffer Protection (or verify your assigned Zone Protection Profile) .
  3. Navigate to Device > Setup > Session > Packet Buffer Protection to review or tune the global thresholds and timers :
    • Alert (%): The threshold (default 50%) at which the system starts logging buffer utilization alerts .
    • Activate (%): The threshold (default 80%) at which the firewall actively applies Random Early Drop (RED) to the packets of the most abusive sessions .
    • Block Countdown Threshold (%): The threshold (default 80%) that starts the countdown timer before a blocking action is implemented . Best practice is to configure this 10% lower than your Activate threshold (e.g., 70%) to gracefully trigger host blocking before buffer saturation peaks.
    • Block Hold Time (sec): The duration (default 60s) an offending session is allowed to continue under RED mitigation before the firewall blocks the session or quenches the source IP .
    • Block Duration (sec): The quarantine period (default 3,600s) during which the offending session remains discarded or the source IP address is blocked .Click OK and Commit the changes.
0 REPLIES 0
  • 39 Views
  • 0 replies
  • 1 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!