In three-dumb router setup, which needs to do QOS to prevent bufferbloat?

0

I'm setting up the "three dumb routers" in my house.

My question is which router should I enable QOS (e.g. codel) on, in order to prevent bufferbloat? Should it be enabled on the edge router, or on all internal wifi-enabled routers? Or both?

Let me know if the question is not clear enough (I'll try to expand).

P.S.: Hope this is the right place to ask.

Andriy Drozdyuk

Posted 2018-02-12T16:01:46.757

Reputation: 315

Answers

2

All three should use CoDel or PIE or some other smart queueing algorithm. All middleboxes (modems, routers, switches, APs, gateways, firewalls, etc) should be smart about queueing and not allow their buffer queues to become bloated.

The one connected to the modem should also use QoS to be a slight bottleneck in both directions. This allows it to do ECN or drop frames before buffers get bloated somewhere else on the network. So even if the modem, or the ISP’s equipment on the other end of the broadband line, have bufferbloat issues, this artificial slight bottleneck box should allow TCP congestion control to work before bloat can build up on those other boxes outside of your control.

Spiff

Posted 2018-02-12T16:01:46.757

Reputation: 84 656

Thank you. Do all routers support ECN? – Andriy Drozdyuk – 2018-02-13T17:32:11.500

Also, why do all three need to use it? I'm just curious. What if only the modem-connected one uses CoDel? Will it be able to distinguish different clients' connections and regulate them successfully? – Andriy Drozdyuk – 2018-02-13T17:33:21.133

@drozzy I'm sure there are plenty of routers that don't do ECN, but it's becoming more and more expected among people who care. As for smart queueing, why would you want a router to be dumb about queueing and allow latency to build up due to bloated buffer queues? No one wants useless latency buildup anywhere on their network, so you want all your middleboxes to be smart about queueing. The make-one-a-slight-bottleneck trick is only useful for flows that go through that one box, and only if no other links the in the path become a greater bottleneck. – Spiff – 2018-02-13T17:44:54.370

Good point about others being a greater bottleneck. But to touch on the other point for "flows that go through that one box" - wouldn't in my case, all the flows go through the "border" router anyways? – Andriy Drozdyuk – 2018-02-13T18:45:04.103

1

I would say to enable QOS on both routers, since an infected IoT device can use the entire bandwidth of its sub-net.

Note that your article also advised the separation of IoT devices into separate VLANs to avoid an infected device from exploiting the vulnerabilities of other devices in the same IOT sub-net. Just to note that not all routers support VLANs.

image

harrymc

Posted 2018-02-12T16:01:46.757

Reputation: 306 093