All of lore.kernel.org
 help / color / mirror / Atom feed
* ingress bandwidth limitation for ipv6 is inaccurate
@ 2019-10-13  7:17 yue longguang
  0 siblings, 0 replies; 4+ messages in thread
From: yue longguang @ 2019-10-13  7:17 UTC (permalink / raw)
  To: netdev

Hi,all

1.  according to my test,  bandwidth limitation is inaccurate for
ingress ipv6 .  The accuracy is affected by burst.   if rate is less
than 100mbit , set burst to 1MB or 2MB, the result is almost
acceptable.  but when rate is bigger , the result is approximately 1/3
of rate.
command:  tc filter add dev qr-869fbdc2-1e parent ffff: protocol ipv6
u32 match ip6 src any police rate 500mbit burst 1M drop
so except for using ifb, what should be done to get a accurate result.

2. can flowid option of  ingess's filter belong to egress's class.
for example    tc filter add dev qr-869fbdc2-1e parent ffff: protocol
ipv6 u32 match ip6 src any police rate 500mbit burst 1M flowid 1:10
 (1:10 classid  is egress's qdisc's class )

thank you for replying my two questions

^ permalink raw reply	[flat|nested] 4+ messages in thread
* ingress bandwidth limitation for ipv6 is inaccurate
@ 2019-10-08  5:53 yue longguang
  2019-10-12  2:01 ` yue longguang
  0 siblings, 1 reply; 4+ messages in thread
From: yue longguang @ 2019-10-08  5:53 UTC (permalink / raw)
  To: kuznet, stephen, netdev

Firstly, thank you  stephen.

Hi, kuznet:

1.  according to my test,  bandwidth limitation is inaccurate for
ingress ipv6 .  The accuracy is affected by burst.   if rate is less
than 100mbit , set burst to 1MB or 2MB, the result is almost
acceptable.  but when rate is bigger , the result is approximately 1/3
of rate.
command:  tc filter add dev qr-869fbdc2-1e parent ffff: protocol ipv6
u32 match ip6 src any police rate 500mbit burst 1M drop
so except for using ifb, what should be done to get a accurate result.

2. can flowid option of  ingess's filter belong to egress's class.
for example    tc filter add dev qr-869fbdc2-1e parent ffff: protocol
ipv6 u32 match ip6 src any police rate 500mbit burst 1M flowid 1:10
 (1:10 classid  is egress's qdisc's class )


thanks

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

end of thread, other threads:[~2019-10-13  7:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-13  7:17 ingress bandwidth limitation for ipv6 is inaccurate yue longguang
  -- strict thread matches above, loose matches on Subject: below --
2019-10-08  5:53 yue longguang
2019-10-12  2:01 ` yue longguang
2019-10-12  3:27   ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.