Sensors - position x range

111 views
Skip to first unread message

Artur Carvalho Zucchi

unread,
Apr 5, 2021, 6:13:39 AM4/5/21
to mininet-wifi-discuss
Hello, 

I tried the scenario bellow and now I am confused. How is it possible that sensor1 is communicating with sensor3? (I did not change the script example 6LoWPan.py) 

zucchi@zucchi:~/mininet/mininet-wifi/examples$ sudo python3 6LoWPan.py
*** Creating nodes
*** Configuring nodes
*** Starting network
*** Running CLI
*** Starting CLI:
mininet-wifi> py sensor1.setPosition("1000,1000,0")
mininet-wifi> py sensor3.setPosition("10,10,0")
mininet-wifi> py sensor1.wintfs[0].range
50
mininet-wifi> py sensor3.wintfs[0].range
50
mininet-wifi> sensor1 ping sensor3
PING 2001::3(2001::3) 56 data bytes
64 bytes from 2001::3: icmp_seq=1 ttl=64 time=0.064 ms
64 bytes from 2001::3: icmp_seq=2 ttl=64 time=0.117 ms
64 bytes from 2001::3: icmp_seq=3 ttl=64 time=0.135 ms
64 bytes from 2001::3: icmp_seq=4 ttl=64 time=0.078 ms
^C
--- 2001::3 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3060ms
rtt min/avg/max/mdev = 0.064/0.098/0.135/0.028 ms
mininet-wifi>

Ramon Fontes

unread,
Apr 5, 2021, 7:04:43 AM4/5/21
to Artur Carvalho Zucchi, mininet-wifi-discuss
Hello Artur,

This might answer the question: https://mn-wifi.readthedocs.io/en/latest/sixlowpan.html - see the warning at the bottom of the page.

--
You received this message because you are subscribed to the Google Groups "mininet-wifi-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mininet-wifi-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mininet-wifi-discuss/805089ff-d2d2-4066-b32d-e547ffdcec03n%40googlegroups.com.

Artur Carvalho Zucchi

unread,
Apr 10, 2021, 11:52:35 AM4/10/21
to mininet-wifi-discuss
Thank you Ramon. 

Artur Carvalho Zucchi

unread,
Apr 11, 2021, 2:36:44 PM4/11/21
to mininet-wifi-discuss
Ramon, 

I understood the warning ("6lowpan implementation still lacks of a solution like wmediumd [...] The most important impact on this is related to the position of the nodes and the received signal. In other words, `mac802154_hwsim` will not be able to recognized the position of the nodes."). However, I was wondering, how it will work the routing table? I made some research, but none was conclusive. 

My main question is: If I have 3 stations, sta1 in range only with sta2 and sta3 in range only with sta2. When sta1 ping to sta3, we are having one hop count? The packet is forward by sta2?

Thank u,

Ramon Fontes

unread,
Apr 12, 2021, 7:13:19 AM4/12/21
to Artur Carvalho Zucchi, mininet-wifi-discuss
Routing protocols will work only with mac80211_hwsim.

Artur Carvalho Zucchi

unread,
May 9, 2021, 1:25:40 PM5/9/21
to mininet-wifi-discuss
Ramon, 

Given this problem, I had to study the feasibility of other simulators/emulators, but I haven't had a satisfactory result yet.

I really wanted to use the mininet-wifi to simulate 802.15.4 considering the movement of the nodes to measure, mainly, packet loss and latency. Do you think there is any way to achieve this goal with mininet-wifi?

Thanks, 

Ramon Fontes

unread,
May 9, 2021, 1:46:44 PM5/9/21
to Artur Carvalho Zucchi, mininet-wifi-discuss
Hello Arthur,

I just found https://github.com/linux-wpan/rpld. It seems that they
use mac802154_hwsim -
https://github.com/linux-wpan/rpld/blob/master/test/ns_setup#L7 in
their tests and the network topology seems to be the same as
illustrated in the README file. What do you think about it?


Em dom., 9 de mai. de 2021 às 14:25, 'Artur Carvalho Zucchi' via
> To view this discussion on the web visit https://groups.google.com/d/msgid/mininet-wifi-discuss/66601585-081e-4272-a2e8-6beae75363f7n%40googlegroups.com.

Artur Carvalho Zucchi

unread,
May 9, 2021, 2:08:17 PM5/9/21
to mininet-wifi-discuss
First of all, thanks Ramon. I am reading here about.

Right away, I don't know if I understood it very well. The idea is to install this rpld so that it creates another type of connection, allowing multiple hops between nodes. Right?

Once the implementation of this module is done, will the mininet-wifi automatically recognize it ??

Ramon Fontes

unread,
May 9, 2021, 2:15:41 PM5/9/21
to Artur Carvalho Zucchi, mininet-wifi-discuss
> Right away, I don't know if I understood it very well. The idea is to install this rpld so that it creates another type of connection, allowing multiple hops between nodes. Right?

Right. As far as I understood, rpld tries to mimic RPL (IPv6 Routing Protocol for Low Power and Lossy Networks)


> Once the implementation of this module is done, will the mininet-wifi automatically recognize it

Yes, for sure. Mininet-WiFi already does the same as illustrated in L7-L9 as well as 32-40. Complementary, we can create some methods for the wpan-hwsim edge command - you  can issue them manually though. However, I first recommend you to reproduce the instructions available in the README file.

Artur Carvalho Zucchi

unread,
May 16, 2021, 1:37:55 PM5/16/21
to mininet-wifi-discuss
Ramon, 

Sorry for the delay, I could only work on it today

I made it to reproduce the instructions in the README, as can be seen in print screen "RPLD - START". After that I deleted "module.pyc" to force a new compile and changed the 6LoWPan.py file, as seem in print "6LoWPan" to add positions to sensors. 
It was possible to run "sudo python 6LoWPan.py". The result, visible in "Test 6LowPan" file, lead me to believe that the position of the sensor was considered. However, you can see that the range of sensors is 50meters. 

So, I have some questions:

1. Is it necessary any further actions that I am missing?
2. If not, how it is possible that sensor 1 can communicate with sensor 2??


Thanks, 
6LoWPan.png
RPLD - START (test).png
Test 6LowPan.png

Ramon Fontes

unread,
May 16, 2021, 4:39:52 PM5/16/21
to Artur Carvalho Zucchi, mininet-wifi-discuss
Unfortunately, signal range and position are not being considered. However, you may add some new functions within the python code to consider them. I just updated 6LoWPan.py and I added wpan-hwsim there. The code seems to work fine but you may implement your own rpld code.

--
You received this message because you are subscribed to the Google Groups "mininet-wifi-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mininet-wifi-dis...@googlegroups.com.

Artur Carvalho Zucchi

unread,
May 16, 2021, 5:28:51 PM5/16/21
to mininet-wifi-discuss
Ramon, 

Thanks very much. I was able to understand better with your changes in 6LoWPan.py.

Two doubts remaining:

1. "signal range and position are not being considered. However, you may add some new functions within the python code to consider them":
> OK, but you are saying to add a propagation model (range) and a simple atribute of position, right? 

2. "The code seems to work fine but you may implement your own rpld code.":
> Perfect! Now I just need to create an algorithm that can define these routes in rpld, right?

Ramon Fontes

unread,
May 16, 2021, 6:12:59 PM5/16/21
to Artur Carvalho Zucchi, mininet-wifi-discuss
1. Right.
2. Firstly, I suggest you to comprehend how rpld works. This is because we still have to use wpan-hwsim for the edges. Perhaps rpld only implements the control frames. I really don't know. However, based on rpld and by using wpan-hwsim we can now see that we can implement a routing protocol and automate it with some new python functions.

Sent from my android

Reply all
Reply to author
Forward
0 new messages