Skip to main content
avenditti
Staff
Staff
February 27, 2024
Question

Identify the CPU that is handling a session

  • February 27, 2024
  • 3 replies
  • 1952 views

Hi community,

I have a FGT VM with one CPU (of 4) that reaches 100% peaks, while the others are idle. Due to the characteristics of the traffic I believe this is "normal" (there is a fixed session between 2 IPSec hosts that always use the same source IP/port and the same destination IP/port with over 800Mbps throughput, which is handled by a single CPU, while the other ones share the rest of the load). I believe this CPU is dropping packets because it can't handle the total amount of traffic, and I would like to demonstrate this to the customer, but how?

 

I can easily:

  • identify the single session (knowing its characteristics of src and dst) with 'diag sys session list'
  • show that one CPU is overloaded with 'diagnose sys performance status',

but how do I relate the session from the first command to the CPU status from the second command? How do I show that there is packet loss?

Could you suggest some commands that highlight these aspects?

thanks guys,
Angelo

3 replies

AEK
SuperUser
SuperUser
February 27, 2024

Hi Angelo

I think you should be able see packet loss if you use "fnsysctl ifconfig" and look into the tunnel interface and the WAN interface's output (errors, dropped).

You may also check if there is packet loss on SD-WAN (if applicable), with "diagnose sys sdwan health-check".

Following tech tip may also help to distribute IPsec across multiple cores.

https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-distribute-IPsec-traffic-to-all-CPU-cores/ta-p/204727

Hope it helps.

AEK
avenditti
Staff
avendittiAuthor
Staff
March 4, 2024

Hi AEK,

 

from your debug command I didn't find a direct session - CPU relationship but the information on the KB is very useful can help me with my problem... so good to know.

 

Thank you for your answer

spoojary
Staff
Staff
March 4, 2024
Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!