Professional Documents
Culture Documents
Kam 2016
Kam 2016
Kam 2016
Abstract—The Raspberry Pi has become one of the most media access control layer is 102 octets, which may further
popular devices used in the internet of things studies because of its decrease based on the link layer security algorithm. Such sizes
flexibility and affordability for prototyping purposes. It has found are too small when compared to typical IP packet sizes. (2)
its niche in wireless sensor networks as it can function both as sensor nodes spend most of their time in sleep mode to preserve
sensor node and router node just by adding wireless adapter. energy which hinders them from communicating (3) scalability
Studies have employed the Raspberry Pi as WSN mesh node and problems due to the need to use router nodes to connect sensor
sensor node. These studies looked on the performance of these nodes to the base station.
devices on single flow of data and/or on limited number of hops.
Indirectly, they say these devices performs poorly on multihop and To address the issues above studies[7] have used the
multi-flow experimental scenarios. Our experiments show that for Raspberry Pi [6] acting as a sensor node and mesh node in a
multi-hop and multi-flow of scenarios, the raspberry pi nodes WSN. Eric Erfanian showed an easy to follow way to set up[19]
actually have enough resource and capacity to maintain good the raspberry pi as a wireless network using three nodes and a
performance. Data flows simply share these resources amongst gate way. These studies[8][9][10][11] focused on range,
themselves that results to smaller throughput per flow. We show throughput, the ability to self-heal and multihop, throughput
the appropriateness of Raspberry Pi not only as a sensor node but degradation, and even power consumption. Studies on the
at the same time act as a mesh node for wireless sensor network Raspberry Pi[7] as a mesh node focused only on one(1) flow of
studies in different scenarios. To the best of our knowledge, this
data which is not the case in WSN scenarios[15]. Previous
has not been reported in the literature which should be helpful to
studies used the raspberry pi in experimental scenario that uses
other researchers.
multiple flow of data in two-hop set up and gets extremely low
Keywords—raspberry pi 3; olsrd; mesh; wireless sensor throughput. They attributed this to the raspberry pi’s resource
network; IOT limitations. Indirectly, they looked at this device as not suitable
for wide/full scale multihop wireless sensor network
experiments and deployment.
I. INTRODUCTION
In this study, we show that the Raspberry Pi devices have
The Internet of Things(IOT) is a novel technological enough resource to handle the above mentioned situations. We
advancement that is gaining ground in the world today. The further show the appropriateness the use of Raspberry Pi in
general idea of the technology is the presence of “things” like Wireless Sensor networks with multi hop, multi flow
mobile devices, sensors or other objects interacting with each applications. The rest of the paper is organized as follows.
other for a particular goal [1]. Even the US National Intelligence Section II discusses other studies conducted on the feasibility of
Council recognizes it in the list of six ‘‘Disruptive Civil using the Raspberry Pi as MANET mesh node. Section III
Technologies” with potential impacts on US national power[2]. contains the testing design. Section IV shows the
NIC foresees that ‘‘by 2025 Internet nodes may reside in implementation and results of the testing. Finally Section V
everyday things – food packages, furniture, paper documents, presents the conclusion.
and more”. Future demand will promote wide spread
deployment of IOT devices in different key sectors, e.g.
II. RELATED WORK
environment, industry, health, and military.[2][3]
An enabling technology for IOT is the wireless sensor
network(WSN) [1]. Wireless sensor networks applications Most studies[9][10] involving IOT are mostly done through
include military operations, indoor and outdoor environmental simulation software like Network Simulator 2 and Network
monitoring, logistic support for business, health, and even Simulator 3 (NS2 & NS3) [13][14]. However it is difficult to
robotics [3]. Commercial and customized wireless sensor capture the complexity of wireless communications in real
networks [4] use the IEEE 802.15.4 (WPAN) [5], however, this environment in simulations[16]. Some studies[11][12] use
poses problems as (1) The largest physical layer packet in IEEE consumer off the shelf(COTS) devices that partner laptops with
802.15.4 has 127 bytes; the resulting maximum frame size at the wireless adapters which is too expensive in terms of cost, and
experiment the network address was set to 192.168.10.0, the R2 and R1’s throughput using the command “iperf -c
network ssid was set “meshkit”, and the channel was set to 192.168.10.1xx -t 10”. This was replicated for 20 times.
channel 6 so that all mesh nodes will lie on the same network
and be able to communicate with each other. 2. two-hop, two-flow scenario
Lastly to run olsrd in the device the command: sudo olsrd - The topology used for measuring the throughput of a two
I wlan1 -d 2 was used. hop, two flow scenario can be seen in Figure 5 below. It shows
the floor plan of the building and placement of the mesh nodes
in the two-hop, two-flow network scenario.
B. Experimental Scenarios
The first scenario consisted of two nodes to show one Figure 5. Topology for two hop, two flow scenario
hop, one flow of data. The second scenario consisted of three For the test TCP was also used like the one hop one flow
nodes to show two hop, two flow of data. The third scenario scenario. The payload was also 28kb for each iteration.
consisted of five nodes to test up to four hops, one flow of
data. For the test R1 was used as the iperf server using command”
iperf -s ”. R2 then sends a stream of packets using the iperf tool
1. one hop, one flow scenario acting as a client for 10 seconds with the command “iperf -c
Figure 4 shows the Raspberry Pi Placement for a one 192.168.10.1xx -t 10” while R3 is also sending indefinitely with
hop, one flow scenario. Raspberry Pi 1 (R1) was placed in the command “iperf -c 192.168.10.1xx -t 10000”. The throughput
a room with walls to shorten the transmission range for the between R2 and R1 is then measured. This was replicated for 20
nodes. times. This is again repeated only R2 is the one sending
indefinitely, R3 is sending for 10 seconds, and the throughput
between R3 and R1 is measured instead. A single flow two hop
scenario was also done with this configuration using R3 as the
client and R1 as the server for reference.
3. UDP and TCP Iperf tests for multiple hops
For this scenario five similarly configured Raspberry Pi’s
were used to test the throughput for each number of hops. The
raspberry pi’s were placed 60 m away from each other with one
raspberry pi acting as a udp server. This test was done in the
Track Oval of the Central Luzon State University. Due to the
lack of outlets the raspberry pi’s were powered using
powerbanks and controlled via ssh by a laptop. Figure 6 shows
the experimental set up.
ACKNOWLEDGMENT
T-Test is then applied to the multi-hop, multi-flow throughput This work has been supported by the Bayanihanets Research
for scenario 2 and single hop, single flow throughput for Program, funded by the Department of Science and
scenario 1 to test for difference. A t-value of 0.32 was obtained Technology(DOST), and Central Luzon State University,
showing that the , multi-flow throughput for scenario 2 and Republic of the Philippines
single hop, single flow throughput is not significantly different.
A more general equation for computing the additive REFERENCES
throughput or describing the scenario is:
[1] L. Atzori, A. Iera, and G. Morabito, “The internet of things: A survey,”
Comput.networks, vol. 54, no. 15, 2010
∑ ℎ ℎ ∗ ℎ =multi-hop, multi- [2] National Intelligence Council, Disruptive Civil Technologies – Six
flow throughput Technologies with Potential Impacts on US Interests Out to 2025 –
Conference Report CR 2008-07, April 2008,
<http://www.dni.gov/nic/NIC_home.html>.
Where n is equal to the number of data flows used, and i is
referring to the dataflow. Adding the throughput for each [3] Th. Arampatzis, J. Lygeros, and S. Manesis, “A Surver of Applications
Wireless Sensors and Wireless Sensor Networks”, Proceedings of ther
dataflow i multiplied by the number of hops traversed by 13th Mediteranean Conference onf Control and Automation, 2005 Sheikh
dataflow i will get you the additive throughput for the scenario. Ferdous, and Xinrong Li, “Wireless Sensor Network System Design using
At least for two hop two data flow scenario this additive Raspberry Pi and Arduino for Environmental Monitoring Applications”,
The 9th International Conference on Future Network and Communications
throughput is the similar or at least not significantly different to (FNC-2014), 2014
the one hop one data flow throughput scenario using the same [4] http://www.ieee802.org/15/pub/TG4.html
set up. [5] Raspberrypi.org
[6] Andreas Tønnesen. “Mobile Ad-Hoc Networks”, retrieved from
www.olsr.org/docs/wos3-olsr.pdf
V. CONCLUSION [7] Contreras, Orangel Jose Azuaje (2015). “Performance Evaluation of an
From the data obtained using throughputs of the first two IEEE 802.11 Mobile Ad-Hoc Network on the Raspberry Pi. Dissertacao
realizada no ambito do Mestrado em Engenharia da Informacao.”
scenarios, and the analysis and comparison of the results from Retrieved from:
the two scenarios, it can be concluded that there is no decrease https://sigarra.up.pt/feup/pt/pub_geral.show_file?pi_gdoc_id=433749
in network performance for the whole network as opposed to [8] Michelangelo Cruz, et. al,”Extending Wireless Sensor Network Lifetimes
what has been reported in the literature [8]. The aggregate Through Channel Load Aware (CLAW) Routing
throughput for the one hop connection is the same regardless of [9] . Nan Liu and Winston K.G. Seah, Performance Evaluation of Routing
one flow or two flow of data. The large drop of throughput in Metrics forCommunity Wireless Mesh Networks.
two flow, two hop is then attributed to the resource constraints [10] Michael Winkler. Cosimo Palazzo. Marco Bartolozzi, TCP Throughput
Measurements and Analysis in Wireless Multi-Hop Networks
and scheduling of the Raspberry Pi 3, R2 the intermediary node
[11] Philipp Hofmann, Chunlei An†, Luis Loyola and Imad Aad, Analysis of
prioritizing one stream to finish over another. Even with this UDP, TCP and Voice Performance in IEEE 802.11b Multihop Networks
constraint however the throughput obtained in the end node is [12] Hardware Comparison Capturing Received SignalStrength Indication
still sufficient for wireless sensor network purposes currently (RSSI) for Wireless SensorsNetwork (WSN)
has a maximum theoretical throughput of 225kbps [13] http://www.isi.edu/nsnam/ns/
(802.15.4)[18] which is still smaller than a four hop throughput [14] https://www.nsnam.org/
of 2000kbps. [15] Internet of Things:Wireless Sensor 2014 retrieved from:
The paper only tested with a stream of data generated using www.iec.ch/whitepaper/pdf/iecWP internetofthings-LR-en.pdf
Iperf network testing tool. Future works should try to test this [16] A. K. Dwivedi and O. P. Vyas, “An Exploratory Study of Experimental
using the Raspberry Pi3 as an actual sensor node and router Tools for Wireless Sensor Networks,” Wireless Sensor Network, vol. 03,
no. 07, p. 215, Jul. 2011.
node in one. Implementing this also in a full mesh network
[17] http://www.zigbee.org/what-is-zigbee/
would show full mesh capabilities of the device in a wireless
[18] Fredrik Österlind and Adam Dunkels. Approaching the maximum
sensor network. Other metrics and routing algorithms as well 802.15.4 multi-hop throughput. In Proceedings of the Fifth ACM
could be explored Workshop on Embedded Networked Sensors (HotEmNets 2008), June
2008.
[19] Erfanian, E. (2012, September 11). Mobile Mesh Networks with the
Raspberry Pi. Retrieved February 14, 2017, from
http://www.ericerfanian.com/mobile-mesh-networks-with-the-raspberry-
pi-part-1/