6

I have a cheap TP-Link TL-WR340G/TL-WR340GD router. I feel like after a short session of heavy downloading or uploading, it becomes "clogged". Websites do not respond, connections drop, etc. When I restart the router my internet is fine again, at least for a short time until it feels like it's "clogged" again.

I don't know if this is a correct assumption at all. I only know that restarting my router fixes it for a short time. Is there a way to actually verify this, figure out what is happening, and fix it?

Kevin Panko
  • 7,466
rabbid
  • 319

2 Answers2

4

Does the problem go away temporarily if you stop all your traffic for a while without rebooting? If so, then what you've described sounds like the classic symptoms of buffer bloat, which is increasingly becoming a problem on the Internet, especially with poorly-designed home gateways.

Basically, poorly-designed home gateways often buffer too many packets when the network gets congested, which prevents the TCP/IP stacks of the endpoints of the connection from detecting the congestion, which prevents TCP's congestion-control mechanisms from kicking in, exacerbating the problem.

The fix is to get a better router, or install aftermarket third-party open source firmware distribution like DD-WRT, OpenWRT, Tomato, etc., which may do a better job and may give you access to tuning parameters that will let you fix this for yourself. Products sold as "gaming" routers are often optimized for low-latency, and thus are less likely to hit this problem. They are also more likely to give you access to buffer tuning parameters using factory firmware.

Jim Gettys is the Internet researcher credited with diagnosing the buffer bloat problem bringing it to the attention of the wider Internet protocol research community. He writes about it at BufferBloat.net. His audience is other researchers, so unless you're really getting into this stuff, that site might not be for you.

Iljitsch van Beijnum is a writer for Ars Technica who follows IETF proceedings and Internet protocol stuff closely. Here's an article he published a few months ago on the subject of Buffer Bloat: Understanding bufferbloat and the network buffer arms race

Spiff
  • 110,156
2

You are quiet probably experiencing a routing table overflow: It occurs when there's a lot of concurrent TCP connections, which causes the routing table in your router (duh) to take a size larger than what can be allocated in its RAM. This typically occurs with P2P usage (especially when it's BitTorrent - even more when DHT is enabled on top of that) on routers with little RAM (such as yours - cursory Googling suggests that it has a meager 8MB). In this case, additional TCP connections can't be properly established.

Possible solutions (apart from buying a new router): - Deactivate DHT in your BT client. This setting can usually be found in the BitTorrent options, here's an example from uTorrent:

BitTorrent settings in uTorrent

  • Look for a setting like "Maximum TCP connections" or "Maximum Ports" or something to that effect in your router configuration. Not every router config has such an option, but if there is, see if you can alleviate your problem by lowering its value. There might also be an option for TCP and UDP timeouts - you might also want to lower these, as inactive connections tend to linger around too long, thus clogging your routing table.

  • If that's not possible, you can also lower maximum concurrent connections in your Torrent client - in uTorrent, it's in "Bandwidth".