Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
kb1
Collaborator

Would a checkpoint gateway start dropping traffic when it is constantly at 100 percent cpu?

So ive never seen a constant 100 percent cpu utilisation on our gateways (if it happens it happens for 1 minut max and that too on our 1100 appliances only) , what if there is constant 100 % utilisation? Will it start dropping traffic as it can no longer utilise cpu properly or does something else happen? just curious to know.

 

Thank You.

0 Kudos
6 Replies
PhoneBoy
Admin
Admin

Depends precisely on why it’s happening, but it’s a possibility.

0 Kudos
G_W_Albrecht
Legend
Legend

It really depends - e.g. in case of a DDoS, the WAN IF will drop packets. On the other hand, you can select what IPS should do if the GW is under heavy load: Either drop or do no inspection...

CCSE CCTE SMB Specialist
0 Kudos
Benedikt_Weissl
Advisor

Yes, it would start dropping traffic. The trick is to start dropping the right traffic, have a look at sk105762.

0 Kudos
G_W_Albrecht
Legend
Legend

To prevent DoS flooding in general, follow sk112454 - How to configure Rate Limiting rules for DoS Mitigation.

CCSE CCTE SMB Specialist
0 Kudos
Timothy_Hall
Champion
Champion

Like everyone else said it kind of depends, assuming that all CPUs are 100% (so both SND/IRQ and Firewall Worker cores are fully saturated) the buffers between the different components would start to fill up, and if they overflow packets would either start to be lost, or in some cases start causing a "backup" into the prior buffer component which could then overflow.  Note that while many of the buffers listed below can have their sizes increased from the default, generally doing so is NOT desirable as it is merely addressing a symptom of the problem (queue overflows), rather than dealing with the actual cause (queue not being emptied fast enough by the receiving component).

As a thought experiment, here is where I'd say the buffer points are that could overflow for a packet traversing a very busy firewall.  I'm sure I'm missing a bunch but these are the ones I can think of off the top of my head:

  • NIC hardware buffer for receiving frames
  • Gaia RX ring buffer (rx-ringsize)
  • CoreXL Firewall Worker input queue (enqueue) on firewall worker from SND (fwmultik_input_queue_len) - This queue can be actively managed by Priority Queues when utilization hits 100% as noted earlier
  • CoreXL Firewall Worker internal buffers between chain modules and such (I'm assuming...)
  • CoreXL Firewall Worker dequeue back to SND which probably has an input buffer (I'm assuming, can't find reference to this)
  • Gaia TX ring buffer (tx-ringsize, sim_requeue_enabled)
  • NIC hardware buffer for transmission

Only the CoreXL Firewall Worker input queue has active management available via Priority Queues, all other queues are just FIFO to my knowledge.  If the RX ring buffer is full and the NIC tries to put a new frame into it, certain NIC/driver combos will simply hold the frame and try again waiting for a ring buffer slot to open instead of just dropping it with a ++RX-DRP.  However this "hold" behavior can cause a backup into the NIC receive buffer, thus causing it to overflow (++RX-OVR) but the actual cause is a full RX ring buffer.  This specific "backup" condition is indicated by both RX-DRP and RX-OVR being incremented together in "lock-step" as mentioned in my book.  Most problems with loss tend to occur on the RX side with the first three components of the above list when bottlenecks occur, which then severely limits the speed at which packets can be pumped into the TX side components (last three items on the above list), so they don't tend to have problems in this area.

However buffering problems on the TX side are not completely unheard of, see sk75100: The 'ifconfig' / 'netstat' commands show that "TX drops" counter on the interface grows rap...

 

New 2021 IPS/AV/ABOT Immersion Self-Guided Video Series
now available at http://www.maxpowerfirewalls.com
kb1
Collaborator

Thank you everyone
0 Kudos