- About this Journal ·
- Abstracting and Indexing ·
- Aims and Scope ·
- Annual Issues ·
- Article Processing Charges ·
- Articles in Press ·
- Author Guidelines ·
- Bibliographic Information ·
- Citations to this Journal ·
- Contact Information ·
- Editorial Board ·
- Editorial Workflow ·
- Free eTOC Alerts ·
- Publication Ethics ·
- Reviewers Acknowledgment ·
- Submit a Manuscript ·
- Table of Contents
International Journal of Distributed Sensor Networks
Volume 2013 (2013), Article ID 317214, 8 pages
Cooperative Processing Model for Wireless Sensor Networks
Department of Computer Information and Communication Engineering, Kangwon National University, Chuncheon, Gangwondo 200-701, Republic of Korea
Received 22 April 2013; Accepted 5 August 2013
Academic Editor: Wen-Hwa Liao
Copyright © 2013 Chongmyung Park et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Wireless sensor networks offer a distributed processing environment. Many sensor nodes are deployed in fields that have limited resources such as computing power, network bandwidth, and electric power. The sensor nodes construct their own networks automatically, and the collected data are sent to the sink node. In these traditional wireless sensor networks, network congestion due to packet flooding through the networks shortens the network life time. Clustering or in-network technologies help reduce packet flooding in the networks. Many studies have focused on saving energy in the sensor nodes because the limited available power leads to an important problem of extending the operation of sensor networks as long as possible. However, we focus on the execution time because clustering and local distributed processing already contribute to saving energy by local decision making. In this paper, we present a cooperative processing model based on the processing timeline. Our processing model includes validation of the processing, prediction of the total execution time, and determination of the optimal number of processing nodes for distributed processing in wireless sensor networks. The experiments demonstrate the accuracy of the proposed model, and a case study shows that our model can be used for the distributed application.
Wireless sensor networks are generally composed of sensor nodes capable of detecting, processing, and transmitting. Sensor nodes collect environmental data, such as temperature, humidity, sound, vibration, or magnetic field strength, and send information that is processed from the collected data to the sink or base station. The data collected from the sensors are converted to digital data via analog-to-digital converters, and the sensor node identifies surrounding information, for example, object location or environmental event. The environmental information is used for forecasting certain events, monitoring disasters such as earthquakes and forest fires, or military purposes.
The traditional wireless sensor networks have been designed such that an external computing system makes decisions with data from the base station. The network lifetime in this type of architecture decreases because of relaying packets on the network and shrinks dramatically around the base station. Over the past decades, various methods to solve this problem have been studied based on distributing and sharing process resources. Distributed in-network processing can increase network lifetime and decrease the response time for events [1, 2].
The various wireless sensor network applications, such as tracking objects, detecting intruders, and monitoring structural health, generate many data packets on networks. Distributed processing or in-network processing reduces the number of packets to the base station by extracting information from measured raw data. More energy is required for transmitting and receiving data via radio frequency than for sensing and processing. Reducing packets into the network contributes to increasing network lifetime because it removes packet duplication caused by relaying packets to the base station .
Wireless sensor networks have different features from existing computing environments. A sensor node is small and has low computing power and very limited wireless bandwidth. Hence, the total execution time for distributed processing is affected by the data size and transmission rate. In particular, the low bandwidth of ZigBee that is used in a well-known sensor mote, such as MICAz of the University of California, Berkeley, affects the total execution time .
The energy efficiency and fairness of a network has been considered an important subject in the existing research concerning distributed or in-network processing. The execution time of the distributed processing has received little attention, though it is important to design energy-efficient sensor network applications. In this paper, we will focus on the total execution time estimation of processing and how to determine the optimal number of processing nodes based on a proposed estimation method in a low-bandwidth wireless network .
In Section 2, we describe clustered wireless sensor networks which bring the benefits in response time and energy consumption. Our proposed processing model is described in Section 3. In the network model we studied, how to validate it based on total execution time, the total execution time estimation model, and the cluster size for optimization of the execution time are discussed. We evaluate the accuracy of our estimation model in the experiment with the MICAz sensor mote in Section 4. A case study using a fast Fourier transform is presented in Section 5. Finally, we conclude the paper in Section 6.
2. Cluster in Wireless Sensor Network
Wireless sensor networks take the role of a bridge between the real world and the computing world. Distributed measurements are used in various areas including environmental monitoring, vehicle detection for transportation, detection of disaster, industrial safety management, military operation, and smart spaces .
Most sensor network applications need to be real time. Figure 1 shows the value changes according to time of a task with deadline in real-time systems. If the detected data are not processed on time, the value of the processed results will decrease in a soft real-time system of Figure 1(a) and become zero in a hard real-time system of Figure 1(b). If the processing delay affects safety, the value of the results can be negative such as Figure 1(c) .
Consider the sensor network application that detects an intrusion and takes a video of the area. Sensor nodes report to the sink node whenever a movement of a human, an animal, or some kind of object is detected, and the sink node decides whether it is an intruder based on the reported raw data. If the movement is identified as an intruder, the sink node sends the action command. The actions can be turning on a camera and taking a video. If the sink node takes action after the object has moved out of the area, the camera would not be able to record a video of the detected object .
Similarly, a structural health monitoring application checks the vibration frequency for detecting structural damage such as cracks. The collected vibration data are sent to the sink node, which analyzes the vibrations with signal processing techniques such as a Fourier transform. If structural damage is detected, the sink node should take action to alert the structural management system. However, if it takes a long time to relay data to the sink node, the action cannot be executed on time.
As described earlier, the real-time property is important for many wireless sensor network applications. However, it is difficult to obtain a fast real-time system. It may be impossible in some cases because the sensor nodes typically have insufficient resources and are deployed in harsh environments occasionally. Clustering techniques can be a solution for these wireless sensor network applications. The distributed processing or in-network processing of a cluster does not report all raw data. Instead, the node that has raw data processes data with neighbor nodes cooperatively.
The process of reporting data to the sink node suffers from not only end-to-end delay by multihop communication but also greater energy consumption in particular cases. The research  compared the performance of nonclustered and clustered sensor networks. They evaluated two types of “bit-hop metrics,” which count the total number of bit transmissions in the network (). Their equations are summarized as follows: where is the total energy consumption by transmission, and are the energy costs by sending and receiving one bit of data, respectively, and and are the energy consumed for transmitting and receiving one bit of data, respectively. They assumed that there are sensor nodes in the network, the cluster size is , and is the average factor of in-cluster data reduction per each reported reading. Finally, they created the following equation:
From (2), we find the fact that the ability of clustered wireless sensor networks to outperform their nonclustered counterparts is conditioned by the values of , , and . Furthermore, they discussed two special cases, that is, and , and derived the conclusion that the degree of correlation between readings of intercluster nodes must be quite high to ensure full performance superiority of clustered over nonclustered wireless sensor networks. On the other hand, if correlation between the nodes’ readings is very low or there is no correlation, the utilization of node clustering should be avoided.
In order to obtain high performance from clustered wireless sensor networks, the value of correlation a should be high. If a is controllable, the performance efficiency of clustering can be improved. In the research , the cluster head () aggregates data from the cluster member nodes based on spatial locality. We consider a different clustering model. The does not aggregate data but processes data with cluster member nodes cooperatively. The details are described in Section 3.
The local distributed processing model with clustering proposed in this paper can be an alternative to control a for improvement of the network performance in terms of energy consumption. In this model, the only has data; thus, the correlation of readings can be regarded to be very high so that the performance of clustered networks is guaranteed to be superior to the performance of nonclustered wireless sensor networks.
3. Cooperative Processing Model
3.1. Network Model
Wireless sensor nodes have very limited resources, including computing power, memory, and network bandwidth. This is a considerable difference between the distributed in-network processing of wireless sensor networks and the existing computing environments. In particular, we should consider low network bandwidth when designing in-network processing applications. According to the data size, distributed processing could be slower than execution on a node.
We consider a distributed processing model in a cluster in a wireless sensor network, which is composed of a root node that has data to be processed and processing nodes that process divided data from the root node. We assume the following statements to simplify our execution time estimation model.(i)The root node and processing nodes are located at the one-hop distance for direct communication.(ii)Transmission errors are not considered. It is assumed that the handling of transmission errors is performed at the sublayers of communication stack. (iii)The root node transmits divided data to all processing nodes in order from node 1 to node .(iv)The data transmission time from the root node to each processing node is identical because the divided data has the same size.(v)The network channel is preempted by one node at a specific time; that is, the number of nodes transmitting is one.(vi)The size of the data from the root node and returned data from a processing node after processing is equal.(vii)All processing nodes perform the same task.(viii)The execution time on each processing node is identical because the data size and task are the same on each node, respectively.
Figure 2 presents a processing model to cooperate in a proposed cluster. When the root node prepares data, it creates a cluster with processing nodes and transmits divided data with the same size to each processing node in order. The propagation time for a chunk data is defined as . The processing node that receives the data executes the given task for and returns the data. At this point, returning data is available after the root node finishes transmitting. We define the total execution time as the period between starting the data distribution in the root node and finishing data returned by node .
3.2. Processing Validation
Consideration of the minimum execution time given the network bandwidth is needed before planning to build a distributed wireless sensor network application. As we mentioned, typically wireless sensor networks are operated under low bandwidth, which affects the total execution time (). We use this minimum execution time () for the validation of distributed processing. If the minimum execution time is greater than the execution time () on a single node, the distributed processing is valid.
It is impossible that is less than propagation time for the whole data including data scattering and gathering. Therefore, distributed processing takes more time than processing on a single node if is less than . We define the equation for validation as follows: where is the size of all data on the root node and is the network bandwidth.
3.3. Total Execution Time
The total execution time can be calculated for two different cases according to two time points: point , when a task is completed by the first node, and point , when data distribution is completed, as shown in Figures 3 and 4.
Figure 3 shows the first case with 4 processing nodes, in which is greater than . The total execution time with processing nodes () is the sum of the time taken to reach and the completion time data transmission returning to the root node from .
The second case is presented by Figure 4, which is when . In this case, the total execution time is the sum of the time taken to distribute data and return data from all nodes to the root node. The total execution time is not affected by the execution time () on the processing node because is sufficiently short to not affect the total execution time.
is the sum of propagation time () for chunk data and , and is times . From these, the criterion that identifies the two cases mentioned above was obtained as follows: Therefore, the total execution time () with processing nodes can be calculated as follows:
3.4. Optimal Number of Processing Nodes
We measured the execution time when adding processing nodes. From Figure 5, the distributed processing performance does not improve with the addition of processing nodes. The inclusion of additional sensor nodes to processing leads to the wastage of network resources. We define the optimal number of processing nodes as the point at which an increase in the number of nodes does not decrease the total execution time.
When in (5), is equivalent to the total time required to send and receive data. This transmission time is not affected by the number of processing nodes and is only affected by data size and bandwidth, which means that the total execution time does not decrease once satisfies the above condition. The optimal number of processing nodes is defined as
and depend on the number of nodes. We add the following terms to (6) to eliminate this dependency: where, : time taken by a node for data processing, : total data size, : split data size for nodes (), and : network bandwidth.
Consequently, the optimal number of processing nodes can be estimated as
3.5. Implementation Issues
To apply the proposed execution estimation model to design a software system for a wireless sensor network, the following issues should be considered.
3.5.1. Premeasuring and
The proposed method is based on data transmission time and execution time on a single node. These values are dependent on the data size and network bandwidth. If the data size is fixed, it can be assumed that is also a fixed value and has been measured before. The network bandwidth is specified by the network type, such as IEEE 802.15.4. However, the real network bandwidth necessary to send data varies with the specification according to packet size or protocol, so we suggest measuring the transmission rate in real time.
In (7), we assume that quals . This means that is proportional to . Nevertheless, the relationship between and can vary according to the task.
4. Experimental Environment
We measured transmission rates with the same packet size and protocol before evaluating the accuracy of our proposed model. Then, we calculated the total execution time and the optimal cluster size with the measured transmission rate and the data size. We compared the calculated results and the measured data via experiments. The experiments were conducted with TinyOS 2.x and a MICAz mote of UC Berkeley [10, 11].
4.1. Transmission Rates
The transmission rates are needed for our proposed equations. We measured the transmission time for the various data sizes. Figure 6 presents the sequence by which the application sends data and how to measure the transmission time. TinyOS is an event-driven operating system. When the application tries to send data, the scheduler returns the status immediately and signals the SendDone events after finishing transmission. Our implementation sends data in the SendDone event handler in divided packets repeatedly.
The base station sets the timestamp after sending a command to the node implemented for the transmission task. Then, the base station calculates transmission rates after receiving all packets.
The measured transmission rates are presented in Table 1. In our other experiments, we used the measured average value of transmission rates as the network bandwidth.
We propose a validation method to identify whether the total execution time of the distributed processing is shorter than that for processing on a single node. System designers could use the proposed method to check distributed performance with their own parameters. This experiment was conducted with a fixed data size (?kB) and a varying and number of nodes.
Figure 7 shows the measured execution time, and the details are presented in Table 2. Some results were even worse than because of the transmission time. From the table, a gain in execution time was not found when is 5 seconds and 10 seconds. The performance of the 5-second case was twice as bad as that for single node processing. In the case of 15 seconds, the execution time was approximately 16 seconds with 2 nodes but under the after 3 nodes. The cases of 20 seconds and 25 seconds showed a similar pattern to that of the case of 15 seconds.
is 10.99 seconds according to (3) and the measured transmission rates in the previous chapter. As we discussed in Section 3.4, no continuous processing performance improvement was found by the addition of processing nodes. Consequently, we were able to obtain conclusions that the execution time could not be shorter than in any case and whether there would be a gain in execution time or not can be investigated as previously shown.
4.3. The Optimal Number of Processing Nodes
The optimal number of processing nodes was defined as the point after which there was no performance improvement in execution time. Figures 8 and 9 represent the measured total execution time and optimal number of nodes for each case. The optimal point is calculated via our proposed model.
The first experiment was conducted with fixed as 30?s and various numbers of nodes and data sizes. The figure shows the optimal points plotted at a reasonable number of processing nodes for each case. In other words, performance improvements in time were not found after the optimal point. Figure 9 also shows that the optimal points are acceptable, which was conducted under the fixed data size and the various numbers of nodes and .
4.4. Execution Time Estimation
We measured the total execution time by varying the number of processing nodes. Figure 10 shows the measurements and the calculated based on the proposed model. The average error was found to be as small as 0.36 seconds.
No other tasks were included in the experiments, so the results have negligible error. For practical applications, the network status and other tasks should be considered.
5. Case Study: 2D FFT
The fast Fourier transform (FFT) is widely utilized for signal processing applications such as structural health monitoring and multimedia processing. We implemented a distributed 2D-FFT application and evaluated our model for this application. Data sizes of and and 2, 4, 8, 16, and 32 processing nodes were used. The root node distributes data and then the processing nodes execute a 1D-FFT. After returning all data, the root node transposes the matrix and repeats scattering and gathering.
As we discussed in Section 3.5, , the data transmission rates, and the relationship between and should be investigated in our model. We used the same data transmission rates as in Section 4. was measured from a single node implementation. A 2D-FFT with an matrix is composed of an -point FFT, a transpose, and another -point FFT. We defined the unit of the task as an -point FFT. Therefore, the relationship between and satisfies “.”
The total execution time for a matrix was approximately 13 seconds on a single node. We measured the total execution time, varying the number of processing nodes from 2 to 32 for the same data. Figure 11 shows the measured and estimated total execution time for data. The execution time for transposing was ignored. was doubled because the number of rows and columns is identical, and the scattering and gathering were performed twice.
In this case, the optimal number of processing nodes is estimated to be 13 via (8), and is 1.92 seconds via (3). The optimal number of nodes, however, could be regarded as 16 nodes because the number of nodes in this application increases in two square steps. This means that the total execution time would not decrease if the number of nodes exceeded the optimal number of nodes.
From the results, the average error was found to be 1.2 seconds, and the trends in the total execution time bear a strong resemblance. At 16 processing nodes, the total execution time was the minimum for both the measured and estimated cases.
Figure 12 presents the results for a matrix. The average error was 2.9 seconds, and the optimal number of nodes is 16. At times, the uncertainty increased because of the significantly larger data size, which increased the average error.
Wireless sensor networks provide an environment for distributed processing. The limited resources of the sensor nodes create a difficulty in designing a distributed system. For this reason, we have studied a distributed processing model in wireless sensor networks.
In this paper, we proposed a distributed processing model in wireless sensor networks. The methods to estimate the total execution time, validate distributed processing in terms of the execution time, and calculate the optimal number of processing nodes for distributed processing in wireless sensor networks were described.
We demonstrated the accuracy of the proposed model through experiments. First, the transmission rate was measured and was then used for the other experiments. Next, validation in terms of time was demonstrated. Through the validation equation, a system designer can decide whether distributed processing is needed or not. The experiments to confirm the optimal number of nodes were carried out with various options. The estimated optimal numbers of nodes were indicated with high accuracy. In the experiments for execution time estimation, the average error of the model was found to be as small as 0.36 seconds.
We implemented a 2D-FFT application and demonstrated that our model can be used for the application in the case study. The experiments had more errors than previous experiments because the proposed model does not consider other tasks on the node, and the real transmission rates are not identical all the time.
In our future research, the cost analysis in time and energy between centralized system and our proposed cooperative processing model will be performed. Furthermore, we will study the distributed processing model for multihop clusters and perform more experiments for other applications to improve the model.
This research was supported by the Ministry of Science, ICT & Future Planning (MSIP), Republic of Korea, under the Convergence Information Technology Research Center (C-ITRC) support program (NIPA-2013-H0401-13-1002) supervised by the National IT Industry Promotion Agency (NIPA).
- M. Bal, W. Shen, and H. Ghenniwa, “Collaborative signal and information processing in wireless sensor networks: a review,” in Proceedings of the IEEE International Conference on Systems, Man and Cybernetics (SMC '09), pp. 3151–3156, San Antonio, Tex, USA, October 2009.
- W. Li, J. Bao, and W. Shen, “Collaborative wireless sensor networks: a survey,” in Proceedings of the IEEE International Conference on Systems, Man, and Cybernetics (SMC '11), pp. 2614–2619, Anchorage, Alaska, USA, October 2011.
- V. C. Gungor, B. Lu, and G. P. Hancke, “Opportunities and challenges of wireless sensor networks in smart grid,” IEEE Transactions on Industrial Electronics, vol. 57, no. 10, pp. 3557–3564, 2010.
- G. Anastasi, M. Conti, M. Di Francesco, and A. Passarella, “Energy conservation in wireless sensor networks: a survey,” Ad Hoc Networks, vol. 7, no. 3, pp. 537–568, 2009.
- S. Singhal, A. K. Gankotiya, S. Agarwal, and T. Verma, “An investigation of wireless sensor network: a distributed approach in smart environment,” in Proceedings of the 2nd International Conference on Advanced Computing and Communication Technologies (ACCT '12), pp. 522–529, Rohtak, India, January 2012.
- S. Prasanna and S. Rao, “An overview of wireless sensor networks applications and security,” International Journal of Soft Computing, vol. 2, no. 2, 2012.
- S. M. S. Nirjon, J. A. Stankovic, and K. Whitehouse, “Poster abstract: heuristics for scheduling periodic real-time streams in wireless sensor networks,” in Proceedings of the 7th ACM Conference on Embedded Networked Sensor Systems (SenSys '09), pp. 385–386, November 2009.
- K. S. Prabh, Real-time wireless sensor networks [Ph.D. thesis], Department of Computer Science, University of Virginia, Charlottesville, Va, USA, 2007.
- N. Vlajic and D. Xia, “Wireless sensor networks: to cluster or not to cluster?” in Proceedings of the International Symposium on a World of Wireless, Mobile and Multimedia Networks (WoWMoM '06), pp. 258–266, Buffalo-Niagara Falls, NY, USA, June 2006.
- Crossbow Technology Inc., Micaz.