Abstract

The network calculus is a powerful tool to analyze the performance of wireless sensor networks. But the original network calculus can only model the single-mode wireless sensor network. In this paper, we combine the original network calculus with the multimode model to analyze the maximum delay bound of the flow of interest in the multimode wireless sensor network. There are two combined methods A-MM and N-MM. The method A-MM models the whole network as a multimode component, and the method N-MM models each node as a multimode component. We prove that the maximum delay bound computed by the method A-MM is tighter than or equal to that computed by the method N-MM. Experiments show that our proposed methods can significantly decrease the analytical delay bound comparing with the separate flow analysis method. For the large-scale wireless sensor network with 32 thousands of sensor nodes, our proposed methods can decrease about 70% of the analytical delay bound.

1. Introduction

Network calculus (NC) [1, 2] is a theory of deterministic queuing systems. NC analyzes the performance characteristics of the system based on min-plus algebra and has been widely used in numerous applications to provide deterministic delay and backlog bounds.

Some wireless sensor networks must meet high reliability and real-time requirements. For example, in industrial wireless sensor networks, sensor data must be transmitted to their destination before a deadline; otherwise, terrible disasters may happen. So the performance analysis of the data flow is very important at design time. NC is a powerful tool for this problem. There have been some works on using NC to analyze network performance, for example, [36].

However, these works only focus on single-mode systems, in which the workload and resource information is fixed. In this paper, our work is based on multimode wireless sensor networks. Multimode means that the workload and resource information is allowed to be different for different modes in a network, and the mode change is determined by the system information or external operations. Multimode wireless sensor networks are commonly used in real applications. For example, Figure 1 shows the wireless sensor network of a cement manufacturer. The working process of the wireless sensor network consists of three modes. The first one is the normal mode, in which sensor nodes and all equipment normally work. Then, to improve yield, the system changes to the full-load mode, in which the high-speed wireless sensor network is used to monitor the full-load equipment. Finally, if the rotary kiln is overheated due to the full-load working, the system changes to the high-temperature mode, in which the temperature-related data (part A in Figure 1) are delivered more frequently. The system changes from the first mode to the third mode in order. When the system is in the third mode and the temperature exceeds a specified threshold, workers will handle the problem.

In multimode wireless sensor networks, a variety of workload and resource information need to be considered simultaneously. But the original network calculus cannot model the multimode model due to its natural way. Some researchers combine the multimode model with the real-time calculus to analyze multimode embedded systems (e.g., [710]). The real-time calculus is the extended network calculus for performance analysis of real-time embedded system. But the system models of these works are not based on networks. Therefore, they cannot be used without modification. In this paper, we present a multimode wireless sensor network model and extend the network calculus to multimode networks. We propose two methods to compute the maximum delay bound of the flow of interest and discuss which one of the methods has the tighter delay bound. Experiments show that our proposed methods are effective and scalable.

The rest of paper is organized as follows: Section 2 introduces the related work. Section 3 reviews network calculus basics. Section 4 describes our multimode wireless sensor networks. Section 5 introduces our proposed end-to-end delay bound analysis methods and the corresponding comparative analysis. Section 6 shows evaluation results. Finally, Section 7 concludes this paper.

The related work is classified into the following two categories: the analysis of networks and the analysis of multimode embedded systems.

2.1. The Analysis of Networks

Schmitt and Roedig present a series of works on the analysis of sensor networks. In [11], they extend the network calculus to sink-tree sensor networks and propose a general framework, called sensor network calculus, for analyzing the performance. The framework illustrates the various trade-offs between node power consumption, buffer requirement, and the data transfer delay bound. The main contribution of the general framework is the proposal that computes the total flow delay bound under the arbitrary multiplexing. The work in [12] focuses on the uncertain topologies. They compute the worst-case topology and then use the method of [11] to analyze sensor networks. In [13, 14], the sensor network calculus is extended to the networks with multiple sink nodes and in-network processing, respectively. The work in [15] proposes the method Pay Multiplexing Only Once (PMOO) for arbitrary multiplexing networks, and in [16, 17] the method PMOO is illustrated more clearly. The work in [18] focuses on arbitrary multiplexing networks with FIFO per microflow. The work in [5] uses the linear program to compute the end-to-end delay bound.

In [6], Bouillard et al. also propose an analysis method based on the linear program, which can be used in any feed-forward network under blind multiplexing. In [19], the same authors study the exact worst-case delay for FIFO multiplexing tandem networks and propose the analysis method that only requires two linear problems to compute the upper and lower delay bounds.

In [4], the authors propose the separated flow analysis (SFA) method for sensor network calculus. SFA can be adopted in general feed-forward networks. It makes use of the concatenation theorem, which provides a tighter delay bound than additive per-node bounds. In [20, 21], the same authors extend the work of [4] to allocate the implicit guaranteed time slots and balance the trade-off between energy efficiency and delay guarantees.

In addition, some researchers make use of stochastic network calculus (e.g., [2226]) to analyze the performance. But in this paper we only focus on the deterministic network calculus. Using the stochastic network calculus to analyze multimode networks will be studied in our future work.

These prior works do not consider the networks with multiple modes. In [27], sensor nodes exhibit different operative modes. Each mode has the given requirement in terms of energy and bandwidth. The service and arrival curves represent the incoming bandwidth and the bandwidth requirement. Then the bandwidth allocation and the mode assignment are formulated as two nonlinear optimization problems, and the service and arrival curves are used as the constraints of optimization problems. This work focuses on multimode sensor nodes but does not consider the performance analysis.

2.2. The Analysis of Multimode Embedded Systems

Some researchers combine the real-time calculus (RTC) with the multimode model to analyze the performance of embedded systems. Phan et al. have done a lot of works ([79, 28]) about it. In [7], the real-time calculus is used to describe the workload and service models, and the event count-automata (ECA) [29] explicates the state-based models. These heterogeneous models are connected by specified interfaces. The hybrid method is more expressive and efficient comparing to the pure RTC and ECA. In [8], the authors extend RTC to the timed automata, which is introduced to model the multimode information. The method combining RTC and the timed automata is more universal for all the components in embedded systems. But it faces the problem of state space explosion, since the workload and resource information of each processing element is modeled as a automata, respectively. In [9], the authors propose the richer processing semantics to represent different scheduling policies and the dynamic characteristics of data/event streams. In [28], the authors extend the work of [9] to the system that executes multiple multimode applications concurrently.

Lampka et al. propose a hybrid framework ([10, 30]), which describes the state-based component as the timed automata and the state-less component as the real-time calculus. The hybrid method can balance the expressiveness and scalability in the analysis of complex systems. And in [31], they introduce properties established to the component interface. This method can support a rigorous compositional design methodology for a complex system. Then in [32], the authors embed the methods described in [7, 10] into a framework for system-level performance analysis. However, these system models cannot be used in the analysis of wireless sensor networks.

3. Network Calculus Basics

Network calculus is a mathematical tool for analyzing the system performance. The functions involved in this paper belong to the space :They are nonnegative and wide-sense increasing. For a given data flow, the input cumulative function () is used to denote the number of bits that arrive in the time interval . The output cumulative function () means the number of bits which the system resource can process in the time interval . In a backlogged period, for any belonging to the backlogged period is greater than . Based on the two functions and , NC uses arrival curves and service curves to model the system workload and resource information.

Definition 1 (arrival curve). Given a function , the arrival curve () satisfies

Definition 2 (strict service curve). Given a function , the strict service curve () satisfies

The affine function () and the rate-latency function are the typical arrival and service curves. The operator is defined as .

NC makes use of the min-plus operations convolution and deconvolution to analyze the system performance.

Definition 3 (min-plus convolution and deconvolution). Let and be two curves. The min-plus convolution and the min-plus deconvolution are defined as

For the convolution operation, its rule of convex functions is represented as follows.

Rule (Convex Functions) [2]. Let . If and are convex, then is convex. In particular if , are convex and piecewise linear, is obtained by putting end to end the different linear pieces of and , sorted by increasing slopes.

Figure 2 shows the relations between curves. The input data denoted by are stored in data buffer until they are processed by . The maximum processed data is bounded by , and the left-over service is . For a flow, we consider it to be served in FIFO order. So given the arrival curve and the service curve , the maximum delay bound is expressed as follows:Figure 3 shows an example, where the arrival curve is and the service curve is . is the maximal horizontal distance between the two curves.

4. System Model and Problem Statement

The key notations used in this paper are summarized in the Appendix.

In our system, a sink-tree wireless sensor network is characterised by a tuple .(i) is the set of sensor nodes, where is the root. A node is characterised by . We use the classical arrival curve and service curve to describe the input data and the supplied service by the node ; and . Each node has a parent and several children . Note that, for the sink node , and, for leaf nodes, .(ii)Matrix is the set of links. If sends data to , the element in is equal to 1; otherwise, .

We use the source node to tag a data flow. The input data flow of the node is . The flow is transmitted from the node to its parent and then to the parent of the node , until the flow arrives at the sink node. The path of the flow is denoted by .

The wireless sensor network consists of multiple work modes. External signals or the amount of running time triggers the mode change. A mode graph can fully express this system information. The multimode wireless sensor network is modeled by the mode graph .(i) is the set of all modes. In each mode , two curve sets and are used to represent all sensor nodes’ workload and resource information. The curves of the node in the mode are represented by and . is the initial mode.(ii) denotes the set of external signals, for example, high-temperature alarms and manual operations.(iii) is the set of the upper bounds of running time. Each element represents the maximum amount of time that is spent in the mode . Note that can be infinity.(iv) is the set of mode change relations. An element denotes a change from the mode to the mode . If the amount of time spent in the mode exceeds its upper bound of running time , the wireless sensor network must change to the mode ; otherwise, only external signals can trigger the mode change.

Figure 4 shows an example. The mode graph consists of five modes. Each mode corresponds to the given arrival and service curves. The network starts from the mode and then changes to the mode or due to external signals or too much running time. Similarly, other mode changes can be triggered by some conditions.

The problem that we address is stated as follows. Given the wireless sensor network and the corresponding mode graph , our objective is to analyze the maximum delay bound of the flow of interest, such that the system performance can be tested at design time.

5. Analysis

In this section, we combine the network calculus and the multimode model to analyze the end-to-end delay bound of multimode wireless sensor networks. We first introduce using the network calculus to analyze one component with multiple modes and then extend it to the wireless sensor network.

5.1. Network Calculus for One Component with Multiple Modes

Assume that in our system model there is only one component, which works in different modes. The mode changes are described in the mode graph .

The component in each mode has the given arrival and service curves. When the component enters the mode from the mode , the backlog and the supplied resources by the mode will impact on the component execution in the mode . So the original arrival and service curves cannot fully represent the component’s information. In this paper, we call the curves that describe the maximum workload and minimum service information in any time interval before the component leaves the mode the multimode curves and use and to denote them.

When the component is in the initial mode , its multimode arrival and service curves are the original curves; and . Then we compute multimode curves of other modes based on mathematical induction. We define the path from the initial mode to the mode as . Assume that when the component is in the mode we have obtained its multimode curves and . If there exists the mode change , then the multimode arrival and service curves, when the component is in the mode , are denoted as follows:where represents the latest time instance when the component enters the mode ; that is, it is the maximum time interval before the component enters the mode . The maximum amount of data that arrive in the last time units consists of two parts. The first part is the arrival data in the last time units before the component enters the mode and can be obtained by the multimode arrival curve . The time units must not be larger than the maximum time units . The second part is the arrival data when the component is in the mode . The time units cannot be larger than the maximum amount of time that is spent in the mode ; otherwise the component will change to the next mode. The maximum sum of the two parts is the upper bound of the arrival data in any time units before the component leaves the mode ; is the multimode arrival curve when the component is in the mode . Similarly, the multimode service curve can be computed using the same way.

Assume that some data arrive when the component is in the mode . Due to the mode change, these data may be processed in the mode or its any following mode. We use to denote the delay bound when the data are processed in the mode . So

We use to denote all following modes of the mode . Then the end-to-end delay bound of the data flow is denoted as

In the following, we analyze the end-to-end delay bound of the multimode wireless sensor networks based on the above result.

5.2. End-to-End Delay Bound Analysis

The separate flow analysis (SFA) [4] is the classical delay bound analysis method for general single-mode feed-forward networks. For the flow of interest, SFA first computes the left-over service curves for all nodes on the path of the flow and then computes the convolution of them as the service curve of the flow of interest. For example, a simple sink tree is shown in Figure 5. According to the analysis method SFA, the end-to-end delay bound of the flow of interest is .

Note that the left-over service curve is independent of the arrival curve of the flow of interest . For brevity, in the remaining of the Section 5.2 the arrival curves of the flow are not involved in the computation of left-over service curves.

We extend the topology of sink-tree network to any depth. The computation of left-over service curves in the path is shown as follows:where

Recall that and . Then we obtainwhereFor example, in Figure 5,

SFA focuses on signal-mode wireless sensor networks. We combine it with the multimode model to analyze multimode wireless sensor networks.

The delay bound of the flow of interest is determined by its multimode arrival curve and the supplied service in each mode. The multimode arrival curve relates only to the node . The node can be modeled as a multimode component. So the computation of its multimode arrival curves is the same as that of one multimode component (shown in Section 5.1); that is, we can use (6) and the mode graph to compute multimode arrival curves .

The computation of the supplied service relates to all nodes in the path . We can model either each of these nodes or all of them as a multimode component. This leads to two methods N-MM and A-MM. In the following, we will introduce them and discuss which one of the methods is more effective.

5.2.1. N-MM

In this method, each node in the path is modeled as a multimode component. We first compute their multimode service curves and then convolute the curves of all nodes in the same mode as the multimode service curve of the whole network in the mode. We use to denote the multimode service curve of the node in the mode and to denote the multimode service curve of the whole network in the mode . We formulate the steps of the computation as follows.

Step 1. For all ,where we assume that the mode is the parent node of the mode . denotes the left-over service curve of in the mode and is computed based on (10) and the given , in the network model.

Step 2. For all ,

From the definition of the convolution operation, we know that can also be represented as , where their ranges are limited in and , respectively. Then, we have

So, based on (8) and (9), the end-to-end delay bound of the flow is

5.2.2. A-MM

Contrary to the method N-MM, the method A-MM first convolutes all of original left-over service curves that are in the same mode; that is, it models the whole network as a multimode component. Then the computation of multimode curves is the same as that in a component. We use to denote the left-over service curves of the whole network in the mode and to denote the whole multimode service curve, which corresponds to of the method N-MM. The formulations are shown as follows.

Step 1. For all ,

Step 2. For all ,where the mode is the parent node of the mode .

Similarly, according to the definition of the convolution operation, we have

Then, the delay bound of the flow computed by the method A-MM is

In the following, we discuss which one of the methods is more effective. The delay bound is the maximal horizontal distance between the arrival curve and the service curve. The arrival curves used in the two methods are the same. So the service curves of the two methods determine which one of the methods is effective.

Recall that our system model is based on the typical affine arrival curve and rate-latency service curve. So from (20), (21), (23), (25), and the rule Convex functions, we know that the two methods are based on the convolution operation and all service curves are piecewise linear and convex. Then, based on the rule Convex functions, we analyze and . For the method N-MM, Figure 6 shows service curves and . is the convolution of that is limited in a range. So the length of the first segment is the sum of all delay ( and ). The rate of the second segment is the minimum rate among the rate set , where can be computed based on (13). We use ( for short) to denote the mode with the th minimum rate in the rate set . So the rate of the th segment in Figure 6(b) is , and the length of the projection of the th segment onto the horizontal axis is the difference between the range , which is limited in (20), and the delay . Similarly, we can obtain (shown in Figure 7) based on (). The length of the first segment is also the sum of all delay . For the rate set , returns , which denotes that the th minimum rate belongs to the mode of the sensor node .

For the method A-MM, is not limited by any time constraint (shown in Figure 8(a)), and its rate is the minimum rate among all rates of the mode . The computation of limits the range of . So also contains multiple segments as shown in Figure 8(b), where .

Comparing with the two methods, we obtain three properties as follows.

Property 1. The two first segments of and are the same and they are equal to .

is the rate set for all sensor nodes before the network leaves the mode , and is a subset of . We can get the following properties.

Property 2. The th minimum rate of must be less than or equal to the th minimum rate of .

In , on the horizontal axis the length of the segment with is , and in the length of the segment is . We know that . So . Then we have the following.

Property 3. If a rate occurs in both and , the corresponding segment’s length on the horizontal axis in is longer than or equal to that in .

According to the three properties, we can prove the following theorem.

Theorem 4. Given a wireless sensor network and its corresponding mode graph, the maximum delay bound computed by the method A-MM is tighter than or equal to that computed by the method N-MM.

Proof. According to Property 1, the first segments of the two methods are the same. And the rates of their second segments are also the same. Since can be written as , thenwhileAnd according to Property 3, the length of the second segment of is longer than or equal to that of . So in the first and second segments of , .
After the second segment, we assume that there exists such that (shown in Figure 9). Before , there must exist a value , which belongs to the th segment of and the th segment of , and the rate of the th segment is larger than that of the th segment. According to Property 2, we know . Then we have . Since is the subset of , the rates of the second segment to th segments of must have occurred in prior segments of . Then, according to Property 3, the sum of lengths of segments of is longer than or equal to the sum of lengths of segments of ; that is, the th segment and the th segment cannot intersect at . Therefore, there are no and .
So, for each on the horizontal axis, . The horizontal distance between the multimode arrival curve and is less than or equal to the horizontal distance between the multimode arrival curve and ; that is, the maximum delay bound computed by the method A-MM is tighter than or equal to that computed by the method N-MM.

We further illustrate the effectiveness of the method A-MM as follows. In the method N-MM, the multimode service curve represents the minimum service of the node in all modes of the path . When multiple nodes are convoluted, the segments of different nodes in the same mode may be put together. It means that a flow is supplied for the minimum service of a sensor node in the mode , and in other sensor nodes it also suffers from the minimum service of the same mode . However, there are no constraints to limit the sum of the amount of time, in which the flow is supplied for the service of the mode . This leads to the fact that the sum of the amount of time may exceed the upper bound . And the cause of this case is that the service supplied by the mode is minimum. But, in the method A-MM, the flow cannot suffer from the minimum service that is supplied after the time instance , because of the time interval constraints of (25). So the multimode service curve of the method A-MM is larger than or equal to that of the method N-MM.

For the example of Figure 5, we set that , , , , , and all are equal to . The computations of and are shown in Figures 10(a) and 10(b). From these figures, we know that in the method N-MM the two segments of the mode 1 are used in , and the sum of the amount of time exceeds the maximum amount of time . This case is impossible in the method A-MM. The method N-MM introduces more pessimism.

6. Evaluation

There are no previous works on multimode networks. Therefore, we compare our proposed analysis methods with the original single-mode analysis method SFA [4]. These methods are implemented in RTC Toolbox [33]. RTC Toolbox is a set of MATLAB libraries and provides basic min-plus and max-plus operations. All experiments run on a desktop computer with 3.4 GHz Intel Core i7 processor and 4 GB memory.

We adopt the fully occupied binary tree, where in different modes all nodes have the same latency and the same burst . The arrival rate , where denotes the th mode and is a coefficient. We use the service rate to limit the node’s utilization. For each node, its service rate is equal to the quotient of its arrival rate (14) and the utilization. The mode graph consists of three successive modes, and all modes have the same . The method SFA cannot analyze multimode networks. In order to use it in the evaluation, the multimode model must be changed to the single-mode model, in which each node consists of one service curve and one arrival curve. So the arrival curve of the single-mode network is the maximum arrival curve between the three modes and the service curve is the minimum service curve. Then the method SFA can analyze the delay bound of the flow of interest based on the single-mode model. Only in this way the delay analyzed by the method SFA is the reliable delay bound.

Figure 11 shows the delay bound comparison between the different configurations when the tree depth varies. In the single-mode binary tree network, the arrival rate is and the service rate is the quotient of and the utilization. In order to make the network analyzable by the method SFA, the service rate must be greater than the arrival rate . So the utilization is set as 0.3. Under this utilization configuration, the results of A-MM and N-MM are the same. So we use MM to tag them in Figure 11. varies as the depth increases, and it is set as just enough for which any flow can be delivered to the destination in any two successive modes. From the figure, we have the following.(i)The delay bound of MM is tighter than that of SFA, since MM supplies the fine-grained model for analysis.(ii)The more the tree depth, the longer the end-to-end delay bound. It is because that the increase of nodes leads to the long latency (15) and burst (16). From Figure 3, we know that these parameters relate closely to the delay bound.(iii)The parameter has more impact on the delay bound. It is because that in (15) and (16) its coefficient is , while the coefficients of other parameters are and (when becomes ).(iv)Only the increase of leads to the shorter delay bound. In this case, increases, but expands ten times and decreases. So the delay bound decreases slightly when changes from to .

Figure 12 shows the ratio of MM to SFA. SFA introduces more pessimism to the complex system. So the ratio decreases as the depth increases. The delay bound of MM is about of the delay bound of SFA when the large-scale network contains 32 thousands of sensor nodes. The execution time of all programs is less than 1 minute. Therefore, our proposed analysis methods are thigh and scalable.

In the following, we compare our proposed methods A-MM and N-MM. There is no SFA, since SFA cannot analyze the system with high utilization. Figure 13 shows the delay bound comparison with different utilizations when the tree depth is 8. And Figure 14 shows the delay bound comparison with different numbers of modes. The utilization is short for . As our analyzed results, the delay bound of A-MM is tighter than that of N-MM, and N-MM is more pessimistic in the complex system.

7. Conclusion

Multimode wireless sensor networks are commonly used in real applications. In this paper, we combine the separate flow analysis, which is the classical delay bound analysis method based on the original network calculus for general single-mode feed-forward networks, and the multimode model to analyze the end-to-end delay bound of multimode wireless sensor networks. We propose two combined methods: the first method N-MM models each sensor node in the path of the flow of interest as a multimode component; the second method A-MM models the whole network as a multimode component. Comparing with the two methods, we obtain three properties. According to these properties and the rule of convolution operation, we prove that the delay bound computed by the method A-MM is tighter than or equal to that computed by the method N-MM. Experiments show that, comparing with the analysis method SFA, our proposed methods can be used in high utilization and large-scale wireless sensor networks and can significantly decrease the analytical delay bound of the flow of interest (about for the network with 32 thousands of sensor nodes). And in the future work we will extend the stochastic network calculus to multimode wireless sensor networks.

Appendix

Key Notations

: The set of sensor nodes: The path from the root to : The set of modes: The path from to : The maximum amount of time spent in the mode : The latest time instance when the component leaves : The change from to , : Multimode curves for one component in the mode : The multimode arrival curve of the flow in the mode : The left-over service curve of in the mode : The multimode service curve of in the mode : The multimode service curve of the whole network computed by N-MM: The left-over service curve of the whole network: The multimode service curve of the whole network computed by A-MM: The set of the appeared rates before leaves the mode : The set of all rates computed by N-MM: The set of all rates computed by A-MM.

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

Acknowledgment

This work was supported by the Strategic Priority Research Program of the Chinese Academy of Sciences, Grant no. XDA06020500.