Professional Documents
Culture Documents
Ahmed2018 PDF
Ahmed2018 PDF
6, DECEMBER 2018
Abstract—Internet of Things (IoT) gives a new dimension in can be supported using WSN [8]. To support efficient rout-
the area of smart farming and agriculture domain. With the ing and auto-configuration in such network, 6LoWPAN is
use of fog computing and WiFi-based long distance network in widely used [9]. The 6LoWPAN can be integrated into WSN-
IoT, it is possible to connect the agriculture and farming bases
situated in rural areas efficiently. To focus on the specific require- based IoT to uniquely identify a large number of devices [10].
ments, we propose a scalable network architecture for monitoring It allows us to achieve interoperable communication among
and controlling agriculture and farms in rural areas. Compared different technologies. 6LoWPAN border router (6LBR) is
to the existing IoT-based agriculture and farming solutions, the responsible for collecting the sensor information and forward-
proposed solution reduces network latency up to a certain extent. ing to an IoT cloud server. At the same time, 6LBR also
In this, a cross-layer-based channel access and routing solution
for sensing and actuating is proposed. We analyze the network carry the available commands from a remote user or from an
structure based on coverage range, throughput, and latency. automation server. The agriculture and farm-related solutions
and decisions are handled by a cloud-server.
Index Terms—Cloud computing, fog computing, Internet
of Things (IoT), smart agriculture, WiFi-based long distance The WiLD network has revealed to be an affordable alterna-
(WiLD) network. tive to the other low cost and long distance solutions [1], [11].
The WiFi (IEEE 802.11) commodity hardware is available at
low cost and it supports license-exempt operation in the ISM
radio bands [12]. Replacing existing cloud, a local solution
I. I NTRODUCTION station in these devices is required for such long-range wire-
ARMING and agriculture is the basis of human life which less network which saves bandwidth and reduces the delay.
F gives food, grains, and other raw materials. Technology
holds a tremendous role in increasing production and decreas-
Fog computing has emerged as a solution to this problem. It
can reduce the delay to milliseconds to subseconds of time by
ing extra manpower. Internet of Things (IoT) has opened creating a local and collaborative solution system.
up a suitable solution for smart farming and agriculture, In this paper, we propose a network solution in the domain
however, it remains a dream till the connectivity is not of IoT connecting the rural region with various agricultural and
reached to rural areas. The WiFi-based long distance (WiLD) farming applications. In summary, the primary contributions of
network is successfully been used to connect the rural regions this paper are as follows.
with low cost [1]–[3]. With the extended range, for bet- 1) We introduce WiLD network and fog computing in the
ter and efficient IoT in such region, fog computing, and existing WSN-based solutions for covering longer range
cloud computing solutions can be incorporated in WiFi with lesser delay.
devices [4], [5]. 2) A cross-layer-based MAC and routing solution that
Wireless sensor network (WSN) is proven to be an eco- adapts traffic nature and sets the duty cycle accord-
nomically viable solution for the farming domain [6], [7]. ingly to improve delay and throughput performances
Features like the integration of sensors/actuators, digital trans- over multihop IoT is proposed.
mission, low power consumption, scalability, and security of 3) We discuss the testbed evaluation processes and analyze
WSN enable us to use in different IoT applications. Irrigation, the performance of the proposed architecture.
farm monitoring, control use of fertilizer, soil monitoring, Remaining of this paper is organized into four sections.
intruder detection, water quality monitoring, etc., operations The IoT and its potential for smart farming and agriculture
are discussed in Section II. Section III presents the proposed
Manuscript received July 20, 2017; revised June 8, 2018 and IoT network solution for farms and agriculture in rural areas.
October 14, 2018; accepted October 27, 2018. Date of publication Section IV gives the performance evaluation process of the
November 5, 2018; date of current version January 16, 2019. This work
was supported by the “QoS Provisioning in Internet of Things (IoT)” (Ref proposed network. Finally, Section V concludes this paper.
No. 13 (7) /2015-CC&BT dated: 28/09/2015) funded by MeitY (CC & BT),
Govt. of India. (Corresponding author: Debashis De.)
N. Ahmed and Md. I. Hussain are with the Department of Information II. IoT AND I TS P OTENTIAL FOR S MART
Technology, North-Eastern Hill University, Shillong 793022, India (e-mail:
nur.zaman@live.com; ihussain@nehu.ac.in). FARMING AND AGRICULTURE
D. De is with the Department of Computer Science and Engineering, IoT monitoring and automation from anywhere in the world
Maulana Abul Kalam Azad University of Technology, Kolkata 700064, India
(e-mail: dr.debashis.de@gmail.com). is replacing human being and hence yielding more benefits in
Digital Object Identifier 10.1109/JIOT.2018.2879579 agriculture. It is predicted that by the year 2050, the agriculture
2327-4662 c 2018 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission.
See http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
AHMED et al.: IoT FOR SMART PRECISION AGRICULTURE AND FARMING IN RURAL AREAS 4891
using IoT will increase the food production by 70% and pro-
vide foods up to 9.6 billion people, and 2 billion sensors will
be used in 525 million farms. Due to this prediction, IoT-
based agriculture and farming is becoming popular with the
promise to deliver all-time visibility of soil and crop health,
used machinery, storage conditions, fertilizer used, energy
consumption, and animal behavior.
IoT can help farmers in numerous ways. With the deployed
sensors/actuators across farms and machinery, farmers can
gain as an abundance of insightful data such as temperature,
fertilizer used, water used, etc. Once an IoT-enabled smart
system is in place, farmers can easily monitor a variety of envi-
ronmental parameters and do analytics. Table I shows a list of
IoT-based agricultural applications. From the table, it is clear
that longer latency is intolerable for most of the applications.
Gutiérrez et al. [14] proposed an IoT-based irrigation system
comprising of a WSN connected by a gateway and a remote
server. Other than the efficient use of water, this project
also deployed soil moisture and temperature sensors. Smart
sensor Web [16] was proposed to measure soil moisture
with the deployed sensors and controlled them from a Web-
based system. To monitor pH, temperature, humidity, etc.,
Cambra et al. [15] proposed a video sensing-based fertil-
izer controlling in agriculture production. An IoT-based smart
security and monitoring system is developed in [17]. Security Fig. 1. Proposed IoT network architecture connecting rural areas.
devices are kept in agricultural fields like rainstorms and
cold stores to control and monitor from a remote location. A
soil moisture monitoring system is developed in [13], which
worked on an energy efficient algorithm. Dan et al. [18] A. 6LoWPAN-Based Wireless Sensor/Actuator Network
monitored climate conditions using a greenhouse monitoring The 6LoWPAN-based wireless sensor and actuator network
system with short-range ZigBee technology. Ojha et al. [8] is used in the farm domain for sensing and actuating many
discussed the deployment processes of WSN for agriculture operations. 6LoWPAN is a low power wireless personal area
and farming and analyzed the network with respect to tech- network with devices of IEEE 802.15.4 standard using IPv6.
nologies, standards, and hardware. However, these solutions Definition 1 (6LoWPAN-Based Sensor Node): A sensor
mainly consider short-range technologies deployed in an area node is a tiny device accessible using IPv6 address having low
where Internet connectivity is available nearby. As farms and storage capacity, capable of low computation and processing
agriculture primarily available in rural areas, connecting the capability, and low power consuming.
short-range WSN from long distance and solving the farm- According to their functionalities, a sensor node si can per-
related issues still challenging. Further, provisioning QoS for form sensing, actuating, or both operations. Multiple on-field
such application to fulfill different network requirements is sensor nodes deployed across the farm areas which are acces-
very important. sible through a set of gateway nodes gi s available to their
respective coverage range. 6LoWPAN-based network is widely
used in IoT implementations. The considered network in this
phase can be defined as follows.
III. P ROPOSED N ETWORK A RCHITECTURE FOR S MART Definition 2 (6LoWPAN-Based WSN): A 6LoWPAN
FARMING AND AGRICULTURE enabled WSN is a collection of sensor nodes (s = s1 , s2 ,
The proposed architecture is a practical and promising solu- s3 , . . . , sn ) which are identifiable by a compressed version
tion for connecting rural farms using IoT with low cost and IPv6 addresses and accessible through a gateway node g.
better QoS. The proposed network (N ) is a combination of A large number of IoT devices need larger address space and
one WiLD network (W) and a set of 6LoWPAN enabled auto-configuration which is provided by IPv6. Characteristics
WSN networks (w). Network N , can be represented as a graph of a 6LoWPAN network are small packet size, low bandwidth,
N (A/Ri /gi /si , E), where A is the gateway, Ri is any WiFi lossy link, and mesh management. It uses the 6LoWPAN pro-
relay node, gi is any sensor gateway, si is any sensor node, tocol stack (IPv6 and adaptation layer). The challenge of such
and E is the set of links between two nodes in the network. combination is to adapt the packet sizes between the two lay-
Fig. 1 shows the proposed IoT architecture. The architecture ers, i.e., 1280 bytes in IPv6 and 127 bytes in LoWPANs. 6LBR
combines multiple networks for scalability and larger coverage fragments the packet in IPv6 layer and reassemble them in
range. Components of the proposed architecture are described 802.15.4 layer. As shown in Fig. 1, the nodes are enabled
below. with IPv6 addresses for better scalability. The deployed sensor
4892 IEEE INTERNET OF THINGS JOURNAL, VOL. 5, NO. 6, DECEMBER 2018
TABLE I
N ETWORK R EQUIREMENTS OF D IFFERENT I OT A PPLICATIONS IN FARM AND AGRICULTURE
TABLE II
C OMPARISON OF D IFFERENT WSN MAC P ROTOCOLS
where Li is the load index at a particular routing node i Erx = Prx 2Dpt + Dtr
and C is the link capacity. Also, rr represents the successful Ebo = Prx .Db
packet arrival rate, fr shows the successful packet forwarding
Esl = Psl .(Ddc + Ds )
rate, and cr represents the packet collision rate at the partic-
ular relay node. The higher value of Li means the higher is where Pid , Ptx , Prx , Psl , and Pbo are power required per unit
the congestion in the node. All nodes periodically send their time in idle, Tx, Rx, sleep, and backoff modes, respec-
load index to the sink node along with the number of child tively. Dpt is the propagation delay, Dtr is the transition
nodes (Q). As the downlink traffics are mostly burst in nature, delay for switching over from sleep to receive mode, and
based on the received Li values, sink node uses less congested k = (λ/Ddc ). For any collision, a subsequent re-transmission
path for routing decision. The traditional RPL routing can will consume extra Etx and Eid energy. The operating voltage
create one or more DODAG, the sink node in the proposed of CC2420 is 2.1–3.6 V and it requires 17.4 mA, 18.8 mA, and
protocol keeps records of them. The Li received from differ- 1 μA (max) in transmit, listen, and sleep mode, respectively.
ent intermediate nodes are compared with a threshold value The value of Ddc is not fixed in our case, so consider-
LTh = ([C/2]+or +ar )/C, where ar is the required data rate for ing an average value of 200 ms ∈ {150, 250}, for 2.3 V,
alert/command and or is the extra data rate due to packet and λ = 500 ms, idle time (Did ) is found to be 91.168 ms and
control overhead. The best downlink path is created comparing hence Eid = 3.94 mW. Similarly, Erx ≈ 0.02 mW, Ebo =
LTh and Li for all nodes. 0.138 mW, and Esl = 0.00046 mW. Total energy consump-
2) Performance Analysis of the CLAD Protocol: In the tion in one-hop transmission will be Etotal = 4.1 mW. Further,
proposed protocol, the sensor nodes periodically check in the other parameters like distance, weather and cross-layer com-
adjusted Ddc for any incoming packet. It uses two consecutive plexity may consume additional energy. The simulation and
CCAs of duration, Dcca with a short sleep gap, Ds . Once the testbed performance of the proposed protocol are extensively
CCA can detects a packet from sender, the expected delay for discussed in Section IV.
one-hop can be calculated as 3) Architectural Complexity and Communication Overhead
in CLAD Protocol: The proposed cross-layer MAC proto-
Dtd = j.Ddc + (2 + i)Dcca + Ds + Ddata + Dack col shares Q and Li value of routing which helps to decide
+ 2Dpt + Db (3) appropriate sleep duration. The cross-layer decision enables
the network for a distributed construction and reduces con-
where Ddata , Dack , Db , and Dpt are data transmission (Tx)
trol overhead at the MAC layer. In network protocol stack
time, ACK Tx time, backoff time, and propagation time,
of 6LoWPAN-based architecture like Contiki, there is an
respectively, and i ∈ {0, 1, 2, . . . , n} and j ∈ {0, 1}. Delay
adaptation layer in between MAC and routing layer. The mes-
may change with the changing value of i, j, Ddc , and Db . The
sage propagation latency for multilayer (layer 1 to n) can be
proposed protocol sets dynamic duty cycle according to the
calculated as
number of children nodes (Ddc ∝ Q−1 ). Db can be calcu-
lated from the probability of successful Tx (p). According to n
D1→n =
t
(DTi + DPi ) (5)
Bernoullis theorem [27], probability of random variable (X )
i=1
can be given by
where DTi is the message travel time between layer i interface
P(X = y) = (1 − p)y−1 p ∀y ∈ R. (4) and layer i + 1 interface and DPi is the processing time.
However, direct signaling is used to exchange information
Average backoff window (Wb ) can be calculated from expected
between MAC and routing layer. For two nonadjacent layers
value of y as Wb = [(2 − p)/p], which gives an average back-
lx and ly , direct propagation latency is calculated as [28]
off time as Db = Wb .ts , where ts is the slot time. Considering
default value of Contiki-3, sending a packet of 100 bytes, Dtd D1→n
t
Dldx →ly = . (6)
is found to be (≈) 8.56 ms, assuming i = j = 0, Wb = 64, n−1
and ts = 50 μs. Therefore, expected delay for h hops will This scheme of cross-layer signaling gives n − 1 speedup
be h × Dtd . Wasteful and unnecessary activities in the consid- factor.
ered network may cost a huge energy consumption. A proper 4) Effects of Weather in the Proposed 6LoWPAN-Based
and application load aware duty cycling scheme can solve Network: Weather-related parameters such as humidity, tem-
the issue. The proposed scheme uses traffic load and num- perature, fog, cloud, and rain affect the signal strength in
ber of nodes to optimally utilizes the Ddc for better delay proposed IEEE 802.15.4-based 6LoWPAN. The received sig-
performance. Energy consumption in the proposed protocol nal strength indicator (RSSI) is most widely used to estimate
is primarily because of Tx, reception (Rx), backoff, and idle signal quality [29]. For a link of distance d, received signal
listening. Assuming packet interarrival time λ, energy con- power, P(d) is computed according to the following equation:
sumption due to idle time (Eid ), transmission (Etx ), reception
(Erx ), backoff time (Eb ), and (Esl ) are calculated as d
Prssi (d) = P0 − 10η log + Gσ (7)
d0
Eid = Pid (λ − k.(Ddc + 2Dcca ) + 2Dcca
where P0 is the RSSI value at a mention distance d0 , η is
+ Ddata + Dack + Db + Dtr ) the attenuation factor, value of which depends upon the envi-
Etx = Ptx (Ddata + Dack ) ronmental factors around the receiver node, and Gσ refers to
4894 IEEE INTERNET OF THINGS JOURNAL, VOL. 5, NO. 6, DECEMBER 2018
Gaussian random variable at zero means and σ 2 variance. The Definition 4 (Fog): A virtualized platform which enables
ITU recommended a model for fog or cloud attenuation which storage, computation, and networking services in between the
is valid up to 200 GHz [29]. According to which specific sensor nodes and the existing cloud computing centers.
attenuation due to fog/cloud is It analyzes agricultural data close to the deployed field to
reduce latency. It also increases greater business agility as
ηc = ϕM (8)
developers can quickly develop fog application with less cost
where ϕ and M are specific attenuation coefficient and liquid and deploy wherever needed [12]. All these computations can
water density, respectively. Value of M varies with changing be carried out locally due to the support of a specific node or
air temperature as [30] set of nodes called as fog node.
ρ Definition 5 (Fog Node): A fog node is a part of connected
γa T (1 + Hc )
M= (9) network situated closer to “things” of IoT and extends services
1 + Hγcaγw toward the cloud.
where T is the absolute temperature of air, ρ is the pressure The hierarchical fog nodes structure helps to provide dis-
in humid air, γa and γw are the individual gas constants of air tributed computing in the network and ensures QoS for the
and water vapor, respectively, and Hc is the specific humid- delay sensitive applications. In the proposed model, reception
ity. Luomala and Hakala et al. [31] discussed the effect of of sensory information is done using application layer proto-
temperature on different states of humidity. Other than atten- col like MQTT or COAP. Further, real-time control, analytic
uation due to rain, the increased size of water droplets may with milliseconds response time, and sending only aggregated
cause reflection, refraction, or scattering. A performance com- data calculated from periodic traffic generated by sensors are
parison of RSSI for cloudy and normal weather in hilly terrain done by a fog node.
areas is discussed in Section IV-B.
D. Cloud Computing
B. WiLD Network Definition 6 (Cloud): A cloud in IoT provides autonomous
Different LPWAN technologies such as LoRaWAN, SigFox, and on-demand access to a shared list of computing resources
and NB-IoT are designed for long-range connection, but due kept in the storage server. The services that an IoT application
to very low data-rates and processing capabilities, these are demands from a cloud are as follows:
not suitable for carrying a huge amount of data and running 1) Supporting a huge number of devices to communicate.
fog computation. However, both of them can be supported by 2) Available anytime for computation.
the use of the WiLD network with ease. The WiLD network is 3) Provisioning security and privacy to data.
used to connect the rural regions from a remote location situ- 4) Available storage.
ated far away from the point of Internet connectivity. A WiLD 5) Helps in analytic report generation.
network in our proposed system can be defined as follows. 6) Low cost.
Definition 3 (WiLD Network): A WiLD network can be
presented as a graph G(R, E), where R is a set of WiLD nodes E. Performance Model of the Proposed Framework
including a gateway, set of the relay nodes and a set of leaf
The proposed framework is a union of multiple networks
nodes, and E is the set of long-distance point-to-point links.
having multihop communication in each of the modules.
A WiLD network can be modeled as a tree with levels Lc .
Hence, a key concern of the proposed dense network topology
For any level li , position of ith node is Ri,l . Similarly, any link
is the end-to-end delay. The primary alternatives of delays are
between three levels l − 1, l, and l + 1 for nodes ith, jth, and
as follows:
kth communicating in a multihop manner can be written as
1) Transmission and processing delay, , and if there are
(Ri,l → Rk,l+1 ) ∈ E. The gateway node, A is responsible for
multiple hops, this delay will be multiplied,
handling the initialization, synchronization, and scheduling of
2) Propagation delay, which is dependent on the Euclidian
channel access. As shown in Fig. 1, WiLD network consists
distance [33] between two ends and speed of wireless
of multiple P2P links forming a mesh scenario. The network
signals.
connectivity from a gateway node situated at district head-
Let us consider the sensor network component for delay calcu-
quarter extended till rural areas for last mile coverage. The
lation. If d be the distance covered by a wireless signal travel
TDMA-based MAC protocol is proven to be suitable. The
per unit time and Ei,j be the Euclidian distance between any
proposed architecture uses a two-color scheduling 2C-MAC
pair of nodes i and j, then the discrete propagation delay in a
protocol [3], which reduces the overall data frame into two
one-hop link (i, j) will be [Ei,j /d]. So, delay over multihop is
slots by slot reuse concept.
the sum of one-hop delay. If first hop delay is D1 and total
delay is Dtotal then for WSN
C. Fog Computing
A prediction by International Data Corporation found that Ei,j
D1 = + (10)
the amount of data analyzed on devices that are physically d
close to the IoT is approaching 40% [32]. That is, analyzing j−1
Ei,j
the data close to the sensor areas minimizes latency up to a Dw = + . (11)
large value. d
hop=i
AHMED et al.: IoT FOR SMART PRECISION AGRICULTURE AND FARMING IN RURAL AREAS 4895
TABLE III
Similarly, for the WiLD network, from node j to gateway D IFFERENT PARAMETERS FOR WSN S IMULATION
k, multihop delay (DW ) can be given by
k−1
Ej,k
DW = + . (12)
d
hop=j
Fig. 3. Average (a) PRR over increasing number of hops, (b) end-to-end delay over increasing number of hops, and (c) energy consumption of multihop
network.
(a) (b)
Fig. 4. Average (a) PRR (%) with varying loads and (b) end-to-end delay
with varying loads.
TABLE IV Fig. 5. Simulation topology for fog performance, where A and S are sensor
S IMULATION PARAMETERS OF THE F OG F RAMEWORK and actuator, respectively. Long distance gateway fog (LDGF), long distance
relay fog (LDRF), and local sensor gateway fog (LSGF) are the fog nodes.
TABLE V
6L OWPAN N ODE (CC2650) S PECIFICATIONS
Fig. 9. Programmed smart mote for the proposed agriculture and farming
application.
nodes, latency also increases. The primary reasons for the interface is used for the local gateway nodes. Similarly, soft-
delay are the multihop transmission, last-mile solution, peri- ware like Contiki-OS, Paho for MQTT broker, COAP client,
odicity of sensor data, computation complexity, etc. However, Mysql, etc., are used. Detailed specification of CC2650 is
with fog placement, the delay has been reduced up to a huge shown in Table V. CC2650 provides longer battery life using
margin. Rather than shifting all the operations to the cloud, a coin cell with ultralow power microcontroller. It further
fog nodes take the responsibility locally. For analytic purposes, saves energy with built-in low powered microelectromechani-
fog nodes only send the aggregated data using some existing cal sensors. Along with the six built-in weather-related sensors,
data aggregation algorithms on duplication. In cloud placement additionally, two GPIOs are programmed out from JTAG
strategy, due to a large number of connected devices, load also interfaces for adding a soil moisture sensor and a relay switch
increases significantly in contrast with fog placement. We can to add an actuator. Fig. 9 shows the programmed low pow-
attribute to a fact in the fog-based computation that most of the ered smart mote named as SmartAgriMote for the proposed
critical and sensitive communication taken using low latency agriculture and farming application.
links. Therefore, modules like problem detection and decision The proposed WSN-based MAC protocol is implemented
are carried on the fog nodes which further reduces the data over cc26xx-Web-demo module to see the PRR and Round-
volume earlier sent to a cloud. trip delay using upper layer protocols MQTT and COAP. To
generate uplink traffic, sensor nodes are set to send a packet
at every 5 s. Similarly, with the same duration, a command
B. Testbed Evaluation button from a Web interface was used to measure downlink
Different components of the testbed setup are discussed as traffic. We have used five motes along with the gateway for the
follows. performance test. As shown in Table VI, with increasing num-
1) 6LoWPAN-Based WSN Setup: The 6LoWPAN-based ber of hops, delay increases, and PRR decreases. From RTT,
WSN is interfaced with the WiLD network for long distance end-to-end delay for one-hop would be (34/2 =)17 ms, which
connectivity. A RaspberryPi device configured with 1-GB almost vary close to the simulation result. The same case can
RAM, 1.2-GHz ARM processor, and CC2531 for 802.15.4 be applied for multihop scenarios too. In hilly terrain areas,
4898 IEEE INTERNET OF THINGS JOURNAL, VOL. 5, NO. 6, DECEMBER 2018
TABLE VI
P ERFORMANCE R ESULTS OF THE P ROPOSED
6L OWPAN-BASED S ENSOR N ETWORK
TABLE VII
RSSI IN C LOUDY AND N ORMAL W EATHER C ONDITIONS
TABLE VIII
P ERFORMANCE OF THE P ROPOSED W I LD N ETWORK
cloud and fog are common for most of the time. We have
analyzed the weather effect on RSSI for different distances.
Unavailability of an external antenna in CC2650, it can cover Fig. 12. Web-based interface to monitor current trends of the field.
maximum up to 40 m in a single hop scenario. However, as
shown in Table VII, RSSI measured in cloudy weather condi- A Web-based interface for visualizing the system is shown
tion is lesser than normal condition. Also, we have measured in Fig. 12. Based on the current requirements of agriculture
the downlink PRR for the proposed congestion aware solution fields, automation is also carried out. For example, based on
and shows improvement over traditional routing. the soil moisture values received, automatically water supply
2) WiLD Network Setup: A shown in Fig. 7, three types of switches its mode to on.
nodes are used for complete WiLD network setup. We have
used two types of router boards: a) Mikrotik RB433AH and
b) Mikrotik RB411 for the WiFi nodes. These boards are con- V. C ONCLUSION
figured with 128-MB RAM and 680 MHz of nominal clock This paper has presented an IoT-based control system
speed. The configuration of a P2P connection using these two for advancement in agriculture and farming of rural areas.
boards is shown in Fig. 10. Google map view of the testbed is Different components and enhancements of the control system
shown in Fig. 8. The main purposes of two relay nodes in the are discussed and analyzed in all aspects including testbed
setup are: a) creating a multihop scenario covering longer dis- evaluation. The MAC and routing solution for IoT have
tance and b) achieving a proper line of sight in hilly terrain. achieved better energy, delay, and throughput performance.
We have implemented the 2C-MAC protocol over Atheros- Combining the proposed solution with the WiLD network, it
based Ath9k driver package of OpenWrt. Iperf and Ping are is possible to reduce delay and improve throughput for end
used to check the throughput and delay performance of the mile connectivity. The proposed fog computing solution takes
network. In 2C-MAC protocol, same slots are used by every action with lesser delay and saves bandwidth in the network.
two hops nodes, and hence throughput performance does not The economy of a developing country mainly depends on
get reduced significantly over multiple hops (which can be agriculture and farms in rural areas and applying traditional
seen in Table VIII). approaches is not sufficient. Use of modern technologies like
After individual performance evaluations of both network IoT with low cost and scalable solutions are very important.
components, we have analyzed the control system in two The proposed solution is also suitable for other applications
scenarios: like smart healthcare and smart grid in rural regions.
1) Doing cloud computation at the Internet. To reduce congestion in the proposed large-scale network,
2) Doing fog and cloud computation at WSN gateway and along with the routing and fog computing solution, tech-
Internet. nologies like IEEE 802.11n/ac/ah having more physical data-
In the first approach, computations and report generation are rate capacity can be used. Moreover, dynamic bandwidth
done at the cloud. Whereas, in the second approach, except allocation-based configuration at existing relay WiLD node
the report generation, other computations are carried out at can further be installed. The chance of attacks like tamper-
the local gateway. The sensor network gateway only sends ing and manipulation of data is high if we do not secure the
deflected data to the cloud to reduce bandwidth in the network. long distance covering wireless network. Similarly, the pri-
Calculating RTT at edge node (i.e., local gateway) we found vacy of individual devices is very important to autonomously
the average value as 357 ms, whereas, at hosted cloud, it communicate over different entities such as fog, cloud, and
is 5032 ms. Fig. 11 shows a deployed on-field sensor node. Internet.
AHMED et al.: IoT FOR SMART PRECISION AGRICULTURE AND FARMING IN RURAL AREAS 4899