From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: PPP connection to a private APN
Date: Wed, 07 Aug 2013 10:41:08 -0500 [thread overview]
Message-ID: <52026A94.2000503@gmail.com> (raw)
In-Reply-To: <loom.20130807T155127-216@post.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 3989 bytes --]
Hi Etienne,
>
> Thank you for your help, I managed to obtain a dump of the ppp connection
> and I compared it with the ppp debug info from ofono.
>
> The modem negociates with the DCE for the correct DNS and IP addresses. But
> the modem receives a "CGEV: NW DEACT X25" message before obtaining the IP
> address. I checked the dump with wireshark, there is no exchange of username
> and password. Do you know if this is supposed to happen before or after
> obtention of the IP address ?
The way this is setup is slightly weird in GSM. The PPP stack runs on
the modem and it is supposed to ask for credential information and
transparently forward it to the network during context activation.
From your log it seems that the modem never asks for authentication
information. There could be several reasons for this, it might not
support any authentication protocol, it might not support the auth
protocol we support (CHAP + MD5), etc. You will need to examine the
wireshark results for why this happens. But essentially the
authentication phase is skipped.
>
> I am also wondering what are the possible causes of a "NW DEACT" ?
The network drops the GPRS connection. Speculating here, but I suspect
it is because the credentials are invalid ;)
>
> I tried with the same computer, sim card, APN, credentials, but another
> modem (Option GTM382, does not use the PPP module from ofono) and it
> connects fine.
>
I would try also with pppd and generate pppdump information. If this
succeeds then I would compare the two wireshark logs to figure out what
goes wrong. oFono supports the bare minimum of PPP that works on 99% of
the hardware. But honestly we never tried VPN style GPRS contexts, so
it may be that we are missing something.
> Here is the log from ofono :
>
> ofonod[1911]: drivers/atmodem/network-registration.c:cops_cb() cops_cb:
> BOUYGTEL, 208 20 2
> ofonod[1911]: src/network.c:current_operator_callback() 0x82ea648, 0x82f0a68
> ofonod[1911]: Aux: < \r\n+CIEV: rssi,3\r\n\r\n+CIEV: service,1\r\n\r\n+CIEV:
> roam,0\r\n
> ofonod[1911]: drivers/atmodem/gprs-context.c:at_gprs_activate_primary() cid 1
> ofonod[1911]: Modem: > AT+CGDCONT=1,"IP","alstom-france-locomotive.fr"\r
> ofonod[1911]: Modem: < \r\nOK\r\n
> ofonod[1911]: drivers/atmodem/gprs-context.c:at_cgdcont_cb() ok 1
> ofonod[1911]: Modem: > AT+CGDATA="PPP",1\r
> ofonod[1911]: Modem: < \r\nCONNECT\r\n
> ofonod[1911]: drivers/atmodem/gprs-context.c:at_cgdata_cb() ok 1
> ofonod[1911]: drivers/atmodem/gprs-context.c:setup_ppp()
> ofonod[1911]: PPP: lcp: pppcp_generate_event: current state 0:INITIAL
> ofonod[1911]: PPP: event: 0 (Up), action: 2, new_state: 2 (CLOSED)
> ofonod[1911]: PPP: lcp: pppcp_generate_event: current state 2:CLOSED
> ofonod[1911]: PPP: event: 2 (Open), action: 1026, new_state: 6 (REQSENT)
> ofonod[1911]: PPP: lcp: pppcp_initialize_restart_count: current state 2:CLOSED
> ofonod[1911]: PPP: lcp: pppcp_send_configure_request: current state 2:CLOSED
> ofonod[1911]: PPP: gatchat/gatppp.c:ppp_enter_phase() 1
Just FYI: Here we enter PPP_PHASE_ESTABLISHMENT
> ofonod[1911]: PPP: lcp: pppcp_process_configure_request: current state 6:REQSENT
> ofonod[1911]: PPP: lcp: pppcp_generate_event: current state 6:REQSENT
> ofonod[1911]: PPP: event: 6 (RCR+), action: 2008, new_state: 8 (ACKSENT)
> ofonod[1911]: PPP: lcp: pppcp_send_configure_ack: current state 6:REQSENT
> ofonod[1911]: PPP: lcp: pppcp_process_configure_ack: current state 8:ACKSENT
> ofonod[1911]: PPP: lcp: pppcp_generate_event: current state 8:ACKSENT
> ofonod[1911]: PPP: event: 8 (RCA), action: 129, new_state: 9 (OPENED)
> ofonod[1911]: PPP: lcp: pppcp_initialize_restart_count: current state 8:ACKSENT
> ofonod[1911]: PPP: gatchat/gatppp.c:ppp_enter_phase() 3
Here we enter PPP_PHASE_NETWORK. The PPP_PHASE_AUTHENTICATION is
skipped because it was never negotiated in the ESTABLISHMENT phase.
Regards,
-Denis
next prev parent reply other threads:[~2013-08-07 15:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-02 15:31 PPP connection to a private APN Etienne Mabille
2013-08-02 16:00 ` Denis Kenzior
2013-08-07 14:10 ` Etienne
2013-08-07 15:41 ` Denis Kenzior [this message]
2013-08-07 16:12 ` Marcel Holtmann
2013-08-07 23:30 ` Denis Kenzior
2013-08-08 1:03 ` Marcel Holtmann
2013-08-09 9:11 ` Etienne
2013-08-09 9:37 ` Etienne
2013-08-09 14:24 ` Denis Kenzior
2013-08-12 9:19 ` Etienne Mabille
2013-08-12 9:28 ` Jesper Larsen
2013-08-12 12:43 ` Etienne
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=52026A94.2000503@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.