From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-x22a.google.com (mail-it0-x22a.google.com [IPv6:2607:f8b0:4001:c0b::22a]) (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 81F163B260 for ; Tue, 27 Sep 2016 16:40:07 -0400 (EDT) Received: by mail-it0-x22a.google.com with SMTP id n143so26005278ita.1 for ; Tue, 27 Sep 2016 13:40:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=cXVf/D2jZqPuXHw1SczsrCqvBRjihYDMXVnMWxe+dV8=; b=gkKGkc8uXaAAW6zH8gBkDt58/FkSI84V3IgE/BVzk6LUaq1iUyR+YG+Wb3VTqgGwyw BqiQNX+iCanaWWrQe0pHbQBffg6EGTodRW8lHl7Rd87YLroZVz8WYA4zDvquw9ulzFg9 det1VWHzhfpKbAuwOZEP+uTJJIEZlmfrbeP0KmUUH8zcX052CIinLprDEE7aYkqHDNsk mcT1ljaAmzksp9oBZKKjHgOpAzJqoVfZaWwesOj+Xw5Ykq0S9ME0KMc0DGeZohK7/fIW +yGIalO6HIF80et1wj4t4kzB0DBsnhDvoM7FoEqe8a23ACqvdiKw/5LA+Skf1NGzb8SO /p7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=cXVf/D2jZqPuXHw1SczsrCqvBRjihYDMXVnMWxe+dV8=; b=MiR0P/VuSQdG/JadnZ3LJAqjwCcheMfROYdVVTy5Q/x44H96fmRzMT0xd8ZzlXzEg+ RYEcOD1JIliU3s1R7AXoNyKSUpdwR8DN0ZtLh/ugHRmXqVkhHKLDjhAO0WQloExxnWEm GCukIqF6qZGiBZgP237L5WAsNZOluvgnG0jLq7EH9CqyBnFpC3yolBorFo+c6ZBfHXs1 l4yav+v10ZD95eeMk3dlc24ABge4FnB7OypGE/AvwX+PYpCznqGOtXDJFCCOamA8FFJQ SL5zE3nXG7KzIShU4cHVBvVYEp3TR7d+KnfkDSI0WfX5geVgltZv3F4wZZh8/gvD8Id2 LVdg== X-Gm-Message-State: AA6/9Rl7p8uXNhkjXC/Mo8X8R+97nOD4RUfpEXkXMErxxH3yiGKuDkdMLLd6SBzBYJJuRg== X-Received: by 10.36.75.77 with SMTP id q74mr6645888ita.47.1475008806686; Tue, 27 Sep 2016 13:40:06 -0700 (PDT) Received: from ?IPv6:2601:404:381:db8e:a011:d63b:707b:b2a? ([2601:404:381:db8e:a011:d63b:707b:b2a]) by smtp.gmail.com with ESMTPSA id l65sm1577385ioi.9.2016.09.27.13.40.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Sep 2016 13:40:06 -0700 (PDT) To: cake@lists.bufferbloat.net References: <3a99770e-6350-471f-72b6-b209d7d77d75@darbyshire-bryant.me.uk> <83b95479-c1f5-3589-912c-abe427805449@gmail.com> <43fa53d7-6180-09fe-9581-29d7dedba3d9@darbyshire-bryant.me.uk> From: Noah Causin Message-ID: <25bd19bb-b5c7-fd68-62c9-b8e67590ab44@gmail.com> Date: Tue, 27 Sep 2016 16:40:05 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------883C2F61433308DC59722A6B" 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: Tue, 27 Sep 2016 20:40:07 -0000 This is a multi-part message in MIME format. --------------883C2F61433308DC59722A6B Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Thank you for all your help. The de-nat with dual-flow isolation works great. I tested it simultaneously with two separate virtual machines, one running a Flent 50 flows download test and the other running a Flent 8 flows download test. Throughput was even between the machines, and the latency was great. Noah Causin On 9/27/2016 11:28 AM, Kevin Darbyshire-Bryant wrote: > LEDE already has a patch included in the basefiles 'iproute2' package > to make tc cake aware. If you replace > package/network/utils/iproute2/patches/950-add-cake-to-tc.patch (which > is unaware of the nat options) with the attached nat option aware > version then recompile, you should find you've a 'natted cake' capable > version of the iproute utilities without adding extra packages, feeds > etc. > > I've not yet got around to adding a 'de-nat ipv6' option, so assuming > you've built my latest version of cake, it can be configured to de-nat > ipv4 but not ipv6. > > Similarly I've not updated the LEDE stuff as I'd rather like some code > review/testing done before it gets pushed out....and I get shouted at > lots :-) > > Kevin > > > On 27/09/16 15:52, Noah Causin wrote: >> Thank you for helping me get cake to compile on LEDE. >> >> The issue I have now is getting tc-adv to compile. >> >> I use this MakeFile: >> https://github.com/antoinedeschenes/openwrt-sqm/tree/master/net/tc-adv >> >> I use these commands to compile it: >> >> make package/feeds/sqm/tc-adv/clean -j 1 V=s >> make package/feeds/sqm/tc-adv/prepare >> USE_SOURCE_DIR=/home/n0man/Desktop/denat/ -j 1 V=s >> make package/feeds/sqm/tc-adv/compile -j 1 V=s >> >> These are the errors I get: >> >> *namespace.c: In function 'bind_etc':** >> **namespace.c:18:22: error: 'MAXPATHLEN' undeclared (first use in this >> function)** >> ** char etc_netns_path[MAXPATHLEN];** >> ** ^** >> **namespace.c:18:22: note: each undeclared identifier is reported only >> once for each function it appears in** >> **namespace.c:20:7: warning: unused variable 'etc_name' >> [-Wunused-variable]** >> ** char etc_name[MAXPATHLEN];** >> ** ^** >> **namespace.c:19:7: warning: unused variable 'netns_name' >> [-Wunused-variable]** >> ** char netns_name[MAXPATHLEN];** >> ** ^** >> **namespace.c:18:7: warning: unused variable 'etc_netns_path' >> [-Wunused-variable]** >> ** char etc_netns_path[MAXPATHLEN];** >> ** ^** >> **namespace.c: In function 'netns_switch':** >> **namespace.c:46:16: error: 'MAXPATHLEN' undeclared (first use in this >> function)** >> ** char net_path[MAXPATHLEN];** >> ** ^** >> **namespace.c:46:7: warning: unused variable 'net_path' >> [-Wunused-variable]** >> ** char net_path[MAXPATHLEN];** >> ** ^** >> **namespace.c: In function 'netns_get_fd':** >> **namespace.c:90:15: error: 'MAXPATHLEN' undeclared (first use in this >> function)** >> ** char pathbuf[MAXPATHLEN];** >> ** ^** >> **namespace.c:90:7: warning: unused variable 'pathbuf' >> [-Wunused-variable]** >> ** char pathbuf[MAXPATHLEN];** >> ** ^** >> **: recipe for target 'namespace.o' failed** >> **make[4]: *** [namespace.o] Error 1** >> **make[4]: Leaving directory '/home/n0man/Desktop/denat/lib'* >> >> Any help would be appreciated. >> >> Thank you, >> >> Noah Causin >> >> On 9/26/2016 10:32 PM, Kevin Darbyshire-Bryant wrote: >>> Easy fix. See the added DEPENDS line in the attached patch for the >>> package Makefile :-) >>> >>> I'm guessing you've updated the git checkout hash to point at a >>> suitable place. >>> >>> Cheers, >>> >>> Kevin >>> >>> >>> >>> On 27/09/16 02:52, Noah Causin wrote: >>>> I've been trying to compile this on LEDE, but I get this error: >>>> >>>> Package kmod-sched-cake is missing dependencies for the following >>>> libraries: >>>> nf_conntrack.ko >>>> >>>> >>> >>> >>> _______________________________________________ >>> Cake mailing list >>> Cake@lists.bufferbloat.net >>> https://lists.bufferbloat.net/listinfo/cake >> >> >> >> _______________________________________________ >> Cake mailing list >> Cake@lists.bufferbloat.net >> https://lists.bufferbloat.net/listinfo/cake >> > > > _______________________________________________ > Cake mailing list > Cake@lists.bufferbloat.net > https://lists.bufferbloat.net/listinfo/cake --------------883C2F61433308DC59722A6B Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Thank you for all your help.

The de-nat with dual-flow isolation works great.  I tested it simultaneously with two separate virtual machines, one running a Flent 50 flows download test and the other running a Flent 8 flows download test.  Throughput was even between the machines, and the latency was great.

Noah Causin


On 9/27/2016 11:28 AM, Kevin Darbyshire-Bryant wrote:
LEDE already has a patch included in the basefiles 'iproute2' package to make tc cake aware.  If you replace package/network/utils/iproute2/patches/950-add-cake-to-tc.patch (which is unaware of the nat options) with the attached nat option aware version then recompile, you should find you've a 'natted cake' capable version of the iproute utilities without adding extra packages, feeds etc.

I've not yet got around to adding a 'de-nat ipv6' option, so assuming you've built my latest version of cake, it can be configured to de-nat ipv4 but not ipv6.

Similarly I've not updated the LEDE stuff as I'd rather like some code review/testing done before it gets pushed out....and I get shouted at lots :-)

Kevin


On 27/09/16 15:52, Noah Causin wrote:
Thank you for helping me get cake to compile on LEDE.

The issue I have now is getting tc-adv to compile.

I use this MakeFile:
https://github.com/antoinedeschenes/openwrt-sqm/tree/master/net/tc-adv

I use these commands to compile it:

make package/feeds/sqm/tc-adv/clean -j 1 V=s
make package/feeds/sqm/tc-adv/prepare
USE_SOURCE_DIR=/home/n0man/Desktop/denat/ -j 1 V=s
make package/feeds/sqm/tc-adv/compile -j 1 V=s

These are the errors I get:

*namespace.c: In function 'bind_etc':**
**namespace.c:18:22: error: 'MAXPATHLEN' undeclared (first use in this
function)**
**  char etc_netns_path[MAXPATHLEN];**
**                      ^**
**namespace.c:18:22: note: each undeclared identifier is reported only
once for each function it appears in**
**namespace.c:20:7: warning: unused variable 'etc_name'
[-Wunused-variable]**
**  char etc_name[MAXPATHLEN];**
**       ^**
**namespace.c:19:7: warning: unused variable 'netns_name'
[-Wunused-variable]**
**  char netns_name[MAXPATHLEN];**
**       ^**
**namespace.c:18:7: warning: unused variable 'etc_netns_path'
[-Wunused-variable]**
**  char etc_netns_path[MAXPATHLEN];**
**       ^**
**namespace.c: In function 'netns_switch':**
**namespace.c:46:16: error: 'MAXPATHLEN' undeclared (first use in this
function)**
**  char net_path[MAXPATHLEN];**
**                ^**
**namespace.c:46:7: warning: unused variable 'net_path'
[-Wunused-variable]**
**  char net_path[MAXPATHLEN];**
**       ^**
**namespace.c: In function 'netns_get_fd':**
**namespace.c:90:15: error: 'MAXPATHLEN' undeclared (first use in this
function)**
**  char pathbuf[MAXPATHLEN];**
**               ^**
**namespace.c:90:7: warning: unused variable 'pathbuf' [-Wunused-variable]**
**  char pathbuf[MAXPATHLEN];**
**       ^**
**<builtin>: recipe for target 'namespace.o' failed**
**make[4]: *** [namespace.o] Error 1**
**make[4]: Leaving directory '/home/n0man/Desktop/denat/lib'*

Any help would be appreciated.

Thank you,

Noah Causin

On 9/26/2016 10:32 PM, Kevin Darbyshire-Bryant wrote:
Easy fix.  See the added DEPENDS line in the attached patch for the
package Makefile :-)

I'm guessing you've updated the git checkout hash to point at a
suitable place.

Cheers,

Kevin



On 27/09/16 02:52, Noah Causin wrote:
I've been trying to compile this on LEDE, but I get this error:

Package kmod-sched-cake is missing dependencies for the following
libraries:
nf_conntrack.ko




_______________________________________________
Cake mailing list
Cake@lists.bufferbloat.net
https://lists.bufferbloat.net/listinfo/cake



_______________________________________________
Cake mailing list
Cake@lists.bufferbloat.net
https://lists.bufferbloat.net/listinfo/cake



_______________________________________________
Cake mailing list
Cake@lists.bufferbloat.net
https://lists.bufferbloat.net/listinfo/cake

--------------883C2F61433308DC59722A6B--