Re: Handling 100.000 packets/sec or more

_at_babolo.ru
Date: 01/15/04

  • Next message: Scot W. Hetzel: "Re: Installing frontpage doesn't create shtml.exe"
    To: Adrian Penisoara <ady@freebsd.ady.ro>
    Date: Thu, 15 Jan 2004 03:11:30 +0300 (MSK)
    
    

    I administer some home networks with 200..500 users on port
    and 5..12 ports on each router.

    The trouble is that router can't do somethig useful when
    link saturated. The only effective way found is
    2..3 mb/s restriction _from_ every user on each switch port

    PS
    typical router has Tyan 2466N-4M mobo with one Athlon XP 2400+
    512M (a lot of pipes) and FreeBSD 4 STABLE.
    DragonFlyBSD looks good but I haven't any in production yet.

    FreeBSD 5 is not production quality (last test about one mounts ago).

    > At one site that I administer we have a gateway server which services
    > a large SOHO LAN (more than 300 stations) and I'm facing a serious
    > issue: very often we see strong spoofed floods (variable source IP and
    > port, variable destination IP, destination port 80) which can go as far
    > as 100 000 packets/sec!
    >
    > Of course, the server (FreeBSD 5.2-REL, PIII 733Mhz, 256Mb RAM, 3COM
    > 3C905B-TX aka xl0 with checksum offloading support) has a hard time
    > swallowing this kind of traffic. The main issue are the IRQ interrupts:
    > over 15000 interrupts/sec which consume more than 90% of the CPU time.
    > We got ingress filtering so the packets go no further than the firewall
    > (which, BTW, is not the issue, even disabling it it's the same problem).
    > The system is still responsive but the load average goes as high as 10
    > and the interface is losing packets (input errors) which dramatically
    > affects legitimate traffic, besides mbuf(9) starvation. We are taking
    > down the culprit clients, but this takes time and we need the other
    > clients not to be affected by it.
    >
    > What can I do to make the system better handle this kind of traffic ?
    > Could device polling(8) or just increasing the kernel frequency clock to
    > 1000Hz or more improve the situation ?
    > What kind of network cards could face a lot better this burden ? Are
    > there any other solutions ?
    >
    > On a side note: what would be a adequate formula to calculate the
    > NMBCLUSTERS and MBUFS we should set on this server (via boot-time
    > kern.ipc.nmbclusters and kern.ipc.nmbufs) ?
    >
    > --
    > Adrian Penisoara
    > Ady (@freebsd.ady.ro)
    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"


  • Next message: Scot W. Hetzel: "Re: Installing frontpage doesn't create shtml.exe"

    Relevant Pages

    • Re: Using Remote Desktop From an SBS Domain
      ... when you tried to RDP while attached directly to a port on your router? ... So if 3389 needs forwarded on the client end too then that is what the ... Hopefully next week I can attempt a connection while my ISP watches the ...
      (microsoft.public.windows.server.sbs)
    • How did they get behind my NAT?
      ... this point I panicked and shutdown the VNC service ASAP. ... My question is how the attacker got to my VNC port! ... the internet through the router. ... client connection using local port number 5900 (which was also being ...
      (alt.computer.security)
    • Re: Connecting to Home Computer
      ... cannot transmit IP packets outside the local network). ... assigned by your router. ... You have to add the port too, ... Determine the ports (pcAnywhere uses 5631 for DATA, 5632 for STATUS, I ...
      (microsoft.public.windowsxp.work_remotely)
    • RE: [Full-Disclosure] Microsoft urging users to buy Harware Firewalls
      ... connections between multiple computers. ... A Linksys NAT router box is selling for only $40 at Amazon ... Besides protecting against the MSBlaster worm, a hardware ... Then the user finds about port forwarding, and as soon as the user ...
      (Full-Disclosure)
    • Re: Routers Firewall
      ... > AFAIK most firewall fitted routers do not allow incoming connections by ... > to connect to a port your public IP address the router would reject the ... > router you may be vulnerable. ... > An open port on the router could be connected to a service running on the ...
      (comp.security.firewalls)