Forum bloga technologicznego JDtech.pl i użytkowników bezpłatnego dostępu do internetu Aero2

Pełna wersja: Długi czas nawiązywania połączenia
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
Rano połączenie jest nawiązywane szybko, tak samo wznawianie połączenia, wszystko w parę sekund. Wieczorem, tak jak teraz, jest kłopot, bo trwa to kilkadziesiąt sekund albo parę minut. Zastanawiam się, czy w obecnej sytuacji brakuje adresów IP w aero2? Jakoś nie zauważyłem, żeby doszła nowa pula adresów, ani Jakub nic o tym nie wspomina. A jak widać użytkowników jest coraz więcej. Czy obecna ilość adresów IP jest wystarczająca?
Ale pula adresów IP dla aero2 jest osobna, niż dla plusa. Przynajmniej tak mi się wydaje.

Objaw który masz, również może wskazywać na obciążenie sieci.
Takie komunikaty pojawiają się w konsoli:
Kod:
krzysztof@krzysztof-PC:~$ sudo pon.wvdial
krzysztof@krzysztof-PC:~$ --> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","darmowy"
AT+CGDCONT=1,"IP","darmowy"
OK
--> Sending: AT&C1
AT&C1
OK
--> Modem initialized.
--> Sending: ATDTW*99***1#
--> Waiting for carrier.
ATDTW*99***1#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Wed Dec  5 20:32:16 2012
--> Pid of pppd: 6469
--> Using interface ppp0
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> Disconnecting at Wed Dec  5 20:32:18 2012
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","darmowy"
AT+CGDCONT=1,"IP","darmowy"
OK
--> Sending: AT&C1
AT&C1
OK
--> Modem initialized.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","darmowy"
AT+CGDCONT=1,"IP","darmowy"
OK
--> Sending: AT&C1
AT&C1
OK
--> Modem initialized.
--> Sending: ATDTW*99***1#
--> Waiting for carrier.
ATDTW*99***1#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Wed Dec  5 20:32:23 2012
--> Pid of pppd: 6473
--> Using interface ppp0
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> Disconnecting at Wed Dec  5 20:32:25 2012
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 10 seconds
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","darmowy"
AT+CGDCONT=1,"IP","darmowy"
OK
--> Sending: AT&C1
AT&C1
OK
--> Modem initialized.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","darmowy"
AT+CGDCONT=1,"IP","darmowy"
OK
--> Sending: AT&C1
AT&C1
OK
--> Modem initialized.
--> Sending: ATDTW*99***1#
--> Waiting for carrier.
ATDTW*99***1#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Wed Dec  5 20:32:35 2012
--> Pid of pppd: 6477
--> Using interface ppp0
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> Disconnecting at Wed Dec  5 20:32:37 2012
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 20 seconds
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","darmowy"
AT+CGDCONT=1,"IP","darmowy"
OK
--> Sending: AT&C1
AT&C1
OK
--> Modem initialized.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","darmowy"
AT+CGDCONT=1,"IP","darmowy"
OK
--> Sending: AT&C1
AT&C1
OK
--> Modem initialized.
--> Sending: ATDTW*99***1#
--> Waiting for carrier.
ATDTW*99***1#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Wed Dec  5 20:32:57 2012
--> Pid of pppd: 6481
--> Using interface ppp0
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> Disconnecting at Wed Dec  5 20:32:59 2012
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 40 seconds
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","darmowy"
AT+CGDCONT=1,"IP","darmowy"
OK
--> Sending: AT&C1
AT&C1
OK
--> Modem initialized.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","darmowy"
AT+CGDCONT=1,"IP","darmowy"
OK
--> Sending: AT&C1
AT&C1
OK
--> Modem initialized.
--> Sending: ATDTW*99***1#
--> Waiting for carrier.
ATDTW*99***1#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Wed Dec  5 20:33:40 2012
--> Pid of pppd: 6485
--> Using interface ppp0
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> Disconnecting at Wed Dec  5 20:33:41 2012
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 80 seconds
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","darmowy"
AT+CGDCONT=1,"IP","darmowy"
OK
--> Sending: AT&C1
AT&C1
OK
--> Modem initialized.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","darmowy"
AT+CGDCONT=1,"IP","darmowy"
OK
--> Sending: AT&C1
AT&C1
OK
--> Modem initialized.
--> Sending: ATDTW*99***1#
--> Waiting for carrier.
ATDTW*99***1#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Wed Dec  5 20:35:01 2012
--> Pid of pppd: 6515
--> Using interface ppp0
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> Disconnecting at Wed Dec  5 20:35:03 2012
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 160 seconds
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","darmowy"
AT+CGDCONT=1,"IP","darmowy"
OK
--> Sending: AT&C1
AT&C1
OK
--> Modem initialized.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Sending: AT+CGDCONT=1,"IP","darmowy"
AT+CGDCONT=1,"IP","darmowy"
OK
--> Sending: AT&C1
AT&C1
OK
--> Modem initialized.
--> Sending: ATDTW*99***1#
--> Waiting for carrier.
ATDTW*99***1#
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Wed Dec  5 20:37:44 2012
--> Pid of pppd: 6549
--> Using interface ppp0
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> pppd: ��w�[18]ZY[08][08]ZY[08]
--> Disconnecting at Wed Dec  5 20:37:45 2012
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 320 seconds
--> Initializing modem.
--> Sending: ATZ


(04-12-2012 23:50)grzech1991 napisał(a): [ -> ]Objaw który masz, również może wskazywać na obciążenie sieci.
Co znaczy obciążenie sieci?
Sieć operatora w tej lokalizacji jest przeciążona.
Problem jest w protokole IPCP, w części odpowiadającej za przydzielenie adresu ip końcówce - wygląda na to, że tych wolnych adresów już nie ma lub serwer ma kłopoty z poprawnym ich przydzielaniem.

Ustaw w /etc/ppp/options:

192.168.1.1:10.64.64.64
logfile /dev/null
nocrtscts
lock
maxfail 0
lcp-echo-failure 4
lcp-echo-interval 65535
noipdefault
noauth
refuse-chap
refuse-mschap
refuse-mschap-v2
mru 1500
asyncmap 0
defaultroute
ipcp-max-failure 1000
ipcp-accept-local
persist
holdoff 1

Dzięki temu będzie próbował pobrać adres więcej razy - 1000, a czas opóźnienia między próbami ponownego połączenia po jego zakończeniu wyniesie tylko 1 sekunde - zamiast 30 domyślnie.

Nie rozwiąże to problemu całkowicie ale powinno zmniejszyć czas oczekiwania na połączenie.
Przekierowanie