leshan icon indicating copy to clipboard operation
leshan copied to clipboard

Add support of NIDD transport for Lora and 3GPP

Open sbernard31 opened this issue 4 years ago • 8 comments

This aims to centralize discussion about support of NIDD transport in Leshan.

LoRaWAN :

CIoT :

sbernard31 avatar Jul 01 '21 15:07 sbernard31

@Przem83, @MichalWadowskiOrange, I created a dedicated issue to talk about NIDD transport. (https://github.com/eclipse/leshan/issues/1034#issuecomment-870495461)

@madhushreegc as you already have some code which seems to run Leshan with NIDD, you may be interested (or could help) about this topic.

I link some previous issue/work/talk about that :

  • https://github.com/eclipse/leshan/issues/904
  • https://github.com/eclipse/leshan/issues/946

sbernard31 avatar Jul 01 '21 16:07 sbernard31

@sbernard31 , Sure . Connector we have implemented our own to integrate with the other channels .

madhushreegc avatar Jul 12 '21 10:07 madhushreegc

@Michal-Wadowski I see you start investigating on this.

I have no experience with this transport layer at all and one of my current concern about this feature is how this will be tested/testable ? (This is maybe a very naive question but does it needed any hardware or specific tool to do that ?) Do you have some inputs about that ?

sbernard31 avatar Sep 09 '21 10:09 sbernard31

I'm currently do a research with my team. At first step we want to make sure that we can just implement some kind of connector that would work with Leshan without specific IP dependencies. For now we don't know how should the final product looks like.

Michal-Wadowski avatar Sep 09 '21 10:09 Michal-Wadowski

AFAIK, there is still too much stuff depending on an IP-address (InetSocketAddress). So, one of the most promising approaches is therefore mapping the "custom protocol" to something, which looks like IP.

  • message oriented transfer, then use the UDP flavor.
  • stream oriented transfer, then use the TCP flavor.

For both, map the "native address" into IPv4 or IPv6 addresses. Please omit multicast/broadcast addresses. With that:

  • incoming messages must be converted into RawData and the "native address" is mapped into a ip-address:
  • outgoing messages are passed as RawData with a destination ip-address, which must be mapped to the "native address" and the bytes must be sent with that transfer.

boaks avatar Sep 09 '21 11:09 boaks

@Michal-Wadowski is it something Orange need ? or this is more to try to make Leshan 2.0 feature complete about LWM2M v1.1 ?

sbernard31 avatar Sep 15 '21 15:09 sbernard31

@madhushreegc, I move forward about transport layer abstraction. #1025

If you want, you could try to implement to add a NIDD with this new abstraction maybe inspiring yourself by #1312 This could help to know if we go in the right direction.

sbernard31 avatar Oct 25 '22 16:10 sbernard31

Sure, I will try this out. I am quite busy now , later next month mid I will try.

madhushreegc avatar Oct 27 '22 08:10 madhushreegc