About pppoe disconnected rate question

PPPoE related questions
jalee
Posts: 32
Joined: 01 Oct 2017, 16:42

Re: About pppoe disconnected rate question

Post by jalee »

no use radius, I used local authentication PAP or chap-secrets.

inet@250-50-client:~$ sudo more /etc/ppp/chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses


"test1" * "test1" *
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: About pppoe disconnected rate question

Post by Dmitry »

is ip-up/ip-down scripts enabled ?
show your full config
jalee
Posts: 32
Joined: 01 Oct 2017, 16:42

Re: About pppoe disconnected rate question

Post by jalee »

F.Y.I


inet@250-50-client:~$ sudo more /etc/accel-ppp.conf

[modules]
log_file
#log_syslog
#log_tcp
#log_pgsql

#pptp
#l2tp
pppoe
#ipoe

#auth_mschap_v2
#auth_mschap_v1
#auth_chap_md5
auth_pap

#radius
chap-secrets

ippool

pppd_compat

#shaper
#net-snmp
#logwtmp
#connlimit

#ipv6_nd
#ipv6_dhcp
#ipv6pool

#net-accel-dp

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

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

[ppp]
verbose=1
min-mtu=1280
mtu=1400
mru=1400
##
accomp=deny
##
pcomp=deny
ccp=0
check-ip=0
##check-ip=1
#mppe=require
mppe=deny
ipv4=require
ipv6=deny
##ipv6-intf-id=0:0:0:1
##ipv6-peer-intf-id=0:0:0:2
##ipv6-accept-peer-intf-id=1
lcp-echo-interval=60
lcp-echo-failure=3
lcp-echo-timeout=60
unit-cache=32000
#unit-preallocate=1

[auth]
#any-login=0
#noauth=0
timeout=9

##[pptp]
##verbose=1
#echo-interval=30

[pppoe]
verbose=1
#ac-name=xxx
#service-name=yyy
#pado-delay=0
#pado-delay=0,100:100,200:200,-1:500
called-sid=mac
#tr101=1
#padi-limit=0
ip-pool=pppoe1
#sid-uppercase=0
vlan-mon=eth1.1,1-1000
#vlan-timeout=60
vlan-name=%I.%N
#interface=eth1,padi-limit=1000,net=accel-dp
interface=re:eth1\.
#interface=eth1
#interface=eth2

##[l2tp]
##verbose=1
#dictionary=/usr/local/share/accel-ppp/l2tp/dictionary
#hello-interval=60
#timeout=60
#rtimeout=1
#rtimeout-cap=16
#retransmit=5
#recv-window=16
#host-name=accel-ppp
#dir300_quirk=0
#secret=
#dataseq=allow
#reorder-timeout=0
#ip-pool=l2tp

##[ipoe]
##verbose=1
##username=ifname
#password=username
##lease-time=600
##renew-time=600
##max-lease-time=3600
#unit-cache=1000
#l4-redirect-table=4
#l4-redirect-ipset=l4
#l4-redirect-on-reject=300
#l4-redirect-ip-pool=pool1
##shared=0
##ifcfg=1
##mode=L2
##start=dhcpv4
#start=UP
#ip-unnumbered=1
#proxy-arp=0
#nat=0
#proto=100
#relay=10.10.10.10
#vendor=Custom
#attr-dhcp-client-ip=DHCP-Client-IP-Address
#attr-dhcp-router-ip=DHCP-Router-IP-Address
#attr-dhcp-mask=DHCP-Mask
#attr-dhcp-lease-time=DHCP-Lease-Time
#attr-dhcp-opt82=DHCP-Option82
#attr-dhcp-opt82-remote-id=DHCP-Agent-Remote-Id
#attr-dhcp-opt82-circuit-id=DHCP-Agent-Circuit-Id
#attr-l4-redirect=L4-Redirect
#attr-l4-redirect-table=4
#attr-l4-redirect-ipset=l4-redirect
#lua-file=/etc/accel-ppp.lua
#offer-delay=0,100:100,200:200,-1:1000
#vlan-mon=eth0,10-200
#vlan-timeout=60
#vlan-name=%I.%N
#ip-pool=ipoe
#idle-timeout=0
#session-timeout=0
#soft-terminate=0
#check-mac-change=1
#calling-sid=mac
#local-net=192.168.0.0/16
##interface=eth0


[dns]
dns1=192.168.1.1
dns2=192.168.1.2

##[wins]
#wins1=172.16.0.1
#wins2=172.16.1.1

##[radius]
#dictionary=/usr/local/share/accel-ppp/radius/dictionary
##nas-identifier=accel-ppp
##nas-ip-address=127.0.0.1
##gw-ip-address=192.168.100.1
##server=127.0.0.1,testing123,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
#timeout=3
#max-try=3
#acct-timeout=120
#acct-delay-time=0
#acct-on=0
#attr-tunnel-type=My-Tunnel-Type

[client-ip-range]
10.0.0.0/8

[ip-pool]
gw-ip-address=100.64.255.255
#vendor=Cisco
#attr=Cisco-AVPair
attr=Framed-Pool
#192.168.0.2-255
#192.168.1.1-255,name=pool1
#192.168.2.1-255,name=pool2
192.168.3.1-255,name=pppoe1
192.169.0.0/16,name=pppoe1

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

[log-pgsql]
conninfo=user=log
log-table=log

#[pppd-compat]
#ip-pre-up=/etc/ppp/ip-pre-up
#ip-up=/etc/ppp/ip-up
#ip-down=/etc/ppp/ip-down
#ip-change=/etc/ppp/ip-change
#radattr-prefix=/var/run/radattr
#verbose=1

##[chap-secrets]
#gw-ip-address=192.168.100.1
#chap-secrets=/etc/ppp/chap-secrets
#encrypted=0
#username-hash=md5

[pap-secrets]
pap-secrets=/etc/ppp/pap-secrets

##[shaper]
#attr=Filter-Id
#down-burst-factor=0.1
#up-burst-factor=1.0
#latency=50
#mpu=0
#mtu=0
#r2q=10
#quantum=1500
#moderate-quantum=1
#cburst=1534
#ifb=ifb0
##up-limiter=police
##down-limiter=tbf
#leaf-qdisc=sfq perturb 10
#leaf-qdisc=fq_codel [limit PACKETS] [flows NUMBER] [target TIME] [interval TIME] [quantum BYTES] [[no]ecn]
#rate-multiplier=1
#fwmark=1
##verbose=1

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

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

[connlimit]
#limit=60/min
limit=150/s
burst=3
timeout=30

##[ipv6-pool]
##fc00:0:1::/48,64
##delegate=fc00:1::/36,48

##[ipv6-dns]
#fc00:1::1
#fc00:1::2
#fc00:1::3
#dnssl=suffix1.local.net
#dnssl=suffix2.local.net.

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

[accel-dp]
socket=/var/run/accel-dp.sock
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: About pppoe disconnected rate question

Post by Dmitry »

remove or comment out pppd_compat in modules, because it is still in use
fixing patch is coming soon...
jalee
Posts: 32
Joined: 01 Oct 2017, 16:42

Re: About pppoe disconnected rate question

Post by jalee »

I will try again later.

Thanks,
jalee
Posts: 32
Joined: 01 Oct 2017, 16:42

Re: About pppoe disconnected rate question

Post by jalee »

Hi Dmitry,
Yes, I comment out pppd_compat in modules, the normal hung up problem can be resolved and speed up dial up rate. it's very good performance.
can you tell me what's different of your ppp code vs /etc/ppp ?

But abnormal link down issue still can't resolve, we must be waiting all timeout session close then begin new pppoe session.
do you think this issue can be resolve?

Thanks,
Best Regards,

=====================F.Y.R :D :lol: :lol:
inet@250-50-client:~$ accel-cmd show stat
uptime: 0.00:24:15
cpu: 0%
mem(rss/virt): 280576/476032 kB
core:
mempool_allocated: 81811450
mempool_available: 586698
thread_count: 6
thread_active: 1
context_count: 68004
context_sleeping: 0
context_pending: 0
md_handler_count: 128004
md_handler_pending: 0
timer_count: 64006
timer_pending: 0
sessions:
starting: 0
active: 64000
finishing: 0
pppoe:
starting: 0
active: 64000
delayed PADO: 0
recv PADI: 86069
drop PADI: 0
sent PADO: 80451
recv PADR(dup): 81605(16123)
sent PADS: 81111
filtered: 0

inet@250-50-client:~$ free -h
total used free shared buff/cache available
Mem: 5.6G 791M 1.3G 282M 3.6G 1.5G
Swap: 4.0G 0B 4.0G

inet@250-50-client:~$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 8
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 42
Model name: Intel Xeon E312xx (Sandy Bridge)
Stepping: 1
CPU MHz: 1995.159
BogoMIPS: 3990.31
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 4096K
NUMA node0 CPU(s): 0-7
Flags: fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx rdtscp lm
constant_tsc rep_good nopl eagerfpu pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm xsaveopt
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: About pppoe disconnected rate question

Post by Dmitry »

please exec accel-cmd show stat in time of abnormal link down
jalee
Posts: 32
Joined: 01 Oct 2017, 16:42

Re: About pppoe disconnected rate question

Post by jalee »

Hi Dmitry,
please check output.


inet@250-50-client:~$ accel-cmd show stat
uptime: 0.20:56:41
cpu: 0%
mem(rss/virt): 283556/476032 kB
core:
mempool_allocated: 81695355
mempool_available: 463659
thread_count: 6
thread_active: 1
context_count: 68004
context_sleeping: 0
context_pending: 0
md_handler_count: 128004
md_handler_pending: 0
timer_count: 63991
timer_pending: 0
sessions:
starting: 0
active: 64000
finishing: 0
pppoe:
starting: 0
active: 64000
delayed PADO: 0
recv PADI: 142986
drop PADI: 0
sent PADO: 92543
recv PADR(dup): 105231(17338)
sent PADS: 86085
filtered: 0

inet@250-50-client:~$ accel-cmd show stat
uptime: 0.20:58:00
cpu: 0%
mem(rss/virt): 283556/476032 kB
core:
mempool_allocated: 81695355
mempool_available: 463659
thread_count: 6
thread_active: 1
context_count: 68004
context_sleeping: 0
context_pending: 0
md_handler_count: 128004
md_handler_pending: 0
timer_count: 63991
timer_pending: 0
sessions:
starting: 0
active: 64000
finishing: 0
pppoe:
starting: 0
active: 64000
delayed PADO: 0
recv PADI: 142986
drop PADI: 0
sent PADO: 92543
recv PADR(dup): 105231(17338)
sent PADS: 86085
filtered: 0

================================================begin disconnected(LCP timeout) then tester send new pppoe session
inet@250-50-client:~$ accel-cmd show stat
uptime: 0.20:59:04
cpu: 0%
mem(rss/virt): 283556/476032 kB
core:
mempool_allocated: 81162115
mempool_available: 595315
thread_count: 6
thread_active: 6
context_count: 67450
context_sleeping: 0
context_pending: 54895
md_handler_count: 126894
md_handler_pending: 46625
timer_count: 63437
timer_pending: 33183
sessions:
starting: 0
active: 63444
finishing: 2
pppoe:
starting: 0
active: 63446
delayed PADO: 0
recv PADI: 142986 <-----------------no increment
drop PADI: 0
sent PADO: 92543
recv PADR(dup): 105231(17338)
sent PADS: 86085
filtered: 0
inet@250-50-client:~$ accel-cmd show stat
uptime: 0.20:59:53
cpu: 0%
mem(rss/virt): 283556/476032 kB
core:
mempool_allocated: 80241195
mempool_available: 595419
thread_count: 6
thread_active: 6
context_count: 66605
context_sleeping: 0
context_pending: 62545
md_handler_count: 125204
md_handler_pending: 47949
timer_count: 62592
timer_pending: 57253
sessions:
starting: 0
active: 62599
finishing: 2
pppoe:
starting: 0
active: 62601
delayed PADO: 0
recv PADI: 142986 <-----------------no increment
drop PADI: 0
sent PADO: 92543
recv PADR(dup): 105231(17338)
sent PADS: 86085
filtered: 0
inet@250-50-client:~$ accel-cmd show stat
uptime: 0.21:00:35
cpu: 0%
mem(rss/virt): 283556/476032 kB
core:
mempool_allocated: 79244619
mempool_available: 595251
thread_count: 6
thread_active: 6
context_count: 65838
context_sleeping: 0
context_pending: 59467
md_handler_count: 123668
md_handler_pending: 78281
timer_count: 61825
timer_pending: 56830
sessions:
starting: 0
active: 61831
finishing: 2
pppoe:
starting: 0
active: 61833
delayed PADO: 0
recv PADI: 142986 <-----------------no increment
drop PADI: 0
sent PADO: 92543
recv PADR(dup): 105231(17338)
sent PADS: 86085
filtered: 0
inet@250-50-client:~$
inet@250-50-client:~$ accel-cmd show stat
uptime: 0.21:01:58
cpu: 0%
mem(rss/virt): 283556/476032 kB
core:
mempool_allocated: 77296971
mempool_available: 595419
thread_count: 6
thread_active: 6
context_count: 64151
context_sleeping: 0
context_pending: 56376
md_handler_count: 120295
md_handler_pending: 70601
timer_count: 60138
timer_pending: 56375
sessions:
starting: 0
active: 60144
finishing: 3
pppoe:
starting: 0
active: 60147
delayed PADO: 0
recv PADI: 142986 <-----------------no increment
drop PADI: 0
sent PADO: 92543
recv PADR(dup): 105231(17338)
sent PADS: 86085
filtered: 0
inet@250-50-client:~$
inet@250-50-client:~$ htop

1 [||||||||||||||||||| 31.8%] 5 [ 0.0%]
2 [||||||||||| 18.4%] 6 [|||||||||||| 21.2%]
3 [|||||||||||||| 23.5%] 7 [||||||||||||||||||||| 36.7%]
4 [||||||||||||||||| 29.1%] 8 [ 0.0%]
Mem[|||||||||||||||||||||||||||||||||||||||||||||4.09G/5.64G] Tasks: 27, 18 thr; 2 running
Swp[ 0K/4.00G] Load average: 6.14 4.08 2.00
Uptime: 21:06:30

PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command
5799 hinet 20 0 71704 10332 0 S 0.0 0.2 0:00.00 (sd-pam)
49377 hinet 20 0 21448 5424 3416 S 0.0 0.1 0:00.10 -bash
5797 hinet 20 0 185M 145M 4304 S 0.0 2.5 0:30.27 /lib/systemd/systemd --user
288 root 20 0 34480 3484 3148 S 0.0 0.1 0:04.04 /lib/systemd/systemd-journald
731 root 20 0 28548 3164 2832 S 0.0 0.1 0:00.68 /lib/systemd/systemd-logind
689 systemd-t 20 0 97M 2528 2320 S 0.0 0.0 0:00.00 /lib/systemd/systemd-timesyncd
667 systemd-t 20 0 97M 2528 2320 S 0.0 0.0 0:00.10 /lib/systemd/systemd-timesyncd
311 root 20 0 45488 5024 3048 S 0.0 0.1 3:38.50 /lib/systemd/systemd-udevd
5897 root 20 0 14660 1900 1756 S 0.0 0.0 0:00.00 /sbin/agetty --noclear tty1 linux
761 root 20 0 29880 1620 1404 S 0.0 0.0 0:00.00 /sbin/cgmanager -m name=systemd
1 root 20 0 177M 145M 4092 S 0.0 2.5 0:35.38 /sbin/init
303 root 20 0 164M 1720 1456 S 0.0 0.0 0:00.00 /sbin/lvmetad -f
772 messagebu 20 0 42900 3916 3488 S 0.0 0.1 0:07.57 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile
775 root 20 0 268M 6352 5516 S 0.0 0.1 0:01.78 /usr/lib/accountsservice/accounts-daemon
778 root 20 0 268M 6352 5516 S 0.0 0.1 0:00.00 /usr/lib/accountsservice/accounts-daemon
768 root 20 0 268M 6352 5516 S 0.0 0.1 0:01.83 /usr/lib/accountsservice/accounts-daemon
1034 root 20 0 270M 5988 5324 S 0.0 0.1 0:00.00 /usr/lib/policykit-1/polkitd --no-debug
1037 root 20 0 270M 5988 5324 S 0.0 0.1 0:00.00 /usr/lib/policykit-1/polkitd --no-debug
997 root 20 0 270M 5988 5324 S 0.0 0.1 0:00.00 /usr/lib/policykit-1/polkitd --no-debug
765 root 20 0 4400 1224 1128 S 0.0 0.0 0:00.00 /usr/sbin/acpid
739 daemon 20 0 26044 2256 2060 S 0.0 0.0 0:00.00 /usr/sbin/atd -f
723 root 20 0 27728 3020 2736 S 0.0 0.1 0:00.53 /usr/sbin/cron -f
924 root 20 0 19572 2280 1992 S 0.0 0.0 0:02.59 /usr/sbin/irqbalance --pid=/var/run/irqbalance.pid
751 syslog 20 0 250M 5144 2680 S 0.0 0.1 0:00.48 /usr/sbin/rsyslogd -n
752 syslog 20 0 250M 5144 2680 S 0.0 0.1 0:00.02 /usr/sbin/rsyslogd -n
754 syslog 20 0 250M 5144 2680 S 0.0 0.1 0:00.56 /usr/sbin/rsyslogd -n
725 syslog 20 0 250M 5144 2680 S 0.0 0.1 0:01.10 /usr/sbin/rsyslogd -n
1078 root 20 0 65520 5564 4868 S 0.0 0.1 0:00.03 /usr/sbin/sshd -D
5939 root 20 0 464M 276M 4120 S 0.0 4.8 0:06.50 accel-pppd -d -c /etc/accel-ppp.conf
5940 root 20 0 464M 276M 4120 S 0.0 4.8 0:00.00 accel-pppd -d -c /etc/accel-ppp.conf
5945 root 20 0 464M 276M 4120 D 23.9 4.8 47:33.79 accel-pppd -d -c /etc/accel-ppp.conf
5946 root 20 0 464M 276M 4120 D 21.2 4.8 47:38.97 accel-pppd -d -c /etc/accel-ppp.conf
5947 root 20 0 464M 276M 4120 D 31.8 4.8 47:37.26 accel-pppd -d -c /etc/accel-ppp.conf
5948 root 20 0 464M 276M 4120 D 29.2 4.8 47:30.66 accel-pppd -d -c /etc/accel-ppp.conf
5949 root 20 0 464M 276M 4120 R 17.9 4.8 47:31.59 accel-pppd -d -c /etc/accel-ppp.conf
5950 root 20 0 464M 276M 4120 D 37.8 4.8 47:18.23 accel-pppd -d -c /etc/accel-ppp.conf
5951 root 20 0 464M 276M 4120 S 0.0 4.8 1h05:20 accel-pppd -d -c /etc/accel-ppp.conf
5952 root 20 0 464M 276M 4120 S 0.0 4.8 27:51.12 accel-pppd -d -c /etc/accel-ppp.conf
5938 root 20 0 464M 276M 4120 S 161. 4.8 6h18:29 accel-pppd -d -c /etc/accel-ppp.conf
49412 hinet 20 0 25156 4292 3216 R 0.0 0.1 0:00.06 htop
1106 root 20 0 208M 24888 20088 S 0.0 0.4 0:04.31 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)
1108 www-data 20 0 208M 6288 1488 S 0.0 0.1 0:00.00 php-fpm: pool www
1109 www-data 20 0 208M 6288 1488 S 0.0 0.1 0:00.00 php-fpm: pool www
49288 root 20 0 100M 8416 5704 S 0.0 0.1 0:01.04 sshd: hinet [priv]
49374 hinet 20 0 104M 7404 3292 S 0.0 0.1 0:00.35 sshd: hinet@pts/0
inet@250-50-client:~$
inet@250-50-client:~$
inet@250-50-client:~$ accel-cmd show stat
uptime: 0.21:04:17
cpu: 0%
mem(rss/virt): 283556/476032 kB
core:
mempool_allocated: 73517747
mempool_available: 595419
thread_count: 6
thread_active: 6
context_count: 61079
context_sleeping: 0
context_pending: 53460
md_handler_count: 114152
md_handler_pending: 38591
timer_count: 57066
timer_pending: 53459
sessions:
starting: 0
active: 57073
finishing: 2
pppoe:
starting: 0
active: 57075
delayed PADO: 0
recv PADI: 142986 <-----------------no increment
drop PADI: 0
sent PADO: 92543
recv PADR(dup): 105231(17338)
sent PADS: 86085
filtered: 0
inet@250-50-client:~$
inet@250-50-client:~$ accel-cmd show stat
uptime: 0.21:09:41
cpu: 0%
mem(rss/virt): 283284/476032 kB
core:
mempool_allocated: 64915983
mempool_available: 388635
thread_count: 6
thread_active: 6
context_count: 53670
context_sleeping: 0
context_pending: 49423
md_handler_count: 99335
md_handler_pending: 17245
timer_count: 49657
timer_pending: 49322
sessions:
starting: 0
active: 49665
finishing: 1
pppoe:
starting: 0
active: 49666
delayed PADO: 0
recv PADI: 142986 <-----------------no increment
drop PADI: 0
sent PADO: 92543
recv PADR(dup): 105231(17338)
sent PADS: 86085
filtered: 0
inet@250-50-client:~$
jalee
Posts: 32
Joined: 01 Oct 2017, 16:42

Re: About pppoe disconnected rate question

Post by jalee »

Dear Dmitry,
About abnormal link down question, do you have any idea?

Thanks,
Post Reply