From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [RFC PATCH 1/1] ublox: create only 1 gprs context
Date: Tue, 19 Mar 2019 10:26:38 -0500 [thread overview]
Message-ID: <0fa17476-69a4-71bc-6ccb-2a7aaffba701@gmail.com> (raw)
In-Reply-To: <398bcef8-2d47-3bed-5d7b-223d016180c7@norrbonn.se>
[-- Attachment #1: Type: text/plain, Size: 3845 bytes --]
Hi Jonas,
> OK, thanks for digging that out despite the cobwebs!
No worries. Sorry I forgot to reply to this earlier.
>
> So, this is where I end up then:
>
> i) MMS (and other) contexts are just IP endpoints, but they are all
> identified by a "type"
Right now yes. In theory you could have a DNS, routing, etc for these
contexts as well. In fact, once we introduce IMS contexts, this has to
be done anyway.
> ii) connman handles "Internet" contexts and ignores everything else...
Correct.
> iii) other applications (like mmsd) handle contexts of other types
> iv) mmsd, unlike connman, expects the network interface associated with
> the context to be fully configured... IP address, route, etc.
Correct, at least at the moment
>
> ofono is designed to expect a network interface for each context. For
> this reason, it's pretty heavy-handed in its setup of the interface: it
> assumes the interface isn't shared by other contexts and isn't careful
> about maintaining settings coming from other contexts.
This is also what 3GPP intended, at least back in the multiplexing /
27.010 days. Now things become a bit more complex as you can tell.
Intel modems do actually expose multiple pseudo-ethernet devices for this.
>
> So the real impedance mismatch here for the case where a modem puts
> multiple contexts behind a single network interface is the way ofono is
> implemented.
Correct.
>
> ofono could be re-implemented here to add multiple IP addresses to a
> single interface and to set routing accordingly (for MMS contexts only,
> apparently... it looks like ofono does nothing currently for other
> context types).
This gets tricky, but I assume that for 'bridged' mode we would need to
do this yes.
With router mode things become a bit simpler. Likely the only thing
needed on these is to just automagically setup routing for MMS/SIP
proxies. The only difference from what we have today would be that we
need to remove the corresponding routes when the MMS context goes down
(today oFono assumes that the entire interface is brought down) So it
wouldn't be that hard to implement actually. And since ConnMan ignores
non-Internet contexts, things would probably just work.
Someone needs to test that theory though. I don't have any ublox devices.
>
> Another alternative is to have the gprs-context driver for affected
> devices create "virtual network devices" (is this still a thing?) with
> static IP addresses for all contexts. For the u-blox "router mode"
> case, though, I can't figure out who runs the DHCP client... (and the
> TOBY L4 is router-mode-only, so requiring bridge-mode is not an option).
We have been contemplating for a long time that DHCP needs to move out
of ConnMan and into the individual daemons, e.g. BlueZ, iwd, oFono. I
already started moving bits of DHCP into ell, but higher priority tasks
came up.
There was an earlier thread where weird device behaviors were described
(by Giacinto, I think?). E.g. a device would not succeed in context
activation until DHCP was run against the interface. So supporting such
devices with DHCP in ConnMan is a bit problematic and we have a fighting
chance with DHCP in oFono.
>
> Either way, this is a reasonably big undertaking. I don't think I want
> to take this on without a concrete use-case presenting itself, first! :)
>
Device Provisioning, Firmware update, MMS, IMS :)
> So given that, the right thing to do here is probably to just drop
> multiple context support from the u-blox driver until ofono is modified
> (someday) to handle multiple contexts behind a single network interface.
> I will send a patch.
For now I think that is the right approach.
Regards,
-Denis
prev parent reply other threads:[~2019-03-19 15:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-14 22:37 [RFC PATCH 1/1] ublox: create only 1 gprs context Jonas Bonn
2019-03-15 1:27 ` Denis Kenzior
2019-03-15 7:42 ` Jonas Bonn
2019-03-15 16:28 ` Denis Kenzior
2019-03-16 6:41 ` Jonas Bonn
2019-03-19 15:26 ` Denis Kenzior [this message]
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=0fa17476-69a4-71bc-6ccb-2a7aaffba701@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox