Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
Networking Wireless Networking Hardware

Why Do We Have To Restart Routers? 936

jaypaulw writes "I've owned a WRT54G, some cheap D-Link home Wi-Fi/firewall/routers, and now an Apple Airport Extreme (100/10 ethernet ports). In the context of the discussion about the worst uses of Windows — installation in places where an embedded device is superior — I've gotten to wondering why it's necessary to reboot these devices so frequently, like every few days. It seems like routers, purpose-built with an embedded OS, should be the most stable devices on my network."
This discussion has been archived. No new comments can be posted.

Why Do We Have To Restart Routers?

Comments Filter:
  • My theory... (Score:3, Interesting)

    by Anonymous Coward on Saturday July 12, 2008 @07:47PM (#24167693)

    I base this on absolutely nothing, but my primary suspect is the cheapskate power supplies that these devices come with. However I've never cared enough to test it out.

  • My router (Score:2, Interesting)

    by tristian_was_here ( 865394 ) on Saturday July 12, 2008 @07:50PM (#24167727)
    I got my Belkin router about 4 years ago it runs great I can get about 3-6 weeks uptime before I have to manually pull the power cord because it crashes.

    Its still going good and strong though!
  • It shouldn't be... (Score:5, Interesting)

    by evilviper ( 135110 ) on Saturday July 12, 2008 @07:57PM (#24167809) Journal

    I've gotten to wondering why it's necessary to reboot these devices so frequently, like every few days.

    It's cheap, fast development... Not bothering to pay attention to correctness, not watching for memory leaks, etc., etc.

    It shouldn't be that way, of course. I got an old K6-2 system, underclocked it to 100MHz, removed CPU fan and replaced the PSU fan with a very slow and quiet model to make a nearly-silent 8watt system. Then installed OpenBSD on a 32MB CF card (stripped of unnecessary binaries for size, but otherwise completely normal), and have been using that for years. It will run indefinitely, without a reboot. My record for uptime so far is 5 months, and it's only that short because of power outages, and I don't feel the need for a UPS for my router...

    It seems like routers, purpose-built with an embedded OS, should be the most stable devices on my network.

    There's nothing about being "an embedded OS" that should make it any more or less stable.

  • BitTorrent?? (Score:4, Interesting)

    by Anonymous Coward on Saturday July 12, 2008 @07:58PM (#24167817)

    I had a WRT54GX for years that never needed a reset, until I started using BitTorrent. Then its 4KB (?) connections table would fill up and the device would hang. Had to build an OpenBSD firewall to handle the many active and inactive connections you get with BT.

  • by Kattspya ( 994189 ) on Saturday July 12, 2008 @07:59PM (#24167831)
    I've used some Zyxel router that needed restarting every few days until I found out the maximum amount of open connections and bandwidth it could take then it usually only crashed once a month.

    Now I've got an old PII with a CF as HDD running monowall and maximum uptime so far is about two months. It would appear that the modem is more flaky than the router so I've restarted it needlessly a few times. I'm inclined to think it's hardware causing problems when the router crashes on its own. It's a bare motherbord sitting ontop a cabinet with four NIC's (I had an abundance of NIC's but no switch) and it gets a bit jangled from time to time in its exposed position. I'm amazed that it works at all.

    Try to limit the amount of open connections if you're running bittorrent and maybe the bandwidth too. If that doesn't help you should probably build your own router. m0n0wall works for me and I've heard good things about IPCop.
  • by irlyh8d2 ( 1241290 ) on Saturday July 12, 2008 @08:00PM (#24167843)

    I just use a cheap Pentium 2 running Windows XP with Internet Connection Sharing. Disabled the automatic updates and firewalled it properly over 18 months ago, and haven't had to touch the machine since.

  • Re:TCP Timeout (Score:4, Interesting)

    by sr. bigotes ( 1030382 ) on Saturday July 12, 2008 @08:09PM (#24167925)
    That sounds like an excellent candidate. These cheap home routers have very small routing tables (probably less than 512 entries for the WRT54G). If they're not ejecting old entries because of these extremely long timeouts and the table fills up, you're not going to be able to connect to anything new.
  • by Anonymous Coward on Saturday July 12, 2008 @08:17PM (#24168005)

    This is due to a combination of poor programming, and poor hardware designs.

    Most properly designed routers have a hardware watchdog timer, which must be periodically written to in order to prevent an automatic reboot.

    When I cut my teeth on Embedded/Small system programming, decades ago, we were taught the reboot button is a bad thing.

    In fact, for our final project , we had to design a "mission critical" system, where the reset button was DISABLED. Instructors would initiate a prohibited condition, and the software had to automatically reboot and restart from a SAFE [not default] state.

    Any system which did not enter a SAFE state, FAILED [and so did the student].

    They don't teach classes like that anymore, in favor of things like Java, which lets students forget about the "hard" stuff.

    Its all fine and dandy to have a nice real-time OS, but it isn't worth anything if the core programs its running are programmed by a bunch of java jockeys used to letting other people do the "hard stuff".

  • by Anonymous Coward on Saturday July 12, 2008 @08:19PM (#24168013)

    I also have a buffalo router with dd-wrt which I have never rebooted. To add to that, I have two WRT54G's at my parents place that used to give them trouble (and they would call me) all the time. Since I installed dd-wrt on them I have not heard about any issues.

    But really, I can't say im surprised as it runs on Linux.

  • by jd ( 1658 ) <imipak@yahoGINSBERGo.com minus poet> on Saturday July 12, 2008 @08:28PM (#24168091) Homepage Journal
    ...for a router to require rebooting are memory leaks (especially for the routing tables or ARP tables), buffer overflows (same), a portscan or other attack - say by a zombie or skriptkiddie - putting the system into an unrecoverable state (eg: resources exhausted), or a kernel (likely driver) bug putting the kernel into an unrecoverable deadlock. There's almost nothing else that can possibly go wrong in a software router, at least to the point of locking the system up.

    Ok, the router software - likely ripd, xorp, quagga or zebra for any domestic ADSL router - might crash, but the worst that will happen then is that you don't learn new routes. Since DSL providers don't tend to switch their internal IP addresses very often, that should not impact any existing subnet. It means tunnels can't be generated on-the-fly, it also means your next-door neighbor can't connect their LAN party to your wireless connection, but it shouldn't impact you in the slightest.

    The next question, however, is how on Earth are you noticing the router needs rebooting? The kernel is quite capable of rebooting itself under many (but not all) soft lockups. Linux provides several such mechanisms for doing just that. A simple watchdog circuit, using a bistable circuit, a couple of capacitors, a relay and a trigger line that has to change state, could be added by a manufacturer for maybe a couple of dollars. It probably doesn't even need to be that complex.

    When it does reboot, LinuxBIOS is under 3 seconds and I don't imagine OpenBIOS is that much slower. Intel's Tiano probably is, but it's open source so you can rip out anything that's useless. Therefore, recovery times should be barely detectable to an end user. (Most websites vary in download times by more than 3 seconds between visits. Unless you're playing Netrek or WoW at that precise moment, I seriously doubt you'll notice a 3 second outage.)

    Finally, however, why isn't the router using carrier-grade software? Again, carrier-grade Linux exists, which should give you 5N uptimes in the worst possible case. Domestic routers are not worst-possible. Even data centers rarely get the kind of stress that could be expected to force an unrecoverable state. If your router is not overheating, has plenty of RAM, and needs rebooting more than once every other year, there is something seriously defective in the software or hardware.

  • Re:Install OpenWRT. (Score:1, Interesting)

    by Anonymous Coward on Saturday July 12, 2008 @08:33PM (#24168137)

    Uh... is there an open source driver for the broadcom chipsets the linksys uses then? I got a wrt54gl thinking it was a good choice - it had "linux" written on it! - but turns out there wasn't any open source driver for it, so openwrt was using linux 2.4 and the closed binary, which really sucked. Shrug.

  • by nuintari ( 47926 ) on Saturday July 12, 2008 @08:53PM (#24168285) Homepage

    mod parent up, as I came here to say that.

    Also, the Linksys WRT54G up to version 4 was a fine router, plenty of memory, ran Linux, was very stable. Then Linksys decided that quality wasn't nearly as important as driving me batshit insane, and we started getting tons of complaints about users needing to reboot Linksys routers, which came _highly_ recommended from the geek squad over at worst buy.

    The modern WRT54G, and anything past version 4, that doesn't have an 'L' in the name is an utter piece of crap, firmware revisions to the VXworks OS they now run have helped, but they are still lockup city.

  • by bangthegong ( 1190059 ) on Saturday July 12, 2008 @08:54PM (#24168289)
    I have to agree on the first point about power. i have experienced that power has a big impact on stability, especially on linksys. I have had several linksys devices (WRT54G, WAP54G, WRT150N) and they all got flaky when too many devices were powered from the same outlet (I have a multiple monitor setup with a KVM and multiple computers). Moving these routers to another outlet in all cases helped, but it unfortunately was not convenient. I didn't try a UPS, but that seems logical. I have found that my Airport Extreme is less sensitive to the power on the same outlet. So I repurposed the Linksys devices, and keep the Airport near my desk, but lesson learned.
  • by badasscat ( 563442 ) <basscadet75@@@yahoo...com> on Saturday July 12, 2008 @08:59PM (#24168329)

    Also, the Linksys WRT54G up to version 4 was a fine router, plenty of memory, ran Linux, was very stable.

    Yeah, I have a 1.1, which I didn't even know until right now (checked the sticker), and I don't think I've rebooted that thing once in the entire time I've owned it. It's been running continuously right now for at least six months 24/7, and before that had a stint of probably 2 years uninterrupted. (I was forced to use Verizon's POS FiOS router for a little while.)

    I was about to leave a comment wondering what the hell the submitter was talking about, because to me the WRT54G is probably the most stable router that exists. It really couldn't *be* anymore stable. But I didn't realize there were such problems with version 4 and above.

  • by thegrassyknowl ( 762218 ) on Saturday July 12, 2008 @09:05PM (#24168371)

    All the Linux-based ones (decidedly few, admittedly) I have seen use the same DNS proxy (dnsmasq). I guess it's just not perfectly stable but I haven't seen a reboot anymore than once every few months.

    I gave up on mine and turned it into a dumb PPPoE bridge. An OpenBSD box at the border handles the dirty guff of PPP sessions and NAT. Now my connection is perfectly stable and the modem never needs to be rebooted. To top it all off I trust the BSD box and the firewall I created on it more than I trust the router to do it properly.

  • Re:My theory... (Score:4, Interesting)

    by Cramer ( 69040 ) on Saturday July 12, 2008 @09:07PM (#24168393) Homepage

    The AC adapters they've bundled in recent years are smaller than a deck of cards, yet I'm supposed to believe that they can put out 3 amps of current at 5VDC indefinitely?

    Yes and no. Yes, a power supply the size of 2 US quarters can (and does) generate stable 5VDC@3A forever provided you never exceed specs (lightning, bath tubs, overheating, etc.) However, these things cost more than the pennies cheap hardware makers are willing to put into the process. They go as cheap as possible... huge coil of chinese wire (read: transformer), a diode, capacitor, and regulator (ala 7805) (if it's a "good" one.) [Note: most cheap hardware has the regulator in the unit, not the wall-wart.] [Note 2: USR/3com is even cheaper... the wall-wart is 100% transformer. It turns 120AC into 20AC.]

  • by Anonymous Coward on Saturday July 12, 2008 @09:11PM (#24168427)

    My router (D-link) used to require rebooting at odd intervals till I found out my dual 2.4 mhz cordless phone set was locking it up. Got a 5.8 gig phone set, no further problems (except for power outages).

  • by bwy ( 726112 ) on Saturday July 12, 2008 @09:14PM (#24168451)

    Funny, I think everyone here has had to reboot their router to solve problems in the past. But, in typical slashdot fashion, 99.9 percent of the posts are people telling the author of the question that he is stupid, lacks intellectual ability, must be a high school drop out, or has some bastardized sexual persuasion that prevents his router from working.

    As you say, it could be an unrelated issue that resetting the state machine fixes. In this case though I guess I superior device could do this on its own.

  • by ckaminski ( 82854 ) <slashdot-nospam.darthcoder@com> on Saturday July 12, 2008 @09:22PM (#24168523) Homepage
    What I've noticed sometimes is that I need to reboot my Cablemodem to get a new ip address, and then MIGHT have to kick the router, but I NEVER have to reboot my router without also rebooting the cablemodem.

    Sometimes comcast flips my IP and the modem can't keep up with it.
  • by aurispector ( 530273 ) on Saturday July 12, 2008 @09:28PM (#24168561)

    I have a Netgear WNR834B and have never had to reboot it. I really don't know what we're doing right, but the damn thing just works, wired or wireless. Our old Linksys WRT54G worked pretty well; we gave that to my in-laws and it's been good to them, too.
    Come to think of it, we had a cheap-assed Dell wireless router that worked ok, too.

    Do other people generally have to screw around with their networks a lot?

  • by PitaBred ( 632671 ) <slashdot&pitabred,dyndns,org> on Saturday July 12, 2008 @10:04PM (#24168785) Homepage

    I used to have that problem, but DD-WRT on my WRT54GL fixed it. I can run torrents day and night, tons of connections, and it never gets upset. It tends to run out of memory like you said, it tries to manage state incorrectly or something, the connections don't time out soon enough.

    If you have an older WRT54G (pre v4), you can just load DD-WRT, or I'd highly recommend the investment in a WRT54GL so you can run DD-WRT.

  • by dfn_deux ( 535506 ) <datsun510&gmail,com> on Saturday July 12, 2008 @10:33PM (#24168977) Homepage
    Even the post version 4 wrt54g works fine with openwrt, takes an extra step to flash it and you don't get the FULL version of openwrt, but the micro version with vxworks killer has been running plenty stable on my ver. 5 for quite a while now.
  • by William-Ely ( 875237 ) on Saturday July 12, 2008 @11:13PM (#24169259)
    After going through a few cheap routers I decided throw down some cash on a D-Link gaming router. It got rave reviews and I liked the fact that it had giga-bit Ethernet which was rare at the time (over two years ago) and it let me prioritize traffic (QoS?). It has performed flawlessly no matter what I do to stress it out. I could have bought two WRT54Gs for the price I paid for this but I swear the quality was worth it. I didn't know about using a router as a name server. I always used my own DNS. In any case I'd recommend turning of unnecessary features and ensuring the router isn't overheating. My old router (WR?54G) had a serious problem with heat.
  • by dissss ( 1029120 ) on Saturday July 12, 2008 @11:29PM (#24169353)
    I have a WRT-54G v5 - it locked up quite regularly with the original firmware. Switched it to DD-WRT Micro and it's been fine ever since. Definitely worth the upgrade.
  • by Richard Steiner ( 1585 ) <rsteiner@visi.com> on Sunday July 13, 2008 @12:44AM (#24169751) Homepage Journal

    I have a WRT54G v8 here as well, and I don't think I've had to reboot the thing since around the first of the year (2008). Very stable, works just fine with Linux, WinXP, Win2k, Win95 OSR2, OS/2 Warp 4, eCS, and my Nokia 770's running OS2006. w00t! :-)

  • by flappinbooger ( 574405 ) on Sunday July 13, 2008 @01:30AM (#24170021) Homepage
    x2. I was using a walmart grade linksys router on the LAN at work. It was for like 6 users, mixed wireless and wired, and a NAS with a switch for wired users. Low budget, low cost, low reliability, low performance.

    It required periodic reboots, which I eventually narrowed down to being most likely router DNS table problems. Now, we are using a Zyxel wireless router provided by our new ISP, on a much better network (real switches, a rack, everything).

    Yeah, it's pretty much a consumer grade router on a pro-grade setup but it does the job of being a WAP and a firewall, and hasn't been flaking out. I'll take it.
  • by Malc ( 1751 ) on Sunday July 13, 2008 @02:26AM (#24170267)

    Is that OpenBSD on a 12W device that sits silently on a shelf?

    Personally I prefer to use a decent modem. I have a SpeedTouch DSL modem that seems to be more functional than most consumer routers, as well as being one of the more stable modems I've used on a marginal line. I connect my wireless devices to my network just on the switch side (use them as wireless access points and not routers). Very stable set up.

  • by joemck ( 809949 ) on Sunday July 13, 2008 @02:40AM (#24170333)

    I have to agree, the current Linksys routers are LOUSY. I have a WRT54GS v6 that came with VxWorks and I've installed DD-WRT micro on. In both OSes it was crap -- Wi-Fi randomly dropping out, occasional crashes. It was especially bad on hot days and during heavy network traffic.

    Apparently the Broadcom chip inside it was overheating. I ticky-tackied a PC fan to the table next to the router and powered it with a GameCube power brick (12v DC). The problem went away almost entirely, leaving me with a reliable but somewhat noisy router.

    Later, I opened the router and placed an old heatsink off a Pentium on the offending chip (run it a while, see which one is hot), and used a piece of plastic wedged into the router's shell to press the heatsink down on the chip. The heatsink had some of that heat-conductive foam glue stuff some OEMs stick it to the CPU with on the bottom. Now (almost a year later) I have no fan next to it and it hasn't crashed or dropped the network yet.

    I'm still stuck in the wimpy v6 flash and RAM though...

  • by thegrassyknowl ( 762218 ) on Sunday July 13, 2008 @02:51AM (#24170387)

    Mine isn't, but it could be: http://www.soekris.com/ [soekris.com]

  • by Captain Segfault ( 686912 ) on Sunday July 13, 2008 @03:02AM (#24170423) Homepage Journal

    Bottom line is that after three hard drive failures in the course of a little over a month (yes, I have a third Seagate drive misbehaving massively, randomly corrupting data)

    Are you /sure/ your power supply is sufficient and your drive(s) are sufficiently cooled?

  • by Nemo's Night Sky ( 1051346 ) on Sunday July 13, 2008 @04:58AM (#24170859) Homepage
    It could easily be a uPnP thing.
  • by runningduck ( 810975 ) on Sunday July 13, 2008 @08:39PM (#24176483)
    I found the Fit-PC to be the best and easiest solution for this sort of thing. It consumes less than 5watts, has 2 100meg interfaces, dual boots Ubuntu and Gentoo, and is very hack friendly. I turned off video, send syslog to may vhost, turned off my hard drive and throttled down my CPU and am now consuming a bit over two watts. It runs like a champ, consumes almost now power and it is so good to be able to have the flexibility of a full Unix-like box again.

Work without a vision is slavery, Vision without work is a pipe dream, But vision with work is the hope of the world.

Working...