Tomato Uptime question

Discussion in 'Tomato Firmware' started by ToyotaDave, Aug 3, 2009.

  1. ToyotaDave

    ToyotaDave Addicted to LI Member

    Does the uptime stat in tomato reflect the routers uptime or the internets? My internet service has been going off and on at random times but tomatos stats dont show that its every been off.
  2. fyellin

    fyellin LI Guru Member

    Haven't you already answered your own question?

    But yes, "uptime" is the amount of time since the router has been rebooted.
  3. ToyotaDave

    ToyotaDave Addicted to LI Member

    I might have lol but isnt there also a connection stat? Im not at home to look.
  4. rhester72

    rhester72 Network Guru Member

    Yes, WAN connection uptime is tracked separately.

  5. ToyotaDave

    ToyotaDave Addicted to LI Member

    Mine says

    Status Connected
    Connection Uptime 4 days, 21:05:19

    Is that for the internet signal itself? Mine has been going off and on for over a week now.
  6. fyellin

    fyellin LI Guru Member

    Twenty minutes of hunting in the source code and I'm still not sure what the "WAN Connection Uptime" is actually reporting. I have one router that's reporting 2 months of uptime, in spite of the fact that the router it's talking to was reflashed last week and so down for about fifteen minutes.
  7. mstombs

    mstombs Network Guru Member

    The Linux kernel stores uptime in

    cat /proc/uptime
    presumably something takes a copy and compares it later. Could be upset by ntp time updates?
  8. fyellin

    fyellin LI Guru Member

    Okay. Turs out I needed twenty-one minutes of hunting, though I'm still not completely enlightened.

    The time at which the wan is brought up is stored in /var/lib/misc/wantime. This variable is set by the method start_wan_done() in router/rc/wan.c. It is clear than a temporary outage doesn't reset this value.

    Someone else wiser than I am in understanding networking code is free to figure out who calls that function and why.
  9. Planiwa

    Planiwa Network Guru Member

    Really? "tomatos stats dont show that its every been off"?

    Have you looked at the Log lately?

    Have you considered checking "PPPoE Logging" in Administration > Logging?

    In the router's command interface:

    # date
    Tue Aug 4 15:25:30 EDT 2009
    # uptime
    15:25:34 up 22 days, 15:57, load average: 0.00, 0.06, 0.06
    # l /var/lib/misc/wantime
    -rw-rw-rw- 1 root root 4 Aug 3 03:12 /var/lib/misc/wantime

    The former tells you the system Uptime, the latter the time when the WAN connection was last restarted.

    or, if the WAN connection was never restarted, it will say this:

    # uptime
    15:29:40 up 1 day, 13:20, load average: 0.00, 0.01, 0.00
    # l /var/lib/misc/wantime
    -rw-rw-rw- 1 root root 4 Dec 31 1969 /var/lib/misc/wantime

    * * *

    Perhaps your router is not doing PPPoE? Perhaps it is misconfigured to get its "Internet" connection (via DHCP or "Static") from the modem which does PPPoE?

    In that case, the "internet" is the modem. And your "internet" is "up" so long as the modem is running.

    The "problem" is not with Tomato, which knows the difference between system uptime and Wan uptime. :)

    Many users do not know the difference between:

    * Modem or router System Uptime (since power-up or re-boot).
    * DSL Uptime (since Retrain, aka Resync, aka Showtime).
    * PPP Uptime (since last PPPoE login over the DSL Link to the Access Concentrator, into the ISP's account.)
    * some MS/PC problem or DNS problem, or long-haul problem, or far end problem that prevents them from accessing some server somewhere.

    It's all a case of "the internet is down", as far as they can tell.

    (If/when the Internet really is "down", that fact will be insignificant compared with the state of the planet, and life as we know it. ) :eek:
  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