The Multi-Objective Optimization Algorithm Based on

11 downloads 0 Views 9MB Size Report
Jan 2, 2018 - on Sperm Fertilization Procedure (MOSFP) Method .... Network modeling is a process to simplify and represent different kinds ... In this section, we will summarize a few studies that use a wide variety ...... node (ps) of accessing the medium in a successful way. ps can be calculated by the following formula:.
energies Article

The Multi-Objective Optimization Algorithm Based on Sperm Fertilization Procedure (MOSFP) Method for Solving Wireless Sensor Networks Optimization Problems in Smart Grid Applications Hisham A. Shehadeh ID , Mohd Yamani Idna Idris *, Ismail Ahmedy Noorzaily Mohamed Noor

ID

, Roziana Ramli

ID

and

Department of Computer System and Technology, Faculty of Computer Science and Information Technology, University of Malaya, Kuala Lumpur 50603, Malaysia; [email protected] (H.A.S.); [email protected] (I.A.); [email protected] (R.R.); [email protected] (N.M.N.) * Correspondence: [email protected]; Tel.: +603-79-676-414 Received: 7 November 2017; Accepted: 31 December 2017; Published: 2 January 2018

Abstract: Prior studies in Wireless Sensor Network (WSN) optimization mostly concentrate on maximizing network coverage and minimizing network energy consumption. However, there are other factors that could affect the WSN Quality of Service (QoS). In this paper, four objective functions that affect WSN QoS, namely end-to-end delay, end-to-end latency, network throughput and energy efficiency are studied. Optimal value of packet payload size that is able to minimize the end-to-end delay and end-to-end latency, while also maximizing the network throughput and energy efficiency is sought. To do this, a smart grid application case study together with a WSN QoS model is used to find the optimal value of the packet payload size. Our proposed method, named Multi-Objective Optimization Algorithm Based on Sperm Fertilization Procedure (MOSFP), along with other three state-of-the-art multi-objective optimization algorithms known as OMOPSO, NSGA-II and SPEA2, are utilized in this study. Different packet payload sizes are supplied to the algorithms and their optimal value is derived. From the experiments, the knee point and the intersection point of all the obtained Pareto fronts for all the algorithms show that the optimal packet payload size that manages the trade-offs between the four objective functions is equal to 45 bytes. The results also show that the performance of our proposed MOSFP method is highly competitive and found to have the best average value compared to the other three algorithms. Furthermore, the overall performance of MOSFP on four objective functions outperformed OMOPSO, NSGA-II and SPEA2 by 3%, 6% and 51%, respectively. Keywords: network modeling; smart grid; multi-objective optimization; quality of services (QoS); optimality

1. Introduction A Wireless Sensor Network (WSN) is a network formed by a large number of wireless sensors embedded with different kinds of devices to detect physical phenomena such as pressure, light, heat, etc. The first use of these sensors was in military applications such as video surveillance in conflict areas [1]. Today, there are many short-range communication technologies such as ZigBee, Wi-Fi, etc. which are used to support sensor-based devices. These technologies can operate on the license-free Industrial, Scientific, and Medical Band (ISM) [2,3] with different communication ranges. WSNs are quickly gaining popularity for sensing and monitoring with real applications in the building field. This is extended to many applications in industrial infrastructure, health, automation, traffic, and various consumer areas [4]. Energies 2018, 11, 97; doi:10.3390/en11010097

www.mdpi.com/journal/energies

Energies 2018, 11, 97

2 of 35

Sensor nodes that operate in these applications are often exposed to different challenges due to their limited capabilities, which include limited power (battery), limited memory size, and limited communication ranges [5]. The mismanagement and misuse of these devices will reduce the network lifetime and reduce the Quality of Service (QoS), especially in dense networks. For instance, if the packet payload size increases, the probability of dropping the packet will be increased, and the retransmission of these packets requires reallocation of the dropped packets in the memory and consumes more battery power. In addition, this procedure will take more time, which leads to increased network delay. To mitigate the effect of the aforementioned challenges, various optimization methods have been used by prior researchers. These methods are typically used to optimize a set of mathematical features of the network such as throughput, network coverage, network energy consumption, etc. [6–15]. These features also include the effect of various network parameters such as packet payload size, frequency range, and the distance between sender and receiver. In addition, these features involve the parameters of interference such as Packet Error Rate (PER) based on the interference from other devices that operate on the same frequency band. Though the study of these features is important, prior works do not pay much attention to finding the optimum value for some parameters of a physical layer such as packet payload size. Packet payload size can affect some of the important network model features such as end-to-end delay, end-to-end latency, energy efficiency, and network throughput. The study of these features is very important, especially in WSN applications that can be affected by delays such as health monitoring networks, smart grid networks, and disaster monitoring networks. For this reason, optimization algorithms are important to determine the optimal value of the different parameters that affect network QoS. We choose a smart grid as a case study to prove the ability of our algorithm in solving different kinds of real-life problems and also because the smart grid has problems that can be represented in objective functions similar to the aforementioned objective functions used in our Multi-Objective Optimization Algorithm Based on Sperm Fertilization Procedure (MOSFP) that has a higher efficiency and the ability of providing an optimal solution for them. Examples of these objective functions are end-to-end delay and end-to-end latency, where the latency is affected by the end-to-end delay results. In this work, four complex computational algorithms known to date: Optimized Multi-Objective Particle Swarm Optimization (OMOPSO) [16], Non-Dominated Sorting Genetic Algorithm (NSGA-II) [17], Strength Pareto Evolutionary Algorithm 2 (SPEA2) [18], and our proposed MOSFP [19] are applied. The motivation of this paper is to find the optimal value of packet payload size that manages the trade-offs between objective functions. The optimal value considers four objective functions, which include energy efficiency, packet throughput, end-to-end delay, and end-to-end latency. The inclusion of these four objective functions is believed to improve QoS of a communication link in the smart grid network unlike most of the prior work that only focuses on maximizing network coverage and minimizing energy consumption. In this paper, we propose to apply our proposed MOSFP method that is inspired by sperm motility to fertilize the egg to find the optimal value of packet payload size based on the aforementioned objective functions. The complexity of real life problems in WSN increases with time due to the limited power, memory size, and communication ranges of sensor nodes. Most of the available metaheuristic techniques suffer from slow convergence and bad local search ability. Therefore, solving the real life problems in WSN will require a more powerful metaheuristic-based technique. The advantages of MOSFP over the other algorithms are the ability of MOSFP to solve complex objective functions, such as Zitzler-Deb-Thiele 3 (ZDT3) and solve functions that contain more than two objective functions, such as Walking-Fish-Group 5 and 8 (WFG5 and WFG8) as proved in our prior paper [19]. Additionally, MOSFP has the advantages of finding a good approximation of Pareto front and attending a high amount of points of the true Pareto front for these objective functions [19]. In this paper, we choose a smart grid as a case study because smart grids have problems that can be represented by the objective functions similar to ZDT3, WFG5, and WFG8 in which MOSFP has a higher efficiency and ability to provide an optimal solution

Energies 2018, 11, 97

3 of 35

for them. This is because MOSFP has a higher convergence and spread of the results than OMOPSO, NSGA-II, and SPEA2 while solving these kinds of problems. Examples of these objective functions that have the same features of the aforementioned problems are end-to-end delay and end-to-end latency, where the latency is affected by the results of end-to-end delay. In addition, the four aforementioned algorithms will be used to study the effect of packet payload size to the network QoS as well as how this parameter plays a significant role in minimizing both end-to-end delay and end-to-end latency and also in maximizing both energy efficiency and packet throughput. In the first stage, the four algorithms are evaluated to find the most efficient algorithm. This is followed by Pareto-optimal set analysis to find the optimal value of packet payload size that minimizes both end-to-end delay and end-to-end latency and maximizes both energy efficiency and packet throughput. This paper is organized as follows: Section 2 presents a literature review. Section 3 shows the multi-objective optimization algorithms. Section 4 discusses the quality of service features of WSNs. Section 5 presents a case study. Section 6 presents the methodology and experimental setup. Section 7 presents our experimentation and results. We conclude the findings in Section 8. 2. Literature Review This section gives a detail description of WSN challenges and reviews the related optimization methods. 2.1. Wireless Sensor Network Challenges (1)

(2)

(3)

Network scalability: the nature of WSN based on a widespread deployment of sensors to cover the largest possible area for monitoring. This makes the whole system very sensitive to failure [20]. To diminish this challenge, the network coverage should be examined to ensure a high Quality of Service (QoS). Energy management: the energy (power) is the biggest limitation in any wireless sensors capabilities. Power is one of the main reasons that sensors are subject to failure due to depletion of batteries [21]. Sensors are created to work autonomously for prolonged periods of time in months or years after deployment task. It is not easy to recharge or replace the sensors batteries [22]. Therefore, many aspects that affect the energy management should be examined to minimize the energy consumption of the sensor battery. This can be achieved by examining some issues of the physical layer and protocol layer of the network. Limited storage and memory: the storage in any sensor mostly has the range from 32 KB to 2 GB while the memory (RAM) has the range from 2 KB to 256 KB. This limitation affects the throughput of the sensors [23]. Table 1 lists some available sensor nodes along with their respective storage and memory characteristics [5]. Table 1. Available sensor nodes along with their storage and memory characteristics [5]. Platform

Microcontroller Unit (MCU)

RAM

Program and Data Memory

Radio Chip

BTnode3 Cricket Imote2 MICA12 MICAZ Shimmer TelosA TelosB XYZ

ATMega128 ATMega128 Intel PXA271 ATMega128 ATMega128 TI MSP 430 TI MSP 430 TI MSP 430 ARM 7

64 KB 4 KB 256 KB 4 KB 4 KB 10 KB 2 KB 10 KB 32 KB

128–180 KB 128–512 KB 32–MB 128–512 KB 128–512 KB 48KB-UP to 2 GB 60–512 KB 48 KB–1 MB 256 KB

CC1000/Bluth CC1000 CC2420 CC1000 CC2420 CC2420/Bluth CC2420 CC2420 CC2420

Energies 2018, 11, 97 Energies 2018, 11, 97

4 of 35 4 of 35

(4) Delay of data aggregation: this challenge is crucial in many WSN applications [24], particularly whenofdealing with critical that should be received any delay. [24], Examples of these (4) Delay data aggregation: thisdata challenge is crucial in many without WSN applications particularly data are heartwith pulses and electrocardiograms patientswithout [25], disaster detection alarmsof[26] and when dealing critical data that should beof received any delay. Examples these power supply requests in smart grids [27]. data are heart pulses and electrocardiograms of patients [25], disaster detection alarms [26] and (5) power Interference and fading: wireless mostly operate on license-free bands such as 2.4 GHz ISM supply requests in smart devices grids [27]. band [28]. and There are many other devices operate in the frequency band such as GHz microwave (5) Interference fading: wireless devices mostly operate onsame license-free bands such as 2.4 ISM ovens and Wi-Fi routers. This makes the system vulnerable to interference and intrusion by those band [28]. There are many other devices operate in the same frequency band such as microwave devices work on this [29,30]. Basedvulnerable on these to issues, the network topology ovens andthat Wi-Fi routers. Thisband makes the system interference and intrusion byplanner those should keep these aspects in mind. devices that work on this band [29,30]. Based on these issues, the network topology planner (6) should Security: thethese wireless medium is open and accessible to anyone rather than the wired one. This keep aspects in mind. makes transmissions over theiswireless easily altered,rather replayed, or intercepted by an (6) Security: the wireless medium open andmedium accessible to anyone than the wired one. This adversary. In addition, the intruders may have strong transmitters to block transition that comes makes transmissions over the wireless medium easily altered, replayed, or intercepted by an from otherIndevices by transmitting packets through the network to make the network busy. adversary. addition, the intrudersmany may have strong transmitters to block transition that comes The conflict may be because packet through collagingthe through thetotransfer time, whichbusy. leads from other devices byoccurred transmitting manyofpackets network make the network to network failure. These issues should be solved using a load balancing technique [31]. The conflict may be occurred because of packet collaging through the transfer time, which leads to network failure. These issues should be solved using a load balancing technique [31]. 2.2. Network Modeling 2.2. Network Modeling Network modeling is a process to simplify and represent different kinds of network problems or Network challenges as a form of mathematical These different models kinds are classified into two types: modeling is a process to simplifymodels. and represent of network problems or minimization models, and maximization models. The former models should have minimum results challenges as a form of mathematical models. These models are classified into two types: minimization whereas themaximization later models models. should have results. The steps of networkresults modeling procedure models, and The maximum former models should have minimum whereas the are shown in Figure 1 [32]. Accordingly, we can summarize the workflow of the network modeling later models should have maximum results. The steps of network modeling procedure are shown follows: at the beginning,we thecan real problem should be determined, after that, by simplifying this inas Figure 1 [32]. Accordingly, summarize the workflow of the network modeling as follows: and determining its limitations and quantifications, it simplifying can be written as a form at problem the beginning, the real problem should be determined, after that, by this problem andof optimization models. Hence, the optimization algorithms come to take a place in the modeling determining its limitations and quantifications, it can be written as a form of optimization models. process optimizingalgorithms these models to determine theirinoptimal solution. At the the evaluation Hence, theby optimization come to take a place the modeling process byend, optimizing these of thetoresults is very which At in the case of the theevaluation results not satisfy theisrequirements; the models determine theirimportant, optimal solution. end, of the results very important, modification on the data entry of the optimization model could be happened until reaching the which in case of the results not satisfy the requirements; the modification on the data entry of the optimal result. optimization model could be happened until reaching the optimal result.

Reality

Communication Simplification Quantification Limitation

Evaluation Modification

Optimization model

Interpretation Results Algorithms Data

Figure 1. 1. Modeling process [32]. Figure Modeling process [32].

Based Figure the algorithm part very important find the result different kinds Based onon Figure 1, 1, the algorithm part is is very important toto find the result ofof different kinds ofof optimization models. There are many studies have been done in this area especially in the field optimization models. There are many studies have been done in this area especially in the field ofof WSN. These studies use various optimization algorithms to get the optimal result on a wide variety of optimization problems related to WSN. This will be discussed further in the next subsection.

Energies 2018, 11, 97

5 of 35

WSN. These studies use various optimization algorithms to get the optimal result on a wide variety of optimization problems related to WSN. This will be discussed further in the next subsection. 2.3. State of the Art In this section, we will summarize a few studies that use a wide variety of heuristic-based algorithms to optimize different types of network features and then get an optimal QoS of the network. Jia et al. [6] have proposed a new algorithm called Energy-efficient Coverage Control Algorithm (ECCA) that works based on NSGA-II. This algorithm is used to optimize two conflict network features such as maximizing the network coverage and minimizing the network energy consumption. They have conducted different experiments to test the performance of this algorithm. In the first experiment, a total of 100 nodes was used to cover a topology size of 100 × 100 m whereas in the second experiment, a total of 200 nodes was used to cover a topology size of 200 × 200 m. Different test scenarios have been applied by changing the number of generations for each algorithm from 10 to 200 generations. The results showed that the algorithm is efficient in providing a good coverage with less energy consumption. Yang et al. [7] have discussed a set of network features that affect QoS in the WSN to maximize the network lifetime and minimize task execution time. Yang et al. proposed a modified version of Binary Particle Swarm Optimization (MBPSO) and compared it with two different algorithms such as Binary Particle Swarm Optimization (BPSO) and Genetic Algorithm (GA). The network features were tested by varying the number of nodes from 0 to 60 nodes in a topology size equal to 500 × 500 and number of execution tasks for each node from 0 to 10 tasks. The results showed that MBPSO outperformed the other algorithms in term of optimizing the previously mentioned features. However, the coverage feature is not evaluated. For this reason, Kukunuru et al. [8] have discussed the coverage problem of WSN. Particle swarm optimization algorithm (PSO) is used to maximize the network coverage based on the distance between nodes in the topology area of 50 × 50 m. They conducted different tests by changing the number of nodes up to 80 nodes. The results showed that the best coverage for 50 × 50 area is when the number of nodes is 40 nodes. However, network end-to-end delay and energy consumption are not tested in this study. The tests are important because a longer distance between nodes will increase the network delay, thus, increase the number of dropped packets in the network. The retransmission of these packets will consume more power consumption and time. In a different study, Sagar et al. [9] have discussed the challenges in WSNs. A very important issue in WSN is network coverage, which is used to determine the optimal number of nodes that can cover all parts of the topology. They used two algorithms to maximize the network coverage and minimize the energy consumption. These algorithms are Optimal Geography Density Control (OGDC) and NSGA-II. Different tests were performed to find the optimal coverage ratio in a topology size equal to 100 × 100. The parameter settings of the algorithm were population size equal to 100, crossover rate equal to 0.9, and maximum iterations of the algorithm equal to 250. The Pareto-front figures showed the previous objectives under changing the number of nodes from 0 to 400 nodes. Furthermore, The results showed that the NSGA-II outperformed OGDC, which used 210 nodes to cover the topology while the OGDC algorithm used 327 nodes to cover the same topology area. Chaudhuri et al. [10] further discussed a Coverage and Lifetime Optimization (CLOP) problem of WSNs. They optimized two features for CLOP problems such as maximizing coverage and minimizing network energy consumption. Chaudhuri et al. used two algorithms to optimize these features, including NSGA-II and SPEA2. The experiments were repeated 10 times by changing the population size for each algorithm from 300 to 5000 and the number of evaluations from 50,000 to 500,000. Moreover, the numbers of nodes were changed from 5 to 20 nodes. The results illustrated that NSGA-II outperformed SPEA2 in optimizing the CLOP problem. In a later study, Sengupta et al. [11] have proposed a multi-objective optimization problem of WSN based on scheduling algorithm to control the node density. Their objective is to achieve the maximum

Energies 2018, 11, 97

6 of 35

coverage with a good life-time of the network. This algorithm is used to schedule the randomly deployed active nodes, in which, if any failure occurs the optimization algorithm will rearrange the network unless all nodes have lost their connectivity or energy. Sengupta et al., have compared between a set of algorithms to get the maximum coverage and minimum energy consumption. The first algorithm is Multi-objective Evolutionary Algorithm Based on Decomposition (MOEA/D), which is a GA framework that decomposes a multi-objective problem to a set of single objective problems. The second algorithm is NSGA-II. The results showed that MOEA/D outperformed NSGA-II in finding the optimal results for two objective functions. However, the node selection problem of WSN is not discussed in this study. For this reason, Naeem et al. [12] have proposed selecting a set of nodes rather than utilize all the nodes in the network, which will increase the network lifetime by reducing the power consumption in the whole network. The optimization algorithms such as GA, Convex Optimization Algorithms, Binary Particle Swarm Optimization (BPSO) and PSO-Cyclic Shift Population (CSP) algorithm are used to evaluate this problem. The results showed that BPSO outperformed the other algorithms in finding the optimal number of selected sensors. Later, Liu et al. [13] have proposed an improvement on Multi-Objective Particle Swarm Optimization (MOPSO) using crowding factor and archive method. This algorithm is used to optimize two conflicting features in WSNs such as maximizing the node coverage and minimizing the energy consumption for each node. The efficiency of their algorithm was evaluated and compared with the original version of MOPSO. The simulation parameters were topology size equal to 20 × 20 m, number of sensors equal to 40 sensors. The parameter settings of the algorithms were the number of particles equal to 30, and the number of iterations equal to 300. The experimental results showed that the improved version of MOPSO outperformed MOPSO in terms of maximizing the network coverage and minimizing the network energy consumption. Bara’a et al. [14] proposed a multi-objective optimization modeling of WSN network using NSGA-II and MOEA/D. Their work finds an efficient routing to the sink node to maximize the network coverage and minimize the energy consumption for each node. The simulation parameters were topology area equal to 100 × 100, number of sensors equal to 25. The parameter settings of the algorithms were the crossover probability equal to 0.6, mutation probability equal to 0.03, population size equal to 50, and the maximum number of generations equal to 50. The results showed that NSGA-II outperformed MOEA/D in both minimizing the energy consumption and maximizing the node coverage. However, the features that are affected by the interference resources are not examined. For this reason, Hamdan et al. [15] have discussed the challenges that faced by 2.4 GHz WSN. They have discussed a set of multi-objective features that are affected by the interference from other devices that operate on the same band such as microwave oven and Wi-Fi router. These features are packet throughput and energy efficiency. They also maximized these features using three optimization algorithms such as NSGA-II, OMOPSO, and SPEA2. These features were evaluated by changing the distances between both interference source and receiver, and also between transmitter and receiver. The results showed that the NSGA-II outperformed both SPEA2 and OMOPSO in maximizing the previously mentioned features. Generally, some of the previous studies proposed the improved version of optimization algorithm and tested in optimizing problems related to WSN while the others used the exact optimization algorithm to optimize a set of features that affect the network QoS. From the summarization of the state of the arts in Table 2, we can notice that the evaluation of end-to-end latency and end-to-end delay of the network are not highlighted in the previous studies. These features are very important in determining the QoS of any types of wireless networks. If the network end-to-end delay is increased, the dropped packets will be increased and the retransmission of these packets will consume more energy and time. Therefore, we are going to fill the gap of the previous studies by using a set of multi-objective optimization algorithm to optimize the end-to-end latency, end-to-end delay model, energy consumption model, and packet throughput model of the wireless network.

Energies 2018, 11, 97

7 of 35

Table 2. Comparison between state of arts. Author

Algorithms

Features

Study/Findings

Limitations

Maximize network coverage & minimize network energy consumption

The algorithm was tested by changing the number of sensor nodes and the topology sizes.

Model of end-to-end latency is not evaluated.

Maximize network lifetime & minimize task execution time

MBPSO outperformed the other algorithms in term of optimizing the proposed features.

The features of network coverage and throughput are not evaluated.

Maximize network coverage

The best coverage for the area of 50 × 50 is when the number of nodes is equal to 40 nodes.

The end-to-end delay and energy consumption are not evaluated.

NSGA-II outperformed OGDC, which used 210 nodes to cover the topology while OGDC requires 327 nodes to cover the same topology area.

Other features such as network throughput are not discussed.

Jia et al. [6]

ECCA

Yang et al. [7]

MBPSO, BPSO, GA

Kukunuru et al. [8]

PSO

Sagar et al. [9]

OGDC, NSGA-II

Maximize network coverage & minimize network energy consumption

Chaudhuri et al. [10]

NSGA-II, SPEA2

Maximize network coverage & minimize network energy consumption

NSGA-II outperformed SPEA2.

Model of end-to-end latency model and end-to-end delay model are not proposed.

Sengupta et al. [11]

MOEA/D, NSGA-II

Maximize network coverage & minimize network energy consumption

MOEA/D outperformed NSGA-II in finding the optimal results of the proposed objective functions.

The node selection problem of WSN is not discussed.

Naeem et al. [12]

GA, BPSO, CSP

Node selection problem to achieve minimum energy consumption.

BPSO outperformed other algorithms in finding the optimal number of selected sensors.

Effect of node selection problem on network delay is not studied.

Liu et al. [13]

Improved version of MOPSO, MOPSO

Maximize network coverage & minimize network energy consumption

The improved MOPSO outperformed the original MOPSO in maximizing the network coverage and minimizing the network energy consumption.

Features that are affected by the interference resources are not examined.

Bara’a et al. [14]

NSGA-II, MOEA/D

Maximize network coverage & minimize energy consumption

NSGA-II outperformed MOEA/D in minimizing the energy consumption and maximizing the node coverage.

Optimizing end-to-end delay model is not discussed.

Hamdan et al. [15]

NSGA-II, OMOPSO, SPEA2

Maximize packet throughput, energy efficiency & minimize interference

NSGA-II outperformed both SPEA2 and OMOPSO in optimizing the proposed features.

Network end-to-end delay is not evaluated.

3. Multi-Objective Optimization Algorithms The aim of any multi-objective optimization algorithm is to search for a set of solutions that manages the trade-offs among a set of conflicting optimization features, such as minimization and maximization features [33]. In addition, multi-objective optimization algorithms help to determine an unconstrained maxima or minima, and the optimal solution of continuous or differentiable objective functions [34]. These algorithms use different strategies and techniques in finding the result. For instance, PSO algorithm proposed by Kennedy et al. [35], is based on social interaction and movement of a bird swarm in search for food. In each swarm, there is a bird called a leader, which gives orders to the other birds in the swarm to adjust their velocity and location. On the other hand, Genetic Algorithm (GA) is based on the Darwinian theory of evolution, which simulates the construction of chromosome and its evolution. Furthermore, it stimulates the natural process of selecting the most convenient chromosome from a wide set of populations to achieve the optimal solution for a wide variety of optimization problems [36]. The GA performs a set of natural operations, including, different types of natural selection, crossover, and mutation to create a better generation [36]. In a different view, our algorithm Sperm Swarm Optimization (SSO) algorithm is a novel single objective optimization algorithm developed based on a metaphor of a natural fertilization procedure, which

Energies 2018, 11, 97

8 of 35

simulates the motility of sperm swarm through the fertilization procedure [37]. SSO is inherently continuous technique of updating the position and velocity of each sperm on search space domain until reaching the optimal solution [19,37]. Due to the wide variety of optimization problems that need a solution at low cost in short time, many researchers have extended these algorithms to solve different kinds of multi-objective problem. Therefore, we propose to apply three optimization algorithms to determine the optimal solution of a set of features that affect the QoS of any WSN. These algorithms are OMOPSO [16], NSGA-II [17], and SPEA2 [18]. In addition, we use our multi-objective version of SSO algorithm, called MOSFP algorithm for this purpose [19]. The selection of these algorithms was not arbitrary, which study in [38] finds that OMOPSO is the most commonly use algorithm among the swarm intelligence algorithms. This is because OMOPSO has a higher quality of results and performance. Other studies in [15,39] show that both NSGA-II and SPEA2 are the most popular algorithms among the evolutionary algorithms. Accordingly, we chose these algorithms along with our algorithm (MOSFP) in this study. Furthermore, it is good to use more than one algorithm, which helps to confirm the optimal results of the proposed problem at the end of the test. It should be noted that SSO, PSO and their extended versions such as MOSFP and OMOPSO are inherently continuous procedures, i.e., they use three steps to update the population until the maximum number of iterations is reached. First, the position and velocity of the population are generated. Second, the velocity is updated and finally, the position is updated. SPEA2 and NSGA-II (the extended version of GA) are inherently discrete procedures, which encode the population into 1’s and 0’s; therefore, it easily performs discrete design variables. In SPEA2 and NSGA-II, the procedures perform the natural selection, crossover, and mutation operation [40]. In OMOPSO, the new position of each individual is based on the past position, which the neighborhood and the global best position guide the search on the search space domain [16]. In MOSFP, the new position of each individual is based on the past position, which the global best solution (position of the winner) is used as a reference value for other members in the swarm to adjust their velocities on the search space domain [19]. In addition, we can notice that the genetic algorithms (i.e., GA, NSGA-II, and SPEA2) deal with each individual in the population independently, which perform ranking operation on solutions, after that, perform a selection operation to filter out the best solutions and eliminate the others. On the other hand, PSO and its extended version OMOPSO do not perform ranking and selection operations, which use the solution of swarm leader (best solution) to add it for other individual solutions. OMOPSO uses a set of mutation operations to increase the algorithm convergence such as uniform mutation and non-uniform mutation. In a different view, SSO and its extended version MOSFP use mutation operation to increase the algorithm convergence. However, they do not perform the GA operations such as crossover, ranking and selection operations, which use the best solution (the value of winner) as a reference value for other members in the swarm to adjust their velocities. On the other hand, there are new types of optimization algorithms called a Memetic Algorithm (MA) or an advanced or Hybrid GA. This type of algorithm is inspired by Darwinian’s theory of natural evolution that simulates the construction of chromosome and its evolution as well as it uses Dawkin’s notion of a meme. Meme is considered as a unit of cultural evolution capable of individual learning. Through the algorithm evaluation, every meme earns some experience through a local search before going in to evolution of new generations. The Memetic Algorithms (MAs) use GA operations namely, ranking, natural selection, crossover, and mutation operations with the addition of local search [41,42]. The comparison between SSO, MOSFP, PSO, OMOPSO, GA, NSGA-II, SPEA2 and MA (Hybrid GA) are summarized in Table 3 [16–19,37,40–43].

Energies 2018, 11, 97

9 of 35

Table 3. Comparisons between metaheuristic methods [16–19,37,40–43]. Comparison Criteria

GA, NSGA-II, and SPEA2

PSO and OMOPSO

SSO and MOSFP

MAs (Hybrid GAs)

Continuous procedures

Continuous procedures

Hybrid procedures Darwinian’s theory of natural evolution that simulates the construction of chromosome and its evolution as well as it uses Dawkin’s notion of a meme.

Type of procedure

Discrete procedures

Type of a metaphor

Darwinian’s theory of evolution applied to biology, which simulates the construction of chromosome and its evolution.

Social interaction, which simulates the movement of birds flock while searching for food.

Natural fertilization procedure, which simulates the motility of sperm swarm through the fertilization procedure.

Solutions need ranking and selection

Solutions will be ranked through the evaluations. Selection operator will filter out the population. Roulette wheel selection is an example of selection operator in GA.

Solutions will not be ranked through the evaluations. There is no selection operation.

Solutions will not be ranked through the evaluations. There is no selection operation.

Solutions will be ranked through the evaluations. Selection operator will filter out the population. Roulette wheel selection is an example of selection operator in GA.

Use crossover operation

Use different types of crossover operations such as Simulated Binary Crossover (SBX).

Do not use crossover operations.

Do not use crossover operations.

Use different types of crossover operations such as Simulated Binary Crossover (SBX).

Use different types of mutation such as polynomial mutation.

Use mutation operation

Use different types of mutation such as polynomial mutation.

OMOPSO uses different types of mutations such as uniform mutation and non-uniform mutation.

MOSFP divides the swarm into three equal parts, after that, performs uniform mutation on the first part and non-uniform mutation on the second part, and also it does not apply any mutation on the third part of the swarm.

Influence of population size or swarm size on solution time

Exponential

Linear

Linear

Exponential

Population affected by best solution

Deal with each individual independently.

Use the solution of swarm leader (best solution) to add it for other individual solutions.

Use the best solution (the value of winner) as a reference value for other members in the swarm to adjust their velocities.

Use local search to improve the results.

Average fitness value cannot get worse

Average fitness will not be worse because the individual will be ranked from the best to the worse. The best individuals will be reserved for next step while the worst will be eliminated.

Average fitness will not be worse because the velocity of the leader of the swarm (best solution) will be added to all other velocities in the swarm.

Average fitness will not be worse because all members in the swarm will use the velocity of a winner (optimal solution) as a reference value.

Average fitness will not be worse because the individual will be ranked from the best to the worse. The best individuals will be reserved for next step while the worst will be eliminated.

Convergence

Less than PSO, OMOPSO, SSO, and MOSFP.

More than GA, NSGA-II, and SPEA2.

More than GA, PSO, NSGA-II, OMOPSO, and SPEA2.

More than GAs.

Ability to find good solution and approximation related to the Pareto front

NSGA-II finds good solution and approximation related to the Pareto front more than SPEA2.

OMOPSO finds good solution and approximation related to the Pareto front more than SPEA2 and NSGA-II.

MOSFP finds good solution and approximation related to the Pareto front more than OMOPSO, SPEA2 and NSGA-II.

(A)

Optimized multi-Objective Particle Swarm Optimization (OMOPSO)

OMOPSO is one of the most popular algorithms in the area of multi-objective optimization that based on a set of operations such as crowding operation. Crowding operation is used to crowd the best global solutions that are known as leaders; archive operation, which is used to store the obtained best solutions; mutation operation, which is used to increase the coverage of the algorithm. The pseudo-code for this algorithm is summarized in Algorithm 1 [16].

Energies 2018, 11, 97

10 of 35

Algorithm 1: Optimized Multi-Objective Particle Swarm Optimization (OMOPSO) [16] 1: Begin 2: Step 1: initialize swarm and leaders. Send leaders to ∈ −archive 3: Step 2: crowding(leaders), iteration (g = 0) 4: Step 3: while g < max number of iterations (gmax) 5: For do 6: Select leader. Flight. Mutation. Evaluation. Update particle best value (pbest). 7: End for 8: Update leaders, Send leaders to ∈ −archive 9: Crowding (leaders), g++ 10: End while 11: Step 4: Report results in ∈ −archive 12: End procedure

(B)

Non-Dominated Sorting Genetic Algorithm (NSGA-II)

NSGA-II is a multi-objective version of the genetic algorithm [17] that performs a set of operation such as selection, mutation and classical crossover operation [44]. Algorithm 2 summarizes the pseudo-code of NSGA-II [45]. Algorithm 2: Non-dominated Sorting Genetic Algorithm (NSGA-II) [45] 1: Begin 2: Step 1: initialize Population 3: Generate random population—size M. 4: Step 2: evaluate objective values 5: Step 3: assign rank (level) based on Pareto dominance-“sort” 6: Step 4: generate child population 7: Step 5: binary tournament selection and crossover 8: Step 6: recombination and mutation 9: Step 7: for i = 1 to the number of generations do 10: With parent and child population 11: Assign rank (level) based on Pareto—“sort” 12: Generate sets on non-dominated fronts 13: Loop (inside) by adding solutions to next generation 14: Starting from the “first” front until M individuals found 15: Determine crowding distances between points on each front 16: Select points (elitist) on the lower front (with lower rank) and are outside a crowding 17: Distance 18: Create next generation 19: Binary tournament selection 20: Recombination and mutation 21: Increment generation index 22: End for 23: End procedure

(C)

Strength Pareto Evolutionary Algorithm 2 (SPEA2)

SPEA2 is a multi-objective optimization algorithm [18] and an improved version of SPEA algorithm [46]. Nearest neighbor technique is used to guide the search on a search space domain, which each individual in the population dominates or dominated by other solution. Furthermore, this algorithm uses the archive truncation procedure to maintain the obtained best solutions. The pseudo-code of this algorithm is summarized in Algorithm 3 [46].

Energies 2018, 11, 97

11 of 35

Algorithm 3: Strength Pareto Evolutionary Algorithm 2 (SPEA2) [46] 1: Begin 2: Step 1: initialize population (P) 3: Step 2: evaluate objective functions 4: Step 3: create external archive (A) 5: Step 4: for i = 1 to the number of generations do 6: Compute fitness of individual in P and A 7: Add non-dominated individuals from P and A 8: If capacity of A is exceeded than allowable size then 9: Remove individuals from A by truncation operator 10: End if 11: Perform binary tournament selection to create mating pool 12: Perform crossover 13: Perform mutation 14: End for 15: End procedure

(D)

Multi-Objective Optimization Algorithm Based on Sperm Fertilization Procedure (MOSFP)

MOSFP algorithm is our algorithm proposed in [19] that simulates sperm swarm motility when they fertilize the egg. This algorithm is a multi-objective version of SSO algorithm that proposed in [37]. MOSFP algorithm performs a set of operations to find a solution for multi-objective optimization problems. These operations are crowding, which is used to crowd the global best solutions that are known as winners, mutation, which divides the swarm into three equal parts, after that, performs uniform mutation on the first part and non-uniform mutation on the second part, and also it does not apply any mutation on the third part of the swarm. At the end, it performs archive on the winners. Algorithm 4 summarizes MOSFP procedure. In addition, Algorithm 5 summarizes the mutation part of MOSFP algorithm [19]. Appendix A demonstrates how the MOSFP algorithm works. Algorithm 4: Multi-objective Optimization Algorithm based on Sperm Fertilization Procedure (MOSFP) [19] 1: Begin 2: Step 1: initialize positions for all sperms. 3: Step 2: initialize Winners. 4: Step 2: archive the Winners in ∈ −archive 5: Step 3: crowd the winners using crowding operation. 6: Step 4: define counter (i) and define number of maximum iterations (iMax ). 7: Step 5: do//this do is a do—while 8: For do 9: Select winner from the sperm swarm 10: Update sperms positions using the predefined sperm velocity update rule (perform swim) 11: Perform mutation procedure (Algorithm 5) 12: Evaluate the fitness for each sperm 13: Update personal sperm current best solution 14: End if 15: Update Set of Winners (SoW) 16: Archive winner in ∈ −archive 17: Crowd the SoW using crowding operation 18: Update value of counter (i) 19: Step 6: while i < iMax 20: Step 7: archive results in ∈ −archive 21: End procedure

Energies 2018, 11, 97

12 of 35

Algorithm 5: Mutation 1: Begin 2: Step 1: for i = 0 to population size do 3: If (i % 3 = = 0) then 4: Sperms_ mutated with a non-uniform mutation operator 5: Else if (i % 3 = = 1) then 6: Sperms_ mutated with a uniform mutation operator 7: Else 8: Sperms_ without mutation 9: End if 10: End for 11: End procedure

We have standardized all the symbols and the naming convention throughout the manuscript, which the abbreviation of these algorithms and their pseudocodes are kept as their resources [16,19,45,46] without any changes. The abbreviations of previous mentioned algorithms are summarized in the following Table 4: Table 4. Abbreviations of previous mentioned algorithms based on their resources. Abbreviation

Means OMOPSO [16]

g gmax ∈

Iteration number Maximum number of iterations Is the value of the bounding size of the ∈ −archive NSGA-II [45]

M

Is the size of random population SPEA2 [46]

P A

Population External archive

∈ i

Is the value of the bounding size of the ∈ −archive Iteration number Maximum number of iterations Set of Winners

MOSFP [19]

iMax SoW

The Crossover and Mutation of Algorithms Based on the previous pseudocodes of the aforementioned algorithms, we can notice that NSGA-II and SPEA2 use both crossover and mutation operations while OMOPSO and MOSFP use different types of mutation operations. In this section, we review these operations based on the JMetal tool [47]. JMetal tool is considered as one of the most popular tool in the area of optimization, which contains many types of single-objective and multi-objective optimization algorithms. Crossover operator is a genetic operator that changes a chromosome from one generation to the next to produce new results. NSGA-II and SPEA2 use Simulated Binary Crossover (SBX) [48]. The SBX of chromosome (X) can be calculated by: (

Y1 = 0.5[(1 − β) X1 + (1 + β) X2 , Y2 = 0.5[(1 + β) X1 + (1 − β) X2 ,

(1)

Energies 2018, 11, 97

13 of 35

where β is a random variable in the range of 0 and 1. X is the value of chromosome while Y is the value of chromosome after the crossover. The probability distribution of variable β can be calculated by: (

P( β) = 0.5(ηc + 1) βηc , 0 ≤ β ≤ 1, p( β) = 0.5(ηc + 1) βη1c +2 , β > 1,

(2)

where η c is the distribution index. Mutation operator is any changes on the variable or gene of a chromosome that can produce better value. NSGA-II and SPEA2 use a polynomial mutation, while MOSFP and OMOPSO use uniform and non-uniform mutation. (a)

Polynomial mutation: this mutation is proposed by Deb et al. [49]. This mutation can be summarized via the following equation: (

p + δL ( p − xi,j ( L) ), f or : u ≤ 0.5, p + δR ( xi,j (U ) − p), f or : u > 0.5,

0

p =

(3)

where p is the parent solution p ∈ [x(U) ,x(L) ], where x(L) is the lower bound value, while x(U) is the upper bound value of a variable. The (U) symbol is a random number in the range of 0 and 1. The two parameters δL and δR are calculated as follows [49]: (

δL = (2u)1/(1+nm) − 1, f or : u ≤ 0.5, δR = 1 − (2(1 − u))1/(1 + nm ), f or : u > 0.5,

(4)

The parent point p = 3.0 in a bounded range of 1 and 8 with nm = 20. (b)

Uniform mutation of value x used in MOSFP and OMOPSO can be summarized in the following equation [50]: ( L)

(U )

( L)

xi,j = xi,j + u( xi,j − xi,j ),

(5)

where, xi,j is the position of sperm or particle, x(L) is the lower bound value, x(U) is the upper bound value of sperm or particle and (U) is a random number in the range of 0 and 1. (c)

Non-uniform mutation of value xi,j use in MOSFP and OMOPSO can be summarized in the following equation [51]: ( x

0

i,j

=

xi,j + ∆(t, x (U ) − xi,j ), i f : u = 0, xi,j + ∆(t, xi,j − x ( L) ), i f : u = 1,

(6)

where, x(L) is the lower bound value, x(U) is the upper bound value of sperm or particle, (u) is a random number in the range of 0 and 1. The function ∆(t,y) can be calculated as follows [51]: t

∆(t, y) = y · (1 − u(1− T )z ),

(7)

where, y is a variable with two cases; case 1 is the (x(U) − xi,j ); case 2 is the (xi,j − x(L) ), (U) is a random number in the range of 0 and 1, T is the maximum number of generations and (z) is a system parameter determining the degree of dependency on the iteration number. 4. Quality of Service Features of WSNs This section describes important features that can be used to evaluate the quality of WSN communication links. These features are end-to-end delay, end-to-end latency, packet throughput, and energy efficiency.

Energies 2018, 11, 97

14 of 35

4.1. End-to-End Delay Feature This feature measures the time required to successfully transfer the data packet from the sensor node to sink node, including, the transmission time of packet (Tpacket ), inter-frame space-time (TIFS ), backoff time (Tbo ), turnaround time of transceiver’s (TTA ), and acknowledgment of receipt time (TACK ). The end-to-end delay (Tl ) can be expressed by the following formula [20]: Tl = Tpacket + TIFS + Tbo + TTA + TACK ,

(8)

Tpacket is a transmission time that is required for any data packet to reach the destination. It can be defined as follows: L + L MHR + payload + L MFR Tpacket = PHY , (9) Rdata where:

• • • • •

LPHY is the size of physical header in byte; LMHR is the size of MAC header in byte; payload is the size of data in the packet in byte; LMFR is the size of MAC footer in byte; Rdata is the data transmission rate.

The second equation that should be defined is a backoff periods for the node that wants to transmit the data packet through the network. This can be calculated by determining the probability of any node (ps ) of accessing the medium in a successful way. ps can be calculated by the following formula: a=b

Ps =

∑ Pc (1 − Pc )(a−1) ,

(10)

a =1

where, pc is the assessment probability of the ideal channel that achieves by any node at the end of any backoff period while b is the maximum number of backoff periods. pc can be calculated by the following equation: Pc = (1 − q)n−1 , (11) where, q is the transmit probability at any time that achieves by any node and n is the number of devices that operate on the network. The average of backoff periods (R) can be expressed as: a=b

R = (1 − Ps )b +

∑ aPc (1 − Pc )(a−1) ,

(12)

a =1

Hence, the total of backoff time (Tbo ), can be calculated as: a= IntegerPart[ R]

Tbo = FractionalPart[ R] Tbop ( IntegerPart[ R] + 1) +



Tbop ( a),

(13)

a =1

where, Tbop is the average backoff period, which can be calculated as: Tbop ( a)= 2

macMinBe+ a−1 −1 Tboslot , Rdata

(14)

macMinBe is the initial value of backoff, and Tboslot is the backoff time at one slot duration. For IEEE 802.15.4\Zigbee, one-slot-duration is equal to the duration of 20 symbols.

Energies 2018, 11, 97

15 of 35

4.2. End-to-End Latency Feature The output Energies 2018, 11, 97 of any sensor node is typically an analog signal, which the sensor node digitizes 15 ofthe 35 data and stores it in the buffer (memory) of a sensor node, and after that, these data will be packetized and transmitted periodically. The sampling sampling cycle and transmitting transmitting cycle of the wireless sensor are depicted in Figure 2 [52]. The amount of time between the data packet is generated at the node and the packet is received by the coordinator node refers to the concept of end-to-end latency latency (Te). (Te). Te can be defined in the following equation [52]: Te  Tsam  Tl , Te = Tsam + Tl ,

(15) (15)

where Tsam is the sampling time, which refers to the amount of time that sensor node samples the where the sampling time, which reaches refers to the amountsize, of time samplesdelay. the signal sam is the signal Tuntil number of samples a certain andthat Tl sensor is the node end-to-end The until the number of samples reaches a certain size, and T is the end-to-end delay. The parameters of Te l parameters of Te are dependent on the parameters of end-to-end delay model. The results of end-toare on the of end-to-end delay model.the The results end-to-end enddependent delay feature willparameters play a significant role in determining results ofof the Te feature.delay feature will play a significant role in determining the results of the Te feature.

Transmitting

Sampling

Tsam

Tl Te

Figure 2. Sampling and transmitting cycle of a sensor node [52].

Figure 2. Sampling and transmitting cycle of a sensor node [52].

The sampling time of IEEE 802.15.4 standard can be given as follows: The sampling time of IEEE 802.15.4 standard can be given as follows: payload T = payload , Tsamsam  , Samplingrate Sampling rate

(16) (16)

4.3. Energy Efficiency Feature

4.3. Energy Efficiency Feature(η) feature is very important in estimating the lifetime of any type of The energy efficiency network, for the networks thatisoperate using batteries such as WSNs. This feature should The especially energy efficiency (η) feature very important in estimating the lifetime of any type be of maximized to increase the QoS of the network. The energy efficiency feature is affected by two factors network, especially for the networks that operate using batteries such as WSNs. This feature should namely, packet to payload length and packet error rate.The This modelefficiency is writtenfeature as Equation (17) [53]: be maximized increase the QoS of the network. energy is affected by two factors namely, packet payload length and packet error rate. This model is written as Equation (17) Ec · payload η= · (1 − PER), (17) [53]: Ec · ( payload + h( L MHR + L MAC ) ) + Es where,



Ec  payload  (1  PER), Ec  ( payload  h( LMHR  LMAC ) )  Es

(17)

• Ec is the energy consumption through the communication; where, Esc is the energy consumption through in start-up • themode; communication; • Es is theisenergy consumption inpacket start-up payload the size of data in the in mode; byte; • payload is the size of data in the packet in byte;which is the summation of both LPHY and LMHR . h(LMHR + LMAC ) is the packet header length,  MHR LMAC ) isofthe packet header header in length, whichLis theissummation of bothheader LPHY and LMHR. LPHY is Lh(L is+the size physical byte while the size of MAC in byte; PHY MHR the size of physical header in byte while L MHR is the size of MAC header in byte; • PER is the Packet Error Rate.  PER is the Packet Error Rate. 4.4. Network Throughput Feature 4.4. Network Throughput Feature Network throughput (utput ) is the rate of successful data packets that are transmitted over the Network throughput tputis ) isvery the important rate of successful data packets arenetwork, transmitted communication medium. u(u to determine the QoSthat of any as inover casethe of tput communication medium. utput is very important to determine the QoS of any network, as in case of the utput increases, the network efficiency will be increased. This feature is affected by two factors, including packet payload length and packet error rate. The utput is given as follows [53]: u

tput



payload (1 PER) , T flow

(18)

Energies 2018, 11, 97

16 of 35

the utput increases, the network efficiency will be increased. This feature is affected by two factors, including packet payload length and packet error rate. The utput is given as follows [53]: utput =

payload · (1 − PER) , T f low

(18)

where, payload is the size of data in the packet in byte, Tflow is the transmission latency, while the PER is the Packet Error Rate that can be calculated by the following equation [54]: PER = 1 − (1 − BER)( Length−o f − packet−in−bits) ,

(19)

where, BER is the Bit Error Rate 5. Case Study A smart grid [55] is considered in this paper as a case study. The smart grid is mostly considered to be the modern generation electricity grid [55]. This grid will be integrated with a wide variety of technologies allowing information technology to spread in the areas of broadband wireless communication, embedded sensing, adaptive control, and pervasive computing, to significantly improve the performance, stability, sustainability, and security of the electrical grid. The communication infrastructure of the smart grid provides three fundamental functionalities, including, sensing, transmitting, and monitoring for control. The sensing functionality is carried out by different types of embedded sensors and smart meters to detect the status of different areas of the grid in a real-time manner. The smart grid should support the two-way data transmission links between the control centers and the sensors [56]. Control instructions are transmitted from/to sensors or smart meters fixed in different places to support reliable and stable access to grid components and also to guarantee the high-performance operations of the smart grid. To fulfill these issues, smart grid infrastructure consists of three parts different in their location and size [57]. These parts can be summarized in the following points: (a)

(b)

(c)

Home Area Network (HAN): The HAN uses a local area wireless or short-range communication to support real-time data transmission of a smart meter, power load control, and dynamic pricing by connecting different kinds of devices with actuators, sensors, in-home display, and smart meter. Wireless technologies are the suitable choices for HANs because of their flexibility, high performance of control, and low installation cost. An example of this technology is ZigBee, which is a suitable for HANs due to high interoperability [58,59]. HAN gateway is used to transmit data to an external entity such as Data Aggregator Unit (DAU). DAU is used to collect the smart meters’ data and transfer these data to control center. The HAN gateway can be standalone within home devices (e.g., programmable thermostat or in-home display) or alternatively integrated with HAN smart meter. Neighborhood Area Network (NAN): The NAN connects a set of HANs together and also connects HANs with the control center. As shown in Figure 3b the mission of the HAN gateway is to send meter data to a DAU through the NAN. The DAU communicates with the HAN gateway using network technologies such as 801.11 s, RF mesh, WiMAX, 3G, 4G, and LTE. DAU can operate as a NAN gateway to transfer the collected data to a Meter Data Management System (MDMS), which is a control center used to collect data, process the meter power consumption data, store these data, generate a report about power generation, and manage the place of power distribution [58,60]. Wide Area Network (WAN): The WAN connects remote systems together in a smart grid. Examples of these systems are MDMS, Advanced Metering Infrastructure (AMI), which is used to aggregate the data from the smart meter, and Synchronous Optical Network (SONET). The Wide-Area Measurement System (WAMS) in a WAN is responsible to manage the transmission and aggregate

Energies 2018, 11, 97

17 of 35

data for control purposes and power load measurement. The WAN supports a backhaul connection among distributed subsystems, power generators, customer premises, and the public Energies 2018, 11, 97 17 of 35 utility. In this case, the backhaul can support different kinds of technologies (e.g., broadband wireless access or cellular network) to transmit the meter data from a NAN to the DAU, after [62]. This increases the network delay, especially in crowded cities. For this reason, in this paper, we that, from the DAU to MDMS at local offices. A WAN gateway supports broadband connection are going to minimize the end-to-end delay of WSN to increase its QoS. The hierarchical such as WiMAX, satellite, and 3G to collect the required data [58,61]. communications infrastructure of the smart grid is shown in Figure 3 [63]. Distribution

Control center

NAN

WAN

Transmission

Power generation

HAN

User

(a)

HAN cognitive gateway (HGW)

NAN cognitive gateway (NGW) with Data aggregator unit (DAU)

Power generator

Base station Control center HAN cognitive gateway (HGW)

Base station Wide area network (WAN)

NAN cognitive gateway (NGW) with Data aggregator unit (DAU) Neighborhood area network (NAN)

Home area network (HAN)

(b)

Figure 3. Infrastructure of hierarchical communication for smart grid. The figure is obtained from [62]. Figure 3. Infrastructure of hierarchical communication for smart grid. The figure is obtained from [62].

A smart5 grid uses a hierarchical communications infrastructure to increase the performance of the Table summarizes the smart grid characteristics based on hierarchical communications network. However, smart grids have as a main challenge the increasing number of smart meters [62]. infrastructure [63,64]. Based on these features, we can notice that HAN is the only part of the smart This delay, especially in crowded For this802.15.4/ZigBee. reason, in this paper, we are grid increases that used the the network short-range communication protocols cities. such as IEEE The features going to802.15.4 minimize end-to-end in delay of WSN tosubsections. increase its QoS. The hierarchical communications of IEEE arethe summarized the following infrastructure of the smart grid is shown in Figure 3 [63]. Table 5 summarizes the smart grid characteristics based on hierarchical communications infrastructure [63,64]. Based on these features, we can notice that HAN is the only part of the smart grid that used the short-range communication protocols such as IEEE 802.15.4/ZigBee. The features of IEEE 802.15.4 are summarized in the following subsections.

Energies 2018, 11, 97

18 of 35

Table 5. Summary of the smart grid characteristics based on hierarchical communications infrastructure [62,63]. Cognitive Area Networks

Wide Area Network (WAN)

Neighborhood Area Network (NAN)

Home Area Network (HAN)

Network topology

Centralized

Centralized

Centralized/decentralized

Spectrum band

Licensed band

Licensed band

Unlicensed band

Favorable network protocol

WiMax, 3GPP, RF Mesh, and satellite

801.11 s, RF mesh WiMax, 3 G, 4 G and LTE

IEEE 802.15.4

Network users

Spectrum broker, NGWs

HGWs, NGW

Smart sensors/meters/actuators, HGW

Featured strategy

Optimal spectrum leasing

Hybrid dynamic spectrum access

Cross-layer spectrum sharing

Application

Demand Resource and load management

Advanced metering infrastructure, demand resource, and load management

Advanced metering infrastructure, demand resource, etc.

Key techniques

Join spectrum management

Spectrum handoff, guard channel

Power coordination, access control

IEEE 802.15.4 Protocol IEEE 802.15.4/ZigBee standard is a modern wireless communication protocol. This protocol has a set of features that make it convenient to use with smart grid, including cheap price, low power consumption, low complexity, and good data rate. This protocol supports Carrier Sense Multiple Access (CSMA), which is used to access the medium with no collision. IEEE 802.15.4/ZigBee standard can be operated on various license-free frequency bands. These bands support different numbers of channels, data transmission rate, and different frequency ranges [64]. The available radio frequency bands that are supported by IEEE 802.15.4/ZigBee standard [65] are summarized in Table 6 along with their characteristics. In this work, we choose the 2.4 GHz band because it can operate on 16 channels with a higher data transmission rate equal to 250 Kbps, and very important thing; this band is allowed to be applied in Asia [66,67]. Table 6. A set of radio frequency bands along with their characteristics that supported by IEEE 802.15.4/ZigBee standard [67]. Frequency Bands

Area

Data Rate (Kbps)

Frequency Range (MHz)

Number(s) of Channel

915 MHz 2.4 GHz 868 MHz

Australia, America Asia, Worldwide Europe

40 250 20

902–928 2405–2480 868.3

10 channels 16 channels 1 channel

Different types of network topologies can be supported by IEEE 802.15.4/ZigBee such as star topology, peer to peer (mesh topology), and cluster tree topology [68]. The data frame structure that is supported by IEEE 802.15.4/ZigBee is summarized in Table 7. This structure consists of four parts including, MAC command frame, data frame, beacon frame, and acknowledgment frame. Based on Table 7, the MAC packet size that is supported by IEEE 802.15.4/ZigBee is equal to 127 bytes. In addition, 114 bytes are the maximum packet payload size that is supported by IEEE 802.15.4/ZigBee [53].

Energies 2018, 11, 97

19 of 35

Table 7. Data frame structure of The IEEE 802.15.4 [53].

MAC Sublayer

2 Bytes

1 Byte

0–20 Bytes

Frame Control

Sequence Number

Address Fields

MAC Header PHY layer

Sync Header

PHY Header

5 bytes

Variable

2 Bytes

Data Payload

Frame Check Sequence

MAC Service Data Unit

MAC Footer

PHY Service Data Unit (PSDU)

≤127 bytes

1 byte

6. Methodology and Experimental Setup In this section, we focus on the HAN part of the smart grid. This part consists of IEEE 802.15.4/ZigBee smart sensors that embedded in different types of home appliances. These sensors operate based on MicaZ platform [69]. The characteristics of MicaZ platform are summarized in Table 8 [70]. Table 8. Features of MicaZ platform [70]. Features

Value

Remarks

Frequency band Data rate EEPROM Operating system Battery Energy consumption in startup mode Energy consumption in communication mode User interface Indoor range Outdoor range

2.4 GHz band 250 kbps 4K bytes TinyOS 2× AA batteries 8 mA 19.7 mA 3 LEDs 20 m to 30 m 75 m to 100 m

License-free band (ISM band) Open-source Attached pack Red, green and yellow 1/2 wave dipole antenna 1/2 wave dipole antenna

The MicaZ platform is a good choice for the smart grid because it operates with low power consumption, works on the license-free band (ISM band), and covers up to 30 m of home or building area. However, this platform has limited energy resource, which operates based on 2× AA batteries. The misuse of the devices will deplete the battery power and decrease the node lifetime. On the other hand, the network delay will be increased with an increasing number of smart meters in HANs, especially in crowded cities. Therefore, if the delay increases, the number of dropped packets will be increased and retransmitting the dropped packets will consume more power and time. Therefore, we used four algorithms namely, the MOSFP, OMOPSO, NSGA-II, and SPEA2 algorithms, to maximize both the network energy efficiency and network throughput; in particular we use these algorithms to minimize both the network end-to-end delay and end-to-end latency. We assume that the smart home consists of four sensors embedded in four appliances such as a smart refrigerator, smart light and air conditioner controller, smart washing machine and smart TV. These sensors operate over the 2.4 GHz ISM band to communicate with a smart home gateway that is integrated with the smart meter using a star topology. The proposed network is depicted in Figure 4. These sensors consume 8 mA in start-up mode and 19.7 mA when the sensor is in communication mode [70]. 802.15.4/ZigBee can support a low sampling rate from 0 to 250 Hz [71]. This can satisfy the requirements of the smart grid. The BER in normal status has a value of 0.0004 [72]. By knowing these values and the other values such as the IEEE 802.15.4 physical and MAC headers, we can measure the objective functions (Equations from (8) to (19)). We focused on minimizing both the network end-to-end delay and end-to-end latency and also maximizing both network energy efficiency and packet throughput by changing the packet payload size. Packet payload size plays a significant role in

Energies 2018, 11, 97

20 of 35

determining the optimal value of these features, which if the packet payload size increases, the network 20 of 35 and the energy efficiency will be decreased.

Energies delay 2018, will 11, be 97 increased

HAN gateway integrated with HAN smart meter

Light and air conditioner controller

Wireless communications using ZigBee

Smart Refrigerator

Smart washing machine

LED smart TV

Figure 4. The proposed network. Figure 4. The proposed network.

We compile the JMetal 4.5Table tool 9.inParameters NetBeansofIDE 8.0.2 by using the Java version. The test the algorithms. environment is a 3 GB RAM, Intel dual-core CPU-T3200, running Windows 7. Table 9 summarizes the Parameters MOSFP OMOPSO SPEA2 parameters of all the optimization algorithms that are used in thisNSGA-II study. Most of these parameters Population size 20 20 20 20 and settings are assigned as recommended in [15,53]. On the other hand, Table 10 summarizes the Archiveneeded size (winner) 20 20 20 parameters to evaluate the 20 network modelling part. The(Elite) procedure of maximizing both Mating pool size 20 network energy efficiency and packet throughput, and minimizing both the network end-to-end delay Maximum generation 250 250 250 250 and end-to-end latency are summarized for each algorithm in Figures 5–8. Crossover probability 0.9 0.9 The procedure of OMOPSO, summarized in Figure 5, begins by initializing the parameter of Mutation probability 1/d where d is the variable code size packet payload size that varies from 0 to 114 bytes based on the IEEE 802.15.4 data frame. After that, the algorithm performs the archiveTable on the andparameters. crowding operator on the elected leaders. The 10.leaders Simulation algorithm checks the state of the size of the leaders in which, if their size greater than the required size, No.algorithm keeps the best leaders Parameter Values the and eliminates the others. Hence, the velocity update rule comes to 0 place on the procedure, Time of interframe (Tifsmember ) μsit performs take where is appliedspace to each of the population, after192 that, 1 Transceiver’s transmitting to receiving turnaround time (TTA) 192 μs the mutation operation. Moreover, the algorithm evaluates the objective functions (Equations from 2 The duration of one backoff slot (Tboslot) 320 μs (8) to (19)), which uses the population members to minimize both the network end-to-end delay and 3 Use of ACKs N0 end-to-end latency and also to maximize both energy efficiency and network throughput. 4 PHY header (LPHY) 6 bytesIn addition, the fitness of(LMHR) each individual with its old fitness value. The algorithm 5 algorithm compares the new MAC header 11 bytes stores the new fitness just in case of the new one is better than the old. Then, the algorithm updates the 6 MAC footer (LMFR) 2 bytes leaders of theThe new generation of value the population follows by archiving and crowding operators on the 7 default minimum of backoff exponent (macMinBE) 3 8 Thethe default maximum value backoff exponent (aMaxBE) 5 leaders. Finally, algorithm checks theofnumber of iterations. If the maximum generations (the value Number of sensors (n) 5 of9250 generations as in Table 9) is reached the algorithm will terminate, otherwise, the algorithm will 10 Transceiver’s raw data rate (R data) 250 kbps repeat the past steps. 11 12 13 14

The energy consumption in startup mode (Es) Energy consumption through the communication (Ec) Sampling rate Bit Error Rate (BER)

8 mA 19.7 mA 250 Hz 0.0004

Energies 2018, 11, 97

21 of 35

Table 9. Parameters of the algorithms. Parameters

MOSFP

Population size Archive size Mating pool size Maximum generation Crossover probability Mutation probability

OMOPSO

NSGA-II

20 20 20 (winner) 20 20 (Elite) 20 250 250 250 0.9 1/d where d is the variable code size

SPEA2 20 20 20 250 0.9

Energies 2018, 11, 97

21 of 35

Table 10. Simulation parameters.

The procedure of OMOPSO, summarized in Figure 5, begins by initializing the parameter of No. size that varies from 0 to 114Parameter packet payload bytes based on the IEEE 802.15.4 data Values frame. After that, the algorithm performs the archive on the leaders and crowding operator on the elected Time of interframe space (Tifs ) 0 192 µsleaders. The 1 to receiving turnaround timesize (TTAgreater ) 192 µs algorithm checks theTransceiver’s state of the transmitting size of the leaders in which, if their than the required 2 The duration of one backoff slot (Tboslot) 320 µsupdate rule size, the algorithm keeps the best leaders and eliminates the others. Hence, the velocity 3 Use of ACKs N0 comes to take place on the procedure, where is applied to each member of the population, after that, 4 PHY header (LPHY) 6 bytes it performs 5the mutation operation. MAC Moreover, algorithm evaluates the objective header the (LMHR) 11 bytes functions (equations from (8) to (19)), which uses the population members to minimize both network end6 MAC footer (LMFR) 2the bytes 7 The default minimum value of backoff exponent (macMinBE) 3 to-end delay and end-to-end latency and also to maximize both energy efficiency and network Thethe default maximum value of backoff exponent (aMaxBE) 5 its old fitness throughput.8In addition, algorithm compares the new fitness of each individual with 9 Number of sensors (n) 5 value. The algorithm stores the new fitness just in case of the new one is better than250 thekbps old. Then, the 10 Transceiver’s raw data rate (Rdata ) algorithm updates the leaders the consumption new generation of the population follows by archiving and 11 The of energy in startup mode (Es ) 8 mA 12 consumption the communication (Ec )number of19.7 mA crowding operators on Energy the leaders. Finally,through the algorithm checks the iterations. If the 13 rate as in Table 9) is reached the 250algorithm Hz maximum generations (the value of 250 Sampling generations will 14 Bit Error Rate (BER) 0.0004 terminate, otherwise, the algorithm will repeat the past steps.

Begin: initialize swarm and leaders

Send leaders to ϵ archive

Crowd leaders

Select leader

-Evaluate objective functions:

Update velocity for each particle

Mutation

1- Minimize both network end to end delay and end to end latency 2- Maximize both network energy efficiency and packet throughput Yes

Yes

g

Suggest Documents