buglwIP - A Lightweight TCP/IP stack - Bugs: bug #39565, Server "ddosed" by PCBs...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #39565: Server "ddosed" by PCBs in LAST_ACK state

Submitted by:  Roman Trunov <thestream>
Submitted on:  Thu 25 Jul 2013 09:43:18 AM UTC  
 
Category: TCPSeverity: 3 - Normal
Item Group: Change RequestStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: 1.4.1

Wed 18 Feb 2015 08:32:48 PM UTC, comment #1:

Fixed, thanks for the hint.

Independently of this bug, I've changed the deallocation scheme prefer killing LAST_ACK, but explicitly killing LAST_ACK (and CLOSING) independent of the prio (no data is lost) seems like a better idea.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Thu 25 Jul 2013 09:43:18 AM UTC, original submission:

Our device is a server which suddenly stopped responding. LWIP on the device was configured for 10 PCBs for incoming connections. We found that all 10 PCBs were active in "LAST_ACK" state, so no more incoming connections could be accepted.

Regardless of the reason caused last ACK to be lost (e.g. improperly configured NAT/firewall on the way), bad thing is that server becomes completely blocked for 120 seconds (default TCP_MSL * 2) until one of PCBs expires.

Although I could make some kind of workaround by reducing TCP_MSL to e.g. 5 seconds, I suggest to implement more aggressive strategy for PCB allocation - reuse LAST_ACK PCBs in the similar way like we already handling TIME_WAIT pcbs.

Roman Trunov <thestream>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by thestream (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 18 Feb 2015 08:32:48 PM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1