From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-x22e.google.com (mail-qk0-x22e.google.com [IPv6:2607:f8b0:400d:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 324303B2A3 for ; Sun, 25 Sep 2016 23:54:23 -0400 (EDT) Received: by mail-qk0-x22e.google.com with SMTP id g67so92823504qkd.0 for ; Sun, 25 Sep 2016 20:54:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=SOH7j06TR+XNTVCiioGbiD9yeppw5I8y3r49f7hSYsQ=; b=SO9YKEH6fFZwtcbqeuRYKXZ7Py1IrmDNoQ6z+/xfT8NIkBC0slqqwVcaobtf+A5nFX xs7qldxN1dQOvaZ9CPALh9CQPanZPAXafsb8rxncybvQwBP9mReXtgizp5EO0IA1J2Eg khAvmPDwmNiBtIqo6oQclCbkTPl/SOILM/9jl1id0DtTyUWqKIfEhGYKX01GL1ucK/nK X0qJ5svJ5VsdpDRwvuXxnw3tKtvBo5bXkm7LHQP4h7LfrY6kZ4frDKBtVhbM1aJDleYR Fvz1oF3yGZa5pjojFz7PlzqoI3Pld9qwLGm1sOFHerNJltWREBztlAWLWxpnmvaAZHer bT1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=SOH7j06TR+XNTVCiioGbiD9yeppw5I8y3r49f7hSYsQ=; b=IEIeiLfvVRq4+Y1fPe7BbccD4QkSKv8INR5c5VncAYuydtQ4CY9ySjs1+w6M+6jiaR qd4dhmz+gQpo/B3nY5+seNbXFrLwDBaDmvBsB2YmziG0SIRLtYdNGZC7UmUYUd8MijdY l5TehMefAQFX70uAjqJH1mOuMshFLEzOVNSkGgPdMIrtTctlFt9keA8tfEKbq21iNz6f BWRzkl7fqMbHO6Jp/5ZXaqtCIbhhGc/Ol8bhz6vqzrrTslQQrknqZJ/EZ6KXNabJ0yG5 CZwYwvWoHe8ivgBycyqsFYHWHFtVmHLBIDLK2pvbRjGF9yGugZpzuduoTXDowtvqsCBf kZOQ== X-Gm-Message-State: AA6/9RlpY1LZpwjnknVDUzqu+6XjZP+o0LAOP/CPXHSnusuo0PMc5+OYBKe19HSJXbT5Q22jpxBhna2U3+ixEw== X-Received: by 10.55.121.67 with SMTP id u64mr21787802qkc.114.1474862062782; Sun, 25 Sep 2016 20:54:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.137.214 with HTTP; Sun, 25 Sep 2016 20:54:22 -0700 (PDT) In-Reply-To: <3a99770e-6350-471f-72b6-b209d7d77d75@darbyshire-bryant.me.uk> References: <3a99770e-6350-471f-72b6-b209d7d77d75@darbyshire-bryant.me.uk> From: Dave Taht Date: Sun, 25 Sep 2016 20:54:22 -0700 Message-ID: To: Kevin Darbyshire-Bryant Cc: cake@lists.bufferbloat.net Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Cake] de-natting & host fairness X-BeenThere: cake@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: Cake - FQ_codel the next generation List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2016 03:54:23 -0000 On Sun, Sep 25, 2016 at 8:20 PM, Kevin Darbyshire-Bryant wrote: > Greetings! > > A while back I started on a quest to make cake 'nat' aware as the lack of > host fairness in a typical home router environment was the only thing tha= t > prevented cake from being the ultimate qdisc in my opinion. This involve= s > dealing with conntrack which on egress is easy (the kernel fills in a dat= a > structure for us), ingress is less clear. I hacked something together bu= t > wasn't really happy with it. > > Another github user 'tegularius' presented some beautifully crafted code > that did the lookups in a much neater way. Originally it too had an > 'ingress' lookup problem. This was worked on and I hacked some condition= al > 'denat' options into cake & tc. > > For your 'delight' a denat cake > https://github.com/kdarbyshirebryant/sch_cake/tree/natoptions along with = a > matching tc https://github.com/kdarbyshirebryant/tc-adv/tree/denat > > Typically I use 'dual-srchost srcnat' options on the egress interface, wi= th > 'dual-dsthost dstnat' in the ingress ifb interface. In *brief* testing, > bandwidth is shared fairly between hosts, and fairly by flow within each > host. And it's not crashed yet. Groovy! (good morning). Is there a way to autodetect if nat is on or not? If you are bored and want to see what happens with tcp bbr, I just set up a server at: 173 dot 230 dot 156 dot 252 and I'll probably put one up in the uk as well. > Kevin > _______________________________________________ > Cake mailing list > Cake@lists.bufferbloat.net > https://lists.bufferbloat.net/listinfo/cake --=20 Dave T=C3=A4ht Let's go make home routers and wifi faster! With better software! http://blog.cerowrt.org