Re: tc and IPv6 : any experiences ?

Dave Taht <[email protected]>
Newsgroups org.kernel.vger.lartc
Message-ID <CAA93jw4fVKNg9wxs98qhw_PsVkBQA1epXwLEzVoaQXUUXufbCQ@mail.gmail.com>
On Fri, Jan 13, 2017 at 5:49 AM, Alan Goodman
<[email protected]> wrote:
> 'Just works' for me.
>
> TF + HFSC + FQ_Codel.  QoS categoriser written in iptables rules which mark
> the traffic was 'cloned' across using ip6tables. Slight adjustments needed.

I pointed to a common mistake folk tend to make when dealing with
ipv6, in writing a filter rule, or a default bin, here:

https://www.bufferbloat.net/projects/cerowrt/wiki/Wondershaper_Must_Die/

When I started that rant I was seeing in nearly every off the shelf
shaper a tc pattern match that looked like this:

tc filter add dev $DEV parent ffff: protocol ip prio 50 u32 match ip src \
   0.0.0.0/0 police rate ${DOWNLINK}kbit burst 10k drop flowid :1

Instead of

tc filter add dev ${DEV} parent ffff: protocol all match u32 0 0 \
police rate ${DOWNLINK}kbit burst 100k drop flowid :1


Not matching protocol "all", thus ipv4 only - and thus the instant you
added ipv6 to a network, the shaper (or policer in this case),  failed
to shape successfully any traffic. Additional problems listed in the
link above. I went on a search-and-destroy mission on every shaper I
could find that was public to fix it a few years ago, but there's so
much copy/pasted tc code out there...


> Alan
>
>
>
> On 13/01/17 13:21, Willy MANGA wrote:
>>
>> Hello,
>> is there somebody here who can share a little bit how he is using tc
>> with native IPv6 address ?
>>
>> I'm using Debian jessie and I may be wrong but I don't find a good
>> documentation on that topic. :-\
>>
>> Actually, I have a dual network and only shaping v4 traffic [1]
>>
>>
>>
>> 1.
>>
>> https://wiki.auf.org/wikiteki/ZAC/Yaound%C3%A9/Configuration/Contr%C3%B4leDuTraffic
>> --
>> To unsubscribe from this list: send the line "unsubscribe lartc" in
>> the body of a message to [email protected]
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe lartc" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Dave Täht
Let's go make home routers and wifi faster! With better software!
http://blog.cerowrt.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.