* [Cake] flow_hash vs host_hash
@ 2015-10-05 12:20 Dave Taht
2015-10-05 12:30 ` Jonathan Morton
0 siblings, 1 reply; 17+ messages in thread
From: Dave Taht @ 2015-10-05 12:20 UTC (permalink / raw)
To: cake
as near as I can tell, in the current codebase there is no need to
calculate the host_hash, as it is thrown away.
https://github.com/dtaht/sch_cake/blob/master/sch_cake.c#L303
Enlightenment sought.
--
Dave Täht
Do you want faster, better, wifi? https://www.patreon.com/dtaht
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [Cake] flow_hash vs host_hash
2015-10-05 12:20 [Cake] flow_hash vs host_hash Dave Taht
@ 2015-10-05 12:30 ` Jonathan Morton
2015-10-05 12:45 ` Sebastian Moeller
0 siblings, 1 reply; 17+ messages in thread
From: Jonathan Morton @ 2015-10-05 12:30 UTC (permalink / raw)
To: Dave Taht; +Cc: cake
[-- Attachment #1: Type: text/plain, Size: 97 bytes --]
It's a precursor to the dual host/flow isolation, which I'm still working
on.
- Jonathan Morton
[-- Attachment #2: Type: text/html, Size: 144 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [Cake] flow_hash vs host_hash
2015-10-05 12:30 ` Jonathan Morton
@ 2015-10-05 12:45 ` Sebastian Moeller
2015-10-05 14:01 ` Dave Taht
0 siblings, 1 reply; 17+ messages in thread
From: Sebastian Moeller @ 2015-10-05 12:45 UTC (permalink / raw)
To: Jonathan Morton; +Cc: cake
Hi Jonathan,
On Oct 5, 2015, at 14:30 , Jonathan Morton <chromatix99@gmail.com> wrote:
> It's a precursor to the dual host/flow isolation, which I'm still working on.
I believe that this is the single most asked-for feature in the openwrt forums, people somehow want to enforce per internal-IP fairness. I am not sure whether all/most people actually need this, since only a few have tries pure flow-isolation before declaring per-internal-SRC-IP fairness a requirement. But once this is in (and we get cake into openwrt default builds), you will have saved a considerable amount of people gray hair ;) Just to be clear, I am a huge cake fan (despite my occasionally sceptic emails about obscure side issues) and hope with the dual isolation cake will offer almost everything a typical user might actually want (well, except the ponies)
Best Regards
Sebastian
>
> - Jonathan Morton
> _______________________________________________
> Cake mailing list
> Cake@lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/cake
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [Cake] flow_hash vs host_hash
2015-10-05 12:45 ` Sebastian Moeller
@ 2015-10-05 14:01 ` Dave Taht
2015-10-06 6:26 ` Kevin Darbyshire-Bryant
0 siblings, 1 reply; 17+ messages in thread
From: Dave Taht @ 2015-10-05 14:01 UTC (permalink / raw)
To: Sebastian Moeller; +Cc: cake
I would like the dual-flow pony in this net-next merge window please.
Otherwise I am sore inclined to get what we have out there! I hope to
get the api and abi changes in today or tomorrow for the bits I
understand....
On Mon, Oct 5, 2015 at 2:45 PM, Sebastian Moeller <moeller0@gmx.de> wrote:
> Hi Jonathan,
>
> On Oct 5, 2015, at 14:30 , Jonathan Morton <chromatix99@gmail.com> wrote:
>
>> It's a precursor to the dual host/flow isolation, which I'm still working on.
>
> I believe that this is the single most asked-for feature in the openwrt forums, people somehow want to enforce per internal-IP fairness. I am not sure whether all/most people actually need this, since only a few have tries pure flow-isolation before declaring per-internal-SRC-IP fairness a requirement. But once this is in (and we get cake into openwrt default builds), you will have saved a considerable amount of people gray hair ;) Just to be clear, I am a huge cake fan (despite my occasionally sceptic emails about obscure side issues) and hope with the dual isolation cake will offer almost everything a typical user might actually want (well, except the ponies)
>
> Best Regards
> Sebastian
>
>>
>> - Jonathan Morton
>> _______________________________________________
>> Cake mailing list
>> Cake@lists.bufferbloat.net
>> https://lists.bufferbloat.net/listinfo/cake
>
--
Dave Täht
Do you want faster, better, wifi? https://www.patreon.com/dtaht
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [Cake] flow_hash vs host_hash
2015-10-05 14:01 ` Dave Taht
@ 2015-10-06 6:26 ` Kevin Darbyshire-Bryant
2015-10-06 7:18 ` Sebastian Moeller
0 siblings, 1 reply; 17+ messages in thread
From: Kevin Darbyshire-Bryant @ 2015-10-06 6:26 UTC (permalink / raw)
To: cake
[-- Attachment #1: Type: text/plain, Size: 696 bytes --]
On 05/10/15 15:01, Dave Taht wrote:
> I would like the dual-flow pony in this net-next merge window please.
>
> Otherwise I am sore inclined to get what we have out there! I hope to
> get the api and abi changes in today or tomorrow for the bits I
> understand....
>
The view that it should just get out there has already been expressed.
Silly question time (IPv4): This dual flow host isolation pony, how will
it work on the WAN facing link on a 'domestic' router when the WAN side
is post NAT. Won't the ip source address just be the router's external
interface? But let this question not distract from proper coding not
the semi-intelligent cut'n'paste stuff that I do.
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4816 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [Cake] flow_hash vs host_hash
2015-10-06 6:26 ` Kevin Darbyshire-Bryant
@ 2015-10-06 7:18 ` Sebastian Moeller
2015-10-06 8:13 ` Toke Høiland-Jørgensen
0 siblings, 1 reply; 17+ messages in thread
From: Sebastian Moeller @ 2015-10-06 7:18 UTC (permalink / raw)
To: Kevin Darbyshire-Bryant; +Cc: cake
Hi Kevin,
On Oct 6, 2015, at 08:26 , Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk> wrote:
> On 05/10/15 15:01, Dave Taht wrote:
>> I would like the dual-flow pony in this net-next merge window please.
>>
>> Otherwise I am sore inclined to get what we have out there! I hope to
>> get the api and abi changes in today or tomorrow for the bits I
>> understand....
>>
> The view that it should just get out there has already been expressed.
>
> Silly question time (IPv4): This dual flow host isolation pony, how will
> it work on the WAN facing link on a 'domestic' router when the WAN side
> is post NAT. Won't the ip source address just be the router's external
> interface? But let this question not distract from proper coding not
> the semi-intelligent cut'n'paste stuff that I do.
I believe you nailed it, but the pony will still work on egress, and a sufficiently motivated user can instantiate sqm on an inward facing interface so that the real ingress (from the users perspective) will be processed after NAT. Also as you allude to IPv6 should work out of the box. I believe there were rumblings on net-dev to hook up iptables with the ingress qdisc, which in the long run might allow to get the de-NATed addresses from packets arriving on an IFB device (or it might not, who knows ;) ). In any case we should write up some documentation about the expected behavior and configuration options for the dual-isolation option, once it lands...
Best Regards
Sebastian
>
>
>
> _______________________________________________
> Cake mailing list
> Cake@lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/cake
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [Cake] flow_hash vs host_hash
2015-10-06 7:18 ` Sebastian Moeller
@ 2015-10-06 8:13 ` Toke Høiland-Jørgensen
2015-10-06 8:27 ` Sebastian Moeller
0 siblings, 1 reply; 17+ messages in thread
From: Toke Høiland-Jørgensen @ 2015-10-06 8:13 UTC (permalink / raw)
To: Sebastian Moeller; +Cc: cake
Sebastian Moeller <moeller0@gmx.de> writes:
> I believe you nailed it, but the pony will still work on egress,
Don't packets hit the qdisc after NAT has been applied?
-Toke
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [Cake] flow_hash vs host_hash
2015-10-06 8:13 ` Toke Høiland-Jørgensen
@ 2015-10-06 8:27 ` Sebastian Moeller
2015-10-06 8:28 ` Toke Høiland-Jørgensen
0 siblings, 1 reply; 17+ messages in thread
From: Sebastian Moeller @ 2015-10-06 8:27 UTC (permalink / raw)
To: Toke Høiland-Jørgensen; +Cc: cake
Hi Toke,
On Oct 6, 2015, at 10:13 , Toke Høiland-Jørgensen <toke@toke.dk> wrote:
> Sebastian Moeller <moeller0@gmx.de> writes:
>
>> I believe you nailed it, but the pony will still work on egress,
>
> Don't packets hit the qdisc after NAT has been applied?
As far as I know not for IFBs; that is the reason why we need tc filters on ingress and can not use netfilter. And why using iptables to map the DSCP to zero will still result in our shaper seeing the DSCP markings from upstream (which I could confirm happening for IPv6, as my ISP conserved flent’s DSCP marks, so I saw nice priority band based stratification in flent's graphics). I think that IFBs predecessor IMQ was different in that regard.
Best Regards
Sebastian
>
> -Toke
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [Cake] flow_hash vs host_hash
2015-10-06 8:27 ` Sebastian Moeller
@ 2015-10-06 8:28 ` Toke Høiland-Jørgensen
2015-10-06 8:37 ` Sebastian Moeller
0 siblings, 1 reply; 17+ messages in thread
From: Toke Høiland-Jørgensen @ 2015-10-06 8:28 UTC (permalink / raw)
To: Sebastian Moeller; +Cc: cake
Sebastian Moeller <moeller0@gmx.de> writes:
> Hi Toke,
>
> On Oct 6, 2015, at 10:13 , Toke Høiland-Jørgensen <toke@toke.dk> wrote:
>
>> Sebastian Moeller <moeller0@gmx.de> writes:
>>
>>> I believe you nailed it, but the pony will still work on egress,
>>
>> Don't packets hit the qdisc after NAT has been applied?
>
> As far as I know not for IFBs; that is the reason why we need tc filters
> on ingress and can not use netfilter. And why using iptables to map the DSCP to
> zero will still result in our shaper seeing the DSCP markings from upstream
> (which I could confirm happening for IPv6, as my ISP conserved flent’s DSCP
> marks, so I saw nice priority band based stratification in flent's graphics). I
> think that IFBs predecessor IMQ was different in that regard.
No, I meant on egress...
-Toke
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [Cake] flow_hash vs host_hash
2015-10-06 8:28 ` Toke Høiland-Jørgensen
@ 2015-10-06 8:37 ` Sebastian Moeller
2015-10-06 8:39 ` Toke Høiland-Jørgensen
0 siblings, 1 reply; 17+ messages in thread
From: Sebastian Moeller @ 2015-10-06 8:37 UTC (permalink / raw)
To: Toke Høiland-Jørgensen; +Cc: cake
Hi Toke,
On Oct 6, 2015, at 10:28 , Toke Høiland-Jørgensen <toke@toke.dk> wrote:
> Sebastian Moeller <moeller0@gmx.de> writes:
>
>> Hi Toke,
>>
>> On Oct 6, 2015, at 10:13 , Toke Høiland-Jørgensen <toke@toke.dk> wrote:
>>
>>> Sebastian Moeller <moeller0@gmx.de> writes:
>>>
>>>> I believe you nailed it, but the pony will still work on egress,
>>>
>>> Don't packets hit the qdisc after NAT has been applied?
>>
>> As far as I know not for IFBs; that is the reason why we need tc filters
>> on ingress and can not use netfilter. And why using iptables to map the DSCP to
>> zero will still result in our shaper seeing the DSCP markings from upstream
>> (which I could confirm happening for IPv6, as my ISP conserved flent’s DSCP
>> marks, so I saw nice priority band based stratification in flent's graphics). I
>> think that IFBs predecessor IMQ was different in that regard.
>
> No, I meant on egress...
>
> -Toke
Ah, I see. I guess you are right, but on egress we could get back to the pre-nat addresses, like Vincent does in nxt_routed_hfsc.qos?
Best Regards
Sebastian
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [Cake] flow_hash vs host_hash
2015-10-06 8:37 ` Sebastian Moeller
@ 2015-10-06 8:39 ` Toke Høiland-Jørgensen
2015-10-06 8:44 ` Jonathan Morton
2015-10-06 9:38 ` Sebastian Moeller
0 siblings, 2 replies; 17+ messages in thread
From: Toke Høiland-Jørgensen @ 2015-10-06 8:39 UTC (permalink / raw)
To: Sebastian Moeller; +Cc: cake
Sebastian Moeller <moeller0@gmx.de> writes:
> Ah, I see. I guess you are right, but on egress we could get back to
> the pre-nat addresses, like Vincent does in nxt_routed_hfsc.qos?
Ah, so there is a hook to get those; cool. Just need to make sure Cake
uses that, then :)
-Toke
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [Cake] flow_hash vs host_hash
2015-10-06 8:39 ` Toke Høiland-Jørgensen
@ 2015-10-06 8:44 ` Jonathan Morton
2015-10-06 10:59 ` Sebastian Moeller
2015-10-06 9:38 ` Sebastian Moeller
1 sibling, 1 reply; 17+ messages in thread
From: Jonathan Morton @ 2015-10-06 8:44 UTC (permalink / raw)
To: Toke Høiland-Jørgensen; +Cc: cake
> On 6 Oct, 2015, at 11:39, Toke Høiland-Jørgensen <toke@toke.dk> wrote:
>
> Sebastian Moeller <moeller0@gmx.de> writes:
>
>> Ah, I see. I guess you are right, but on egress we could get back to
>> the pre-nat addresses, like Vincent does in nxt_routed_hfsc.qos?
I can’t immediately see how that works.
> Ah, so there is a hook to get those; cool. Just need to make sure Cake
> uses that, then :)
I think the better solution would be to implement that in the flow dissector. Then Cake (and all other relevant qdiscs) will receive that information automatically.
- Jonathan Morton
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [Cake] flow_hash vs host_hash
2015-10-06 8:39 ` Toke Høiland-Jørgensen
2015-10-06 8:44 ` Jonathan Morton
@ 2015-10-06 9:38 ` Sebastian Moeller
1 sibling, 0 replies; 17+ messages in thread
From: Sebastian Moeller @ 2015-10-06 9:38 UTC (permalink / raw)
To: Toke Høiland-Jørgensen; +Cc: cake
Hi Toke,
On Oct 6, 2015, at 10:39 , Toke Høiland-Jørgensen <toke@toke.dk> wrote:
> Sebastian Moeller <moeller0@gmx.de> writes:
>
>> Ah, I see. I guess you are right, but on egress we could get back to
>> the pre-nat addresses, like Vincent does in nxt_routed_hfsc.qos?
>
> Ah, so there is a hook to get those; cool. Just need to make sure Cake
> uses that, then :)
I have not done sufficient research, but I think that this requires the net filter conn track module to be available? So this does not seem generally available, though we might be able to make this a requirement for sqm-scripts (if Vincent did not already do so).
Best Regards
Sebastian
>
> -Toke
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [Cake] flow_hash vs host_hash
2015-10-06 8:44 ` Jonathan Morton
@ 2015-10-06 10:59 ` Sebastian Moeller
2015-10-06 12:51 ` Dave Taht
0 siblings, 1 reply; 17+ messages in thread
From: Sebastian Moeller @ 2015-10-06 10:59 UTC (permalink / raw)
To: Jonathan Morton; +Cc: cake
Hi Jonathan,
On Oct 6, 2015, at 10:44 , Jonathan Morton <chromatix99@gmail.com> wrote:
>
>> On 6 Oct, 2015, at 11:39, Toke Høiland-Jørgensen <toke@toke.dk> wrote:
>>
>> Sebastian Moeller <moeller0@gmx.de> writes:
>>
>>> Ah, I see. I guess you are right, but on egress we could get back to
>>> the pre-nat addresses, like Vincent does in nxt_routed_hfsc.qos?
>
> I can’t immediately see how that works.
>
>> Ah, so there is a hook to get those; cool. Just need to make sure Cake
>> uses that, then :)
>
> I think the better solution would be to implement that in the flow dissector. Then Cake (and all other relevant qdiscs) will receive that information automatically.
Certainly. But all of this hopefully does impede the implementation of the dual-flow-classifiying cake-mode; as even without those refinements the dual-mode should work well for IPv6 (assuming people do not game this by using excessive amounts of addresses per host) and non-NATed IPv4…
Best Regards
Sebastian
>
> - Jonathan Morton
>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [Cake] flow_hash vs host_hash
2015-10-06 10:59 ` Sebastian Moeller
@ 2015-10-06 12:51 ` Dave Taht
2015-10-06 13:56 ` Jonathan Morton
2015-10-06 15:07 ` David Lang
0 siblings, 2 replies; 17+ messages in thread
From: Dave Taht @ 2015-10-06 12:51 UTC (permalink / raw)
To: Sebastian Moeller; +Cc: cake
In most scenarios the top level hash for per station queuing on
ethernet would be
source or destination macaddr, thus bypassing ipv4 or ipv6.
Then below that goes the 5 tuple.
On Tue, Oct 6, 2015 at 12:59 PM, Sebastian Moeller <moeller0@gmx.de> wrote:
> Hi Jonathan,
>
> On Oct 6, 2015, at 10:44 , Jonathan Morton <chromatix99@gmail.com> wrote:
>
>>
>>> On 6 Oct, 2015, at 11:39, Toke Høiland-Jørgensen <toke@toke.dk> wrote:
>>>
>>> Sebastian Moeller <moeller0@gmx.de> writes:
>>>
>>>> Ah, I see. I guess you are right, but on egress we could get back to
>>>> the pre-nat addresses, like Vincent does in nxt_routed_hfsc.qos?
>>
>> I can’t immediately see how that works.
>>
>>> Ah, so there is a hook to get those; cool. Just need to make sure Cake
>>> uses that, then :)
>>
>> I think the better solution would be to implement that in the flow dissector. Then Cake (and all other relevant qdiscs) will receive that information automatically.
>
> Certainly. But all of this hopefully does impede the implementation of the dual-flow-classifiying cake-mode; as even without those refinements the dual-mode should work well for IPv6 (assuming people do not game this by using excessive amounts of addresses per host) and non-NATed IPv4…
>
> Best Regards
> Sebastian
>
>>
>> - Jonathan Morton
>>
>
> _______________________________________________
> Cake mailing list
> Cake@lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/cake
--
Dave Täht
Do you want faster, better, wifi? https://www.patreon.com/dtaht
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [Cake] flow_hash vs host_hash
2015-10-06 12:51 ` Dave Taht
@ 2015-10-06 13:56 ` Jonathan Morton
2015-10-06 15:07 ` David Lang
1 sibling, 0 replies; 17+ messages in thread
From: Jonathan Morton @ 2015-10-06 13:56 UTC (permalink / raw)
To: Dave Taht; +Cc: cake
> On 6 Oct, 2015, at 15:51, Dave Taht <dave.taht@gmail.com> wrote:
>
> In most scenarios the top level hash for per station queuing on
> ethernet would be source or destination macaddr, thus bypassing ipv4 or ipv6.
Not when we’re talking about a router connected to a separate modem over Ethernet, or some device that pretends to be Ethernet (as one of my 3G dongles does). That’s a very common scenario, and it would hide all of the host information if it relied entirely on MAC addresses.
MAC addresses are more relevant to wifi links.
- Jonathan Morton
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [Cake] flow_hash vs host_hash
2015-10-06 12:51 ` Dave Taht
2015-10-06 13:56 ` Jonathan Morton
@ 2015-10-06 15:07 ` David Lang
1 sibling, 0 replies; 17+ messages in thread
From: David Lang @ 2015-10-06 15:07 UTC (permalink / raw)
To: Dave Taht; +Cc: cake
[-- Attachment #1: Type: TEXT/PLAIN, Size: 2245 bytes --]
only if the bottleneck router that needs to do the queuing is directly adjacent
to the endpoints.
Yes, home routers commonly fit this definition, but since the usual case is a
router/modem from the ISP with a wifi router plugged into it and the endpoints
attached to the wifi router (wired or wireless), the ISP router/modem which has
the actual bottleneck and should be doing the queuing isn't going to actually
see the endpoint mac addresses.
David Lang
On Tue, 6 Oct 2015, Dave Taht wrote:
> In most scenarios the top level hash for per station queuing on
> ethernet would be
> source or destination macaddr, thus bypassing ipv4 or ipv6.
>
> Then below that goes the 5 tuple.
>
> On Tue, Oct 6, 2015 at 12:59 PM, Sebastian Moeller <moeller0@gmx.de> wrote:
>> Hi Jonathan,
>>
>> On Oct 6, 2015, at 10:44 , Jonathan Morton <chromatix99@gmail.com> wrote:
>>
>>>
>>>> On 6 Oct, 2015, at 11:39, Toke Høiland-Jørgensen <toke@toke.dk> wrote:
>>>>
>>>> Sebastian Moeller <moeller0@gmx.de> writes:
>>>>
>>>>> Ah, I see. I guess you are right, but on egress we could get back to
>>>>> the pre-nat addresses, like Vincent does in nxt_routed_hfsc.qos?
>>>
>>> I can’t immediately see how that works.
>>>
>>>> Ah, so there is a hook to get those; cool. Just need to make sure Cake
>>>> uses that, then :)
>>>
>>> I think the better solution would be to implement that in the flow dissector. Then Cake (and all other relevant qdiscs) will receive that information automatically.
>>
>> Certainly. But all of this hopefully does impede the implementation of the dual-flow-classifiying cake-mode; as even without those refinements the dual-mode should work well for IPv6 (assuming people do not game this by using excessive amounts of addresses per host) and non-NATed IPv4…
>>
>> Best Regards
>> Sebastian
>>
>>>
>>> - Jonathan Morton
>>>
>>
>> _______________________________________________
>> Cake mailing list
>> Cake@lists.bufferbloat.net
>> https://lists.bufferbloat.net/listinfo/cake
>
>
>
> --
> Dave Täht
> Do you want faster, better, wifi? https://www.patreon.com/dtaht
> _______________________________________________
> Cake mailing list
> Cake@lists.bufferbloat.net
> https://lists.bufferbloat.net/listinfo/cake
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2015-10-06 15:08 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-05 12:20 [Cake] flow_hash vs host_hash Dave Taht
2015-10-05 12:30 ` Jonathan Morton
2015-10-05 12:45 ` Sebastian Moeller
2015-10-05 14:01 ` Dave Taht
2015-10-06 6:26 ` Kevin Darbyshire-Bryant
2015-10-06 7:18 ` Sebastian Moeller
2015-10-06 8:13 ` Toke Høiland-Jørgensen
2015-10-06 8:27 ` Sebastian Moeller
2015-10-06 8:28 ` Toke Høiland-Jørgensen
2015-10-06 8:37 ` Sebastian Moeller
2015-10-06 8:39 ` Toke Høiland-Jørgensen
2015-10-06 8:44 ` Jonathan Morton
2015-10-06 10:59 ` Sebastian Moeller
2015-10-06 12:51 ` Dave Taht
2015-10-06 13:56 ` Jonathan Morton
2015-10-06 15:07 ` David Lang
2015-10-06 9:38 ` Sebastian Moeller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox