netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] ecn match ported to ipv6
@ 2011-06-08 15:01 Eric Dumazet
       [not found] ` <BANLkTi=ORBH0q_arGbFUdjk=WMjbBz1KZg@mail.gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Eric Dumazet @ 2011-06-08 15:01 UTC (permalink / raw)
  To: Patrick McHardy, Jan Engelhardt
  Cc: Netfilter Development Mailinglist, Dave Taht

Dave Taht mentioned in bloat list that netfilter ecn match was ipv4
only.

Is there any plan to make the switch from net/ipv4/netfilter/ipt_ecn.c
to net/netfilter/xt_ecn.c ?

I can probably do it but not before ~ten days, so if someone is
interested, this will please Dave ;)

Thanks



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Fwd: [RFC] ecn match ported to ipv6
       [not found] ` <BANLkTi=ORBH0q_arGbFUdjk=WMjbBz1KZg@mail.gmail.com>
@ 2011-06-08 15:49   ` Dave Taht
  2011-06-08 17:32   ` Patrick McHardy
  1 sibling, 0 replies; 7+ messages in thread
From: Dave Taht @ 2011-06-08 15:49 UTC (permalink / raw)
  To: Netfilter Development Mailinglist

---------- Forwarded message ----------
From: Dave Taht <dave.taht@gmail.com>
Date: Wed, Jun 8, 2011 at 9:47 AM
Subject: Re: [RFC] ecn match ported to ipv6
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Patrick McHardy <kaber@trash.net>, Jan Engelhardt
<jengelh@medozas.de>, Netfilter Development Mailinglist
<netfilter-devel@vger.kernel.org>




On Wed, Jun 8, 2011 at 9:01 AM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
>
> Dave Taht mentioned in bloat list that netfilter ecn match was ipv4
> only.
>
> Is there any plan to make the switch from net/ipv4/netfilter/ipt_ecn.c
> to net/netfilter/xt_ecn.c ?
>
> I can probably do it but not before ~ten days, so if someone is
> interested, this will please Dave ;)

The larger question I had was this

"iptables seems to think ecn can only be looked at in TCP streams, where (for
example), ecn bits can be copied to the outer header of a udp vpn
stream, and marked


when needed."

ECN is an ip level standard, not just a tcp one.

http://www.ietf.org/rfc/rfc3168.txt

Example of ECN on ipsec:

http://huchra.bufferbloat.net/~d/veryhappynetwork.png

Also ECN marking in various qdiscs like HTB as presently being
discussed on the bloat list

https://lists.bufferbloat.net/pipermail/bloat/2011-June/000555.html

and a truly crazy idea regarding combining DSCP with firewalling is here:

https://lists.bufferbloat.net/pipermail/bloat/2011-June/000558.html

To give some context as to what we've been up to regarding
bufferbloat, I have a test lab setup with a bunch of wndr3700v2
routers at georgia tech, and have pushed  every ecn and bufferbloat
related patch in linux head into the openwrt distro, and am playing
with all sorts of techniques now, with increasingly good results.

The 'uberwrt' project is in addition to the debloat-testing work
and has various subprojects... mostly targeting the wndr3700v2 and
nanostation M5 as these have a completely open source wireless and
wired stack.

http://www.bufferbloat.net/projects/uberwrt/wiki

--
Dave Täht
SKYPE: davetaht
US Tel: 1-239-829-5608
http://www.bufferbloat.net



--
Dave Täht
SKYPE: davetaht
US Tel: 1-239-829-5608
http://the-edge.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] ecn match ported to ipv6
       [not found] ` <BANLkTi=ORBH0q_arGbFUdjk=WMjbBz1KZg@mail.gmail.com>
  2011-06-08 15:49   ` Fwd: " Dave Taht
@ 2011-06-08 17:32   ` Patrick McHardy
  2011-06-08 20:50     ` Jan Engelhardt
  1 sibling, 1 reply; 7+ messages in thread
From: Patrick McHardy @ 2011-06-08 17:32 UTC (permalink / raw)
  To: Dave Taht; +Cc: Eric Dumazet, Jan Engelhardt, Netfilter Development Mailinglist

On 08.06.2011 17:47, Dave Taht wrote:
> On Wed, Jun 8, 2011 at 9:01 AM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
> 
>> Dave Taht mentioned in bloat list that netfilter ecn match was ipv4
>> only.
>>
>> Is there any plan to make the switch from net/ipv4/netfilter/ipt_ecn.c
>> to net/netfilter/xt_ecn.c ?
>>
>> I can probably do it but not before ~ten days, so if someone is
>> interested, this will please Dave ;)

That should be a relatively quick job, I'll give it a shot while
my dinner is cooking :)

> The larger question I had was this
> 
> "iptables seems to think ecn can only be looked at in TCP streams, where (for
> example), ecn bits can be copied to the outer header of a udp vpn
> stream, and marked
> 
> when needed."
> 
> ECN is an ip level standard, not just a tcp one.

That probably needs a new revision and is slightly more work, lets
begin by porting it to IPv6, then we can add this on top.

> http://www.ietf.org/rfc/rfc3168.txt
> 
> Example of ECN on ipsec:
> 
> http://huchra.bufferbloat.net/~d/veryhappynetwork.png
> 
> Also ECN marking in various qdiscs like HTB as presently being discussed on
> the bloat list
> 
> https://lists.bufferbloat.net/pipermail/bloat/2011-June/000555.html

I'd suggest to make this generic so other qdiscs can use it as well.

> and a truly crazy idea regarding combining DSCP with firewalling is here:
> 
> https://lists.bufferbloat.net/pipermail/bloat/2011-June/000558.html
> 
> To give some context as to what we've been up to regarding bufferbloat, I
> have a test lab setup with a bunch of wndr3700v2 routers at georgia tech,
> and have pushed  every ecn and bloat related patch in linux head into the
> openwrt distro, and am playing with all sorts of techniques now, with
> increasingly good results.
> 
> The 'uberwrt' project is in addition to the debloat-testing work
> and has various subprojects...
> 
> http://www.bufferbloat.net/projects/uberwrt/wiki
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] ecn match ported to ipv6
  2011-06-08 17:32   ` Patrick McHardy
@ 2011-06-08 20:50     ` Jan Engelhardt
  2011-06-09  8:17       ` Patrick McHardy
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Engelhardt @ 2011-06-08 20:50 UTC (permalink / raw)
  To: Patrick McHardy
  Cc: Dave Taht, Eric Dumazet, Netfilter Development Mailinglist

On Wednesday 2011-06-08 19:32, Patrick McHardy wrote:

>On 08.06.2011 17:47, Dave Taht wrote:
>> On Wed, Jun 8, 2011 at 9:01 AM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
>> 
>>> Dave Taht mentioned in bloat list that netfilter ecn match was ipv4
>>> only.
>>>
>>> Is there any plan to make the switch from net/ipv4/netfilter/ipt_ecn.c
>>> to net/netfilter/xt_ecn.c ?
>>>
>>> I can probably do it but not before ~ten days, so if someone is
>>> interested, this will please Dave ;)
>
>That should be a relatively quick job, I'll give it a shot while
>my dinner is cooking :)
>
>> The larger question I had was this
>> 
>> "iptables seems to think ecn can only be looked at in TCP streams, where (for
>> example), ecn bits can be copied to the outer header of a udp vpn
>> stream, and marked
>> 
>> when needed."
>> 
>> ECN is an ip level standard, not just a tcp one.
>
>That probably needs a new revision and is slightly more work, lets
>begin by porting it to IPv6, then we can add this on top.

Moving it to xt_ecn first seems like producing a smaller patchset 
because you don't have to potentially duplicate the functions first. :)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] ecn match ported to ipv6
  2011-06-08 20:50     ` Jan Engelhardt
@ 2011-06-09  8:17       ` Patrick McHardy
  2011-06-09 12:15         ` Dave Taht
  0 siblings, 1 reply; 7+ messages in thread
From: Patrick McHardy @ 2011-06-09  8:17 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Dave Taht, Eric Dumazet, Netfilter Development Mailinglist

On 08.06.2011 22:50, Jan Engelhardt wrote:
> On Wednesday 2011-06-08 19:32, Patrick McHardy wrote:
> 
>> On 08.06.2011 17:47, Dave Taht wrote:
>>> On Wed, Jun 8, 2011 at 9:01 AM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
>>>
>>>> Dave Taht mentioned in bloat list that netfilter ecn match was ipv4
>>>> only.
>>>>
>>>> Is there any plan to make the switch from net/ipv4/netfilter/ipt_ecn.c
>>>> to net/netfilter/xt_ecn.c ?
>>>>
>>>> I can probably do it but not before ~ten days, so if someone is
>>>> interested, this will please Dave ;)
>>
>> That should be a relatively quick job, I'll give it a shot while
>> my dinner is cooking :)
>>
>>> The larger question I had was this
>>>
>>> "iptables seems to think ecn can only be looked at in TCP streams, where (for
>>> example), ecn bits can be copied to the outer header of a udp vpn
>>> stream, and marked
>>>
>>> when needed."
>>>
>>> ECN is an ip level standard, not just a tcp one.
>>
>> That probably needs a new revision and is slightly more work, lets
>> begin by porting it to IPv6, then we can add this on top.
> 
> Moving it to xt_ecn first seems like producing a smaller patchset 
> because you don't have to potentially duplicate the functions first. :)

It actually already supports matching on IP header ECN bits:

[!] --ecn-ip-ect [0..3]	Match ECN codepoint in IPv4 header

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] ecn match ported to ipv6
  2011-06-09  8:17       ` Patrick McHardy
@ 2011-06-09 12:15         ` Dave Taht
  2011-06-09 12:20           ` Patrick McHardy
  0 siblings, 1 reply; 7+ messages in thread
From: Dave Taht @ 2011-06-09 12:15 UTC (permalink / raw)
  To: Patrick McHardy
  Cc: Jan Engelhardt, Eric Dumazet, Netfilter Development Mailinglist

On Thu, Jun 9, 2011 at 2:17 AM, Patrick McHardy <kaber@trash.net> wrote:
> On 08.06.2011 22:50, Jan Engelhardt wrote:
>> On Wednesday 2011-06-08 19:32, Patrick McHardy wrote:
>>
>>> On 08.06.2011 17:47, Dave Taht wrote:
>>>> On Wed, Jun 8, 2011 at 9:01 AM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
>>>>
>>>>> Dave Taht mentioned in bloat list that netfilter ecn match was ipv4
>>>>> only.
>>>>>
>>>>> Is there any plan to make the switch from net/ipv4/netfilter/ipt_ecn.c
>>>>> to net/netfilter/xt_ecn.c ?
>>>>>
>>>>> I can probably do it but not before ~ten days, so if someone is
>>>>> interested, this will please Dave ;)
>>>
>>> That should be a relatively quick job, I'll give it a shot while
>>> my dinner is cooking :)
>>>
>>>> The larger question I had was this
>>>>
>>>> "iptables seems to think ecn can only be looked at in TCP streams, where (for
>>>> example), ecn bits can be copied to the outer header of a udp vpn
>>>> stream, and marked
>>>>
>>>> when needed."
>>>>
>>>> ECN is an ip level standard, not just a tcp one.
>>>
>>> That probably needs a new revision and is slightly more work, lets
>>> begin by porting it to IPv6, then we can add this on top.
>>
>> Moving it to xt_ecn first seems like producing a smaller patchset
>> because you don't have to potentially duplicate the functions first. :)
>
> It actually already supports matching on IP header ECN bits:
>
> [!] --ecn-ip-ect [0..3] Match ECN codepoint in IPv4 header
>

Sorry, my bad. It's even documented as existing.

So it's just a pair of convienence functions (
--ecn-ip-ece --ecn-ip-cwr )

and ipv6 iptables support for ECN that are MIA.

I'll argue that extending the blackhole-ing feature to also include ip

       --ecn-tcp-remove

might be good... although in my testing I have not found a blackhole
yet, they must still be out there.

-- 
Dave Täht
SKYPE: davetaht
US Tel: 1-239-829-5608
http://the-edge.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RFC] ecn match ported to ipv6
  2011-06-09 12:15         ` Dave Taht
@ 2011-06-09 12:20           ` Patrick McHardy
  0 siblings, 0 replies; 7+ messages in thread
From: Patrick McHardy @ 2011-06-09 12:20 UTC (permalink / raw)
  To: Dave Taht; +Cc: Jan Engelhardt, Eric Dumazet, Netfilter Development Mailinglist

On 09.06.2011 14:15, Dave Taht wrote:
> On Thu, Jun 9, 2011 at 2:17 AM, Patrick McHardy <kaber@trash.net> wrote:
>> On 08.06.2011 22:50, Jan Engelhardt wrote:
>>> On Wednesday 2011-06-08 19:32, Patrick McHardy wrote:
>>>
>>>> On 08.06.2011 17:47, Dave Taht wrote:
>>>>> On Wed, Jun 8, 2011 at 9:01 AM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
>>>>>
>>>>>> Dave Taht mentioned in bloat list that netfilter ecn match was ipv4
>>>>>> only.
>>>>>>
>>>>>> Is there any plan to make the switch from net/ipv4/netfilter/ipt_ecn.c
>>>>>> to net/netfilter/xt_ecn.c ?
>>>>>>
>>>>>> I can probably do it but not before ~ten days, so if someone is
>>>>>> interested, this will please Dave ;)
>>>>
>>>> That should be a relatively quick job, I'll give it a shot while
>>>> my dinner is cooking :)
>>>>
>>>>> The larger question I had was this
>>>>>
>>>>> "iptables seems to think ecn can only be looked at in TCP streams, where (for
>>>>> example), ecn bits can be copied to the outer header of a udp vpn
>>>>> stream, and marked
>>>>>
>>>>> when needed."
>>>>>
>>>>> ECN is an ip level standard, not just a tcp one.
>>>>
>>>> That probably needs a new revision and is slightly more work, lets
>>>> begin by porting it to IPv6, then we can add this on top.
>>>
>>> Moving it to xt_ecn first seems like producing a smaller patchset
>>> because you don't have to potentially duplicate the functions first. :)
>>
>> It actually already supports matching on IP header ECN bits:
>>
>> [!] --ecn-ip-ect [0..3] Match ECN codepoint in IPv4 header
>>
> 
> Sorry, my bad. It's even documented as existing.
> 
> So it's just a pair of convienence functions (
> --ecn-ip-ece --ecn-ip-cwr )

Yeah, that would make usage easier.

> and ipv6 iptables support for ECN that are MIA.

Sent out patches a few seconds ago.

> I'll argue that extending the blackhole-ing feature to also include ip
> 
>        --ecn-tcp-remove
> 
> might be good... although in my testing I have not found a blackhole
> yet, they must still be out there.

That would be the ECN target, not the match.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-06-09 12:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-08 15:01 [RFC] ecn match ported to ipv6 Eric Dumazet
     [not found] ` <BANLkTi=ORBH0q_arGbFUdjk=WMjbBz1KZg@mail.gmail.com>
2011-06-08 15:49   ` Fwd: " Dave Taht
2011-06-08 17:32   ` Patrick McHardy
2011-06-08 20:50     ` Jan Engelhardt
2011-06-09  8:17       ` Patrick McHardy
2011-06-09 12:15         ` Dave Taht
2011-06-09 12:20           ` Patrick McHardy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).