Linux-WPAN Archive on lore.kernel.org
 help / color / 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, back to index

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

Linux-WPAN Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-wpan/0 linux-wpan/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-wpan linux-wpan/ https://lore.kernel.org/linux-wpan \
		linux-wpan@vger.kernel.org
	public-inbox-index linux-wpan

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-wpan


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git