From: Dan Williams <dcbw@redhat•com>
To: sedat.dilek@gmail•com
Cc: Greg KH <greg@kroah•com>, "David S. Miller" <davem@davemloft•net>,
"netdev@vger•kernel.org" <netdev@vger•kernel.org>,
linux-usb@vger•kernel.org
Subject: Re: Understanding what's going on when using a Huawei E173 USB 3G web-stick (UMTS/HSPA)
Date: Tue, 04 Nov 2014 10:55:32 -0600 [thread overview]
Message-ID: <1415120132.31049.11.camel@dcbw.local> (raw)
In-Reply-To: <CA+icZUXgLhuVSs0aqxi_e=GLZh-zX3JPMhDF+03ctr7O-Ae2og@mail.gmail.com>
On Tue, 2014-11-04 at 16:11 +0100, Sedat Dilek wrote:
> Hi,
>
> I wanted to understand what is going on the kernel-side when
> connecting to the Internet via a Huawei E173 USB web-stick (3rd
> Generation: UMTS / HSPA).
>
> Especially the correlation between the diverse USB/NET kernel-drivers
> and how the networking is setup.
General overview: there are many different types of WWAN devices and
they fall into a couple groups:
1) PPP-only via serial ports; IP packets are transmitted via a PPP
interface (eg, ppp0) created after sending some AT commands to the modem
over that serial port. IP addressing happens via PPP's IPCP/IPV6CP
protocols.
2) Net interface with AT commands over serial ports: the modem provides
a 'net' interface that is activated with proprietary AT commands over a
serial port. IP addressing happens via either DHCP on that net interface
after the AT setup, or the IP/DNS details are queried via proprietary AT
commands.
3) Net interface with proprietary protocols: the modem provides a 'net'
interface that is activated via proprietary protocols (QMI, MBIM, CnS,
etc). IP addressing happens either via DHCP on the net interface after
proprietary protocol setup, or the IP/DNS details are queried via
proprietary protocol commands.
It's often possible to know what category a device fits into, but even
devices from the same manufacturer with *the same model number* can fall
into different categories, because the firmware is different, or because
the firmware can switch between these categories using special commands.
> I have tested a Ubuntu trusty kernel on my Ubuntu/precise system and
> compared the configs to get the stuff run on 3.18-rc2+.
> Beyond the "option" driver, I required usb_serial / usb_wwan to be
> activated and some more ("cde-ether" or sth. sound similiar...).
> ( Currently, I am not sitting (it's a Windows machine) in front of my
> machine, so I cannot send you my latest kernel-config. )
>
> As usually I looked into Documentation directory.
> So, my 1st question where do I get some informations in general on
> this topic - usb [1] or net subdirectory (seen from kernel-side)?
> I found a usb-serial kernel-doc [1].
> ( I have no Linux Git source so I cannot grep for patterns. )
None of those really have any information about WWAN specific setup, and
I fear that if documentation was added, it would be quickly out-of-date
because device manufacturers change things so frequently.
> The next mystery is what is network-manager doing in the background?
> I have seen that modem-manager is invoked, but as said I would like to
> understand the "internas" (means check the logs, turn on some
> debugging kernel-space/user-space, etc.).
NetworkManager uses ModemManager for all WWAN control, NM only handles
the configuration storage and IP addressing parts of the setup.
ModemManager handles modem hardware detection, capability detection,
WWAN registration and setup, signal strength reporting, network
connection initiation, and bearer IP addressing method determination.
If you want more information from ModemManager, you can run "mmcli
--help" or "mmcli --set-logging=debug".
> I am not sure but syncing with 3G network seems to take a while since
> I really can connect to the Internet.
What do you mean by "syncing"?
Dan
next prev parent reply other threads:[~2014-11-04 16:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-04 15:11 Understanding what's going on when using a Huawei E173 USB 3G web-stick (UMTS/HSPA) Sedat Dilek
2014-11-04 16:55 ` Dan Williams [this message]
2014-11-12 11:54 ` Aleksander Morgado
[not found] ` <1415120132.31049.11.camel-ZWpNTBV2bRGs1BDpvl8NfQ@public.gmane.org>
2014-11-12 13:21 ` Sedat Dilek
[not found] ` <CA+icZUW2iRkoAK10ayJ9PFuFGWBQzKdFe+8mfd=8oKkAp1txtg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-11-14 10:56 ` Sedat Dilek
2014-11-14 16:18 ` Dan Williams
2014-11-15 9:23 ` Sedat Dilek
2014-11-15 20:07 ` Greg KH
[not found] ` <20141115200711.GA24643-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2014-11-16 1:40 ` Sedat Dilek
2014-11-16 2:34 ` Greg KH
2014-11-16 2:48 ` Sedat Dilek
[not found] ` <CAAP7ucKO2D8B1gG943aNcqWuLm2UWt3AsfZAh5bzeaA1gzSaHQ@mail.gmail.com>
2014-11-12 13:34 ` Sedat Dilek
2014-11-12 13:49 ` Sedat Dilek
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=1415120132.31049.11.camel@dcbw.local \
--to=dcbw@redhat$(echo .)com \
--cc=davem@davemloft$(echo .)net \
--cc=greg@kroah$(echo .)com \
--cc=linux-usb@vger$(echo .)kernel.org \
--cc=netdev@vger$(echo .)kernel.org \
--cc=sedat.dilek@gmail$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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