Skip to Content
SensorsSensors
  • Article
  • Open Access

27 March 2020

A Novel Fuzzy PID Congestion Control Model Based on Cuckoo Search in WSNs

,
,
and
1
School of Computer Science and Communication Engineering, Jiangsu University, Zhenjiang 212013, China
2
Jiangsu Key Laboratory of Security Technology for Industrial Cyberspace, Jiangsu University, Zhenjiang 212013, China
*
Author to whom correspondence should be addressed.
This article belongs to the Section Sensor Networks

Abstract

Wireless Sensor Networks (WSNs) consist of multiple sensor nodes, each of which has the ability to collect, receive and send data. However, irregular data sources can lead to severe network congestion. To solve this problem, the Proportional Integral Derivative (PID) controller is introduced into the congestion control mechanism to control the queue length of messages in nodes. By running the PID algorithm on cluster head nodes, the effective collection of sensor data is realized. In addition, a fuzzy control algorithm is proposed to solve the problems of slow parameter optimization, limited adaptive ability and poor optimization precision of traditional PID controller. However, the parameter selection of the fuzzy control algorithm relies too much on expert experience and has certain limitations. Therefore, this manuscript proposes the Cuckoo Fuzzy-PID Controller (CFPID), whose core idea is to apply the cuckoo search algorithm to optimize the fuzzy PID controller’s quantization factor and PID parameter increment. Simulation results show that in comparison with the existing methods, the instantaneous queue length and real-time packet loss rate of CFPID are better.

1. Introduction

Wireless Sensor Networks (WSNs) are one of the important technologies in recent times due to their widespread applications e.g., military, smart phones, disaster management, health care monitoring and other surveillance systems. In these widespread applications, WSNs may face many challenges, in which network congestion is the prominent one [1]. WSNs can connect network nodes in series to transmit data in a “carry-send” mode where each node has the ability to collect, receive and send data, autonomously. WSNs can potentially improve the transmission date volume and throughput of the network [2]. In addition, the deployment area and the number of nodes is generally very large in WSNs. Furthermore, there is no time limit for data acquisition and transmission, so possibly the network nodes may receive a large amount of data in an instant. If such a high quantity of data arrive at each receiving node instantaneously, a huge burden will be caused on the receiving nodes [3]. When the data receiving rate is not synchronized with the data sending rate, the message queue at the node will be filled rapidly, leading to network congestion.
Serious network congestion will greatly affect the data transmission in WSNs. When network congestion occurs, the data at the node cannot be sent out in time, and other data cannot enter the message queue in the node. The message will be continuously discarded and delayed, which will result in increased data loss, increased transmission delay, reduced network throughput and lowered quality of service of the network. In addition, being in state of high load and full queue for long time can significantly reduce the service life of a node [4]. Therefore, an effective solution for the problem of network congestion is very important.
For the network model, we model the Transmission Control Protocol (TCP) network using the network topology shown in the Figure 1. The TCP source sends the data from the Internet to each bottleneck node through the wireless router. When an acknowledgement packet is received, each source increases its transmission rate, eventually causing the bottleneck node’s capacity to be exceeded and congestion is inevitable. According to the network resources of the node itself, the message queue length inside the bottleneck node is adjusted by using the active queue management mechanism.
Figure 1. TCP Network Model.
Cho [5] presented an efficient neural network Active Queue Management (AQM) system as a queue controller. The recurrent neural network has a Multi-layer Perceptron-Infinite Impulse Response (MLP-IIR) structure. Three distinct neural AQMs are trained under different network scenarios involving traffic levels. Selecting one of three neural AQMs is based on posterior probability history of traffic level. Liu [6] introduced a new type of neural networks controller based on PSD (proportion, sum and differential) to improve the lack of fixed gain in single neuron adaptive PID. Li [7] presents extensive comparative simulation results for four neural AQM schemes, namely, Neuron PID, Adaptive Neuron AQM (AN-AQM), Fuzzy Assisted PID controller based on Neuron Network (FAPIDNN), Neuron Reinforcement Learning (NRL), versus three traditional AQM schemes together with a modified PI scheme named Intelligent Adaptive Proportional Integral (IAPI) over a wide range of conditions and scenarios.

4. Simulation

In order to solve the problem of low accuracy in the computation of network congestion in WSNs, this manuscript presents a PID controller with a mold and a Cuckoo search. Furthermore, a mold and PID congestion control mechanism based on Cuckoo search is designed. The proposed CFPID algorithm is compared with the original PID algorithm and Immune clonal simulated annealing based Blue (IBLUE) algorithm [26] in terms of instantaneous queue length, packet loss rate and throughput which verified the feasibility of the improved algorithm.
In the comparison experiment, in order to make a more accurate and fair simulation comparison, the proportional, integral and differential parameters of the PID algorithm are set as the initial proportional, integral and differential parameters of the CFPID algorithm. So, set k p 0 = 0.00129 , k i 0 = 0.00222 and k d 0 = 0.00095 . IBLUE redefines the queue length and updates the packet loss rate, so the initial queue length and the expected queue length of CFPID algorithm are shared. Furthermore, the queue set value is 150 and the buffer is 220.
For performance comparison of CFPID, PID and IBLUE algorithms in WSN congestion control, this manuscript uses MATLAB R2018a. The experimental parameters are in Table 2.
Table 2. Table of simulation parameters.

4.1. Experimental Comparison of Instantaneous Queue Length

Firstly, the changes of message queue length for all the three algorithms are compared. Queue length can directly reflect the smooth transmission of message queue. If the queue length exceeds the expected value, congestion occurs and packet loss adjustments need to be made. However, the queue length is too small which will result in underutilization of network resource. Therefore, queue length should be close to the expected value. To this end, to show the effect of number of network nodes on queue length, we initially set the number of nodes to 100 for which, the length of the node queue changes as shown in Figure 5.
When the data transfer starts, the message queue length of the node will increase rapidly and easily exceed the expected value of the queue length, which causes network congestion. Upon sensing the presence of network congestion, the control mechanism immediately begins to adjust the queue length. As can be seen from the graph in Figure 6, both PID and IBLUE algorithms start to show the control effect when the queue length reaches the highest point, and the convergence speed of the instantaneous queue length to the expected value is relatively slower in the later stage. In comparison, CFPID algorithm can control the length of the instantaneous queue to the expected value with the fastest convergence speed and the smallest oscillation amplitude, which shows the superiority of its control ability.
Figure 6. One-hundred instantaneous queue length curves for nodes.
In order to observe the performance of CFPID algorithm under more complex and dynamic conditions, the number of nodes is adjusted from 100 to 200, which increases the data transmission load of the network and the workload of a single node. Then, we compared the message instantaneous queue length adjusted by CFPID, IBLUE and PID algorithms. The instantaneous queue length curve at 200 nodes is shown in Figure 7.
Figure 7. Two-hundred instantaneous queue length curves at node.
As the number of nodes increases, the volume of messages transferred and the workload of network nodes increase significantly. As can be seen in Figure 7, due to the increase of data volume, all the three control algorithms have obvious oscillation phenomenon, and the number of packets to be transmitted by a single node per unit time increases, the increase of oscillation amplitude and convergence time is emphasized, especially the change of oscillation amplitude of PID Algorithm. It can be seen in the Figure 7 that the oscillation amplitude of the instantaneous queue length controlled by CFPID algorithm is smaller than that of PID and IBLUE algorithms, and the convergence speed is the fastest.

4.2. Real-Time Packet Loss Rate Comparison

This manuscript compares the real-time packet loss rate of nodes for CFPID, PID and IBLUE algorithms. Generally, when the number of nodes increases, the number of packets to be transmitted also increases, resulting in the lengthening of the instantaneous queue length. When the length of the queue exceeds the expected value, the network congestion will be aggravated. Therefore, it is necessary to control the queue length by dropping a certain number of packets through the message dropping probability. The packet loss rate will change with the change in the instantaneous queue length, and the queue length will be controlled near the expected value. However, the unceasing change of packet loss rate will make the queue length change continuously, which will lead to the instability of the network. Therefore, the convergence rate and stability of the instantaneous packet loss rate will determine the performance of the network.
To this end, Figure 8 shows the change in the real-time packet loss rate when the initial number of nodes is set to 100. As can be seen from the graph, the CFPID algorithm can find out the danger more accurately when the message queue grows greatly. After a small amount of oscillation, CFPID will be the fastest to find the balance point, then only a small adjustment can be made to maintain the instantaneous queue length in a relatively stable state of health.
Figure 8. One-hundred node-time packet loss rate curves.
In order to observe the convergence rate and stability of packet loss rate in complex scenarios, the number of nodes is increased to 200 which lead to further increase in the overall data volume and the number of packets to be transmitted by each node. We compare CFPID, IBLUE and PID congestion control mechanisms in complex case of packet loss rate changes. The change curve is shown in Figure 9.
Figure 9. Two-hundred node-time packet loss rate curve.
The loss of data packets may cause the increase of the number of data packets and the loss of key data when the data reaches a certain amount. This may lead to the data information not being transmitted to the base station in time and cannot be accepted. In our method, the active packet loss starts earlier, the packet loss is planned and uniform, and the number of lost packets is kept at a low proportion, which can effectively avoid this problem. As the number of nodes increases, the packet loss rate curves for the three methods are shown in Figure 10.
Figure 10. Packet loss rate curve.
As can be seen from the Figure 10, in the process of increasing the node distribution density, the increase of data makes the packet loss rate of the whole network present an upward trend. Among them, the loss rate of PID Algorithm has been kept at a high level, so that the key data cannot be transmitted in time, resulting in the decline of real-time data. The CFPID Algorithm can keep the gentle increasing slope, control the rate of packet loss in a relatively low proportion, and ensure the real-time of data.

4.3. Experimental Comparison of Throughput

Finally, we compare the average throughput of the three algorithms when the number of nodes increases. Throughput is an indicator of network performance. Increasing the number of nodes indirectly increases the amount of data passed. The throughput changes are shown in Figure 11.
Figure 11. Throughput comparison.
Generally, an increase in the number of nodes will result in an increase in the messages transferred, decrease in the transmission time, and an increase in the throughput. It is clear from the Figure 11 that the throughput of the three congestion control algorithms increases with the increase of the number of nodes. When the number of nodes is small, CFPID algorithm has the highest throughput. With the increase of the number of nodes, the throughput of IBLUE and PID will be surpassed by CFPID, which shows the superiority of CFPID in terms of stability, and adaptive adjustment in complex cases. As can be seen from the Figure 11, the throughput of the method presented in this manuscript is improved by 4%–8% compared with the comparison method.

4.4. Comparison of Running Time under Different Number of Nodes

In this manuscript, our designed CFPID scheme is compared with ARED [27] and Ras algorithms [28] in running time. Generally, a gradually increase in the density of network nodes increases the number of nodes and indirectly increase the overall network data. The running time of the algorithm can directly reflect the load capacity of the algorithm in complex environment. In addition, the short running time can reduce the loss of network resources. The run-time changes are shown in Figure 12.
Figure 12. Running time comparison.
As can be seen from the Figure 12, as the number of sensor nodes in the network increases, the data received by the nodes increases greatly, and the running time of the algorithm also increases. Among them, the running time of CFPID algorithm is the least. This is because the convergence speed of the algorithm is fast and it can find the appropriate packet loss scheme in the shortest time. In addition, CFPID algorithm can control the degree of congestion, so it can effectively save the energy of sensor nodes and prolong the lifetime of sensor network effectively. At the same time, an increase in the number of nodes increases the complexity of the environment but CFPID algorithm can still show good adaptability which reflects the stability of this algorithm.

5. Conclusions

In this manuscript, a new congestion control mechanism for WSNs is proposed, which combines fuzzy and PID control with Cuckoo search control. The real-time packet loss rate is calculated by PID controller to control the instantaneous queue length of nodes. The parameters of PID are adjusted by mold and control to improve the self-adaptive optimization ability, and the corresponding mold and rules are given. Finally, the Cuckoo search is used to optimize the accuracy of packet loss rate globally. In future, more meta-heuristic optimization algorithms can be combined to optimize the optimization rate of the Cuckoo search and the mode, and the PID controller.

Author Contributions

Conceptualization, Y.S. and L.L.; software, Y.S.; validation, L.L.; formal analysis, L.L.; writing—original draft preparation, Y.S.; writing—review and editing, L.L., J.C. and S.A.; visualization, Y.S.; supervision and project administration, L.L.; funding acquisition, J.C. and L.L. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by National Natural Science Foundation of China (NSFC) under grant U1836116), and in part by the Open Project Program of Jiangsu Key Laboratory of Security Tech. for Industrial Cyberspace under Grant STICB201905.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Guruprakash, B.; Balasubramanian, C.; Sukumar, R. An approach by adopting multi-objective clustering and data collection along with node sleep scheduling for energy efficient and delay aware WSN. Peer-to-Peer Netw. Appl. 2019, 13, 304–309. [Google Scholar] [CrossRef]
  2. Aguirre-Guerrero, D.; Marcelín-Jiménez, R.; Rodriguez-Colina, E.; Pascoe-Chalke, M. Congestion Control for a Fair Packet Delivery in WSN: From a Complex System Perspective. Sci. World J. 2014, 2014, 1–12. [Google Scholar] [CrossRef]
  3. Hassani, M.M.; Berangi, R. A new congestion control mechanism for transport protocol of cognitive radio sensor networks. AEU-Int. J. Electron. Commun. 2018, 85, 134–143. [Google Scholar] [CrossRef]
  4. Singh, K.; Singh, K.; Aziz, A. Congestion Control in Wireless Sensor Networks by Hybrid Multi-Objective Optimization Algorithm. Comput. Netw. 2018, 138, 90–107. [Google Scholar] [CrossRef]
  5. Cho, H.C.; Fadali, S.M.; Lee, H. Adaptive neural queue management for TCP networks. Comput. Electr. Eng. 2008, 34, 447–469. [Google Scholar] [CrossRef]
  6. Liu, X.W.; Hu, J.J.; Wang, S.; Li, H.; Zhao, H.D. Research of AQM Strategy Based on Improved Neuron Adaptive PID. In Proceedings of the 2018 International Conference on Computer Science & Information Technology, Singapore, 29 August–2 September 2008. [Google Scholar]
  7. Li, F.; Sun, J.; Zukerman, M.; Liu, Z.; Xu, Q.; Chan, S.; Chen, G.; Ko, K.T. A comparative simulation study of TCP/AQM systems for evaluating the potential of neuron-based AQM schemes. J. Netw. Comput. Appl. 2014, 41, 274–299. [Google Scholar] [CrossRef]
  8. Demura, K.; Seto, A.; Sasaki, J. The forecasting an importation liberalization effect on the regional agriculture caused by the GATT Uruguay round: Simulation analysis using input-output in a macro model framework. Sensors 2017, 52, 15–27. [Google Scholar]
  9. Li, G.; He, B.; Huang, H.; Tang, L. Temporal Data-Driven Sleep Scheduling and Spatial Data-Driven Anomaly Detection for Clustered Wireless Sensor Networks. Sensors 2016, 16, 1601. [Google Scholar] [CrossRef]
  10. Rajeswari, A.R.; Kulothungan, K.; Ganapathy, S.; Kannan, A. A trusted fuzzy based stable and secure routing algorithm for effective communication in mobile adhoc networks. Peer-to-Peer Netw. Appl. 2019, 12, 1076–1096. [Google Scholar] [CrossRef]
  11. Sangeetha, G.; Vijayalakshmi, M.; Ganapathy, S.; Kannan, A. A Heuristic Path Search for Congestion Control in WSN. In Industry Interactive Innovations in Science, Engineering and Technology; Springer: Singapore, 2018. [Google Scholar]
  12. Paranjape, S.; Barani, S.; Sutaone, M.; Mukherji, P. Intra and inter cluster congestion control technique for mobile wireless sensor networks. In Proceedings of the 2016 Conference on Advances in Signal Processing (CASP), Pune, India, 9–11 June 2016. [Google Scholar]
  13. Zhang, X.; Papachristodoulou, A. A distributed PID controller for network congestion control problems. In Proceedings of the 2014 American Control Conference—ACC, Portland, OR, USA, 4–6 June 2014. [Google Scholar]
  14. Yan, M.; Song, X.; Liang, X. Application of CACMAC-PID Composite Control to Highway Density Control via Ramp Metering. In Proceedings of the 2017 International Conference on Intelligent Computation Technology & Automation, Changsha, China, 9–10 October 2017. [Google Scholar]
  15. Zareei, M.; Vargas-Rosales, C.; Villalpando-Hernandez, R.; Azpilicueta, L.; Anisi, M.H.; Rehmani, M.H. The Effects of an Adaptive and Distributed Transmission Power Control on the Performance of Energy Harvesting Sensor Networks. Comput. Netw. 2018, 137, 69–82. [Google Scholar] [CrossRef]
  16. Agarwal, J.; Parmar, G.; Gupta, R.; Sikander, A. Analysis of grey wolf optimizer based fractional order PID controller in speed control of DC motor. Microsyst. Technol. 2018, 24, 4997–5006. [Google Scholar] [CrossRef]
  17. Pradhan, S.K.; Subudhi, B. Position control of a flexible manipulator using a new nonlinear self-tuning PID controller. IEEE/CAA J. Autom. Sin. 2018, 7, 136–149. [Google Scholar] [CrossRef]
  18. Morawski, M.; Ignaciuk, P. Network nodes play a game—A routing alternative in multihop ad-hoc environments. Comput. Netw. 2017, 122, 96–104. [Google Scholar] [CrossRef]
  19. Hast, M.; Åström, K.J.; Bernhardsson, B.; Boyd, S. PID design by convex-concave optimization. In Proceedings of the 2013 European Control Conference, Zurich, Switzerland, 17–19 July 2013; pp. 4460–4465. [Google Scholar]
  20. Ioannou, P.; Fidan, B. Adaptive Control Tutorial; Society for Industrial and Applied Mathematics: Philadelphia, PA, USA, 2006. [Google Scholar]
  21. Yang, X.; Chen, X.; Xia, R.; Qian, Z. Wireless Sensor Network Congestion Control Based on Standard Particle Swarm Optimization and Single Neuron PID. Sensors 2018, 18, 1265–1276. [Google Scholar] [CrossRef] [PubMed]
  22. Zafer, B.; Oguzhan, K. A Novel Performance Criterion Approach to Optimum Design of PID Controller Using Cuckoo Search Algorithm for AVR System. J. Frankl. Inst. 2018, 355, 5534–5559. [Google Scholar]
  23. Chen, J.V.; Chen, F.C.; Tarn, J.M.; Yen, D.C. Improving network congestion: A RED-based FuzzyPID approach. Comput. Stand. Interfaces 2012, 34, 426–438. [Google Scholar] [CrossRef]
  24. Hamza, M.F.; Yap, H.J.; Choudhury, I.A. Cuckoo search algorithm based design of interval Type-2 Fuzzy PID Controller for Furuta pendulum system. Eng. Appl. Artif. Intell. 2017, 62, 134–151. [Google Scholar] [CrossRef]
  25. Yao, J.; Cao, X.; Zhang, Y.; Li, Y. Cross-coupled fuzzy PID control combined with full decoupling compensation method for double cylinder servo control system. J. Mech. Sci. Technol. 2018, 32, 2261–2271. [Google Scholar] [CrossRef]
  26. Zhang, Y.; Yu, Y.; Zhang, S.; Luo, Y.; Zhang, L. Ant colony optimization for Cuckoo Search algorithm for permutation flow shop scheduling problem. Syst. Sci. Control Eng. 2019, 7, 20–27. [Google Scholar] [CrossRef]
  27. Chavan, K.; Kumar, R.G.; Belur, M.N.; Karandikar, A. Robust Active Queue management for wireless networks. IEEE Trans. Control Syst. Technol. 2011, 19, 1630–1638. [Google Scholar] [CrossRef]
  28. Mercader, P.; Soltesz, K.; Baños, A. Robust PID design by chance-constrained optimization. J. Frankl. Inst. 2017, 354, 8217–8231. [Google Scholar]

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.