Shaper UDP Upload not working

Shaper related questions
Post Reply
huniya@xflow
Posts: 2
Joined: 24 Mar 2017, 04:31

Shaper UDP Upload not working

Post by huniya@xflow »

I've been using accel-ppp to limit the bandwidth of incoming and outgoing UDP/TCP traffic. I verify the bandwidth by using iperf commands.
The TCP traffic works perfectly fine according to the upload and download speed specified in the Filter-Id. UDP download works fine as well, but UDP upload shows a very low bandwidth, in KBits/s when it should be in MBits/s.

The following iperf commands are used to test UDP upload:

Code: Select all

iperf -s -u
iperf -c <ip> -u -b 50M
Accel-ppp.conf:

Code: Select all

[modules]
log_syslog
log_file
log_tcp
pptp
l2tp
pppoe
radius
shaper
auth_mschap_v2
ippool
#auth_mschap_v1
#auth_chap_md5
#auth_pap
#chap-secrets
net-snmp

pppd_compat

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


[ppppd-compat]
ip-up=/etc/ppp/ip-up
radattr=/var/run/radattr
verbose=1



[ppp]
verbose=1
min-mtu=1280
mtu=1400
mru=1400
ipv4=require
ipv6=deny
unit-cache=300

[auth]
any-login=0
noauth=0

[lcp]
echo-interval=5
echo-failure=1
[pptp]
#interface=ens8
verbose=1
#pado-delay=0,100:500

[pppoe]
interface=ens4
verbose=1
#pado-delay=0,100:500

[snmp]
master=0
agent-name=accel-ppp


[l2tp]
#verbose=1

[dns]
dns1=8.8.8.8
dns2=8.8.4.4

[client-ip-range]
0.0.0.0/0

[ip-pool]
gw-ip-address=10.10.1.1
attr=Framed-Pool
10.10.3.1-255, name=pool-1
10.10.4.1-2, name=pool-2
10.10.5.1-255, name=pool-3
10.10.6.1-255, name=pool-4
10.10.7.1-2, name=pool-2

[log]
log-fail-file=/var/log/accel-ppp/auth-fail.log
log-file=/var/log/accel-ppp/accel-ppp.log
log-emerg=/var/log/accel-ppp/emerg.log
copy=1
level=5
log-debug=/dev/stdout
syslog=accel-pppd,daemon
log-tcp=0.0.0.0:3000
copy=1
color=1
#per-user-dir=per_user
#per-session-dir=per_session
per-user-dir=/var/log/accel-ppp/per_user
per-session-dir=/var/log/accel-ppp/per_session
per-session=1
#level=3

#[chap-secrets]
#gw-ip-address=192.168.122.1
#chap-secrets=/etc/ppp/chap-secrets

[cli]
telnet=127.0.0.1:2000
tcp=127.0.0.1:2001
#password=123

[radius]
nas-identifier=accel-ppp
nas-ip-address=192.168.10.210
gw-ip-address=10.10.1.1
server=192.168.10.211,xflow,auth-port=1812,acct-port=1813,req-limit=0,fail-time=0,weight=1
dae-server=192.168.10.211:3799,xflow
verbose=5
acct-interim-interval=1
timeout=10
max-try=3
acct-timeout=60
acct-delay-time=0
acct-on=1


[shaper]
attr=Filter-Id
up-limiter=htb
down-limiter=htb
verbose=1

time-range=1,00:00-10:26
time-range=2,10:26-23:59
Going through previous forum posts, I've already tried the following solutions:
1. Changed accel-ppp version from 1.9 to 1.11
2. Turned off all offload parameters except checksumming and scatter-gather by using ethtool -K ens3.

Can you please let me know why it is still not working?
hugleo
Posts: 59
Joined: 13 Apr 2016, 14:28

Re: Shaper UDP Upload not working

Post by hugleo »

Try the default:

[shaper]
attr=Filter-Id
up-limiter=police
down-limiter=tbf
huniya@xflow
Posts: 2
Joined: 24 Mar 2017, 04:31

Re: Shaper UDP Upload not working

Post by huniya@xflow »

It's still not working.
Iperf tool shows huge packet loss. Not sure if the problem lies in shaper module or testing tool. Has anyone faced similar issues?
Post Reply