From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dennis Jacobfeuerborn Date: Tue, 05 Nov 2013 21:35:22 +0000 Subject: Re: Good qdisc for routers? Message-Id: <5279649A.9070909@conversis.de> List-Id: References: <5279134B.6070207@conversis.de> In-Reply-To: <5279134B.6070207@conversis.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hi Remy, from what I understand the default pfifo_fast qdisc isn't particulary fair when a single flow or a few flows flood the interface/buffer with packets so I am wondering if qdiscs like QFQ, SFQ or CHOKe could be improvements compared to the default "dumb" pfifo one. Regards, Dennis On 05.11.2013 20:33, Remy Mudingay wrote: > Hi Dennis, > > I read the same article but since it mentioned datacenter I understood this to not apply to Internet bound traffic. However even on a gigabit WAN link codel (in my case fq_codel) could improve the responsiveness of competing flows. A few open source distributions (openwrt,dd-wrt and gargoyle). > > By the way, why do you want to move away from the default qdisc? > > Cheers, > > Remy. > > Sent from my iPhone > >> On Nov 5, 2013, at 19:42, Dennis Jacobfeuerborn wrote: >> >>> On 05.11.2013 19:06, Remy Mudingay wrote: >>> Hi Dennis, >>> >>> I highly recommend trying out codel or fq_codel. I've been using >>> fq_codel for well over a year now. I have just over a thousand users >>> going through the router. I use it mainly because I wanted in-queue >>> packet delays statistics but I didn't switch from pfifo_fast because of >>> any perceived problems. >>> Anyway, You won't need to patch your current Linux install as long as >>> it's version 3.3 or higher. >>> >>> I use the following two lines for each interface. >>> >>> tc qdisc add dev eth0 root handle 1: fq_codel quantum 1514 flows 1024 noecn >>> tc filter add dev eth0 prio 1 protocol all parent 1: handle 1 flow hash >>> keys nfct-src,nfct-dst,nfct-proto,nfct-proto-src,nfct-proto-dst divisor >>> 10242 perturb 300 baseclass 1:1 >>> >>> You can get more in depth information from here >>> http://www.bufferbloat.net/projects/codel/wiki. >> >> Codel seems more geared towards low latency. The following statement from the wiki doesn't make it sound like this is the right choice here: >> >> "People have tried to run CoDel in very big routers, with hundreds of simultaneous flows, a situation not simulated in advance. There, it isn't controlling the queue the way it should: whether this is a problem with the algorithm, or the implementation, is not yet understood. >> >> It is clear that unmodified, CoDel is not appropriate for AQM of traffic inside a data center; it does not react in a timely enough fashion. Whether the modifications of the ideas in CoDel will solve this problem is not yet known. Again, this is an area which CoDel was not designed to solve or it simulated in before publication." >> >> Regards, >> Dennis