Open access peer-reviewed chapter

Research on Polling Control System in Wireless Sensor Networks

Written By

Zhijun Yang and Lei Mao

Submitted: 28 May 2020 Reviewed: 29 July 2020 Published: 11 September 2020

DOI: 10.5772/intechopen.93507

From the Edited Volume

Wireless Sensor Networks - Design, Deployment and Applications

Edited by Siva S. Yellampalli

Chapter metrics overview

434 Chapter Downloads

View Full Metrics

Abstract

To solve the problem of multi-priority and multi-business tasks in wireless sensor networks, a two-level polling control system is proposed based on the basic polling system. The system divides the sites into ordinary sites and high-priority site according to business priorities. The ordinary sites use gated services, and the high-priority sites use exhaustive services. The mathematical model of the system is established by using the method of Markov chain and probability generating function, and the important parameters such as query period, throughput, average queue length and average delay are obtained. The simulation results are approximately equal to the theoretical calculation results, which shows that the theoretical analysis method is correct and effective. While distinguishing priority services, the system ensures the delay of users and improves the quality of service of the polling system.

Keywords

  • WSN
  • polling system
  • average queue length
  • average waiting delay
  • priority control

1. Introduction

With the rapid development of science and technology, human beings have been in the information age, and sensor technology, as the most important and basic technology of information acquisition, has also been greatly developed. Wireless sensor networks (WSNs) are a new generation of sensor network and the core of Internet of things technology [1]. It is an interdisciplinary research field involving sensor technology, computer network technology, wireless transmission technology, embedded computing technology, distributed information processing technology, microelectronic manufacturing technology, software programming technology and so on [2]. Through a variety of information sensors, it collects all kinds of needed information in real time, and realizes the functions of monitoring and management through the access of the Internet. In this process, the mode of data transmission must be considered. MAC protocol specifies the way that nodes occupy wireless channels when transmitting data. It reduces transmission delay and improves network throughput and service quality through communication protocol and mechanism. Therefore, the performance of MAC protocol determines the data transmission capability of WSNs [3].

MAC protocol based on polling access is a non-competitive control method, which allocates fixed channel resources to users [4]. In the process of data communication, the users who get the transmission right exclusively enjoy the allocated channel resources, so that the network can realize the conflict-free transmission of information. Due to its unique conflict-free transmission mode, polling-based MAC protocol has always been a hot topic in WSNs research [5, 6]. With the development of research, its service mode has been continuously expanded [7, 8, 9]. Kunikawa and Yomo proposed a polling MAC protocol based on EH-WSN, which improves the throughput of WSNs nodes [10]. Adan and his collaborators proposed a dual-queue polling model, and then analyzed the equilibrium distribution of the system by using the compensation method and a reduction to a boundary value problem respectively [11]. Abidini et al. studied the vacation queuing model and the single-server multi-queue polling model [12]. The polling system is mainly divided into three categories: gated, exhaustive and limited according to the service strategy [13]. Researchers have been studying all kinds of polling systems focusing on the optimization and improvement of system performance [14]. With the rapid development of modern network technology, a single service strategy has been unable to meet the needs, such as priority business and multi-business tasks. Therefore, it is necessary to make comprehensive use of various service strategies, but at this time the difficulty of system analysis is greatly increased. Yang and Ding analyzed the polling system with mixed service, but did not give an accurate analysis of the second-order characteristics of the system [15].

Herein, we first analyze the three basic polling systems, and then propose a two-level polling system model with exhaustive service in the central site and gated service in the ordinary sites, which not only solves the problem of differentiated priority business, but also ensures the delay of the system. Then the E(x) characteristics of the system such as average queue length, average query cycle and throughput are analyzed. Finally, the performance of the system is verified by simulation experiments.

Advertisement

2. Three basic polling system models

The basic model of the polling system consists of a logical server (relay site) and N sites. The server queries each site to provide services according to the predetermined service rules. The performance of the polling system is usually determined by the order of querying each site, the service policy of the site and the service order of information packets within the site. The system model is shown in Figure 1. When the system is running, the polling order is as follows: at tn time, the server provides services for site i; after the service is completed, the server provides services for site i + 1 at tn+1 time.

Figure 1.

Single-level polling system model.

2.1 Exhaustive service polling system

The exhaustive service system is when the server starts to serve the site, it not only transmits the previously arrived information packets in the site, but also transmits the newly arrived information packets during the service period. Its probability generating function at tn time is:

Gi+1z1z2zizN=limtEj=1Nzjξjn+1=Rj=1NAzjGiz1z2zi1Bj=1iNAzjFj=1iNAzjzi+1zNE1

where Fzi=ABziFzi;i=1,2,,N represents the probability generating function of the random variable of the time required for the server to provide exhaustive service to the information packets entering any site in any time slot.

2.1.1 Average queue length

The average queue length of the system is defined as the average number of packets stored in the site j when the ordinary i starts to receive service at tn time, expressed by gij. Definition:

gij=limz1,z2,,zi,,zN1Giz1z2zizNzjE2

According to the Eqs. (1) and (2), it can be calculated that the average queue length of information packets at site i is:

gii=Nγλ1ρ1E3

2.1.2 Average waiting delay

The average waiting time of the system is the time it takes for a packet to enter the site until it is sent out, expressed by Ew. Define the joint moment of random variable xjxk as gijk.

gijk=limz1,z2,,zj,,zk,,zN12Giz1z2zjzkzNzjzki,j,k=1,2,,NE4

According to Eqs. (1) and (4), the average waiting delay of packets in the exhaustive-service polling system is calculated as follows:

Ew=12R1γ+11N1γ+N1ρ+NλB1+ρA1λ21E5

2.2 Gated service polling system

The gated service polling system means that when the server queries the site, it only provides services for the packets that currently arrive at the site, and the packets arriving in the service process will not provide services until the next round of access of the server. The definitions of average queue length and average waiting delay of gated service polling system are similar to that of exhaustive service polling system, and its probability generating function at tn time is:

Gi+1z1z2zizN=limtEj=1Nzjξjn+1=Rj=1NAzjGiz1z2zi1Bj=1NAzjzi+1zNE6

2.2.1 Average queue length

According to Eqs. (2) and (6), the average queue length of the gated service polling system is:

gii=Nλγ1E7

2.2.2 Average waiting delay

According to Eqs. (4) and (6), the average waiting delay of the gated service polling system is:

Ew=12R1γ+11[N1γ+N1ρ+2Nγρ+NλB1+1+ρA1λ2]E8

2.3 Limited service polling system

In the polling system with limited service, it is assumed that there are N terminal stations in the system, and the N terminal stations are queried by a server in turn. The server only serves one packet when polling each terminal station, and the rest of the packets is queued with the newly arrived packets to be sent in the next cycle with the same service rules. The average queue length and average delay of the limited service polling system are also consistent with those of the exhaustive service polling system, and its probability generating function at tn time is:

Gi+1z1z2zizN=limnEj=1Nzjξjn+1=Rj=1NAjzjBij=1NAjzj1ziGiz1z2zizNGiz1z2zi10zi+1zN+Giz1z2zi10zi+1zNE9

2.3.1 Average queue length

According to Eqs. (2) and (9), the average queue length of the limited service polling system is:

gii=N21γ+β{2λγ1λγ+N1λ2γργ1+1+ρ1γA1+Nλ3γB11+λ2R1}E10

2.3.2 Average waiting delay

According to Eqs. (2) and (9), the average waiting delay of the limited service polling system is:

Ew=R12γ+1/21γ+β[N1γ+N1ρ+2Nγρ+Nλγ+ρA1/λ2+NλB1+NλR1]E11

2.4 Performance comparison of three polling systems

The above analysis method of embedded Markov chain and probability generating function are used to obtain the accurate expressions of the average queue length and average waiting time of three different service strategies, i.e., exhaustive, gated and limited service polling systems. In this section, the performance characteristics of three different service strategy polling systems are compared by setting the working conditions and operating parameters of the system. The system meets the following conditions:

  1. The parameters of each station obey the same distribution law, i.e., the distribution is symmetric.

  2. Arrival time, query conversion time, and waiting time for service are all measured in time slots.

  3. The number of packets arriving at any time slot at each station obeys the Poisson distribution.

  4. The polling systems with three different service strategies all satisfy the steady-state condition i=1Nλiβi=Nλβ1.

It can be seen from Figures 2 and 3, the performance indicators of the polling systems with three different service policies, i.e., the average queue length and the average waiting delay are different. The average queue length of the exhaustive service polling system is the smallest, the gated service polling system takes the second place, and the average queue length of the limited service polling system is the largest, and the average waiting delay also satisfies the same law. From the perspective of fairness, on the contrary, the fairness of the limited service polling system is the best, while that of the exhaustive service polling system is the worst. The polling systems with three different service strategies have their own characteristics and advantages. In the actual situation, the appropriate polling service strategy should be selected according to the scope of application and application conditions to meet different application needs. When the system requires high fairness, select the limited service strategy; when the system requires high real-time performance, choose the exhaustive service strategy; when the system requires both real-time and fairness, choose the gated service strategy.

Figure 2.

Relationship between average queue length and arrival rate.

Figure 3.

Relationship between average waiting delay and arrival rate.

Advertisement

3. Exhaustive-gated two-level polling system

Based on the basic polling system and the requirements of different priority business in WSNs, an exhaustive-gated two-level polling access control strategy is proposed. The principle of the exhaustive-gated service two-level control polling system is as follows: the polling system is composed of N ordinary sites and a central site h. The server serves the central site according to the exhaustive service rule and the ordinary sites according to the gated service rule. The system model is shown in Figure 4. After the polling starts, the server first provides exhaustive service to the central site, i.e., the information arrived before the start of the service and the information arrived during the service until the site is empty, and then go to query the ordinary sites. If the ordinary site i is not empty, the server will serve it according to the gated service rule. When the service of the site i is finished, it will turn to query the central site h. After the central site completes the prescribed service, it starts to serve the ordinary site i + 1 again. The exhaustive-gated two-level control polling system distinguishes between the central site and the ordinary sites by always giving priority to the central site, and the service of the central site is guaranteed first.

Figure 4.

Two-level polling system model.

We use the methods of stochastic process and probability generating function to analyze the performance of the system. The random variable ξin is defined as the number of information packets queued for service in the memory of the site i at the tn time. ξhn is the number of information packets queued for service in the memory of the central station at tn time. The state variable of the whole system at tn time is ξ1nξ2nξinξNnξhn; at tn time, the state of the system is ξ1nξ2nξNnξhn. At tn+1 time, the state of the whole system can be expressed as ξ1n+1ξ2n+1ξNn+1ξhn+1. Then the N + 1 states of the system constitute a Markov chain, which is aperiodic and ergodic.

3.1 Definition of variables

  1. In any time slot, the process of information packets arriving at each station is subject to the independent and identically distributed Poisson process, and the probability generating function and mean value of its distribution in ordinary stations are Aizi and λi=A'zi respectively. The probability generating function and mean value of the distribution of at the center site are Ahz and λh=Ah'z respectively.

  2. The service time of an information packet of any site is subject to independent and identically distributed probability distribution. In the ordinary sites, the probability generating function, mean value and second-order origin moment of the distribution are Bizi, βi=Bi'1 and vβ=Bi1 respectively. The probability generating function, mean value and second order origin moment of the distribution at the center station are Bhz, βh=Bh'1 and vh=Bh1 respectively.

  3. After any ordinary station completes transmission service, the transfer time to the query center site is subject to an independent and identically distributed probability distribution, whose probability generating function, mean value and second-order origin moment are Rizi, γi=Ri'1 and vγ=Ri1 respectively. When the central site is converted to the ordinary site, the parallel control strategy is adopted, i.e., the server queries the next ordinary site that needs service while serving the central site, which saves the conversion time and improves the service efficiency of the system.

Define the following variables:

  1. ui: the time when the server moved from the ordinary site i to the central site.

  2. vi: the service time for the server to provide gated service to the ordinary site i.

  3. vh: the service time for the server to provide exhaustive service to the central site h.

  4. μhui: the number of information packets entering the central site within ui time.

  5. ηhvi: the number of information packets entering the central site within vi time.

  6. μiui: the number of information packets entering site i within ui time.

  7. μjui: the number of information packets entering site j within ui time.

  8. ηjvi: the number of information packets entering site j within vi time.

According to the principle of the model, the state variables of the system at each time satisfy the following relations:

ξjn=ξjn+μjui+ηjvi,j=1,2,,N,h;jiξin=μjui+ηiviξjn+1=ξjn+ηjvh,j=1,2,,N,hξhn+1=0E12

3.2 Probability generating function

Assuming that the storage capacity of each ordinary site and the central site is large enough, the information packets will not be lost, and the information packets will be served in the order of first-come-first-served. The system reaches a steady state under the condition of i=1Nλiβi+λhβh<1, and the probability generating function in the steady state is defined as:

limnPξin=xii=12Nh=πix1x2xixNxhE13
Giz1z2zizNzh=x1=0x2=0xi=0xN=0xh=0[πix1x2xixNxh·z1x1z2x2,zixi,zNxNzhxh]E14

According to Eqs. (12) and (14), when the two-level polling system provides services to the central site at tn time, the probability generating function of the system state variable is:

Gihz1z2zizNzh=limtEi=1Nziξinzhξhn=Rij=1NAjzjAhzhGiz1z2zi1Bij=1NAjzjznzhE15

The probability generating function of the system serving the ordinary site i + 1 at tn+1 time is as follows:

Gi+1z1z2zNzh=limnEj=1Nzjξjn+1zhξhn+1=Gihz1z2zizNBhj=1NAjzjFj=1NAjzjiE16

3.3 Average queue length

Definition: The average queue length gij of the system is the average packets stored in node j when node i receives service at tn time.

gij=limx1,x2,..xN,xh1Gz1z2zNzhzjE17

The average queue length of ordinary stations calculated by Eqs. (15)(17) is:

gii=λij=1Nγj1ρhj=1NρjE18

The average queue length of the central station is:

gihh=λhγi1ρh1ρhj=1NρjE19

When λ1=λ2=λi=λNβ1=β2=βi=βNγ1=γ2=γi=γN, the system is symmetrical and the average queue length of the ordinary site and the central site is respectively:

gii=Nλiγi1ρhNρiE20
gihh=λhγi1ρh1ρhNρiE21

3.4 Average cycle

The average cycle of the polling system is expressed as the time interval between two consecutive visits to the same queue by the server, which is the statistical average of the time taken by the server to serve N + 1 sites according to the prescribed service rules. The calculation is as follows:

Eθ=i=1Nγi1ρhi=1NρiE22

3.5 Second-order characteristics

The joint moment of central site random variable xjxk is defined as gihjk, and the joint moment of ordinary site random variable xjxk is defined as gijk, which is obtained by the property of probability generating function.

gijk=limz1,z2,zN,zh12Giz1z2zizNzhzjzkE23

It can be calculated from the Eqs. (15) and (23):

giii=λi2k=1Nρk1+ρkk=1Nβkλk1+ρkgk(kk)θk=1Nβkλk1+ρkAk1E24
gihhh=λh2Rii+γiAh1+2λh2βiγi+λh2Bi1+βiAh1giii+λh2βi2giiiE25

When the system is symmetrical:

giii= N1ρh+ρ1ρhλ2R1+γA1ρhγA1+N1λ2γ2+11ρhNN+1λ2ργ2ρρhγA1+Nλ3γB1+ργA1N1λ2ρρhγ+N1λ2ργ+ λ2βh2γAh1+λ2λhγBh12λ2ρh2γE26

3.6 Average waiting delay

Definition: The average delay of the polling system is the time it takes for an information packet to arrive at the site until the information packet is sent. According to the approximate expressions of giii and gihhh calculated above, the average waiting delay can be obtained by substituting the following two expressions respectively.

The average waiting time for ordinary site is:

Ewi=1+ρigiii2λigiiE27

The average waiting time at the central site is:

Ewh=gihhh2λhgihh12ρhAh12λh21ρh+λhBh121ρhE28
Advertisement

4. Experimental analysis

Based on the above two-level priority polling service model, theoretical value calculation and experimental simulation are carried out according to the following working conditions.

  1. The data communication process is ideal and the data will not be lost.

  2. The data entering each station in any time slot satisfies the Poisson distribution.

  3. The polling system satisfies i=1Nλiβi+λhβh=i=1Nρi+ρh<1.

4.1 Symmetrical two-level polling system

Figures 5 and 6 show the change of average queue length and average waiting delay between the ordinary station and the central station with the arrival rate. It can be seen from the Figures that when the arrival rate is increasing, the average queue length and average waiting delay of information packets also increase. The queue length and delay of central station are much smaller than those of ordinary sites, which indicates that the model has strong ability to distinguish business.

Figure 5.

Relationship between average queue length and arrival rate of symmetrical systems.

Figure 6.

Relationship between average waiting delay and arrival rate of symmetric systems.

Figures 7 and 8 show the comparison between the average queue length and the average waiting delay of the exhaustive-gated two-level polling system and the single-level gated polling system. It can be seen that in the case of the same network size, the queue length and delay of the two-level model are less than that of the single-level model. It shows that the model not only distinguishes different priority business, but also optimizes the queue length and delay of ordinary sites, and improves the quality of service of the polling system.

Figure 7.

Comparison of average queue length of two polling systems.

Figure 8.

Comparison of average waiting delay of two polling systems.

4.2 Asymmetric two-level polling system

In WSNs, different stations handle different business, and the arrival rate of information packets, service time and polling conversion time are also different. To distinguish the business of different sites, an asymmetric two-level polling system is used to provide services. The performance analysis of the asymmetric system is shown below.

As can be seen in Figures 9 and 10, the average queue length of the ordinary sites and the central site is obviously affected by the service time, and the queue length increases with the service time. Similarly, the average queue length of the two stations with different priorities has a great difference, which shows that the priority of the polling system is well distinguished. In addition, the growth rate of the average queue length of the central station of 1 to h and 2 to h is relatively small compared with other sites. The main reason is that the arrival rate of each queue is different, which is consistent with the theoretical analysis. It can be seen from Eq. (19) that the queue length of the central station is directly proportional to the arrival rate, so when the arrival rate of the two stations is small, the impact on the queue length of the central station is small.

Figure 9.

Relationship between average queue length and service time of ordinary sites in asymmetric systems.

Figure 10.

Relationship between average queue length and service time of central site in asymmetric systems.

As can be seen from Figures 11 and 12, when the number of cycles selected is large, the theoretical value of the average waiting time is consistent with the experimental value. For the same system, when the service time of the system increases, the average waiting time also increases accordingly. In the case of the same load, the average waiting time of the central site is less than that of the ordinary sites, which indicates that it is effective to distinguish the business priority by using the mixed polling service mode. The performance of the system has been optimized as a whole.

Figure 11.

Relationship between average waiting delay and service time of ordinary sites in asymmetric systems.

Figure 12.

Relationship between average waiting delay and service time of central site in asymmetric systems.

Table 1 shows the comparison of the average queue length and average delay (ordinary sites) between different models and the model proposed in this chapter, where the system is assumed to be symmetrical. It can be seen that whether compared with the single-level models or the other two-level models, the average queue length and delay of users in this model are smaller. It shows that the model proposed in this chapter not only distinguishes different priority business, but also has better performance.

Arrival rate (λ)Single-level gatedSingle-level exhaustiveThe model of literature [15]Two levels of exhaustive-gated
giiEwgiiEwgiiEwgiiEw
0.010.05552.94670.05462.32110.04651.82930.04161.8024
0.020.12493.5080.12062.73400.10752.25560.09602.2030
0.030.21434.22320.20183.23750.17362.79790.16112.6721
0.040.33425.18080.30713.93260.25173.47160.24533.3598
0.050.50136.51710.44824.87290.37234.68390.36004.2734

Table 1.

Comparison of queue length and delay of three models (N=5,β=2,γ=1).

Advertisement

5. Conclusion

In this book chapter, we adopt a prioritized polling system which combines exhaustive service with gated service, i.e., gated service is used in ordinary sites with low priority, and exhaustive service is used at central sites with high priority. Then a two-level priority service model is constructed by using the service mechanism of parallel pattern. The average queue length and average waiting delay of the service model are accurately analyzed by using embedded Markov chain and probability generating function, and verified by simulation experiments. The results show that the system can distinguish the business with different priorities, the average queue length and average waiting delay of users are lower, and the quality of service of the system is higher.

Advertisement

Acknowledgments

This work was supported by the National Natural Science Foundation of China under Grant No. 61461054 and No. 61461053.

References

  1. 1. Ghayvat H, Mukhopadhyay SC, Gui X, Suryadevara NK. WSN- and IOT-based smart homes and their extension to smart buildings. Sensors. 2015;15(5):10350-10379. DOI: 10.3390/s150510350
  2. 2. Tsai C, Hong T, Shiu G. Metaheuristics for the lifetime of WSN: A review. IEEE Sensors Journal. 2016;16(9):2812-2831. DOI: 10.1109/JSEN.2016.2523061
  3. 3. Zhuo S, Wang Z, Song Y, Wang Z, Almeida L. A traffic adaptive multi-channel MAC protocol with dynamic slot allocation for WSNs. IEEE Transactions on Mobile Computing. 2016;15(7):1600-1613. DOI: 10.1109/TMC.2015.2473852
  4. 4. Palacios R, Mekonnen GM, Alonsozarate J, et al. Analysis of an energy-efficient MAC protocol based on polling for IEEE 802.11 WLANs. In: International Conference on Communications. 2015. pp. 5941-5947. DOI: 10.1109/ICC.2015.7249269
  5. 5. Dorsman JL, Borst S, Boxma OJ, et al. Markovian polling systems with an application to wireless random-access networks. Performance Evaluation. 2015;85:33-51. DOI: 10.1016/j.peva.2015.01.008
  6. 6. Bekker R, Vis P, Dorsman JL, et al. The impact of scheduling policies on the waiting-time distributions in polling systems. Queueing Systems. 2015;79(2):145-172. DOI: 10.1007/s11134-014-9416-8
  7. 7. Ibarra E, Antonopoulos A, Kartsakli E, et al. HEH-BMAC: Hybrid polling MAC protocol for WBANs operated by human energy harvesting. Telecommunication Systems. 2015;58(2):111-124. DOI: 10.1007/s11235-014-9898-z
  8. 8. Kunikawa M, Yomo H, Abe K, et al. A fair polling scheme for energy harvesting wireless sensor networks. In: Vehicular Technology Conference. 2015. pp. 1-5. DOI: 10.1109/VTCSpring.2015.7145602
  9. 9. Almaqri MA, Othman M, Ali BM, et al. Adaptive multi-polling scheduler for QoS support of video transmission in IEEE 802.11e WLANs. Telecommunication Systems. 2016;61(4):773-791. DOI: 10.1007/s11235-015-0020-y
  10. 10. Kunikawa M, Yomo H. Improving fairness with harvesting-rate adapted polling for energy harvesting wireless sensor networks. IEICE Transactions on Communications. 2016;99(9):2036-2046. DOI: 10.1587/transcom.2015EBP3479
  11. 11. Adan IJ, Boxma OJ, Kapodistria S, et al. The shorter queue polling model. Ann. Oper. Res. 2016;241(1):167-200. DOI: 10.1007/s10479-013-1495-0
  12. 12. Abidini MA, Boxma OJ, Resing JA, et al. Analysis and optimization of vacation and polling models with retrials. Performance Evaluation. 2016;98:52-69. DOI: 10.1016/j.peva.2016.02.001
  13. 13. Iftikhar M, Mathkour H, Imran M, et al. A novel framework for G/M/1 queuing system based on scheduling-cum-polling mechanism to analyze multiple classes of self-similar and LRD traffic. Wireless Networks. 2016;22(4):1269-1284. DOI: 10.1007/s11276-015-1001-5
  14. 14. Yang Z, Zhu L, Ding H, et al. A priority-based parallel schedule polling MAC for wireless sensor networks. The Journal of Communication. 2016;11(8):792-797. DOI: 10.12720/jcm.11.8.792-797
  15. 15. Yang Z, Ding H. Characteristics of a two-class polling system model. Tsinghua Science and Technology. 2014;19(5):516-520. DOI: 10.1109/TST.2014.6919828

Written By

Zhijun Yang and Lei Mao

Submitted: 28 May 2020 Reviewed: 29 July 2020 Published: 11 September 2020