LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-31-2018, 01:34 PM   #1
f4sx
LQ Newbie
 
Registered: Dec 2018
Posts: 2

Rep: Reputation: Disabled
Angry IRQ for the same source


Hello Friends ;

I have detected an issue on kernels. I have tested this problem with kernel 2.x to 4.9 on any kernel and all the results was same.

If a same source ip for ex : 185.99.22.33 start flooding packets to victim , let's say to victim B.
B's only one cpu core handling the issue. IRQ is not sending traffic to other cores.
Also i have tested this issue on :
Ubuntu 14.x
Cent os 6.x
Free bsd 7.2 and 10.x
even Juniper SRX 3600

But as far as i know mikrotik also uses kernel. But it over come the issue even it is installed on a hardware with same server :S

If you have a 24 core cpu (2x E5 2650v3) with dpdk maybe you decide that you should handle 24x 500.000 pps . In normal conditions
Voila it works .

But 2 attacker if spoof their ip addresses to one with sending udp packets from same spoofed source : 185.99.22.33

Than when it arrives 500.001 pps kernel crashes because of core stuck !

we have overcome the issue with a small script to block packet on ethernet card. But i want to know the technical cause and solution


Why dooe the irq not balancing ?
what is diffrent on mikrotik's kernel ?
Should we solve this by editing kernel to not handle on the same core from the traffics that comes from the same source ?

Last edited by f4sx; 12-31-2018 at 02:42 PM.
 
Old 01-01-2019, 06:48 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
You may need change scheduler to balance IRQ.
 
Old 01-01-2019, 06:51 PM   #3
f4sx
LQ Newbie
 
Registered: Dec 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by nini09 View Post
You may need change scheduler to balance IRQ.
It is sth. more like , it creates a session for each source than send all traffic for this session to same core.
Do you have docs. for the scheduler maybe you should be right , i will check ?
 
Old 01-02-2019, 02:31 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
Use the tc qdisc show command. The second field is the network scheduler. The default, pfifo_fast is basically first in, first out within a priority with higher priorities always going before lower priorities.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ISR mapping, Kernel IRQ to Real Processor IRQ Rajkamal Linux - Kernel 1 10-24-2012 08:28 AM
UNIQ IRQ and Shared IRQ...I want to make Shared IRQ routin chxooi Linux - Hardware 1 06-12-2010 07:30 AM
Wondering what "do_IRQ: .176 No Irq handler for vector (irq -1)" means 4restg Linux - Newbie 1 10-27-2009 02:41 AM
SCSI Errors when IRQ Shared - How do I not share IRQ MQMan Linux - Hardware 2 01-08-2006 11:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration