Sharp Lag Spikes

Discussion in 'Tomato Firmware' started by Chinchek, Jul 7, 2009.

  1. Chinchek

    Chinchek Addicted to LI Member

    Hey everyone, first i would like to thank you all for your hard dedicated work to help us less experienced users.


    The issue i am experiencing has to do with lag spikes while playing any game online and pinging reads *Request Timed Out* even when not gaming and when gaming.

    My diagnosing so far: I set myself to be the only one who is connected to the router, opened command prompt and pinged with an avg. 60ms ping. I open up the steam and play Team-Fortress 2, play for an hour or so and got hit by the lag spike (which last about 5-10 sec long, keep in mind this isn't a raid of spikes, its just one long one every 10min -1 hour). I quickly checked the cmd prompt for the ping and i shows 1-3 Request Interrupted in a row and sometimes a following 300-700ms ping then back down to 60ms avg.

    Called my ISP, they said could be a virus (so i scanned all computers, deleted whatever was found but nothing serious), they also said they arent having problems on their end. Then i disconnect myself from the router, and hook myself directly into the modem, played for 2 hours straight with beautiful latency.

    now i am wondering if its the router at fault. When my brother and i play games online, the lag spike happens more frequently (5-10 sec lag spike every 10-30min). We BOTH get hit by it at the same time and ends at the same time, but this time the cmd prompt pinging sometimes shows 1000-3000ms ping then back to 60ms avg.

    I never had this problem until i set-up an extra gaming computer for my brother, the same day i left for a 1month and half vacation overseas, so i dont know if the problem happened RIGHT after attaching that computer to the router.

    I also tried disabling wireless completely, disabling QOS but still getting the lag spikes.

    Yesturday i was playing a game online, my brother playing counter strike: source, and i was downloading a file on uTorrent (which was NOT on while doing my other tests) without QOS and received a lag spike with 3 Request interrupts in a row.


    Also while pinging (computer idle, no gaming, no computers online but mine) i get an *request timed out* and a following 1600ms ping.... i used ping plotter to trace route and it went through without problems.


    Any help will be greatly appreciated.

    **UPDATE: Im just sitting here watching the cmd prompt pinging with no game application, no p2p application, no other computer on but mine and i received an *Request Timed Out* :( :(!
  2. Toastman

    Toastman Super Moderator Staff Member Member

    Request timed out, and one ping delayed so much it was lost. Next, a packet delayed somewhat less time, then - back to normal. Sounds like the returning pings were stuck in a queue - could be anywhere in the path to google, or at your ISP waiting to be sent to your router. If you're not having any incoming data from ISP at that time, then it's unlikely to be the second. It may also be stuck in your own router waiting to go out to the web, but I expect you've checked that.

    I get this a lot here, it happens with tomato router or with a modem connected directly to the PC. I also have several ADSL lines, and they all lag at the same time.
  3. bogderpirat

    bogderpirat Network Guru Member

    what do the bandwidth meter and the loadavg on the overview page say at the time of lagging?
    do you have QoS operational?
    connected via wifi?
  4. Planiwa

    Planiwa Network Guru Member

    Might want to keep an eye on number of concurrent connections.
    Also, might want to reduce the number of connections attempted.
    As I understand Steam, you can only do this indirectly, by pretending your bandwidth is (much) lower than it actually is.

    The problem with connections is not that they rise gradually, but that certain events (server refresh?) result in catastrophic connection surges -- thousands in just a few seconds. Users may mistakenly assume that more is better, or may be oblivious to the magnitude of these connection surges resulting from default configurations.
  5. Chinchek

    Chinchek Addicted to LI Member

    The waves seem to drop all the way down while i get that long lag spike, and then back to normal. QOS is not on, and WiFi is disabled.

    I'm assuming i check the Connections under Advanced>Conntrack / Netfilter.
    As of now they are set at 4096.

    I am not sure if this is a way of diagnosing but i backed up my tomato configuration, erased the NVRAM (thorough) and restored it, opened cmd prompt *ping -5000 >ping.txt* over night without a single request timed out.
  6. TVTV

    TVTV LI Guru Member

    There you go! :) The magic solution. :)
  7. Chinchek

    Chinchek Addicted to LI Member

    lol you serious? i also wanted to make sure, so i pinged google with 200000 pings, few hours past and so far no Request timed out. :p
  8. Toastman

    Toastman Super Moderator Staff Member Member

    That must be a record for any connection, not a dropped ping in 205,000 ? I take off my hat....
  9. Chinchek

    Chinchek Addicted to LI Member

    haha sorry i meant, after my 5000 ping test, i am doing another test today with 200000 ping... i think its way to much but meh :p.
    well its still going with only 2 ping request time outs.. must be thousands of pings (file size of the 5000 ping test contains 268KB, the 200000 so far contains 1.42MB.. BUT i do still see some high pings in the thousands here and there (there are probably many but i am not gonna look through the whole thing).
    i wish there was a time stamp with the command prompt..
    i asked my brother if he experienced any lag during his gaming, he said yes but not like before. So i will have to test this out myself.. but unfortunately im at work and viewing my computer through Remote desktop..

    Update: Ew.. look at this found it deep in the 1.42 MB file
    Reply from bytes=32 time=701ms TTL=244
    Reply from bytes=32 time=917ms TTL=244
    Reply from bytes=32 time=471ms TTL=244
    Reply from bytes=32 time=1249ms TTL=244
    Request timed out.
    Reply from bytes=32 time=2894ms TTL=244
    Reply from bytes=32 time=603ms TTL=244
    Reply from bytes=32 time=608ms TTL=244
    Reply from bytes=32 time=121ms TTL=244

    i hope thats not from the router
  10. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    You can add timestamps to command output with awk:
    ping | awk "{ print strftime(\"%Y-%m-%d %H:%M:%S\"), $0; }"
    If you're on Windows and don't have awk installed, you can get it here.
  11. Chinchek

    Chinchek Addicted to LI Member

    thank you so much!!!
  12. Chinchek

    Chinchek Addicted to LI Member

    Ugh... i am still getting high lag spikes while gaming.... yesterday night i had 3 long ones in a row... does anyone know what can be causing this?

    I opened up Ping Plotter to see what happens when i get the lag spikes while gaming this morning, and this is the result:

    During the strip of red, the Avg. and Cur. column had the abbreviation Err (error?), i couldn't alt tab in time to get a more accurate screen shot.

  13. Chinchek

    Chinchek Addicted to LI Member

    does it look like i have to buy a new router?

    update: i am at work, Remote Desktop'ed to my computer at home. I have ping plotter and tomato bandwidth monitor open. At 5:06pm the wired signal dropped to 0 kb/s on the tomato bandwidth monitor, and the ERROR red strip appeared at 5:06 on ping plotter as well. BUT i didnt get disconnected from Remote Desktop (Teamviewer 4 to be exact)... Also, i am using Ping plotter as well to trace from the router to the modem my ISP provided, i look at the graph at 5:06 and didnt find any faults... what is going on here?!?!?
  14. Chinchek

    Chinchek Addicted to LI Member

    Any suggestions??? I don't want to have to buy a new router, this one is barely 5 Months old
  15. Chinchek

    Chinchek Addicted to LI Member

    I took the Modem my ISP provided me to their Kiosk for a modem swap. Installed the new one and now everything seems to be working great.. so far so good.
  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