Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jun 2001 12:41:52 -0700 (PDT)
From:      Jesper Skriver <jesper@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netinet tcp_input.c
Message-ID:  <200106061941.f56Jfqf74472@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jesper      2001/06/06 12:41:52 PDT

  Modified files:
    sys/netinet          tcp_input.c 
  Log:
  Silby's take one on increasing FreeBSD's resistance to SYN floods:
  
  One way we can reduce the amount of traffic we send in response to a SYN
  flood is to eliminate the RST we send when removing a connection from
  the listen queue.  Since we are being flooded, we can assume that the
  majority of connections in the queue are bogus.  Our RST is unwanted
  by these hosts, just as our SYN-ACK was.  Genuine connection attempts
  will result in hosts responding to our SYN-ACK with an ACK packet.  We
  will automatically return a RST response to their ACK when it gets to us
  if the connection has been dropped, so the early RST doesn't serve the
  genuine class of connections much.  In summary, we can reduce the number
  of packets we send by a factor of two without any loss in functionality
  by ensuring that RST packets are not sent when dropping a connection
  from the listen queue.
  
  Submitted by:	Mike Silbersack <silby@silby.com>
  Reviewed by:	jesper
  MFC after:	2 weeks
  
  Revision  Changes    Path
  1.131     +15 -2     src/sys/netinet/tcp_input.c


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106061941.f56Jfqf74472>