From: Alexander Aring <alex.aring@gmail.com>
To: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Cc: linux-bluetooth@vger.kernel.org, linux-wpan@vger.kernel.org,
kernel@pengutronix.de, Martin Townsend <mtownsend1973@gmail.com>,
Marcel Holtmann <marcel@holtmann.org>
Subject: Re: [PATCHv2 bluetooth-next 0/2] 6lowpan: introduce nhc framework
Date: Tue, 2 Dec 2014 11:12:50 +0100 [thread overview]
Message-ID: <20141202101246.GA5908@omega> (raw)
In-Reply-To: <1417512216.2703.63.camel@jrissane-mobl.ger.corp.intel.com>
On Tue, Dec 02, 2014 at 11:23:36AM +0200, Jukka Rissanen wrote:
...
>
> I forgot to mention earlier that I think we need to support the case
> where some clients are using different compression method than the other
> (at the same time). What do you think?
>
>
_Currently_ I would to do the following:
Sending side:
We have a mapping from nexthdr IPv6 field to the configurated (at the
moment the defaults compression methods) next header compression.
lowpan_compress -> nexthdr to nhc struct -> do nhc compression
This is a 1:1 mapping for nexthdr as UDP we have RFC6282 UDP.
_Maybe_ we can do some socket options settings in the future to have not
always a 1:1 mapping. Sending sockopts to 6LoWPAN layer seems to be
difficult, I don't know how much possible that is and the IPv6 agree
with that. Otherwise we need some great idea to make allow different
compression methods per socket. Currently a 1:1 seems to be okay.
Receiving side:
There we need to support everything what we can support. The next header
compression id is a variable length of bitstring (that's why there is a
complicated rbtree datastructure inside the nhc framework).
This number is unique to each compression methods. It's some kind of n:1
mapping e.g. (UDP RFC6282) to UDP and (UDP FOOBAR) to UDP.
So sending side _can_ be optionally and receiving _should_ be implemented.
I have a new series which makes both optionally. The reason is that we
can register the NHC ID and print a warning which NHC ID isn't
supported. So this beahviour is more "We know this NHC but we don't
support compression and uncompression". This will print a warning and
users have two options:
1. Implement the nhc.
2. Change network configuration to not do this nhc on other nodes.
- Alex
prev parent reply other threads:[~2014-12-02 10:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-29 21:14 [PATCHv2 bluetooth-next 0/2] 6lowpan: introduce nhc framework Alexander Aring
2014-11-29 21:14 ` [PATCHv2 bluetooth-next 1/2] 6lowpan: add generic nhc layer interface Alexander Aring
2014-12-01 14:34 ` Alexander Aring
2014-11-29 21:14 ` [PATCHv2 bluetooth-next 2/2] 6lowpan: add udp compression via nhc layer Alexander Aring
2014-12-01 12:33 ` [PATCHv2 bluetooth-next 0/2] 6lowpan: introduce nhc framework Jukka Rissanen
2014-12-01 15:01 ` Alexander Aring
2014-12-02 9:23 ` Jukka Rissanen
2014-12-02 10:12 ` Alexander Aring [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=20141202101246.GA5908@omega \
--to=alex.aring@gmail.com \
--cc=jukka.rissanen@linux.intel.com \
--cc=kernel@pengutronix.de \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-wpan@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=mtownsend1973@gmail.com \
/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).