linux-wpan.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC v2 0/4] Adding stateful compression to IPHC
@ 2015-07-13 11:50 Lukasz Duda
  2015-07-13 11:50 ` [RFC v2 1/4] 6lowpan: Introduce debugfs entry for 6lowpan module Lukasz Duda
                   ` (8 more replies)
  0 siblings, 9 replies; 20+ messages in thread
From: Lukasz Duda @ 2015-07-13 11:50 UTC (permalink / raw)
  To: alex.aring; +Cc: linux-wpan, linux-bluetooth

Hi all,

Resending the RFC patch set after some clean up.

The following patches introduce support for stateful compression in IPHC.

Patch #1: Introduce debugfs entry for 6lowpan module
Patch #2: Add stateful compression component of 6lowpan module
Patch #3: Add stateful compression support for iphc.c
Patch #4: Enable stateful compression in bluetooth_6lowpan

Usage of stateful compression is described in Patch #2.

Notes
=====

RFC v2:
    - Splitting patch into smaller incremental patches
    - Moving debugfs logic from iphc.c into context.c
    - Updating patch set to align with style and coding guideline
    
RFC v1:
    - Initial patch set: http://www.spinics.net/lists/linux-bluetooth/msg62930.html

Limitations
===========

- Temporarly use of debugfs to be able to add context table entries.
- Current module does not support context time-outs.
- No support for multicast addresses stateful compression.

Discussion: Idea on how to make the 6lowpan context tables out of debug mode
============================================================================

The patch provided here is just a temporary solution where the contexts are
manually added. The proper way of adding/removing contexts would be to make
ndisc.c parse 6CO options and act upon it. Generated Router Advertisement
packets with 6CO option (for example from RADVD) will be handled in the
ndisc_router_discovery function.

Also, other flags like ARO, ABRO etc. which are specified in RFC6775 need
to be handled in the ipv6 module in order to do it in a neat way.
Potentially the RFC6775 extensions could also be used by other protocols
than BLE and 802.15.4.

There is a need for parsing the 6CO option in ndisc.c which parses Router
Advertisement messages. Today the function calls to IPHC (6lowpan module) are
quite hard to implement in ndisc.c, as there is no guarantee that the 6lowpan
module will be loaded or not. It would make sense to build 6lowpan module
as in-build part of IPv6. The features could be compiled in by using #defines.

What do you think about moving 6lowpan as a component of IPv6 and modify ndisc.c
to handled 6LoWPAN specific options? Do you see any other solution to make sure
that 6CO is parsed and acted upon and still keep 6lowpan as a stand-alone module?

Best regards,
Lukasz Duda

Lukasz Duda (4):
  6lowpan: Introduce debugfs entry for 6lowpan module
  6lowpan: Add stateful compression component of 6lowpan module
  6lowpan: Add stateful compression support for iphc.c
  Bluetooth: 6lowpan: Enable stateful compression in bluetooth_6lowpan

 include/net/6lowpan.h   |  37 ++++
 net/6lowpan/Makefile    |   2 +-
 net/6lowpan/context.c   | 551 ++++++++++++++++++++++++++++++++++++++++++++++++
 net/6lowpan/context.h   |   7 +
 net/6lowpan/iphc.c      | 245 +++++++++++++++++----
 net/bluetooth/6lowpan.c |   4 +
 6 files changed, 809 insertions(+), 37 deletions(-)
 create mode 100644 net/6lowpan/context.c
 create mode 100644 net/6lowpan/context.h

-- 
2.1.4


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2015-10-13  8:46 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-13 11:50 [RFC v2 0/4] Adding stateful compression to IPHC Lukasz Duda
2015-07-13 11:50 ` [RFC v2 1/4] 6lowpan: Introduce debugfs entry for 6lowpan module Lukasz Duda
2015-07-23  6:07   ` Alexander Aring
2015-07-13 11:50 ` [RFC v2 2/4] 6lowpan: Add stateful compression component of " Lukasz Duda
2015-07-23  6:52   ` Alexander Aring
2015-07-23  6:59     ` Alexander Aring
2015-07-13 11:50 ` [RFC v2 3/4] 6lowpan: Add stateful compression support for iphc.c Lukasz Duda
2015-07-23  7:48   ` Alexander Aring
2015-07-23  8:20     ` Duda, Lukasz
2015-07-13 11:50 ` [RFC v2 4/4] Bluetooth: 6lowpan: Enable stateful compression in bluetooth_6lowpan Lukasz Duda
2015-07-23  7:55   ` Alexander Aring
2015-07-23  8:09     ` Duda, Lukasz
2015-07-13 13:09 ` [RFC v2 0/4] Adding stateful compression to IPHC Jukka Rissanen
2015-07-15 13:42   ` Duda, Lukasz
2015-07-16  7:25     ` Jukka Rissanen
2015-07-13 14:15 ` Michael Richardson
2015-07-15  9:55 ` Duda, Lukasz
2015-07-23  8:22 ` Alexander Aring
2015-10-12 16:15 ` Alexander Aring
2015-10-13  8:36   ` Duda, Lukasz

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).