From: James Cameron <james.cameron@hp.com>
To: linux-ppp@vger.kernel.org
Subject: Re: PPP difficulties regarding connection establishment and bogus
Date: Mon, 09 Jun 2008 23:32:31 +0000 [thread overview]
Message-ID: <20080609233231.GA5187@hp.com> (raw)
In-Reply-To: <66abdca00806060145ua700d3cydeb3e37df39b94f8@mail.gmail.com>
G'day,
This is common. There exist many implementations. The "modem" device
contains firmware that invents DNS server IPs and presents them to the
host before the radio network has provided them. I see 10.11.12.13 and
10.11.12.14 quite often.
(The modem firmware is the PPP peer, acting as a protocol translator to
the radio network, and is not compliant with the RFC, in my opinion).
This delay in providing IP addresses can be caused by either:
1. invalid access point name (APN), set by AT+CGDCONT ... which causes
the modem to not receive any reply from any access point on the
provider's network,
2. incorrect profile set, causing incorrect APN to be used,
3. refusal of the provider's access point to send an IP address,
4. use of incorrect username and password, (it is reported by the modem
as valid before it is checked by the radio network),
5. incorrect username and password set on modem, (for some reason the
modem can also keep the username and password in AT commands),
6. use of incorrect authentication method (PAP vs CHAP),
7. modem has not yet finished attaching to the radio network, because
there is no signal, or too much radio noise,
8. modem has not yet finished attaching to the radio network, because
the radio network is congested,
9. modem has not yet finished attaching to the radio network, because
it was only just powered on.
There is very little that can be done to isolate to the exact cause, at
the PPP level.
One method to decrease the probability of the normal delays (7, 8 & 9)
is to ensure the modem is attached to the radio network before you begin
a connection. This is what I do in the eee-maxon-bp3 package, the
/etc/chatscripts/bp3 file contains:
# cease if modem is not attached to network yet
ABORT '+CGATT: 0'
'' AT+CGATT?
And the invokation of pppd fails, and is retried by a shell script,
until the modem advises successful connection.
This does not eliminate the problem, but it certainly reduces the
frequency of it. Happy users.
I was going to add an option to pppd that would detect this particular
buggy peer and persist with obtaining a valid DNS configuration. But
this workaround was sufficient.
References:
http://quozl.linux.org.au/bp3-usb/
--
James Cameron http://quozl.netrek.org/
HP Open Source, Volunteer http://opensource.hp.com/
PPTP Client Project, Release Engineer http://pptpclient.sourceforge.net/
next prev parent reply other threads:[~2008-06-09 23:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-06 8:45 PPP difficulties regarding connection establishment and bogus DNS received Pierre-Yves Paulus
2008-06-09 23:32 ` James Cameron [this message]
2008-07-01 11:50 ` PPP difficulties regarding connection establishment and bogus Paulius Zaleckas
2008-07-19 10:05 ` Paul Mackerras
2008-07-21 9:34 ` Paulius Zaleckas
2008-07-22 0:04 ` James Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080609233231.GA5187@hp.com \
--to=james.cameron@hp.com \
--cc=linux-ppp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).