Priority-Based Queuing and Transmission Rate Management Using A Fuzzy Logic Controller in Wsns

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Available online at www.sciencedirect.

com

ScienceDirect
ICT Express 3 (2017) 101–105
www.elsevier.com/locate/icte

Priority-based queuing and transmission rate management using a fuzzy


logic controller in WSNs✩
Imen Bouazzi ∗ , Jamila Bhar, Mohamed Atri
Department of physic, Faculty of Science of Monastir, Monastir, Tunisia
Received 25 June 2016; received in revised form 7 December 2016; accepted 17 February 2017
Available online 1 March 2017

Abstract
Wireless sensor networks (WSNs) operate under challenging conditions, such as maintaining message latency and the reliability of data trans-
mission and maximizing the battery life of sensor nodes. The aim of this study is to propose a fuzzy logic algorithm for solving these issues,
which are difficult to address with traditional techniques. The idea, in this study, is to employ a fuzzy logic scheme to optimize energy con-
sumption and minimize packet drops. We demonstrated how fuzzy logic can be used to tackle this specific communication problem with minimal
computational complexity. In this context, the implementation of a fuzzy logic in the Carrier Sense Multiple Access with Collision Avoidance
(CSMA/CA) mechanism is achieved through filling the queue length and the traffic rate at each node. Through simulations, we show that our
proposed technique has a better performance in terms of energy consumption compared to the basic implementation of CSMA/CA.
⃝c 2017 The Korean Institute of Communications Information Sciences. Publishing Services by Elsevier B.V. This is an open access article under
the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/).

Keywords: Energy saving; Packet loss; Priority; Queue length; Rate

1. Introduction customers and average waiting time in the network from one
perspective and to study traffic stabilization from another per-
The rapid technological advances in wireless communica- spective. Fuzzy queuing and traffic rate control are emerging
tion systems, low-power digital electronics, small-scale energy areas of research in WSN management. Most of the queuing
supplies, microprocessors, and low-power radio devices have models studied in the last three decades have employed a first-
now enabled the development of low-power multifunctional come-first-served (FCFS) service discipline. Nonetheless, this
sensor devices for detecting and reacting to changes in their is evidently not the only way of monitoring; there are also many
surrounding environments. These sensor devices have a small other alternatives such as the last-come-first-served service.
battery, a tiny microprocessor, and a set of transducers for ac- In priority schemes, customers with the highest priority are
quiring information that reflects the changes in the surrounding selected for service ahead of those with lower priority, indepen-
environment. dent of their time of arrival into the network. WSNs perform
The emergence of low-power and minute wireless sensor under the contradictory requirements of maintaining message
devices has fuelled intensive research efforts during the last latency and the reliability of data transmissions, while, at the
decade, which, in turn, has led to the development of wireless same time, maximizing the battery life of each single sensor. In
sensor networks (WSNs). Fuzzy logic theory can be used to in- this context, the main goal of our research was to propose an
vestigate queuing phenomena such as the average number of optimized algorithm that allows priority queuing and transmis-
sion rate management based on a fuzzy logic controller. The
proposed algorithm provides performance measures regarding
∗ Corresponding author.
the crisp values for the fuzzy priority model with an unreliable
E-mail address: imen.bouazzi@gmail.com (I. Bouazzi).
Peer review under responsibility of The Korean Institute of Communica-
server using two fuzzy variables. The fuzzy variables designed
tions Information Sciences. (queue length and traffic rate) were aimed at giving priority to
✩ This paper has been handled by Prof. Jun Heo. nodes that drop packets and consume more energy.

http://dx.doi.org/10.1016/j.icte.2017.02.001
2405-9595/⃝ c 2017 The Korean Institute of Communications Information Sciences. Publishing Services by Elsevier B.V. This is an open access article under the
CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/).
102 I. Bouazzi et al. / ICT Express 3 (2017) 101–105

The rest of this paper is organized as follows. Section 2 pro- network lifetime, energy consumption, data transmission, and
vides an overview of the related works. In Section 3, the design other QoS metrics.
of the fuzzy algorithm will be discussed. Section 4 briefly in- The authors in [11] proposed a priority-based mechanism
troduces the problem statement. Section 5 evaluates the efficacy that makes a compromise between locally generated data and
of the proposed technique using simulations. Finally, Section 6 transit data. They proposed congestion-aware routing tries for
summarizes the paper. finding more affordable routes. However, a fuzzy rate controller
is utilized for rate controlling, which uses two criteria as inputs:
2. Related works buffer occupancy and congestion score.
In this paper, we concentrate on dynamically adjusting
the parameters of CSMA/CA according to the traffic rate
Large number of algorithms for priority control have been
and the queue buffer size. The proposed algorithm will tune
developed based on fuzzy logic systems to enhance the network
some parameters through a fuzzy logic system based on the
performance. In this section, we discuss the works done by
IEEE802.15.4 MAC protocol; the use of this algorithm should
some authors that are related to our research. Ramesh et al. [1]
lead to better energy efficiency and throughput.
used a procedure for finding various performance measures in
terms of crisp values for the total expected cost of a fuzzy batch
3. Problem statement
arrival queuing model using fuzzy numbers such as the arrival
rate, service rate, batch size, service cost, and holding costs. The MAC layer has a control for coordinating channel access
They transformed a fuzzy queue with batch arrival into a family to maximize throughput with an acceptable end-to-end packet
of crisp queues and developed a parametric programming delay and minimal energy consumption. The IEEE 802.15.4
approach for arrival queues with fuzzy parameters. Ashok MAC protocol is, in fact, planned to serve a set of applications
Kumar [2] developed a nonlinear programming approach for with very low power consumption and cost requirement, and
deriving the membership functions of steady-state performance with relaxed needs for data rate and QoS. We propose to
measures in the Erlang service model, where the arrival rate schedule our work with a fuzzy scheme to improve the QoS,
and service rate are fuzzy numbers. The basic idea is based where an implementation of CSMA/CA is included.
on Zadeh’s extension principle. Two pairs of mixed integer We have added a priority level to nodes that want access
nonlinear programs with binary variables are formulated to to the channel. However, we dynamically adjust the backoff
calculate the upper and lower bonds of the system performance. exponent (BE) value according to the queue length and the
Chen et al. [3] proposed a dynamic adaptive medium access traffic rate of each node. Moreover, we know that, if the traffic
control (MAC) algorithm in energy-harvesting WSNs. They load is greater than the available capacity of the sensor network,
generated a dynamic bound of the backoff window. Hence, congestion occurs, which causes a buffer overflow, a packet
the system can dynamically adjust the parameters of the drop, and a deterioration of network throughput. This is caused
slotted CSMA/CA mechanism using a fuzzy algorithm, and the by the whole information circulating between nodes. Wherever
parameters are also influenced by the energy-harvesting mode nodes receive more data, the probability of lost information
in the node. becomes critical and high. The decisions based on fuzzy logic
Many authors [4–6] used fuzzy queuing to propose a pro- can be used for transmission rate management and queue size
cedure for finding various performance measures in terms of assessment.
crisp values for a fuzzy queuing model with an unreliable server We classify nodes into three clusters: low priority, medium
where the arrival rate, service rate, breakdown rate, and re- priority, and high priority. Nodes in the low-priority cluster
pair rate are all fuzzy numbers. The authors in [7–9] used a do not have any critical data that should be sent immediately.
priority-based fuzzy decision packet scheduling algorithm and Thus, we can increase their BE value to give chance to other
a priority-based CSMA/CA mechanism to develop the mem- nodes to access the channel. On the other hand, nodes classified
bership function of the system performance. They proposed an as high priority should send their data first. This is done by
algorithm for maximizing the system quality of service (QoS) decrementing their default BE value. Medium nodes select a
through maintaining the time, energy, and packet drop con- random value of BE given by the standard. The fuzzy logic
straints. scheme is illustrated in Fig. 1.
The priority-based, application-specific congestion control
clustering protocol (PASCC) in Kaur and Kumar et al., [10] 4. New design of the fuzzy algorithm
integrates the mobility and heterogeneity of the nodes. PASCC
detects congestion in WSNs based on the type and priority of 4.1. Motivation
the captured data. The cluster heads (CHs) prioritize packets
based on distance; the farther nodes get priority over the nearby Fig. 2 shows a block diagram of the fuzzy logic system.
nodes. CHs also make sure that the extra resources consumed There are two fuzzy inputs, i.e., queue length and traffic rate,
by farther nodes are utilized effectively. During congestion, which are fuzzed into linguistic variables. Therefore, an input
prioritized packets are routed to the base station (BS) owing value to a fuzzy system has a level of uncertainty within
to their timeliness requirements, and non-prioritized packets a specific range. This feature makes fuzzy algorithms very
are dropped. PASCC achieves better performance in terms of adaptive to dynamic conditions.
I. Bouazzi et al. / ICT Express 3 (2017) 101–105 103

Fig. 3. Membership functions for the linguistic parameters.

Fig. 4. Membership functions for the linguistic parameters.

Table 1
Fuzzy rule base.
Fig. 1. The fuzzy logic scheme.
TQ Low Medium High
Empty Low Low Medium
Medium Low Medium High
Full Medium High High

To perform the fuzzification process, we should map two sets


in the fuzzy rule as follows:
Queue-Length = Q n ϵ{Empty, Medium, Full} (1)
Traffic-Rate = Tn ϵ{Low, Medium, High}. (2)
The total number of possible combinations arranged as a pair
of these states is 9. For each of these, we have to establish an
Fig. 2. The fuzzy logic system. appropriate state for the output fuzzy variable, namely, priority.
This can be stated as:
This section provides the details of the proposed fuzzy algo-
rithm, which combines traffic rate measurement and dynamic Priority = Pn ϵ{Low, Medium, High}. (3)
queue management to achieve energy efficiency and improve A practical way of defining all essential rules is through
QoS. We aimed to design a vigorous fuzzy algorithm that can a decision table. It consists of nine rules and is built using a
achieve better performance to minimize packet loss. This is en- max–min method, as shown in Table 1.
sured through the control of the queue length of each node with During the normalization phase, each measured value in
a dynamic scheduling approach to maintain the communication the system will be modified to provide a value belonging to
within the channel. However, we will be instantaneously mon- a simple speech. To normalize the linguistic variables, we
itoring the queue occupancy and the traffic rate for every super proceed in the following way. If the variation field of the entry
frame. All linguistic variables have a random number that will variable “y” is [a, b], it can be converted to [−1, 1] using the
be characterized by a membership function, to handle this func- following linear relation, as mentioned in Bhar et al. [12]:
tion. A triangular form will be associated with the inputs, and
the output membership functions will be in the form of single- 2y − b − a
V = . (4)
ton functions, as shown in Fig. 3. b−a
Concerning the output variable, the action for giving priority During the first stage of the fuzzy rules, the fuzzy algorithm
can change according to three variation levels, namely: low calculates the linguistic variables considered in this work:
priority (1), middle priority (2), and high priority (3). Fig. 4 average queue length and traffic rate.
illustrates the variation of the output linguistic variables using After normalizing these variables, it defines their associated
a singleton function. membership function (µk (Q n ), µk (Tn )). In this section, we
104 I. Bouazzi et al. / ICT Express 3 (2017) 101–105

Table 2
Simulation parameters.

Parameter Value
Simulation time 100 s
Channel frequency 2.4 GHz
Topology Cluster tree
Queue size 50
Packet size 512 kbps
Initial energy 1000 J
Number of nodes 30
Network area (m × m) 200 × 200

Fig. 6. Traffic load vs. energy consumption.

We introduced a novel scheduling mechanism based on


fuzzy-logic rules that operate on top of an energy-saving-
enabled MAC protocol for WSNs. This algorithm is integrated
Fig. 5. The new CSMA/CA-based fuzzy logic. with the traditional CSMA/CA algorithm and is applied to all
present our new algorithm, which is based on a fuzzy logic nodes whenever they want to access the channel. A priority
scheduler. The algorithm is applied to all participant nodes in scheduling is allocated to the nodes according to their queue
the traffic. It can be depicted as a flow chart, as shown in Fig. 5. length and traffic rate measurement. Fig. 6 shows the simulation
results of the energy consumption as a function of traffic load.
The simulation exhibited a good difference between the
4.2. Defuzzification basic CSMA/CA algorithm and the proposed algorithm. As we
Here, we consider the widely used method of “centre can see in the figure, when the traffic increased, the energy
of gravity” [13]. The idea in this method is based on the also increased. This rise, however, was significantly optimized
calculation of the average value in the case where subunits compared to that of the basic CSMA/CA, with the use of the
have the same maximum height. The value of (Z moy ) is then proposed fuzzy algorithm.
calculated using Eq. (5), where the Z k arguments indicate From the same figure, it can also be seen that the energy
the values of the linguistic variables for the output. The consumed for a low traffic load was well optimized, whereas
Pk arguments represent the resulting values of the weights it increased for higher traffic loads. This is because we had
calculated at the inference stage, as shown in Fig. 5. more nodes that had more packets to send. These results
Z 1 P1 + Z 2 P2 imply that power consumption had been reduced by using an
Z moy = . (5) allocation priority for nodes that participated in the traffic more
P1 + P2
than others. Our proposed method guarantees minimal power
The resulting weight values (Pk ) represent the input to the consumption, which is approximately 20% lower energy than
defuzzification step. This value provides the final value of (Z ), that of the basic CSMA/CA algorithm.
which defines the action for allocating priority. This factor lies Fig. 7 shows the simulation results of the throughput as a
in the interval [−1, 1]. function of time. It can be observed that the throughput was
5. Simulation results maximized at a desired level using fuzzy logic rules. We can
see that the throughput efficiency for the fuzzy algorithm was
A performance evaluation was made using the NS-2 tool. higher than that for the basic CSMA/CA algorithm. This was
The simulation parameters used to assess the proposed model due to the fact that the number of packets intended to be sent in
under different schemes are given in Table 2. the fuzzy algorithm was less than that in the slotted CSMA/CA
I. Bouazzi et al. / ICT Express 3 (2017) 101–105 105

fuzzy logic algorithm for dealing with congestion and packet


loss. The proposed method is designed to decrease the loss
probability of packets by managing the resources efficiently
by considering the statistical features that are exclusive to
multimedia traffic, namely, the sudden and gradual traffic
changes. This strategy uses a novel idea that uses a fuzzy logic’s
membership functions and its rule base. The proposed approach
leads to a framework that provides an optimization of energy
consumption, a decrease in the number of dropped packets, and
an increase in the throughput. The concept of the fuzzy rule
is robust, and it works well in scheduling the communication
between nodes.

Fig. 7. Throughput variation. References

[1] R. Ramesh, S. Kumara Ghuru, Cost measures of fuzzy batch arrival


queuing model by ranking function method, Int. J. Sci. Res. 4
(2277–8179) (2015) 234–238.
[2] V. Ashok Kumar, A membership function solution approach to fuzzy
queue with Erlang service model, Int. J. Math. Sci. Appl. 1 (2) (2011)
881–891.
[3] M. Chen, X. Zhu, H. Zhu, Service adaptively medium access control
algorithm based on fuzzy logical for energy harvesting wireless sensor
networks, Int. J. Netw. 9 (12) (2016).
[4] J. Patel, N. Khare, Information & communications technology express,
Indian J. Sci. Technol. 2 (3) (2012) 395–399.
[5] R. Rasmesh, S. Kumara Ghuru, Analysis of performance measures of
fuzzy queuing model with an unreliable server using ranking function
method, Int. J. Adv. Comput. Sci. Technol. 3 (10) (2014) 44–445.
[6] R. Srinivasan, Fuzzy queuing model using DSW algorithm, Int. J. Adv.
Fig. 8. Average delay variation. Res. Math. Appl. 1 (1) (2014) 57–62.
[7] V. Jain, S. Agarwal, K. Goswami, Priority based fuzzy decision packet
algorithm because there were few conflicts in the fuzzy logic scheduling algorithm for QoS in wireless sensor network, Int. J. Comput.
Appl. 97 (3) (2014) 28–31.
rules and the packets were well circulated. It was found that [8] J. Devaraj, D. Jaya lakshmi, A fuzzy approach to priority queues, Int. J.
proposed algorithm showed good performances during the Fuzzy Math. Syst. 2 (4) (2012) 479–488.
simulation. [9] M. Hatamian, M. Almasi, M. Asadboland, M. Hatamian, H. Barati,
Fig. 8 shows the packet delay variation during the period of Congestion-aware routing and fuzzy-based rate controller for wireless
simulation. It shows that the delay for the algorithm with fuzzy sensor networks, J. Appl. Wireless Commun. 25 (1) (2016).
[10] N. Kaur, D. Kumar, A review on priority based congestion control
rules was much lower compared to that with non-fuzzy rules.
protocols for wireless sensor networks, Int. J. Adv. Res. Comput. Sci.
From this figure, we can observe that the uses of high priorities Softw. Eng. 5 (6) (2015) 1420–1426.
are guaranteed a minimum delay compared to those that do not [11] M. Hatamian, M. Almasi Bardmily, M. Asadboland, M. Hatamian, H.
use our fuzzy approach. Barati, Congestion-aware routing and fuzzy-based rate controller for
wireless sensor networks, Radio Eng. 25 (1) (2016).
[12] J. Bhar, M. Zaidi, R. Ouni, S. Nasri, Performance evaluation of fuzzy
6. Conclusions
controller for traffic stabilization, in: Int. Conf. on Signals, Circuits and
Systems, 2008, pp. 1–5.
In this work, we proposed a new efficient approach for [13] S. Singh, S. Chand, B. Kuma, Energy efficient clustering protocol using
increasing the quality of service and for optimizing energy fuzzy logic for heterogeneous WSNs, Int. J. Wireless Pers. Commun.
consumption in wireless sensor networks. We proposed a (2015) Springer Science+BusinessMedia, New York.

You might also like