Shaper IPv6 upload not work

Shaper related questions
gondim
Posts: 64
Joined: 04 Mar 2016, 14:44

Shaper IPv6 upload not work

Post by gondim »

Hi,

I'm doing some tests with IPv6 and found that the download is controlling the speed but not the upload.

Below a test Speedtest mini:

https://youtu.be/dO9VO5N1nkc

[root@accel01srv accel-ppp]# accel-cmd show sessions
ifname | username | calling-sid | ip | rate-limit | type | comp | state | uptime
--------+----------------+------------------------+---------------+-------------+-------+------+--------+----------
ppp0 | hercilia201254 | eth1:d4:ca:6d:62:2f:e2 | 138.xxx.155.1 | 10240/10240 | pppoe | | active | 00:09:12

my conf:

[modules]
log_file

pppoe

auth_mschap_v2
auth_mschap_v1
auth_chap_md5
auth_pap

radius
#chap-secrets

ippool

#pppd_compat

shaper

ipv6_nd
ipv6_dhcp
ipv6pool

[core]
log-error=/var/log/accel-ppp/core.log
thread-count=8

[common]
#single-session=replace
#sid-case=upper
#sid-source=seq

[ppp]
verbose=1
min-mtu=1280
mtu=1400
mru=1400
ipv4=require
ipv6=allow

[pppoe]
interface=eth1
ifname-in-sid=both
ip-pool=pppoe
verbose=1


[dns]
dns1=8.8.8.8
#dns2=8.8.8.8

[client-ip-range]
192.168.255.0/24

[ipv6-dns]
2804:XXXX:dead:b1ba::165

[ip-pool]
gw-ip-address=172.16.1.1
138.XXX.155.1-254,name=pppoe

[ipv6-pool]
2804:XXXX:DEAD:7000::/52,64

[ipv6-dhcp]
verbose=1
pref-lifetime=604800
valid-lifetime=2592000
route-via-gw=1

[log]
log-emerg=/var/log/accel-ppp/emerg.log
log-file=/var/log/accel-ppp/accel-ppp.log
copy=1
level=4

[radius]
dictionary=/usr/local/share/accel-ppp/radius/dictionary
nas-identifier=accel-ppp
nas-ip-address=192.168.255.8
gw-ip-address=172.16.1.1
server=191.xxx.xxx.162,XXXXX,auth-port=1812,acct-port=1813,req-limit=50,fail-timeout=0,max-fail=10,weight=1
dae-server=127.0.0.1:3799,testing123
verbose=1

[shaper]
up-limiter=police
down-limiter=tbf
verbose=1

[cli]
verbose=1
telnet=127.0.0.1:2000
tcp=127.0.0.1:2001
#password=test123
dimka88
Posts: 866
Joined: 13 Oct 2014, 05:51
Contact:

Re: Shaper IPv6 upload not work

Post by dimka88 »

Hi. http://accel-ppp.org/wiki/doku.php?id=k ... ired_rates
turn off all offload parameters except checksumming and scatter-gatter.
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: Shaper IPv6 upload not work

Post by Dmitry »

check for proper tbf/police installation:
tc qdisc show dev ppp0
tc filter show dev ppp0 parent ffff:
gondim
Posts: 64
Joined: 04 Mar 2016, 14:44

Re: Shaper IPv6 upload not work

Post by gondim »

Hi,

Even disabling the offload, uploading works best but is still too high. Should consuming 10Mbps and is consuming 38Mbps.

[root@accel01srv accel-ppp]# ethtool -k eth1
Features for eth1:
rx-checksumming: on
tx-checksumming: on
tx-checksum-ipv4: on
tx-checksum-ip-generic: off [fixed]
tx-checksum-ipv6: on
tx-checksum-fcoe-crc: off [fixed]
tx-checksum-sctp: off [fixed]
scatter-gather: on
tx-scatter-gather: on
tx-scatter-gather-fraglist: off [fixed]
tcp-segmentation-offload: off
tx-tcp-segmentation: off
tx-tcp-ecn-segmentation: off
tx-tcp6-segmentation: off
udp-fragmentation-offload: off [fixed]
generic-segmentation-offload: off
generic-receive-offload: off
large-receive-offload: off [fixed]
rx-vlan-offload: off
tx-vlan-offload: off
ntuple-filters: off [fixed]
receive-hashing: off
highdma: on [fixed]
rx-vlan-filter: off [fixed]
vlan-challenged: off [fixed]
tx-lockless: off [fixed]
netns-local: off [fixed]
tx-gso-robust: off [fixed]
tx-fcoe-segmentation: off [fixed]
tx-gre-segmentation: off [fixed]
tx-ipip-segmentation: off [fixed]
tx-sit-segmentation: off [fixed]
tx-udp_tnl-segmentation: off [fixed]
tx-mpls-segmentation: off [fixed]
fcoe-mtu: off [fixed]
tx-nocache-copy: off
loopback: off [fixed]
rx-fcs: off [fixed]
rx-all: off [fixed]
tx-vlan-stag-hw-insert: off [fixed]
rx-vlan-stag-hw-parse: off [fixed]
rx-vlan-stag-filter: off [fixed]
busy-poll: off [fixed]

Something else I can try?

Thanks and best regards
gondim
Posts: 64
Joined: 04 Mar 2016, 14:44

Re: Shaper IPv6 upload not work

Post by gondim »

Dmitry wrote:check for proper tbf/police installation:
tc qdisc show dev ppp0
tc filter show dev ppp0 parent ffff:
[root@accel01srv accel-ppp]# tc qdisc show dev ppp0
qdisc tbf 1: root refcnt 2 rate 10240Kbit burst 125Kb lat 50.0ms
qdisc ingress ffff: parent ffff:fff1 ----------------

[root@accel01srv accel-ppp]# tc filter show dev ppp0 parent ffff:
filter protocol ip pref 100 u32
filter protocol ip pref 100 u32 fh 800: ht divisor 1
filter protocol ip pref 100 u32 fh 800::1 order 1 key ht 800 bkt 0 flowid :1
match 00000000/00000000 at 12
action order 1: police 0x2f rate 10240Kbit burst 1250Kb mtu 2Kb action drop overhead 0b
ref 1 bind 1
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: Shaper IPv6 upload not work

Post by Dmitry »

i don't know then, all things looks proper
try to disable offloads on upstream interface too
gondim
Posts: 64
Joined: 04 Mar 2016, 14:44

Re: Shaper IPv6 upload not work

Post by gondim »

With IPv4 works fine but not with IPv6 uploading. Very strange.
I noticed this because here I work with TCP/IP Dual Stack (IPv4 and IPv6).
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: Shaper IPv6 upload not work

Post by Dmitry »

ok, i'll check ipv6, didn't check it actually
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: Shaper IPv6 upload not work

Post by Dmitry »

fixed in 1.10.1
gondim
Posts: 64
Joined: 04 Mar 2016, 14:44

Re: Shaper IPv6 upload not work

Post by gondim »

Hi Dmitry,

Version 1.10.1 fixed the problema. It works now

Thanks!!! :)
Post Reply