Dropped Packets and lag in Games

Discussion in 'Tomato Firmware' started by psin2005, Jul 22, 2007.

  1. psin2005

    psin2005 LI Guru Member

    Hey guys first off i wanna say i love tomato. its so much better than stock firmware. Anyway i'm happy with it except this one problem that i cant see to solve. I keep seeing dropped packets (i attached a ping long) and i keep freezing in online multiplayer games for like 5 secs every minute or so. I used the ping tool from within tomato and thats ok but the computers connected to tomato see dropped packets. I dont use torrents (maybe once in a couple of months for an ebook here and there). i'm not sure what it is but i hope the community here can help. (btw i did a search and didnt come up with any viable solution for the tomato firmware)

    Btw the dropped packets get even worse when its a large amount of information.

    (if the attachment doesnt work heres another link http://www.divshare.com/download/1336671-846 )

    Attached Files:

  2. JensG

    JensG Network Guru Member

  3. psin2005

    psin2005 LI Guru Member

    Attached Files:

  4. Mercjoe

    Mercjoe Network Guru Member

    Ok.. 1st of all, What game do you have lag issues with? I run 4 machines behind a router and all 4 have ZERO lag issues (I am on a 6mbps DSL connect) playing many different on-line games.

    On the first screenshot I see that you have a HUGE timeout on none and established. You may be loading up you router with dead connections as it will take a LONG time before they are dropped. I would recommend putting them more in the 120 seconds range.

    This coupled with the connect limit of 2000 may be the problem. What is the actual # of connections when you are lagging?
  5. psin2005

    psin2005 LI Guru Member

    Specifically i'm having about 5 sec lags every minute in FEAR in every server i go to. online and on lan servers as well (i have 10mbps cable) if i have one of my computers is hooked directly to the cable modem then it doesnt happen.

    Heres the screenshot of the connections


    edit: i made the appropriate changes that you suggested and i still get dropped packets in ping as well as the lag in fear.

  6. rcordorica

    rcordorica Network Guru Member

    some things I see:

    disable Spanning Tree Protocol
    disable inbound layer 7
    disable RIP unless u actually have RIP devices
    disable unneeded tracking/NAT helpers

    if u can, remove L7 QoS filters.

    might as well put maximum connections to 10240 (no reason not too)

    Every extra feature activates a module that u may not need.

    make sure you aren't logging too much information.
  7. rcordorica

    rcordorica Network Guru Member

  8. Mercjoe

    Mercjoe Network Guru Member

    Ok, FEAR in one that I play here as well. I play fine with no lag. Now all we have to do is try and replicate the problem.

    As rcordorica said, raise the connection limit. I would not max it personnally. You could overload the router if you do not have the memory and you REALLY load up the connections. I am on a WRT54G v2.2 and if I go over 5000 or so connections I have lagged and then crashed my router.

    I have all the NAT helpers on and they don't slow me down at all. Same with STP.

    more questions:

    Do you use QOS or is it disabled? If you use it, do you have a lot of rules?

    Are you using port forwarding?

    Do you use Static DHCP or dynamic DHCP? I have found that Static DHCP actually LOWERED my ping time. Anyone want to tackle THAT question?
  9. psin2005

    psin2005 LI Guru Member

    Thanx for all the help guys. Well 500 connections is more than enough for me. I am not logging too much and i disabled the bandwidth monitor as well. QOS is disabled and i only have one port range forwarded ATM, but UPnP is enabled. I still see dropped packets when i ping lets say google.com (cmd: ping google.com -l 56 -t) and some packets arent dropped but they have lag spikes (jumps from 29ms to like 300 ms)
  10. Mercjoe

    Mercjoe Network Guru Member

    Strange that you had to do all that to get your lag down. Particularly with the broadband connection you have.

    I have QOS running, bandwidth monitoring on with logging to a CIFS client, NAT helpers, basically the works and I have VERY low ping times on all computers.

    It sounds like we have some similar configurations except for the port forwarding. I get ping times at 16ms average with jumps to 18 or so from google.com with zero dropped packets for the 3 minutes I ran it.

    What model of router do you have? I am just curious as to what configuration differences there are for troubleshooting at a later date. There may be something buggy in the code and you only see it in certain configurations.

    You say that there is no problems when connected to your cable modem directly? I wonder if you have a bad ethernet cable from the modem to the router.
  11. ifican

    ifican Network Guru Member

    Minimal drops is nothing to worry about, i did a little test and had a few drops out of 200 to google but not enough to cause any grief. Could be simple that google only allows X amount of pings per second and there are lots of people in the world pinging google at once. Would be better to test to a little known server or a friends router to see if you see the same thing. I too play fear and it actually connects through 4 routers before going out to the internet and 1 is ddwrt and other is tomato. I have experienced the occasional game hangup but nothing out of the ordinary or even a daily occurence. Possibly try setting tomato back to defaults and seeing what happens there.
  12. psin2005

    psin2005 LI Guru Member

    hey guys i still get that lag. i have a wrt54g v2.1 w/ tomato 1.07. i tinkered w/ all the settings that were mentioned in the thread and the lag is still there. The lag gets worse the longer the router is on. If anyone can pm a screenshot of their settings i'd appreciate it. Anything else that i can try?
  13. bleagh

    bleagh Network Guru Member

    Two things I can think of to try.

    1) Try other firmwares (Thibor15c or DD-WRT) and see it u still have the problems.

    2) Double check with the a computer connected directly to the modem to make sure it IS the router.

    I'm having basically the same problem, but mine also happens when I connect directly to the modem (although my modem is a modem+router combo). Only thing I haven't yet tried yet on mine is putting my gaming computer as DMZ host. Which also may be worth a try, but you likely don't want to leave it that way as it opens up your computer to outside attack (attack from the internet...).

    My problems started when I switched to a new ISP. So I will very likely be changing ISPs yet again very soon.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice