linux-wpan.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Running OpenThread on fakelb
@ 2019-02-21  0:31 Seung.Jang
  2019-02-21 15:31 ` Alexander Aring
  0 siblings, 1 reply; 3+ messages in thread
From: Seung.Jang @ 2019-02-21  0:31 UTC (permalink / raw)
  To: linux-wpan

Hi all,

I'm trying to run OpenThread on fakelb, and I'd like to ask about this topic.

My test environment is Ubuntu 16.04 (kernel version 4.15).

I followed the instruction in Alex's announcement [1]. From one of ot-cli, I was able to ping the other ot-cli. At the same time, I tried to sniff packets of lowpan0, ot0, ot1, and monitor0 with wireshark. But wireshark detected nothing. When I compiled the ot-cli, I applied '--enable-af-packet'.

Do you have any idea about this? Could you share any experience regarding this?

- Seung

[1] https://www.spinics.net/lists/linux-wpan/msg04167.html

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

* Re: Running OpenThread on fakelb
  2019-02-21  0:31 Running OpenThread on fakelb Seung.Jang
@ 2019-02-21 15:31 ` Alexander Aring
  2019-02-22  1:03   ` Seung.Jang
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Aring @ 2019-02-21 15:31 UTC (permalink / raw)
  To: Seung.Jang; +Cc: linux-wpan

Hi,

On Thu, Feb 21, 2019 at 12:31:19AM +0000, Seung.Jang@data61.csiro.au wrote:
> Hi all,
> 
> I'm trying to run OpenThread on fakelb, and I'd like to ask about this topic.
> 
> My test environment is Ubuntu 16.04 (kernel version 4.15).
> 
> I followed the instruction in Alex's announcement [1]. From one of ot-cli, I was able to ping the other ot-cli. At the same time, I tried to sniff packets of lowpan0, ot0, ot1, and monitor0 with wireshark. But wireshark detected nothing. When I compiled the ot-cli, I applied '--enable-af-packet'.
> 

The branch of openthread is somehow outdated, feel free to rebase to
openthread/master and send it upstream to openthread.

Your problem:

As I understand you can talk between openthread nodes but not with an
additional Linux 6lowpan interface. To make it capable with openthread
you need to use protocols which are from the Thread world. They have a
"somehow" closed bootstrapping protocol which is MLE. Also note they
forked the IETF MLE standard, so Thread MLE != IETF MLE.

I can give you more information what MLE exactly is if you want.

> Do you have any idea about this? Could you share any experience regarding this?
> 

How you can get Thread MLE working for you?

Good solution is:

"Use open implementation OpenThread and make a library wrapper around
 which is a MLE Linux userspace implementation. It should work on IPv6
 sockets and not AF_PACKET"

Hack solution is:

"Run openthread on node interfaces and AF_PACKET and keep mac settings
in sync" - not sure how this can work, I think it will only make more
trouble.

Another solution:

Just use af802154 in openthread, but then you only use Linux 802.15.4
drivers and mostly no upper layer protocol. Also on node interfaces you
need to keep address settings in sync which I didn't implemented.
On the other hand monitors has limitations when running in promiscuous
mode.

- Alex

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

* RE: Running OpenThread on fakelb
  2019-02-21 15:31 ` Alexander Aring
@ 2019-02-22  1:03   ` Seung.Jang
  0 siblings, 0 replies; 3+ messages in thread
From: Seung.Jang @ 2019-02-22  1:03 UTC (permalink / raw)
  To: aring; +Cc: linux-wpan

Hi Alex,

Thanks for your reply.

Could you provide more information about MLE?

- Seung

-----Original Message-----
From: linux-wpan-owner@vger.kernel.org [mailto:linux-wpan-owner@vger.kernel.org] On Behalf Of Alexander Aring
Sent: Friday, 22 February 2019 2:31 AM
To: Jang, Seung (Data61, Marsfield) <Seung.Jang@data61.csiro.au>
Cc: linux-wpan@vger.kernel.org
Subject: Re: Running OpenThread on fakelb

Hi,

On Thu, Feb 21, 2019 at 12:31:19AM +0000, Seung.Jang@data61.csiro.au wrote:
> Hi all,
> 
> I'm trying to run OpenThread on fakelb, and I'd like to ask about this topic.
> 
> My test environment is Ubuntu 16.04 (kernel version 4.15).
> 
> I followed the instruction in Alex's announcement [1]. From one of ot-cli, I was able to ping the other ot-cli. At the same time, I tried to sniff packets of lowpan0, ot0, ot1, and monitor0 with wireshark. But wireshark detected nothing. When I compiled the ot-cli, I applied '--enable-af-packet'.
> 

The branch of openthread is somehow outdated, feel free to rebase to openthread/master and send it upstream to openthread.

Your problem:

As I understand you can talk between openthread nodes but not with an additional Linux 6lowpan interface. To make it capable with openthread you need to use protocols which are from the Thread world. They have a "somehow" closed bootstrapping protocol which is MLE. Also note they forked the IETF MLE standard, so Thread MLE != IETF MLE.

I can give you more information what MLE exactly is if you want.

> Do you have any idea about this? Could you share any experience regarding this?
> 

How you can get Thread MLE working for you?

Good solution is:

"Use open implementation OpenThread and make a library wrapper around  which is a MLE Linux userspace implementation. It should work on IPv6  sockets and not AF_PACKET"

Hack solution is:

"Run openthread on node interfaces and AF_PACKET and keep mac settings in sync" - not sure how this can work, I think it will only make more trouble.

Another solution:

Just use af802154 in openthread, but then you only use Linux 802.15.4 drivers and mostly no upper layer protocol. Also on node interfaces you need to keep address settings in sync which I didn't implemented.
On the other hand monitors has limitations when running in promiscuous mode.

- Alex

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

end of thread, other threads:[~2019-02-22  1:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-21  0:31 Running OpenThread on fakelb Seung.Jang
2019-02-21 15:31 ` Alexander Aring
2019-02-22  1:03   ` Seung.Jang

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