Высокий пинг через pppd
Использую pppd для выхода в интернет через 3g свисток (ZTE MF190S). Получаю большой пинг:
ping -c 10 8.8.8.8
....
--- 8.8.8.8 ping statistics ---
10 packets transmitted, 10 packets received, 0% packet loss
round-trip min/avg/max = 336.792/426.623/574.812 ms
ping -n 10 8.8.8.8
....
Ping statistics for 8.8.8.8:
Packets: Sent = 10, Received = 10, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 93ms, Maximum = 123ms, Average = 102ms
wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip
Конфиги:
Чат
cat /etc/ppp/modem.chat
TIMEOUT 6
ABORT 'BUSY'
ABORT 'ERROR'
ABORT '+CME ERROR:'
TIMEOUT 6
'' 'AT'
OK 'ATV1'
OK 'ATE0'
OK 'AT&F&D2&C1S0=0'
OK 'ATS7=60S30=0'
OK 'ATS0=0'
OK 'AT'
OK 'ATV1'
OK 'ATE0'
OK 'AT&F&D2&C1S0=0'
OK 'ATS7=60S30=0'
OK 'AT+ZSNT=2,0,0'
OK 'AT+ZPAS?'
OK 'AT+ZRSSI'
OK 'AT+CGDCONT=1,"IP","internet"'
OK 'ATDT*99#'
CONNECT ''
#CONNECT '\d\c'
Пир по мотивам арчвики:
cat /etc/ppp/peers/modem
/dev/ttyUSB4
921600
#7200000
usepeerdns
crtscts
lock
noauth
local
persist
modem
nopcomp
novjccomp
nobsdcomp
nodeflate
noaccomp
ipcp-accept-local
ipcp-accept-remote
noipdefault
defaultroute
noipdefault
user ""
password ""
connect "/usr/sbin/chat -v -t15 -f /etc/ppp/modem.chat"
Лог:
Apr 11 19:45:07 limbo pppd[1119]: pppd 2.4.6 started by root, uid 0
Apr 11 19:45:08 limbo chat[1120]: timeout set to 6 seconds
Apr 11 19:45:08 limbo chat[1120]: abort on (BUSY)
Apr 11 19:45:08 limbo chat[1120]: abort on (ERROR)
Apr 11 19:45:08 limbo chat[1120]: abort on (+CME ERROR:)
Apr 11 19:45:08 limbo chat[1120]: timeout set to 6 seconds
Apr 11 19:45:08 limbo chat[1120]: send (AT^M)
Apr 11 19:45:08 limbo chat[1120]: expect (OK)
Apr 11 19:45:08 limbo chat[1120]: AT^M^M
Apr 11 19:45:08 limbo chat[1120]: OK
Apr 11 19:45:08 limbo chat[1120]: -- got it
Apr 11 19:45:08 limbo chat[1120]: send (ATV1^M)
Apr 11 19:45:08 limbo chat[1120]: expect (OK)
Apr 11 19:45:08 limbo chat[1120]: ^M
Apr 11 19:45:08 limbo chat[1120]: ATV1^M^M
Apr 11 19:45:08 limbo chat[1120]: OK
Apr 11 19:45:08 limbo chat[1120]: -- got it
Apr 11 19:45:08 limbo chat[1120]: send (ATE0^M)
Apr 11 19:45:08 limbo chat[1120]: expect (OK)
Apr 11 19:45:08 limbo chat[1120]: ^M
Apr 11 19:45:08 limbo chat[1120]: ATE0^M^M
Apr 11 19:45:08 limbo chat[1120]: OK
Apr 11 19:45:08 limbo chat[1120]: -- got it
Apr 11 19:45:08 limbo chat[1120]: send (AT&F&D2&C1S0=0^M)
Apr 11 19:45:08 limbo chat[1120]: expect (OK)
Apr 11 19:45:08 limbo chat[1120]: ^M
Apr 11 19:45:08 limbo chat[1120]: ^M
Apr 11 19:45:08 limbo chat[1120]: OK
Apr 11 19:45:08 limbo chat[1120]: -- got it
Apr 11 19:45:08 limbo chat[1120]: send (ATS7=60S30=0^M)
Apr 11 19:45:09 limbo chat[1120]: expect (OK)
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: OK
Apr 11 19:45:09 limbo chat[1120]: -- got it
Apr 11 19:45:09 limbo chat[1120]: send (ATS0=0^M)
Apr 11 19:45:09 limbo chat[1120]: expect (OK)
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: OK
Apr 11 19:45:09 limbo chat[1120]: -- got it
Apr 11 19:45:09 limbo chat[1120]: send (AT^M)
Apr 11 19:45:09 limbo chat[1120]: expect (OK)
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: OK
Apr 11 19:45:09 limbo chat[1120]: -- got it
Apr 11 19:45:09 limbo chat[1120]: send (ATV1^M)
Apr 11 19:45:09 limbo chat[1120]: expect (OK)
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: OK
Apr 11 19:45:09 limbo chat[1120]: -- got it
Apr 11 19:45:09 limbo chat[1120]: send (ATE0^M)
Apr 11 19:45:09 limbo chat[1120]: expect (OK)
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: OK
Apr 11 19:45:09 limbo chat[1120]: -- got it
Apr 11 19:45:09 limbo chat[1120]: send (AT&F&D2&C1S0=0^M)
Apr 11 19:45:09 limbo chat[1120]: expect (OK)
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: OK
Apr 11 19:45:09 limbo chat[1120]: -- got it
Apr 11 19:45:09 limbo chat[1120]: send (ATS7=60S30=0^M)
Apr 11 19:45:09 limbo chat[1120]: expect (OK)
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: OK
Apr 11 19:45:09 limbo chat[1120]: -- got it
Apr 11 19:45:09 limbo chat[1120]: send (AT+ZSNT=2,0,0^M)
Apr 11 19:45:09 limbo chat[1120]: expect (OK)
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: OK
Apr 11 19:45:09 limbo chat[1120]: -- got it
Apr 11 19:45:09 limbo chat[1120]: send (AT+ZPAS?^M)
Apr 11 19:45:09 limbo chat[1120]: expect (OK)
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: +ZPAS: "HSUPA","CS_PS"^M
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: OK
Apr 11 19:45:09 limbo chat[1120]: -- got it
Apr 11 19:45:09 limbo chat[1120]: send (AT+ZRSSI^M)
Apr 11 19:45:09 limbo chat[1120]: expect (OK)
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: +ZRSSI: 61,26,148^M
Apr 11 19:45:09 limbo chat[1120]: ^M
Apr 11 19:45:09 limbo chat[1120]: OK
Apr 11 19:45:09 limbo chat[1120]: -- got it
Apr 11 19:45:09 limbo chat[1120]: send (AT+CGDCONT=1,"IP","3g.kyivstar.net"^M)
Apr 11 19:45:10 limbo chat[1120]: expect (OK)
Apr 11 19:45:10 limbo chat[1120]: ^M
Apr 11 19:45:10 limbo chat[1120]: ^M
Apr 11 19:45:10 limbo chat[1120]: OK
Apr 11 19:45:10 limbo chat[1120]: -- got it
Apr 11 19:45:10 limbo chat[1120]: send (ATDT*99#^M)
Apr 11 19:45:10 limbo chat[1120]: expect (CONNECT)
Apr 11 19:45:10 limbo chat[1120]: ^M
Apr 11 19:45:10 limbo chat[1120]: ^M
Apr 11 19:45:10 limbo chat[1120]: CONNECT
Apr 11 19:45:10 limbo chat[1120]: -- got it
Apr 11 19:45:10 limbo chat[1120]: send (^M)
Apr 11 19:45:10 limbo pppd[1119]: Serial connection established.
Apr 11 19:45:10 limbo pppd[1119]: Using interface ppp0
Apr 11 19:45:10 limbo pppd[1119]: Connect: ppp0 <--> /dev/ttyUSB4
Apr 11 19:45:10 limbo systemd-timesyncd[169]: Network configuration changed, trying to establish connection.
Apr 11 19:45:10 limbo systemd-timesyncd[169]: Network configuration changed, trying to establish connection.
Apr 11 19:45:10 limbo systemd-timesyncd[169]: Network configuration changed, trying to establish connection.
Apr 11 19:45:10 limbo systemd-timesyncd[169]: Network configuration changed, trying to establish connection.
Apr 11 19:45:10 limbo systemd-timesyncd[169]: Network configuration changed, trying to establish connection.
Apr 11 19:45:10 limbo systemd-timesyncd[169]: Network configuration changed, trying to establish connection.
Apr 11 19:45:11 limbo pppd[1119]: No CHAP secret found for authenticating us to UMTS_CHAP_SRVR
Apr 11 19:45:11 limbo pppd[1119]: CHAP authentication succeeded
Apr 11 19:45:11 limbo pppd[1119]: CHAP authentication succeeded
Apr 11 19:45:17 limbo pppd[1119]: Could not determine remote IP address: defaulting to 10.64.64.64
Apr 11 19:45:17 limbo pppd[1119]: local IP address 10.193.45.182
Apr 11 19:45:17 limbo pppd[1119]: remote IP address 10.64.64.64
Apr 11 19:45:17 limbo pppd[1119]: primary DNS address 193.41.63.161
Apr 11 19:45:17 limbo pppd[1119]: secondary DNS address 193.41.63.162
Apr 11 19:45:17 limbo systemd-timesyncd[169]: Network configuration changed, trying to establish connection.
Apr 11 19:45:48 limbo systemd-timesyncd[169]: Using NTP server 216.239.34.15:123 (time2.google.com).
Apr 11 19:45:48 limbo systemd-timesyncd[169]: interval/delta/delay/jitter/drift 32s/-0.065s/0.349s/0.095s/-500ppm
Apr 11 19:46:21 limbo systemd-timesyncd[169]: interval/delta/delay/jitter/drift 32s/+0.074s/0.468s/0.099s/+500ppm
Apr 11 19:46:53 limbo systemd-timesyncd[169]: interval/delta/delay/jitter/drift 64s/-0.014s/0.456s/0.107s/+391ppm
Apr 11 19:47:58 limbo systemd-timesyncd[169]: interval/delta/delay/jitter/drift 128s/-0.024s/0.461s/0.072s/+299ppm
Apr 11 19:50:06 limbo systemd-timesyncd[169]: interval/delta/delay/jitter/drift 256s/-0.045s/0.492s/0.069s/+210ppm
Apr 11 19:54:32 limbo systemd-timesyncd[169]: Timed out waiting for reply from 216.239.34.15:123 (time2.google.com).
Apr 11 19:54:33 limbo systemd-timesyncd[169]: Using NTP server 216.239.36.15:123 (time3.google.com).
Apr 11 19:54:33 limbo systemd-timesyncd[169]: interval/delta/delay/jitter/drift 32s/-0.153s/0.309s/0.149s/-500ppm
Apr 11 19:55:06 limbo systemd-timesyncd[169]: interval/delta/delay/jitter/drift 32s/+0.104s/0.493s/0.166s/+500ppm
Apr 11 19:55:38 limbo systemd-timesyncd[169]: interval/delta/delay/jitter/drift 64s/+0.002s/0.481s/0.168s/+500ppm
Apr 11 19:56:43 limbo systemd-timesyncd[169]: interval/delta/delay/jitter/drift 128s/+0.003s/0.544s/0.175s/+500ppm
Что может влиять? Возможно какие-то опции pppd? Вроде и так все компресии отключены. Может в системе какието проблемы, кто-то знает как это можно отдебажить что бы понять из-за кого высокий пинг? Топ вроде пустой. Через вифи с линухи пингуется в 70 мс.