# Modeling of Multihop Wireless Sensor Networks with MAC, Queuing, and Cooperation

Authors: Jian Lin; Mary Ann Weitnauer
Journal: International Journal of Distributed Sensor Networks
 (2016)

---

## Abstract

We present a Markovian decision process (MDP) framework for multihop wireless sensor networks (MHWSNs) to bound the network performance of both energy constrained (EC) networks and energy harvesting (EH) networks, both with and without relay cooperation. The model provides the fundamental performance limit that a MHWSN can theoretically achieve, under the general constraints from medium access control, routing, and energy harvesting. We observe that the analyses for EC and EH networks fall into two branches of MDP theory, which are finite-horizon process and infinite-horizon process, respectively. The performance metrics for EC and EH networks are different. For EC networks, an appropriate metric is the network lifetime; for EH networks, an appropriate metric is, for example, the network throughput. To efficiently solve the models with high dimension, for the EC networks, we propose a novel computational algorithm by taking advantage of the stochastic shortest path structure of the problem; for the EH networks, we propose a dual linear programming based algorithm by considering the sparsity of the transition matrix. Under the unified MDP framework, numerical results demonstrate the advantages of cooperation for the optimal performance, in both EC and EH networks.


---

## Body

## 1. Introduction

This paper considers modeling the optimal performance of multihop wireless sensor networks (MHWSNs), which can be energy constrained (EC) networks or energy harvesting (EH) networks, both with and without relay cooperation. The network performance of a MHWSN is a complex function of sensors’ harvested energy, traffic volume, routing protocol, and medium access (MAC) technique. An analytical approach that is suitable for WSN traffic and that derives the optimum would serve as a valuable benchmark for heuristics MAC and routing protocols. However, such a multihop framework has not been presented. In this paper, we explore the optimum by presenting a unified Markov Decision Process (MDP) analysis that can analyze both EC and EH networks. We observe that the treatments for both networks fall into two branches of MDP theory, the finite-horizon process and the infinite-horizon process, respectively.Existing analyses have mainly focused on a single node [1], a single link [2], or a single-hop network [3]. Departing from the literature, this paper addresses the general multihop network with neither assumptions on node distribution nor assumptions on total traffic pattern, motivated by the following reasons. First, since the communication range of a single node is limited, single-hop deployment [3] cannot always meet the requirements of many applications, such as environmental and structural monitoring, security and defense, and wireless body area networks [4]. Second, the traffic pattern of nodes in a MHWSN is unbalanced, invalidating the homogeneous or deterministic traffic assumptions, which are widely assumed for wireless ad hoc or mesh networks. In particular, some nodes near the Sink consume their energy faster because they must use their energy to relay other nodes’ data. In EC networks, this unbalance creates the well-known “energy hole” problem [5]. In EH networks, the impact on energy consumption is still nontrivial. Moreover, the extent to which the traffic is unbalanced is not known a priori and is usually determined by a routing protocol. Therefore, towards quantifying the network performance, careful consideration should be taken to capture the peculiarity of the traffic pattern. Third, because the network’s energy consumption rate is closely related to nodes’ interaction in various aspects including channel access, routing, and cooperation, an optimal solution obtained by focusing only on a point-to-point link does not imply the global optimum for the network-wide objective. In fact, quantifying the latter problem is fairly challenging.On another track, cooperative transmission (CT) is a mixture of communication protocol and physical (PHY) layer combining scheme that allows spatially separated nodes to collaborate to transmit a single message by forming a virtual multiple-input-single-output (VMISO) array. A receiver, gaining a signal-to-noise ratio (SNR) advantage of 10 dB to 20 dB through PHY combining [6], can decode the message at an extended range [7]. CT range extension has been experimentally demonstrated in [8], and it shows significant impact on Layer Two and Layer Three of a WSN by eliminating the “energy hole” in EC network [9, 10] and by providing better Quality of Service in EH networks [11]. Time-division CT (TDCT) is one type of cooperation, in which the source node multicasts the packet, and the cooperators that decode the packet forward it in orthogonal time slot [12]. Our previous work OSC-MAC [13] shows notable lifetime improvement over state-of-the-art MAC protocols by using TDCT to balance energy. Yet, it is noted that the performance gap between the CT MAC protocol [9, 10] with fixed routes and the theoretically optimal value is unknown. Also note that the analysis in [11], among others, assumes perfect link scheduling, which contrasts with the practical situation wherein link activities are subject to MAC constraints and packet collisions occur. All the above discussions have further motivated our analysis to comprehensively consider energy harvesting, routing, MAC, and cooperation, from the network perspective. Our previous work [14] models the lifetime of battery based multihop sensor networks, which, however, does not apply to energy unconstrained networks (e.g., through energy harvesting). This paper extends the model in [14] to provide an analysis framework that apply to both energy constrained (EC) networks and energy harvesting (EH) networks.The rest of the paper is organized as follows. Section2 presents the related work. Section 3 describes the system model and assumptions. An MDP formulation is detailed in Section 4. The computational method and numerical evaluations for non-CT and CT networks are presented in Sections 5 and 6, respectively. Finally, Section 7 concludes the paper.


## 2. Related Work

In this section, we describe existing works related to modeling for wireless sensor networks in terms of the scope of modeling, the assumptions, and the technical tools. Then we highlight the challenges solved and contributions made in this work in comparison.Existing analyses are mainly limited to a single node, a single link, or a single-hop network [15]. For example, [1] focuses on energy management of a single energy harvesting (EH) node for achieving maximum throughput and minimizing delay, using an MDP [16] model. While it is assumed in [1] that the characteristic of traffic and energy is stationary (same as in this work), it also assumes infinite packet queue and energy queue, which is not practical. In [17], a method based on stochastic timed automata and statistical model checking is proposed to model a WSN protocol called timing-sync protocol, which however focuses only on node behavior. In [18], an MDP model is used to model the sensor processor (CPU) energy and Petri nets are used to model an energy constrained (EC) sensor node. In [2], an MDP model is presented for EH tags in apoint-to-point link, assuming a time-slotted system and a stationary energy harvesting model. Transmission of EH nodes in a single link and in the context of a fading channel is tackled in [19]. In [3], an MDP model is used to formulate the lifetime of asingle-hop EC network, which considers sensor scheduling in a scenario where only a fraction of sensors collect information and communicate directly with a one-hop Sink. In [20], considering nodes that are equipped with a hybrid energy storage system, the authors provide an MDP model for asingle-hop EH network. The major limitations of these works are their inability to analyze the performance of a network that extends beyond one-hop deployment and the lack of analysis for cooperative transmission.For multihop networks, the past analyses have exploited various approaches. The optimal lifetime of a multihop WSN is derived in [21] using linear programming (LP) formulation based on traffic balance conditions. However, the analyses in [21] are limited to only the routing layer. In [22], a model based on mixed integer linear programming is proposed to identify energy-efficient route from the source sensor to the Sink; yet, it considers only energy minimization and does not produce network-wide objective optimization. In [23], the authors provide a Lyapunov analysis for multihop EH WSNs, which considers the dynamics of energy and queue, to maximize the utility. However, [23] is based on queue stability, which is not suitable for low-traffic WSNs. Reference [24] studies the upper bound on the lifetime of data gathering sensor networks, while [25] derives the upper bound on the lifetime of large-scale networks using the theory of coverage process. Both [24, 25] are based on the assumption that the data sources are deployed with a particular probability density function or process; thus they are unable to capture the inhomogeneous traffic characteristic in a multihop network. We note that all the aforementioned works fail to consider MAC constraints, as they assume perfect link scheduling and thus ignore packet losses and retransmissions, which contrasts the practical situation wherein link activities are subject to MAC constraints and packet collisions occur. Moreover, none of these works, except for [21], considers cooperative transmission.For cooperative networks, the existing analyses are typically limited to single-hop networks. In [26], the authors consider the lifetime maximization in an amplify-and-forward cooperative network and model the energy dissipation of nodes as a Markov chain. In [27], the authors develop a general probability model to study the outage performance of the best-relay selection with adaptive decode-and-forward cooperative network. Relatively less works have focused on analysis of multihop cooperative networks. The LP model in [28] has been recently extended to multihop CT networks [29] by considering all single-input-single-output (SISO) and virtual multiple-input-single-output (VMISO) links. Again, none of these works has considered MAC layer link constraints, and therefore the bounds that they provide are optimistic. Moreover, because the interference range has significant effect on the performance of the MAC, and the interference range of CT could differ from that of a SISO transmission, a complete evaluation of multihop cooperative networks is hard to obtain without the inclusion of MAC constraints.The challenges in modeling a multihop WSN reside mainly in the scope of modeling and the computational complexity. In this paper, we report a unified modeling framework with reasonable complexity that provides the fundamental performance limit that a MHWSN can theoretically achieve. Our model applies to both energy constrained networks and energy harvesting networks, and it captures the general constraints from MAC, routing, and energy dynamics. We further present two computational methods taking the advantage of the characteristics of EC networks and EH networks, respectively.


## 3. System Model and Assumptions

Each sensor node has two queues, the packet queue where data packets are stored and the energy queue where energy is stored. Both the packet queue and the energy queue have limited capacity. We assume that no dynamic transmit power control technique is used; that is, all the nodes use the same transmit power level, which means CT is used exclusively for range extension purpose instead of power reduction.


### 3.1. Time Slots in the System

Unlike [30] where the time slot is varied and is defined as the interval between two random events on a node, that is, between instances of energy arrivals, we consider a mini-time-slotted system as shown in Figure 2, where the slot duration is constant and slots are normalized to integral units t∈1,2,3,…. By time t, we refer to the duration within [t,t+1]. The randomness of events occurs during the slot. The reason to use constant slot interval is twofold: first, this provides the time from the perspective of a network that comprises many nodes; second, this allows us to model the packet transmission duration, against the instantaneous information capacity, because packetizing is very common in wireless standards, including IEEE 802.15.4, in which rate changing is infeasible in the duration of one-packet transmission.In addition, we remark that the time slots in this paper are different and more general than those in the link scheduling literature. In the latter case, the time is divided into slots equal to the length of packet transmission time, and all nodes are synchronized to slot boundaries. Our model does not have such a constraint, so the packet length can span multiple slots and nodes are not necessarily synchronized to slot boundaries.


### 3.2. Topology and Link Models

#### 3.2.1. Topology Model

The multihop network topology is modeled as a directed graphG=(V,E). V={1,…,N} is the set of nodes except the Sink, whose ID is 0, and E is the set of links comprising both single-input-single-output (SISO) links and VMISO links; that is, E=Eso∪Evo. A SISO link l exists if its source and the destination are within the maximum transmission range. Given the transmission power Ptx and the required receiving power Prx,min⁡, the maximum transmission range dmax⁡ is defined as dmax⁡=kPtx/Prx,min1/ρ, where ρ is the path loss exponent and k is the constant of proportionality [31]. A VMISO link exists if the source and the destination are within maximum transmission of CT with the cooperators. A VMISO link can be formed between the cooperating nodes (the initiator and cooperators) and the VMISO receiver. In the case of VMISO link, we assume the destination is the Sink; for example, Nodes A and B form a VMISO link to the Sink in Figure 1. Therefore, a link is represented by the 3-tuple, 〈s(l),d(l),Cs(l)〉∈E, where s(l) and d(l) are the source and the destination, respectively; C(s(l)) is the cooperators of s(l). This link is a valid VMISO link if and only if(1)10GCsl/10∑i∈sl∪CslDi,dl-ρ-1/ρ≤dmax⁡,the same as in [21], where Di,d(l) is the distance between Node i and the VMISO receiver and Gn is the SNR gain as a function of the number of cooperating nodes; for example, G2=10dB, G3=13.5dB according to [32] for BPSK modulation at a bit error rate of 10-3. Note that, in the case of SISO link, C(s(l))=⌀ and, in the case of VMISO link, d(l)=0.Figure 1
An illustration of interference model and VMISO link. Nodev is the receiver of Node u. Node u’s hidden nodes in the gray area will interfere with v’s reception.Figure 2
A timeline illustration of the decision process model for the network. The decision epochs are at the beginning of each minislot.


#### 3.2.2. Interference Model

A node has three ranges associated with it: the transmission range (TX), the interference range (IF), and the carrier sensing range (CS), as shown in Figure 1. Similar to [33], we assume that link (i,j,·) interferes with link (u,v,·) if either the distance dist(i,v)≤IF(i) or i=v. For instance, in Figure 1, Node u and any node in the gray area can start transmission at the same time because they are out of carrier sensing (CS) range of (i.e., hidden from) each other. Also, located in Node v’s interference (IF) range, the hidden node’s transmission interferes with Node v’s reception. This phenomenon directly results from the CSMA mechanism of the MAC layer and the relationship between the three ranges (TX, IF, and CS) [34].


#### 3.2.3. Medium Access Control Model

We assume that carrier-sensing-medium-access (CSMA) is performed before a node attempts to transmit. Further, similar to [35], it is assumed that (i) a node cannot transmit and receive at the same time; (ii) a node can transmit if none of its neighbors (in CS range) is transmitting; (iii) link errors result only from collisions due to hidden terminals; (iv) nodes receive with perfect capture; that is, a packet is successfully decoded if the receiver and none of its neighbors are transmitting at the start of packet; and (v) the propagation time is zero. Our model can be extended to incorporate fading and shadowing effects of the wireless channel in computing packet errors; however, in this paper we assume (iii) to simplify the presentation.


### 3.3. Traffic and Energy Models

#### 3.3.1. Traffic Model

The transmission duration of a linkl∈E is assumed exponentially distributed with the expectation T¯l, the same as in [35, 36]. Note that this assumption is inaccurate; however, it is necessary to make the MDP problem tractable [36]. The memoryless property of the exponential distribution indicates that, given a packet is being transmitted at the beginning of a time slot, it completes the transmission within the slot of length ΔT with probability βl=1-e-ΔT/T¯l, regardless of the number of slots it has been transmitting. Making ΔT small enough allows us to assume that at most one link can finish transmission during a time slot; that is, the probability that more than one link finishes transmission is o(Δt).The number of exogenous (self-generated) packets at Nodei of commodity d (destined to Sink d), fid(t), during any slot t is modeled as a binary random variable (RV), with probability mass functions (PMF) Pr⁡[fid(t)=1]=αd(i) and Pr⁡[fid(t)=0]=1-αd(i), where αd(i) is assumed i.i.d. over time slots.


#### 3.3.2. Energy Harvesting Model

A realistic power consumption model for a sensor node has been studied in [37], which decouples the power usage into baseband DSP circuit, the RF front-end circuit for transmitting and receiving, the power amplifier (PA), and low noise amplifier (LNA). A similar circuit-level analysis is also performed in [38] for energy modeling in cooperative multiple-input-multiple-output (MIMO) sensor networks. In [39], six different statistical models have been used to fit empirical datasets of a solar-powered energy harvesting sensor node. Our recent work [40] provides an energy model for energy harvesting node considering harvesting and leakage in a supercapacitor.While we are aware of more complex energy models, for simplicity, in this paper we assume a simpler model. However, we note that it should be straightforward to incorporate complex energy consumption and harvesting models into our framework. In this study, the energy harvested at Nodei during any slot t is modeled as a binary RV, which is denoted by hi(t)∈{0,1}. This RV has PMF Pr⁡[hi(t)=1]=γ(i) and Pr⁡[hi(t)=0]=1-γ(i). Representing the energy harvesting rate, γ(i) is assumed i.i.d. over time slots. Thus, similar to [1, 41], the energy of Node i evolves as(2)eit+1=min⁡eit-ecomi,l++hit,emax⁡,where ecom(i,l) is the energy consumption of Node i if it participates in a finished link transmission l and emax⁡ is the battery capacity of a node. We note that other EH models can also be applied, for example, the correlated EH model [2] where the energy harvested in a slot is correlated to the previous slot. Further, we assume that the energy harvested in a particular slot is available at the end of the slot.


## 3.1. Time Slots in the System

Unlike [30] where the time slot is varied and is defined as the interval between two random events on a node, that is, between instances of energy arrivals, we consider a mini-time-slotted system as shown in Figure 2, where the slot duration is constant and slots are normalized to integral units t∈1,2,3,…. By time t, we refer to the duration within [t,t+1]. The randomness of events occurs during the slot. The reason to use constant slot interval is twofold: first, this provides the time from the perspective of a network that comprises many nodes; second, this allows us to model the packet transmission duration, against the instantaneous information capacity, because packetizing is very common in wireless standards, including IEEE 802.15.4, in which rate changing is infeasible in the duration of one-packet transmission.In addition, we remark that the time slots in this paper are different and more general than those in the link scheduling literature. In the latter case, the time is divided into slots equal to the length of packet transmission time, and all nodes are synchronized to slot boundaries. Our model does not have such a constraint, so the packet length can span multiple slots and nodes are not necessarily synchronized to slot boundaries.


## 3.2. Topology and Link Models

### 3.2.1. Topology Model

The multihop network topology is modeled as a directed graphG=(V,E). V={1,…,N} is the set of nodes except the Sink, whose ID is 0, and E is the set of links comprising both single-input-single-output (SISO) links and VMISO links; that is, E=Eso∪Evo. A SISO link l exists if its source and the destination are within the maximum transmission range. Given the transmission power Ptx and the required receiving power Prx,min⁡, the maximum transmission range dmax⁡ is defined as dmax⁡=kPtx/Prx,min1/ρ, where ρ is the path loss exponent and k is the constant of proportionality [31]. A VMISO link exists if the source and the destination are within maximum transmission of CT with the cooperators. A VMISO link can be formed between the cooperating nodes (the initiator and cooperators) and the VMISO receiver. In the case of VMISO link, we assume the destination is the Sink; for example, Nodes A and B form a VMISO link to the Sink in Figure 1. Therefore, a link is represented by the 3-tuple, 〈s(l),d(l),Cs(l)〉∈E, where s(l) and d(l) are the source and the destination, respectively; C(s(l)) is the cooperators of s(l). This link is a valid VMISO link if and only if(1)10GCsl/10∑i∈sl∪CslDi,dl-ρ-1/ρ≤dmax⁡,the same as in [21], where Di,d(l) is the distance between Node i and the VMISO receiver and Gn is the SNR gain as a function of the number of cooperating nodes; for example, G2=10dB, G3=13.5dB according to [32] for BPSK modulation at a bit error rate of 10-3. Note that, in the case of SISO link, C(s(l))=⌀ and, in the case of VMISO link, d(l)=0.Figure 1
An illustration of interference model and VMISO link. Nodev is the receiver of Node u. Node u’s hidden nodes in the gray area will interfere with v’s reception.Figure 2
A timeline illustration of the decision process model for the network. The decision epochs are at the beginning of each minislot.


### 3.2.2. Interference Model

A node has three ranges associated with it: the transmission range (TX), the interference range (IF), and the carrier sensing range (CS), as shown in Figure 1. Similar to [33], we assume that link (i,j,·) interferes with link (u,v,·) if either the distance dist(i,v)≤IF(i) or i=v. For instance, in Figure 1, Node u and any node in the gray area can start transmission at the same time because they are out of carrier sensing (CS) range of (i.e., hidden from) each other. Also, located in Node v’s interference (IF) range, the hidden node’s transmission interferes with Node v’s reception. This phenomenon directly results from the CSMA mechanism of the MAC layer and the relationship between the three ranges (TX, IF, and CS) [34].


### 3.2.3. Medium Access Control Model

We assume that carrier-sensing-medium-access (CSMA) is performed before a node attempts to transmit. Further, similar to [35], it is assumed that (i) a node cannot transmit and receive at the same time; (ii) a node can transmit if none of its neighbors (in CS range) is transmitting; (iii) link errors result only from collisions due to hidden terminals; (iv) nodes receive with perfect capture; that is, a packet is successfully decoded if the receiver and none of its neighbors are transmitting at the start of packet; and (v) the propagation time is zero. Our model can be extended to incorporate fading and shadowing effects of the wireless channel in computing packet errors; however, in this paper we assume (iii) to simplify the presentation.


## 3.2.1. Topology Model

The multihop network topology is modeled as a directed graphG=(V,E). V={1,…,N} is the set of nodes except the Sink, whose ID is 0, and E is the set of links comprising both single-input-single-output (SISO) links and VMISO links; that is, E=Eso∪Evo. A SISO link l exists if its source and the destination are within the maximum transmission range. Given the transmission power Ptx and the required receiving power Prx,min⁡, the maximum transmission range dmax⁡ is defined as dmax⁡=kPtx/Prx,min1/ρ, where ρ is the path loss exponent and k is the constant of proportionality [31]. A VMISO link exists if the source and the destination are within maximum transmission of CT with the cooperators. A VMISO link can be formed between the cooperating nodes (the initiator and cooperators) and the VMISO receiver. In the case of VMISO link, we assume the destination is the Sink; for example, Nodes A and B form a VMISO link to the Sink in Figure 1. Therefore, a link is represented by the 3-tuple, 〈s(l),d(l),Cs(l)〉∈E, where s(l) and d(l) are the source and the destination, respectively; C(s(l)) is the cooperators of s(l). This link is a valid VMISO link if and only if(1)10GCsl/10∑i∈sl∪CslDi,dl-ρ-1/ρ≤dmax⁡,the same as in [21], where Di,d(l) is the distance between Node i and the VMISO receiver and Gn is the SNR gain as a function of the number of cooperating nodes; for example, G2=10dB, G3=13.5dB according to [32] for BPSK modulation at a bit error rate of 10-3. Note that, in the case of SISO link, C(s(l))=⌀ and, in the case of VMISO link, d(l)=0.Figure 1
An illustration of interference model and VMISO link. Nodev is the receiver of Node u. Node u’s hidden nodes in the gray area will interfere with v’s reception.Figure 2
A timeline illustration of the decision process model for the network. The decision epochs are at the beginning of each minislot.


## 3.2.2. Interference Model

A node has three ranges associated with it: the transmission range (TX), the interference range (IF), and the carrier sensing range (CS), as shown in Figure 1. Similar to [33], we assume that link (i,j,·) interferes with link (u,v,·) if either the distance dist(i,v)≤IF(i) or i=v. For instance, in Figure 1, Node u and any node in the gray area can start transmission at the same time because they are out of carrier sensing (CS) range of (i.e., hidden from) each other. Also, located in Node v’s interference (IF) range, the hidden node’s transmission interferes with Node v’s reception. This phenomenon directly results from the CSMA mechanism of the MAC layer and the relationship between the three ranges (TX, IF, and CS) [34].


## 3.2.3. Medium Access Control Model

We assume that carrier-sensing-medium-access (CSMA) is performed before a node attempts to transmit. Further, similar to [35], it is assumed that (i) a node cannot transmit and receive at the same time; (ii) a node can transmit if none of its neighbors (in CS range) is transmitting; (iii) link errors result only from collisions due to hidden terminals; (iv) nodes receive with perfect capture; that is, a packet is successfully decoded if the receiver and none of its neighbors are transmitting at the start of packet; and (v) the propagation time is zero. Our model can be extended to incorporate fading and shadowing effects of the wireless channel in computing packet errors; however, in this paper we assume (iii) to simplify the presentation.


## 3.3. Traffic and Energy Models

### 3.3.1. Traffic Model

The transmission duration of a linkl∈E is assumed exponentially distributed with the expectation T¯l, the same as in [35, 36]. Note that this assumption is inaccurate; however, it is necessary to make the MDP problem tractable [36]. The memoryless property of the exponential distribution indicates that, given a packet is being transmitted at the beginning of a time slot, it completes the transmission within the slot of length ΔT with probability βl=1-e-ΔT/T¯l, regardless of the number of slots it has been transmitting. Making ΔT small enough allows us to assume that at most one link can finish transmission during a time slot; that is, the probability that more than one link finishes transmission is o(Δt).The number of exogenous (self-generated) packets at Nodei of commodity d (destined to Sink d), fid(t), during any slot t is modeled as a binary random variable (RV), with probability mass functions (PMF) Pr⁡[fid(t)=1]=αd(i) and Pr⁡[fid(t)=0]=1-αd(i), where αd(i) is assumed i.i.d. over time slots.


### 3.3.2. Energy Harvesting Model

A realistic power consumption model for a sensor node has been studied in [37], which decouples the power usage into baseband DSP circuit, the RF front-end circuit for transmitting and receiving, the power amplifier (PA), and low noise amplifier (LNA). A similar circuit-level analysis is also performed in [38] for energy modeling in cooperative multiple-input-multiple-output (MIMO) sensor networks. In [39], six different statistical models have been used to fit empirical datasets of a solar-powered energy harvesting sensor node. Our recent work [40] provides an energy model for energy harvesting node considering harvesting and leakage in a supercapacitor.While we are aware of more complex energy models, for simplicity, in this paper we assume a simpler model. However, we note that it should be straightforward to incorporate complex energy consumption and harvesting models into our framework. In this study, the energy harvested at Nodei during any slot t is modeled as a binary RV, which is denoted by hi(t)∈{0,1}. This RV has PMF Pr⁡[hi(t)=1]=γ(i) and Pr⁡[hi(t)=0]=1-γ(i). Representing the energy harvesting rate, γ(i) is assumed i.i.d. over time slots. Thus, similar to [1, 41], the energy of Node i evolves as(2)eit+1=min⁡eit-ecomi,l++hit,emax⁡,where ecom(i,l) is the energy consumption of Node i if it participates in a finished link transmission l and emax⁡ is the battery capacity of a node. We note that other EH models can also be applied, for example, the correlated EH model [2] where the energy harvested in a slot is correlated to the previous slot. Further, we assume that the energy harvested in a particular slot is available at the end of the slot.


## 3.3.1. Traffic Model

The transmission duration of a linkl∈E is assumed exponentially distributed with the expectation T¯l, the same as in [35, 36]. Note that this assumption is inaccurate; however, it is necessary to make the MDP problem tractable [36]. The memoryless property of the exponential distribution indicates that, given a packet is being transmitted at the beginning of a time slot, it completes the transmission within the slot of length ΔT with probability βl=1-e-ΔT/T¯l, regardless of the number of slots it has been transmitting. Making ΔT small enough allows us to assume that at most one link can finish transmission during a time slot; that is, the probability that more than one link finishes transmission is o(Δt).The number of exogenous (self-generated) packets at Nodei of commodity d (destined to Sink d), fid(t), during any slot t is modeled as a binary random variable (RV), with probability mass functions (PMF) Pr⁡[fid(t)=1]=αd(i) and Pr⁡[fid(t)=0]=1-αd(i), where αd(i) is assumed i.i.d. over time slots.


## 3.3.2. Energy Harvesting Model

A realistic power consumption model for a sensor node has been studied in [37], which decouples the power usage into baseband DSP circuit, the RF front-end circuit for transmitting and receiving, the power amplifier (PA), and low noise amplifier (LNA). A similar circuit-level analysis is also performed in [38] for energy modeling in cooperative multiple-input-multiple-output (MIMO) sensor networks. In [39], six different statistical models have been used to fit empirical datasets of a solar-powered energy harvesting sensor node. Our recent work [40] provides an energy model for energy harvesting node considering harvesting and leakage in a supercapacitor.While we are aware of more complex energy models, for simplicity, in this paper we assume a simpler model. However, we note that it should be straightforward to incorporate complex energy consumption and harvesting models into our framework. In this study, the energy harvested at Nodei during any slot t is modeled as a binary RV, which is denoted by hi(t)∈{0,1}. This RV has PMF Pr⁡[hi(t)=1]=γ(i) and Pr⁡[hi(t)=0]=1-γ(i). Representing the energy harvesting rate, γ(i) is assumed i.i.d. over time slots. Thus, similar to [1, 41], the energy of Node i evolves as(2)eit+1=min⁡eit-ecomi,l++hit,emax⁡,where ecom(i,l) is the energy consumption of Node i if it participates in a finished link transmission l and emax⁡ is the battery capacity of a node. We note that other EH models can also be applied, for example, the correlated EH model [2] where the energy harvested in a slot is correlated to the previous slot. Further, we assume that the energy harvested in a particular slot is available at the end of the slot.


## 4. Markov Decision Process Formulation

In this section, we describe the Markov Decision Process formulation for the EC and EH networks. We model the network state space by a tuple consisting of the transmission set in the network considering the MAC constraints, the queuing level, and the energy level for each node. Next we specify the action space at each time slot, which affects the network state. Then we analyze the system transition dynamics by decoupling the system into the tuple components with condition and then combining them based on the chain rule.


### 4.1. Energy Constrained (EC) Networks

#### 4.1.1. Network State Space

The network state is defined ass≜{L,q,e} to include the transmission set L, the queuing level q of each node, and the energy e of each node. Note that the state space is not the Cartesian product of each component’s state space, because they are interactive (e.g., an active link cannot have an empty queue at its source node).The transmission setL(t) includes the links that are active (in transmission) at time t, which must not violate the carrier sensing constraints of the MAC. Note that it does not mean that all the receivers of links in the transmission set will receive successfully. Denote the state space of L as L. This component includes the collisions in the MAC layer. We denote the links that are free of collision as Φ(L)⊂L. Φ(L) is deterministic given L, and Φ=Φso∪Φvo.To findL, it is equivalent to find the matchings of a graph. Given a graph G=(V,E), a matching M(G) in G is a set of nonadjacent edges (i.e., no two edges share a common vertex), implying L∈{M(G)}. Further, the MAC layer CSMA adds constraints on L, where for any two links l1,l2∈L, the sources of the two links (s(l1),s(l2)) must be out of carrier sensing (CS) range of each other. Therefore, L is determined by graph G and the binary hearing matrix H=[hij]i,j∈V of the network, where the element hi,j=1 if and only if (iff) Node i and Node j are within CS range of each other. Though enumerating matchings of a graph isNP-complete, Bron-Kerbosch algorithm has been shown to be one of the fastest [42] and has been used in this paper.


#### 4.1.2. Decision Epochs and Action Space

A decision epoch corresponds to the beginning of a time slot. The set of decision epochs are denoted by{1,2,…,T}. When T is finite (infinite), the decision problem is referred to as a finite-horizon (infinite-horizon) problem. An action, a(t), is to admit a new link to the “remaining” transmission set L(t), which comprises those links that did not complete transmission during slot t-1. Note that L(t)⊂L(t-1)∪a(t-1). The action space at time t when the system state is s(t) is represented by(3)Ast=l∈E:qslt>0,l∉Lt,Lt∪l⊂L,Esuf,where Esuf indicates ei≥ecom(i,l), ∀i∈l. Therefore, a link l can join L(t) iff its source has a nonempty queue, L(t)∪l is also a transmission set, and the participating nodes have enough energy. Note that it is assumed that at most one link can be admitted to L(t), because ΔT is small. Also, note that the null set ⌀∈A(s(t)). As a result, an action can be either a “CT” link, a “non-CT” link, or null (no new transmission).


#### 4.1.3. State Transition Dynamics

We first characterize the state transition of each component.(
1) Transmission Set Dynamics. Let action a(t)∈A(s(t)) denote the link admitted to the transmission set. Denote pzl(t)∣L(t),a(t) as the probability that only link l∈L(t)∪a(t) finishes transmission during slot t and pz⌀(t)∣L(t),a(t) as the probability that no link finishes transmission during slot t. The time index is dropped when there is no ambiguity. For abbreviation, we denote the transition kernel as pL′∣L,a:=pLt+1∣Lt,at,(4)pzl∣L,a=βl∏k∈L∪ak≠l1-βk,∀l∈L∪a,pz⌀∣L,a=∏l∈L∪a1-βlifL∪a≠⌀,1ifL∪a=⌀.DefineD(L)≜L∪a∖L′; then we can get(5)pL′∣L,a=pzl∣L,aifDL=l,pz⌀∣L,aifDL=⌀,0otherwise.(
2) Queue Length Dynamics. Considering that EC networks are most suitable for light traffic applications, such as monitoring, we assume that at most one node self-generates a packet during a slot. Let Ii represent a vector with its ith element being 1 and other elements being 0, 1≤i≤N, and let I0 be the zero vector. The probability that only Node i or no node (i=0) self-generates a packet is given by(6)PIi=αi∏j∈V,j≠i1-αjifi∈V,∏j∈V1-αjifi=0, where α(i) is the probability of a self-generated packet arrival for Node i in a time slot and is assumed i.i.d. over time slots.Then the queue evolution can be described by the following cases.Case 1 ((c1): q′=q).
This can happen for two reasons: (c1a) no link transmission affects the queue state and no new exogenous arrival affects the queues and (c1b) some link (i,0,·) destined to the Sink successfully transmits and the source self-generates a new packet:(7)Pc1a=1ΔL=⌀+1ΔL∈Ψ¯L∪a+1ΔL∈ΨL∪a,qdΔL=qmax⁡·PI0+∑qk=qmax⁡,k∈VpIk,Pc1b=1ΔL∈ΨL∪a,sΔL=i,dΔL=0·PIi.Case 2 ((c2): q′=q+Ij, j∈V).
This case includes two possibilities: (c2a) some SISO link (·,j,⌀) that is directed to Node j successfully transmits and the source self-generates a new packet and (c2b) no link transmission affects the queue state and there is a new exogenous packet arrival to Node j:(8)Pc2aj=1ΔL∈ΨL∪a,dΔL=j·PIsΔL,Pc2bj=1ΔL=⌀+1ΔL∈Ψ¯L∪a+1ΔL∈ΨL∪a,qdΔL=qmax·PIj.Case 3 ((c3): q′=q-Ii,i∈V).
This happens because some link(i,0,·) destined to the Sink successfully transmits and no new exogenous arrival affects the queues:(9)Pc3i=1ΔL∈ΨL∪a,ΔL=i,0,··PI0+∑qk′=qmax⁡,k∈VPIk.Case 4 ((c4): q′=q-Ii+Ij,i,j∈V,i≠j).
This case includes two possibilities: (c4a) some SISO link (i,j,⌀) successfully transmits and there was no change in queue due to new exogenous arrival and (c4b) link (i,0,·) successfully transmits and Node j self-generates a new packet:(10)Pc4ai,j=1ΔL∈ΨL∪a,ΔL=i,j,⌀·PI0+∑qk′=qmax⁡,k∈VPIk,Pc4bi,j=1ΔL∈ΨL∪a,ΔL=i,0,··PIj.Case 5 ((c5): q′=q-Ii+2Ij,i,j∈V,i≠j).
This occurs because the SISO link(i,j,⌀) successfully transmits and Node j self-generates a new packet:(11)Pc5i,j=1ΔL∈ΨL∪a,ΔL=i,j,⌀·PIj.Case 6 ((c6): q′=q-Ii+Ij+Ik,i,j,k∈V,i≠j≠k).
This occurs because the SISO link(i,j,⌀) successfully transmits and a different Node k self-generates a new packet:(12)Pc6i,j,k=1ΔL∈ΨL∪a,ΔL=i,j,⌀·PIk+1ΔL∈ΨL∪a,ΔL=i,k,⌀·PIj.Therefore, the transition kernel of q(t) is expressed as (23).(
3) Energy Evolution Dynamics. The process e(t) is dictated by transmission energy and receiving energy consumption incurred during a finished link transmission, regardless of success or failure. In the CT case, the cooperators consume additional energy in receiving the broadcast packet initiated by the source and in conducting CT. The transition kernel of e(t) is given in (25).(
4) System Dynamics. The transition matrix of the system states s≜{L,e,q} can be obtained by the following theorem.Theorem 1.
The transition kernel of the EC system,p{s′∣s,a}, is equal to the product of (5), (13), and (14):(13)Pq′∣L′,L,q,a=Pc1a+Pc1bifq′=q,Pc2aj+Pc2bjifq′=q+Ij,j∈V,Pc3iifq′=q-Ii,i∈V,Pc4ai,j+Pc4bi,jifq′=q-Ii+Ij,i,j∈V,Pc5i,jifq′=q-Ii+2Ij,i,j∈V,i≠j,Pc6i,j,kifq′=q-Ii+Ij+Ik,i,j,k∈V,i≠j≠k,0otherwise,(14)Pe′∣L′,L,e,a=1e′=e-Iietx-IjerxifΔL=i,j,⌀∈L∪aso,j∈V∗,1e′=e-IieinitCT-∑k∈HiIkecoCTifΔL=i,0,Hi∈L∪avo,i∈V,1e′=eifΔL=⌀,0otherwise.Proof.
According to the chain rule,p{s′∣s,a} can be expressed as p(q′∣A)·p(e′∣B)·p(L′∣C), where A={(L′,e′,L,q,e,a)}, B={(L′,L,q,e,a)}, and C={(L,q,e,a)}. Further, since q′ and (e′,e) are conditionally independent, given (L′,L,q,a), the first element in the product, p(q′∣A), is reduced to (13). Applying similar arguments to p(e′∣B) and p(L′∣C), Theorem 1 is proved.


#### 4.1.4. Expected Total Rewards

During a time slot, the system obtains a rewardg(s,a)=1 if a packet was delivered to the Sink, and g(s,a)=0 otherwise, where s is the current state. Then, with the state space S and the termination states St, for s∈S∖St, we have (15)gs,a≜Er=∑l∈ΨL∪adl=0Pzl∣L,a1ΨL∪a≠⌀. And, for s∈St, g(s,a)=0. The expected total rewards of the process starting from an initial state s, under the policy π, are denoted by(16)Jπs=∑t=1∞gst,at.


#### 4.1.5. MDP Formulation

A transmission policy is a series of decision rulesπ=[a(1),a(2),…], where a(t):S(t)→AS(t). The maximum lifetime J∗(s) is given by(17)J∗s=maxπ⁡Jπs.The optimal lifetimeJ∗(s) is the unique solution of the Bellman’s optimality equation [16]:(18)Js=maxa⁡gs,a+∑s′Ps′∣s,aJs′. A policy π∗ is optimal if it achieves the maximum expected lifetime for all starting states; that is,(19)Jπ∗s=J∗s,∀s∈S∖St.


### 4.2. Energy Harvesting Networks

The link set dynamics in the EH network are the same as in the EC network. In this section, we give a more general expression for the queue system, relaxing the low-traffic assumption in the previous sections. EH networks may provide better support for high traffic load than EC networks [43].In a uniform form, the evolutions ofq and e are governed by the following balance equations:(20)ψit+1=ψit+RiMitΓit+σit,where i∈{q,e}, ψ(q)=q, and ψ(e)=e; and R(i) and M(i) will be defined below.


#### 4.2.1. Queue Length Dynamics

In (20), M(q) is a E×E diagonal matrix. The diagonal element Ml(q)=1 if the transmission of link l iscompleted andsuccessful (a finished transmission, while always consuming energy, is not necessarily successfully decoded by the receiver, because of collision due to hidden terminals; in case of failure, the packet remains in the queue of the transmitter), and Ml(q)=0 otherwise. Note that it is assumed ∑l∈E‍Ml(q)≤1; that is, at most one link can finish transmission. Γ(q) is the transmission schedule vector, which satisfies Γl(q)=1, ∀l∈L∪a, and Γl(q)=0 otherwise. R(q) is the N×E routing matrix, whose element in the ith row and lth column is(21)rilq=1ifdl=iand  Nodeiis  not  Sink,-1ifsl=i,0otherwise.σ(q) is an N×1 vector representing the number of self-generated packets and σi(q)=fi.LetIi represent a vector with its ith element being 1 and other elements being 0, 1≤i≤N, and let I0 be the zero vector. Denote V(q)(t) as the nodes whose queue is not full at time t and define the difference(22)Dq=q′-qifDL=⌀,q′-q+IsDL-IdDLifDL∈ΦsoL∪a,q′-q+IsDLifDL∈ΦvoL∪a.Then considering exogenous packet arrivals, the queue status is updated as follows:(23)pq′∣L′,L,q,a=∏i∈Vαi1Diq=1+1-αi1Diq=0,i∈VqifDL∈ΦsoL∪a,ΦvoL∪a,⌀,0otherwise,where 1· is the indicator function.


#### 4.2.2. Energy Evolutions

Using analysis similar to that for the queue in Section4.2.1, denote V(e)(t) as the nodes whose battery is not full at time t and define(24)De=e′-eifDL=⌀,e′-e+IsDL·etx+IdDL·erxifDL∈Eso,e′-e+IsDLeinitCT+∑k∈CDLIkeco⁡CTifDL∈Evo.Then, considering the influence of energy harvesting, we get(25)pe′∣L′,L,e,a=∏i∈Vhi1Die=1+1-hi1Die=0,i∈VeifDL∈Eso,Evo,⌀,0otherwise.


#### 4.2.3. System Dynamics

Similar to the EC network, the transition matrix of the system statess≜{L,e,q} for EH network can be obtained by the following theorem.Theorem 2.
The transition kernel of the EH system,p{s′∣s,a}, is equal to the product of (5), (23), and (25).


### 4.3.  Performance Criterion and Reward Function

Letvπ(s) denote the expected total reward, given an initial state s and a policy π (a series of decisions),(26)vπs=limT→∞⁡Esπ∑t=1Trst,at,where T is the decision-making horizon length.The definition of the reward function,r(s,a), depends on application requirements and can be subjective to network designers. We define two reward functions as follows:(27)r1s,a=∑l∈ΦL∪adl=0Pzl∣L,a1ΦL∪a≠⌀,(28)r2s,a=ω1r1s,a-ω21s∈SD.In (27), a unit of reward is obtained if a packet is successfully received by the Sink. Equation (28) is a weighted sum of the rewards from delivered packets and the penalty from a QoS degradation (e.g., SD are states where any node’s energy drops to zero).Since the state space and the action space are finite, with a finite reward function, (26) can be expressed as(29)vλπs=Esπ∑t=1∞λt-1rst,at, where it is assumed that T is geometrically distributed with parameter λ, 0≤λ<1. Thus, the expected value ofT is 1/(1-λ). The parameter λ is the discount factor, which measures the present value of one unit of reward received one period in the future [16].


### 4.4. Optimality Equations

The optimality equation for the expected total discounted reward criteria given an initial state, a.k.a. Bellman’s equation, is given as follows:(30)vλ∗s=maxa∈As⁡rs,a+∑s′λps′∣s,avλ∗s′.


## 4.1. Energy Constrained (EC) Networks

### 4.1.1. Network State Space

The network state is defined ass≜{L,q,e} to include the transmission set L, the queuing level q of each node, and the energy e of each node. Note that the state space is not the Cartesian product of each component’s state space, because they are interactive (e.g., an active link cannot have an empty queue at its source node).The transmission setL(t) includes the links that are active (in transmission) at time t, which must not violate the carrier sensing constraints of the MAC. Note that it does not mean that all the receivers of links in the transmission set will receive successfully. Denote the state space of L as L. This component includes the collisions in the MAC layer. We denote the links that are free of collision as Φ(L)⊂L. Φ(L) is deterministic given L, and Φ=Φso∪Φvo.To findL, it is equivalent to find the matchings of a graph. Given a graph G=(V,E), a matching M(G) in G is a set of nonadjacent edges (i.e., no two edges share a common vertex), implying L∈{M(G)}. Further, the MAC layer CSMA adds constraints on L, where for any two links l1,l2∈L, the sources of the two links (s(l1),s(l2)) must be out of carrier sensing (CS) range of each other. Therefore, L is determined by graph G and the binary hearing matrix H=[hij]i,j∈V of the network, where the element hi,j=1 if and only if (iff) Node i and Node j are within CS range of each other. Though enumerating matchings of a graph isNP-complete, Bron-Kerbosch algorithm has been shown to be one of the fastest [42] and has been used in this paper.


### 4.1.2. Decision Epochs and Action Space

A decision epoch corresponds to the beginning of a time slot. The set of decision epochs are denoted by{1,2,…,T}. When T is finite (infinite), the decision problem is referred to as a finite-horizon (infinite-horizon) problem. An action, a(t), is to admit a new link to the “remaining” transmission set L(t), which comprises those links that did not complete transmission during slot t-1. Note that L(t)⊂L(t-1)∪a(t-1). The action space at time t when the system state is s(t) is represented by(3)Ast=l∈E:qslt>0,l∉Lt,Lt∪l⊂L,Esuf,where Esuf indicates ei≥ecom(i,l), ∀i∈l. Therefore, a link l can join L(t) iff its source has a nonempty queue, L(t)∪l is also a transmission set, and the participating nodes have enough energy. Note that it is assumed that at most one link can be admitted to L(t), because ΔT is small. Also, note that the null set ⌀∈A(s(t)). As a result, an action can be either a “CT” link, a “non-CT” link, or null (no new transmission).


### 4.1.3. State Transition Dynamics

We first characterize the state transition of each component.(
1) Transmission Set Dynamics. Let action a(t)∈A(s(t)) denote the link admitted to the transmission set. Denote pzl(t)∣L(t),a(t) as the probability that only link l∈L(t)∪a(t) finishes transmission during slot t and pz⌀(t)∣L(t),a(t) as the probability that no link finishes transmission during slot t. The time index is dropped when there is no ambiguity. For abbreviation, we denote the transition kernel as pL′∣L,a:=pLt+1∣Lt,at,(4)pzl∣L,a=βl∏k∈L∪ak≠l1-βk,∀l∈L∪a,pz⌀∣L,a=∏l∈L∪a1-βlifL∪a≠⌀,1ifL∪a=⌀.DefineD(L)≜L∪a∖L′; then we can get(5)pL′∣L,a=pzl∣L,aifDL=l,pz⌀∣L,aifDL=⌀,0otherwise.(
2) Queue Length Dynamics. Considering that EC networks are most suitable for light traffic applications, such as monitoring, we assume that at most one node self-generates a packet during a slot. Let Ii represent a vector with its ith element being 1 and other elements being 0, 1≤i≤N, and let I0 be the zero vector. The probability that only Node i or no node (i=0) self-generates a packet is given by(6)PIi=αi∏j∈V,j≠i1-αjifi∈V,∏j∈V1-αjifi=0, where α(i) is the probability of a self-generated packet arrival for Node i in a time slot and is assumed i.i.d. over time slots.Then the queue evolution can be described by the following cases.Case 1 ((c1): q′=q).
This can happen for two reasons: (c1a) no link transmission affects the queue state and no new exogenous arrival affects the queues and (c1b) some link (i,0,·) destined to the Sink successfully transmits and the source self-generates a new packet:(7)Pc1a=1ΔL=⌀+1ΔL∈Ψ¯L∪a+1ΔL∈ΨL∪a,qdΔL=qmax⁡·PI0+∑qk=qmax⁡,k∈VpIk,Pc1b=1ΔL∈ΨL∪a,sΔL=i,dΔL=0·PIi.Case 2 ((c2): q′=q+Ij, j∈V).
This case includes two possibilities: (c2a) some SISO link (·,j,⌀) that is directed to Node j successfully transmits and the source self-generates a new packet and (c2b) no link transmission affects the queue state and there is a new exogenous packet arrival to Node j:(8)Pc2aj=1ΔL∈ΨL∪a,dΔL=j·PIsΔL,Pc2bj=1ΔL=⌀+1ΔL∈Ψ¯L∪a+1ΔL∈ΨL∪a,qdΔL=qmax·PIj.Case 3 ((c3): q′=q-Ii,i∈V).
This happens because some link(i,0,·) destined to the Sink successfully transmits and no new exogenous arrival affects the queues:(9)Pc3i=1ΔL∈ΨL∪a,ΔL=i,0,··PI0+∑qk′=qmax⁡,k∈VPIk.Case 4 ((c4): q′=q-Ii+Ij,i,j∈V,i≠j).
This case includes two possibilities: (c4a) some SISO link (i,j,⌀) successfully transmits and there was no change in queue due to new exogenous arrival and (c4b) link (i,0,·) successfully transmits and Node j self-generates a new packet:(10)Pc4ai,j=1ΔL∈ΨL∪a,ΔL=i,j,⌀·PI0+∑qk′=qmax⁡,k∈VPIk,Pc4bi,j=1ΔL∈ΨL∪a,ΔL=i,0,··PIj.Case 5 ((c5): q′=q-Ii+2Ij,i,j∈V,i≠j).
This occurs because the SISO link(i,j,⌀) successfully transmits and Node j self-generates a new packet:(11)Pc5i,j=1ΔL∈ΨL∪a,ΔL=i,j,⌀·PIj.Case 6 ((c6): q′=q-Ii+Ij+Ik,i,j,k∈V,i≠j≠k).
This occurs because the SISO link(i,j,⌀) successfully transmits and a different Node k self-generates a new packet:(12)Pc6i,j,k=1ΔL∈ΨL∪a,ΔL=i,j,⌀·PIk+1ΔL∈ΨL∪a,ΔL=i,k,⌀·PIj.Therefore, the transition kernel of q(t) is expressed as (23).(
3) Energy Evolution Dynamics. The process e(t) is dictated by transmission energy and receiving energy consumption incurred during a finished link transmission, regardless of success or failure. In the CT case, the cooperators consume additional energy in receiving the broadcast packet initiated by the source and in conducting CT. The transition kernel of e(t) is given in (25).(
4) System Dynamics. The transition matrix of the system states s≜{L,e,q} can be obtained by the following theorem.Theorem 1.
The transition kernel of the EC system,p{s′∣s,a}, is equal to the product of (5), (13), and (14):(13)Pq′∣L′,L,q,a=Pc1a+Pc1bifq′=q,Pc2aj+Pc2bjifq′=q+Ij,j∈V,Pc3iifq′=q-Ii,i∈V,Pc4ai,j+Pc4bi,jifq′=q-Ii+Ij,i,j∈V,Pc5i,jifq′=q-Ii+2Ij,i,j∈V,i≠j,Pc6i,j,kifq′=q-Ii+Ij+Ik,i,j,k∈V,i≠j≠k,0otherwise,(14)Pe′∣L′,L,e,a=1e′=e-Iietx-IjerxifΔL=i,j,⌀∈L∪aso,j∈V∗,1e′=e-IieinitCT-∑k∈HiIkecoCTifΔL=i,0,Hi∈L∪avo,i∈V,1e′=eifΔL=⌀,0otherwise.Proof.
According to the chain rule,p{s′∣s,a} can be expressed as p(q′∣A)·p(e′∣B)·p(L′∣C), where A={(L′,e′,L,q,e,a)}, B={(L′,L,q,e,a)}, and C={(L,q,e,a)}. Further, since q′ and (e′,e) are conditionally independent, given (L′,L,q,a), the first element in the product, p(q′∣A), is reduced to (13). Applying similar arguments to p(e′∣B) and p(L′∣C), Theorem 1 is proved.


### 4.1.4. Expected Total Rewards

During a time slot, the system obtains a rewardg(s,a)=1 if a packet was delivered to the Sink, and g(s,a)=0 otherwise, where s is the current state. Then, with the state space S and the termination states St, for s∈S∖St, we have (15)gs,a≜Er=∑l∈ΨL∪adl=0Pzl∣L,a1ΨL∪a≠⌀. And, for s∈St, g(s,a)=0. The expected total rewards of the process starting from an initial state s, under the policy π, are denoted by(16)Jπs=∑t=1∞gst,at.


### 4.1.5. MDP Formulation

A transmission policy is a series of decision rulesπ=[a(1),a(2),…], where a(t):S(t)→AS(t). The maximum lifetime J∗(s) is given by(17)J∗s=maxπ⁡Jπs.The optimal lifetimeJ∗(s) is the unique solution of the Bellman’s optimality equation [16]:(18)Js=maxa⁡gs,a+∑s′Ps′∣s,aJs′. A policy π∗ is optimal if it achieves the maximum expected lifetime for all starting states; that is,(19)Jπ∗s=J∗s,∀s∈S∖St.


## 4.1.1. Network State Space

The network state is defined ass≜{L,q,e} to include the transmission set L, the queuing level q of each node, and the energy e of each node. Note that the state space is not the Cartesian product of each component’s state space, because they are interactive (e.g., an active link cannot have an empty queue at its source node).The transmission setL(t) includes the links that are active (in transmission) at time t, which must not violate the carrier sensing constraints of the MAC. Note that it does not mean that all the receivers of links in the transmission set will receive successfully. Denote the state space of L as L. This component includes the collisions in the MAC layer. We denote the links that are free of collision as Φ(L)⊂L. Φ(L) is deterministic given L, and Φ=Φso∪Φvo.To findL, it is equivalent to find the matchings of a graph. Given a graph G=(V,E), a matching M(G) in G is a set of nonadjacent edges (i.e., no two edges share a common vertex), implying L∈{M(G)}. Further, the MAC layer CSMA adds constraints on L, where for any two links l1,l2∈L, the sources of the two links (s(l1),s(l2)) must be out of carrier sensing (CS) range of each other. Therefore, L is determined by graph G and the binary hearing matrix H=[hij]i,j∈V of the network, where the element hi,j=1 if and only if (iff) Node i and Node j are within CS range of each other. Though enumerating matchings of a graph isNP-complete, Bron-Kerbosch algorithm has been shown to be one of the fastest [42] and has been used in this paper.


## 4.1.2. Decision Epochs and Action Space

A decision epoch corresponds to the beginning of a time slot. The set of decision epochs are denoted by{1,2,…,T}. When T is finite (infinite), the decision problem is referred to as a finite-horizon (infinite-horizon) problem. An action, a(t), is to admit a new link to the “remaining” transmission set L(t), which comprises those links that did not complete transmission during slot t-1. Note that L(t)⊂L(t-1)∪a(t-1). The action space at time t when the system state is s(t) is represented by(3)Ast=l∈E:qslt>0,l∉Lt,Lt∪l⊂L,Esuf,where Esuf indicates ei≥ecom(i,l), ∀i∈l. Therefore, a link l can join L(t) iff its source has a nonempty queue, L(t)∪l is also a transmission set, and the participating nodes have enough energy. Note that it is assumed that at most one link can be admitted to L(t), because ΔT is small. Also, note that the null set ⌀∈A(s(t)). As a result, an action can be either a “CT” link, a “non-CT” link, or null (no new transmission).


## 4.1.3. State Transition Dynamics

We first characterize the state transition of each component.(
1) Transmission Set Dynamics. Let action a(t)∈A(s(t)) denote the link admitted to the transmission set. Denote pzl(t)∣L(t),a(t) as the probability that only link l∈L(t)∪a(t) finishes transmission during slot t and pz⌀(t)∣L(t),a(t) as the probability that no link finishes transmission during slot t. The time index is dropped when there is no ambiguity. For abbreviation, we denote the transition kernel as pL′∣L,a:=pLt+1∣Lt,at,(4)pzl∣L,a=βl∏k∈L∪ak≠l1-βk,∀l∈L∪a,pz⌀∣L,a=∏l∈L∪a1-βlifL∪a≠⌀,1ifL∪a=⌀.DefineD(L)≜L∪a∖L′; then we can get(5)pL′∣L,a=pzl∣L,aifDL=l,pz⌀∣L,aifDL=⌀,0otherwise.(
2) Queue Length Dynamics. Considering that EC networks are most suitable for light traffic applications, such as monitoring, we assume that at most one node self-generates a packet during a slot. Let Ii represent a vector with its ith element being 1 and other elements being 0, 1≤i≤N, and let I0 be the zero vector. The probability that only Node i or no node (i=0) self-generates a packet is given by(6)PIi=αi∏j∈V,j≠i1-αjifi∈V,∏j∈V1-αjifi=0, where α(i) is the probability of a self-generated packet arrival for Node i in a time slot and is assumed i.i.d. over time slots.Then the queue evolution can be described by the following cases.Case 1 ((c1): q′=q).
This can happen for two reasons: (c1a) no link transmission affects the queue state and no new exogenous arrival affects the queues and (c1b) some link (i,0,·) destined to the Sink successfully transmits and the source self-generates a new packet:(7)Pc1a=1ΔL=⌀+1ΔL∈Ψ¯L∪a+1ΔL∈ΨL∪a,qdΔL=qmax⁡·PI0+∑qk=qmax⁡,k∈VpIk,Pc1b=1ΔL∈ΨL∪a,sΔL=i,dΔL=0·PIi.Case 2 ((c2): q′=q+Ij, j∈V).
This case includes two possibilities: (c2a) some SISO link (·,j,⌀) that is directed to Node j successfully transmits and the source self-generates a new packet and (c2b) no link transmission affects the queue state and there is a new exogenous packet arrival to Node j:(8)Pc2aj=1ΔL∈ΨL∪a,dΔL=j·PIsΔL,Pc2bj=1ΔL=⌀+1ΔL∈Ψ¯L∪a+1ΔL∈ΨL∪a,qdΔL=qmax·PIj.Case 3 ((c3): q′=q-Ii,i∈V).
This happens because some link(i,0,·) destined to the Sink successfully transmits and no new exogenous arrival affects the queues:(9)Pc3i=1ΔL∈ΨL∪a,ΔL=i,0,··PI0+∑qk′=qmax⁡,k∈VPIk.Case 4 ((c4): q′=q-Ii+Ij,i,j∈V,i≠j).
This case includes two possibilities: (c4a) some SISO link (i,j,⌀) successfully transmits and there was no change in queue due to new exogenous arrival and (c4b) link (i,0,·) successfully transmits and Node j self-generates a new packet:(10)Pc4ai,j=1ΔL∈ΨL∪a,ΔL=i,j,⌀·PI0+∑qk′=qmax⁡,k∈VPIk,Pc4bi,j=1ΔL∈ΨL∪a,ΔL=i,0,··PIj.Case 5 ((c5): q′=q-Ii+2Ij,i,j∈V,i≠j).
This occurs because the SISO link(i,j,⌀) successfully transmits and Node j self-generates a new packet:(11)Pc5i,j=1ΔL∈ΨL∪a,ΔL=i,j,⌀·PIj.Case 6 ((c6): q′=q-Ii+Ij+Ik,i,j,k∈V,i≠j≠k).
This occurs because the SISO link(i,j,⌀) successfully transmits and a different Node k self-generates a new packet:(12)Pc6i,j,k=1ΔL∈ΨL∪a,ΔL=i,j,⌀·PIk+1ΔL∈ΨL∪a,ΔL=i,k,⌀·PIj.Therefore, the transition kernel of q(t) is expressed as (23).(
3) Energy Evolution Dynamics. The process e(t) is dictated by transmission energy and receiving energy consumption incurred during a finished link transmission, regardless of success or failure. In the CT case, the cooperators consume additional energy in receiving the broadcast packet initiated by the source and in conducting CT. The transition kernel of e(t) is given in (25).(
4) System Dynamics. The transition matrix of the system states s≜{L,e,q} can be obtained by the following theorem.Theorem 1.
The transition kernel of the EC system,p{s′∣s,a}, is equal to the product of (5), (13), and (14):(13)Pq′∣L′,L,q,a=Pc1a+Pc1bifq′=q,Pc2aj+Pc2bjifq′=q+Ij,j∈V,Pc3iifq′=q-Ii,i∈V,Pc4ai,j+Pc4bi,jifq′=q-Ii+Ij,i,j∈V,Pc5i,jifq′=q-Ii+2Ij,i,j∈V,i≠j,Pc6i,j,kifq′=q-Ii+Ij+Ik,i,j,k∈V,i≠j≠k,0otherwise,(14)Pe′∣L′,L,e,a=1e′=e-Iietx-IjerxifΔL=i,j,⌀∈L∪aso,j∈V∗,1e′=e-IieinitCT-∑k∈HiIkecoCTifΔL=i,0,Hi∈L∪avo,i∈V,1e′=eifΔL=⌀,0otherwise.Proof.
According to the chain rule,p{s′∣s,a} can be expressed as p(q′∣A)·p(e′∣B)·p(L′∣C), where A={(L′,e′,L,q,e,a)}, B={(L′,L,q,e,a)}, and C={(L,q,e,a)}. Further, since q′ and (e′,e) are conditionally independent, given (L′,L,q,a), the first element in the product, p(q′∣A), is reduced to (13). Applying similar arguments to p(e′∣B) and p(L′∣C), Theorem 1 is proved.


## 4.1.4. Expected Total Rewards

During a time slot, the system obtains a rewardg(s,a)=1 if a packet was delivered to the Sink, and g(s,a)=0 otherwise, where s is the current state. Then, with the state space S and the termination states St, for s∈S∖St, we have (15)gs,a≜Er=∑l∈ΨL∪adl=0Pzl∣L,a1ΨL∪a≠⌀. And, for s∈St, g(s,a)=0. The expected total rewards of the process starting from an initial state s, under the policy π, are denoted by(16)Jπs=∑t=1∞gst,at.


## 4.1.5. MDP Formulation

A transmission policy is a series of decision rulesπ=[a(1),a(2),…], where a(t):S(t)→AS(t). The maximum lifetime J∗(s) is given by(17)J∗s=maxπ⁡Jπs.The optimal lifetimeJ∗(s) is the unique solution of the Bellman’s optimality equation [16]:(18)Js=maxa⁡gs,a+∑s′Ps′∣s,aJs′. A policy π∗ is optimal if it achieves the maximum expected lifetime for all starting states; that is,(19)Jπ∗s=J∗s,∀s∈S∖St.


## 4.2. Energy Harvesting Networks

The link set dynamics in the EH network are the same as in the EC network. In this section, we give a more general expression for the queue system, relaxing the low-traffic assumption in the previous sections. EH networks may provide better support for high traffic load than EC networks [43].In a uniform form, the evolutions ofq and e are governed by the following balance equations:(20)ψit+1=ψit+RiMitΓit+σit,where i∈{q,e}, ψ(q)=q, and ψ(e)=e; and R(i) and M(i) will be defined below.


### 4.2.1. Queue Length Dynamics

In (20), M(q) is a E×E diagonal matrix. The diagonal element Ml(q)=1 if the transmission of link l iscompleted andsuccessful (a finished transmission, while always consuming energy, is not necessarily successfully decoded by the receiver, because of collision due to hidden terminals; in case of failure, the packet remains in the queue of the transmitter), and Ml(q)=0 otherwise. Note that it is assumed ∑l∈E‍Ml(q)≤1; that is, at most one link can finish transmission. Γ(q) is the transmission schedule vector, which satisfies Γl(q)=1, ∀l∈L∪a, and Γl(q)=0 otherwise. R(q) is the N×E routing matrix, whose element in the ith row and lth column is(21)rilq=1ifdl=iand  Nodeiis  not  Sink,-1ifsl=i,0otherwise.σ(q) is an N×1 vector representing the number of self-generated packets and σi(q)=fi.LetIi represent a vector with its ith element being 1 and other elements being 0, 1≤i≤N, and let I0 be the zero vector. Denote V(q)(t) as the nodes whose queue is not full at time t and define the difference(22)Dq=q′-qifDL=⌀,q′-q+IsDL-IdDLifDL∈ΦsoL∪a,q′-q+IsDLifDL∈ΦvoL∪a.Then considering exogenous packet arrivals, the queue status is updated as follows:(23)pq′∣L′,L,q,a=∏i∈Vαi1Diq=1+1-αi1Diq=0,i∈VqifDL∈ΦsoL∪a,ΦvoL∪a,⌀,0otherwise,where 1· is the indicator function.


### 4.2.2. Energy Evolutions

Using analysis similar to that for the queue in Section4.2.1, denote V(e)(t) as the nodes whose battery is not full at time t and define(24)De=e′-eifDL=⌀,e′-e+IsDL·etx+IdDL·erxifDL∈Eso,e′-e+IsDLeinitCT+∑k∈CDLIkeco⁡CTifDL∈Evo.Then, considering the influence of energy harvesting, we get(25)pe′∣L′,L,e,a=∏i∈Vhi1Die=1+1-hi1Die=0,i∈VeifDL∈Eso,Evo,⌀,0otherwise.


### 4.2.3. System Dynamics

Similar to the EC network, the transition matrix of the system statess≜{L,e,q} for EH network can be obtained by the following theorem.Theorem 2.
The transition kernel of the EH system,p{s′∣s,a}, is equal to the product of (5), (23), and (25).


## 4.2.1. Queue Length Dynamics

In (20), M(q) is a E×E diagonal matrix. The diagonal element Ml(q)=1 if the transmission of link l iscompleted andsuccessful (a finished transmission, while always consuming energy, is not necessarily successfully decoded by the receiver, because of collision due to hidden terminals; in case of failure, the packet remains in the queue of the transmitter), and Ml(q)=0 otherwise. Note that it is assumed ∑l∈E‍Ml(q)≤1; that is, at most one link can finish transmission. Γ(q) is the transmission schedule vector, which satisfies Γl(q)=1, ∀l∈L∪a, and Γl(q)=0 otherwise. R(q) is the N×E routing matrix, whose element in the ith row and lth column is(21)rilq=1ifdl=iand  Nodeiis  not  Sink,-1ifsl=i,0otherwise.σ(q) is an N×1 vector representing the number of self-generated packets and σi(q)=fi.LetIi represent a vector with its ith element being 1 and other elements being 0, 1≤i≤N, and let I0 be the zero vector. Denote V(q)(t) as the nodes whose queue is not full at time t and define the difference(22)Dq=q′-qifDL=⌀,q′-q+IsDL-IdDLifDL∈ΦsoL∪a,q′-q+IsDLifDL∈ΦvoL∪a.Then considering exogenous packet arrivals, the queue status is updated as follows:(23)pq′∣L′,L,q,a=∏i∈Vαi1Diq=1+1-αi1Diq=0,i∈VqifDL∈ΦsoL∪a,ΦvoL∪a,⌀,0otherwise,where 1· is the indicator function.


## 4.2.2. Energy Evolutions

Using analysis similar to that for the queue in Section4.2.1, denote V(e)(t) as the nodes whose battery is not full at time t and define(24)De=e′-eifDL=⌀,e′-e+IsDL·etx+IdDL·erxifDL∈Eso,e′-e+IsDLeinitCT+∑k∈CDLIkeco⁡CTifDL∈Evo.Then, considering the influence of energy harvesting, we get(25)pe′∣L′,L,e,a=∏i∈Vhi1Die=1+1-hi1Die=0,i∈VeifDL∈Eso,Evo,⌀,0otherwise.


## 4.2.3. System Dynamics

Similar to the EC network, the transition matrix of the system statess≜{L,e,q} for EH network can be obtained by the following theorem.Theorem 2.
The transition kernel of the EH system,p{s′∣s,a}, is equal to the product of (5), (23), and (25).


## 4.3.  Performance Criterion and Reward Function

Letvπ(s) denote the expected total reward, given an initial state s and a policy π (a series of decisions),(26)vπs=limT→∞⁡Esπ∑t=1Trst,at,where T is the decision-making horizon length.The definition of the reward function,r(s,a), depends on application requirements and can be subjective to network designers. We define two reward functions as follows:(27)r1s,a=∑l∈ΦL∪adl=0Pzl∣L,a1ΦL∪a≠⌀,(28)r2s,a=ω1r1s,a-ω21s∈SD.In (27), a unit of reward is obtained if a packet is successfully received by the Sink. Equation (28) is a weighted sum of the rewards from delivered packets and the penalty from a QoS degradation (e.g., SD are states where any node’s energy drops to zero).Since the state space and the action space are finite, with a finite reward function, (26) can be expressed as(29)vλπs=Esπ∑t=1∞λt-1rst,at, where it is assumed that T is geometrically distributed with parameter λ, 0≤λ<1. Thus, the expected value ofT is 1/(1-λ). The parameter λ is the discount factor, which measures the present value of one unit of reward received one period in the future [16].


## 4.4. Optimality Equations

The optimality equation for the expected total discounted reward criteria given an initial state, a.k.a. Bellman’s equation, is given as follows:(30)vλ∗s=maxa∈As⁡rs,a+∑s′λps′∣s,avλ∗s′.


## 5. Computational Methods

In this section, we present the offline computational algorithms for the EC and EH networks. The methods seek to find the global optimum and do not require any information exchange among the nodes.


### 5.1. Energy Constrained Networks

Considering that the total energies are nonincreasing, we group the states according to the sum energy (in decreasing order) and solve the stages backwards. The transmission sets are computed using the Bron-Kerbosch algorithm [42], which is widely used and considered as one of the fastest. In each stage, the computation of the energy and queue state spaces is similar to theBin-Ball problem (theBin-Ball problem refers to enumerating the ways of allocating n1 balls into n2 bins. In our problem, the “bins” are the nodes and the “balls” are the total energies or queued packets). For instance, the number of ways to allocate n1 units of energies into n2 nodes with minimum energy requirement of θ=eth+1 (in S∖St) is given by(31)∑l=0n2-1ln2ln2+n1-n2θ-lemax⁡+1-θ-1n2-1.For an integerm (stage), the set of states Sm is defined as(32)Sm=L,e,q∣∑i∈Vei=m,m=Nθ,…,Nemax⁡.For eachSm and s∈Sm, we have(33)J∗s=maxa∈As⁡gs,a+∑s′Ps′∣s,aJ∗s′=maxa∈As⁡gs,a+∑s′∈SNθ∪⋯∪Sm-1Ps′∣s,aJ∗s′+∑s′∈SmPs′∣s,aJ∗s′,s∈Sm. Therefore, we formulate a mixed integer linear programming (MILP) problem (Subproblem-1):(34)Minimize∑s∈SmJss.t.Js-∑s′∈SmPs′∣s,aJs′≥bs,a,Js∈Z+,s∈Sm, where b(s,a) are obtained from previously computed stages:(35)bs,a=gs,a+∑s′∈SNθ∪⋯∪Sm-1Ps′∣s,aJ∗s′. The computational method is summarized in Algorithm 1.Algorithm 1:SSP-MILP algorithm.
input:
N
θ = Minimum Sum energy in states S∖St;
N
e
max
⁡ = Maximum Sum energy in states S∖St;
J
(
s
) = 0, ∀s∈St;
output: J(s), ∀s∈S∖St;
begin
Find transmission link set using Bron-Kerbosch alg.;
m←Nθ;
while  m≤Nemax⁡  do
Solve Bin-ball problem to obtainSm.
Solve MILP for Subproblem-1 to obtainJ(s), s∈Sm.
m←m+1.
end
end


### 5.2. Energy Harvesting Networks

The following theorem provides the basis for a linear programming (LP) approach to solve the MDP problem. The proof can be found in [16].Theorem 3.
Suppose there existsv, for which v≥T(v); then v≥vλ∗. T is the nonlinear operator defined as T(v)≡supalla{ra+λPav}.From the observation in Theorem3, the primal LP is constructed as follows.Primal LP.Consider the following:(36)Minimize∑s∈Sηsvss.t.vs-∑s′∈SλPs′∣s,avs′≥rs,a for all a∈As and all s∈S. η(s) are chosen to be positive scalars that satisfy ∑s∈S‍η(s)=1.However, it is more informative to solve this model using its dual LP [16], which has less rows in the constraints matrix.Dual LP.Consider the following:(37)Maximize∑s∈S∑a∈Asrs,axs,as.t.∑a∈Asxs,a-∑s′∈S∑a∈As′λPs∣s′,axs′,a=ηs and x(s,a)≥0 for a∈A(s) and s∈S.Note that the primal LP has∑s∈S‍As rows and S columns, while the dual LP has S rows and ∑s∈S‍As columns. In [44], it is shown that the value function for each state in the primal LP is equal to the dual price (the dual price (a.k.a. shadow price) of a constraint is instantaneous change in the objective function by relaxing the constraint by one unit) corresponding to the constraint associated with the state in the dual LP. Thus, the value function associated with a given initial state of the primal LP is obtained by firstly solving the dual problem and then finding the dual price of the corresponding constraint.


### 5.3. Computation Complexity of Large-Scale MDP

It has been shown that MDP is solvable in polynomial time by successive approximation methods such as value iteration, without the existence of a known strongly polynomial time algorithm [45]. Notoriously, when dealing with large-scale MDP, the computation of iterations may appear prohibitive. In contrast, computation based on large-scale linear programming is fast solvable with the state-of-the-art LP solver, in polynomial time depending only on the size of A (the constraint matrix in Ax≤b) [46]. Also, the practical fast ϵ-approximation algorithm is most useful for solving LP with exponentially many constraints to trade off solution accuracy for time [47].In this paper, we do not target finding the optimal policy. However, we note that standard policy iteration algorithms and their various modifications can be applied offline to obtain the optimal stationary policies, at the cost of iterations over the whole state space. In addition, policies obtained from this network model would require a network centralizer to conduct the execution, which is less appealing than a distributed approximate optimal policy and which is out of the scope of this paper.


## 5.1. Energy Constrained Networks

Considering that the total energies are nonincreasing, we group the states according to the sum energy (in decreasing order) and solve the stages backwards. The transmission sets are computed using the Bron-Kerbosch algorithm [42], which is widely used and considered as one of the fastest. In each stage, the computation of the energy and queue state spaces is similar to theBin-Ball problem (theBin-Ball problem refers to enumerating the ways of allocating n1 balls into n2 bins. In our problem, the “bins” are the nodes and the “balls” are the total energies or queued packets). For instance, the number of ways to allocate n1 units of energies into n2 nodes with minimum energy requirement of θ=eth+1 (in S∖St) is given by(31)∑l=0n2-1ln2ln2+n1-n2θ-lemax⁡+1-θ-1n2-1.For an integerm (stage), the set of states Sm is defined as(32)Sm=L,e,q∣∑i∈Vei=m,m=Nθ,…,Nemax⁡.For eachSm and s∈Sm, we have(33)J∗s=maxa∈As⁡gs,a+∑s′Ps′∣s,aJ∗s′=maxa∈As⁡gs,a+∑s′∈SNθ∪⋯∪Sm-1Ps′∣s,aJ∗s′+∑s′∈SmPs′∣s,aJ∗s′,s∈Sm. Therefore, we formulate a mixed integer linear programming (MILP) problem (Subproblem-1):(34)Minimize∑s∈SmJss.t.Js-∑s′∈SmPs′∣s,aJs′≥bs,a,Js∈Z+,s∈Sm, where b(s,a) are obtained from previously computed stages:(35)bs,a=gs,a+∑s′∈SNθ∪⋯∪Sm-1Ps′∣s,aJ∗s′. The computational method is summarized in Algorithm 1.Algorithm 1:SSP-MILP algorithm.
input:
N
θ = Minimum Sum energy in states S∖St;
N
e
max
⁡ = Maximum Sum energy in states S∖St;
J
(
s
) = 0, ∀s∈St;
output: J(s), ∀s∈S∖St;
begin
Find transmission link set using Bron-Kerbosch alg.;
m←Nθ;
while  m≤Nemax⁡  do
Solve Bin-ball problem to obtainSm.
Solve MILP for Subproblem-1 to obtainJ(s), s∈Sm.
m←m+1.
end
end


## 5.2. Energy Harvesting Networks

The following theorem provides the basis for a linear programming (LP) approach to solve the MDP problem. The proof can be found in [16].Theorem 3.
Suppose there existsv, for which v≥T(v); then v≥vλ∗. T is the nonlinear operator defined as T(v)≡supalla{ra+λPav}.From the observation in Theorem3, the primal LP is constructed as follows.Primal LP.Consider the following:(36)Minimize∑s∈Sηsvss.t.vs-∑s′∈SλPs′∣s,avs′≥rs,a for all a∈As and all s∈S. η(s) are chosen to be positive scalars that satisfy ∑s∈S‍η(s)=1.However, it is more informative to solve this model using its dual LP [16], which has less rows in the constraints matrix.Dual LP.Consider the following:(37)Maximize∑s∈S∑a∈Asrs,axs,as.t.∑a∈Asxs,a-∑s′∈S∑a∈As′λPs∣s′,axs′,a=ηs and x(s,a)≥0 for a∈A(s) and s∈S.Note that the primal LP has∑s∈S‍As rows and S columns, while the dual LP has S rows and ∑s∈S‍As columns. In [44], it is shown that the value function for each state in the primal LP is equal to the dual price (the dual price (a.k.a. shadow price) of a constraint is instantaneous change in the objective function by relaxing the constraint by one unit) corresponding to the constraint associated with the state in the dual LP. Thus, the value function associated with a given initial state of the primal LP is obtained by firstly solving the dual problem and then finding the dual price of the corresponding constraint.


## 5.3. Computation Complexity of Large-Scale MDP

It has been shown that MDP is solvable in polynomial time by successive approximation methods such as value iteration, without the existence of a known strongly polynomial time algorithm [45]. Notoriously, when dealing with large-scale MDP, the computation of iterations may appear prohibitive. In contrast, computation based on large-scale linear programming is fast solvable with the state-of-the-art LP solver, in polynomial time depending only on the size of A (the constraint matrix in Ax≤b) [46]. Also, the practical fast ϵ-approximation algorithm is most useful for solving LP with exponentially many constraints to trade off solution accuracy for time [47].In this paper, we do not target finding the optimal policy. However, we note that standard policy iteration algorithms and their various modifications can be applied offline to obtain the optimal stationary policies, at the cost of iterations over the whole state space. In addition, policies obtained from this network model would require a network centralizer to conduct the execution, which is less appealing than a distributed approximate optimal policy and which is out of the scope of this paper.


## 6. Numerical Evaluations

We present some numerical results on the optimal lifetime for the EC network and the expected total discounted reward for the EH network, under the 2-hopfunnel topology (Nodes A, B, C, and D and the Sink), as in Figure 1. Besides the computational limitation inherent to MDP, the motivation for choosing a small network is as follows. It is observed from our previous work [10] that under duty-cycling, a large network is typically reduced into isolated small networks in the time domain, to reduce interference and collisions. This observation renders the possibility to analyze a small tree topology towards the whole network.


### 6.1. Energy Constrained Networks

In this section, we evaluate the optimal lifetime of the EH network and impacts from certain parameters. Note that the funnel topology (with the existence of the bottleneck Node C) captures the essence of the energy hole problem.Figure3 depicts the optimal lifetime for non-CT and CT networks. We observe the lifetimes are linearly increasing with the battery capacity. We also observe that the performance of CT network is significantly higher than that of the non-CT network. For example, with battery capacity of 10 units, the lifetime improvement factor of CT network is 1.89 with 1 cooperator. We assume that either one or two cooperators are required to reach the Sink. This is motivated by the fact that theory [32] predicts that one cooperator can double the range for certain path loss exponents, but our testbed experiment shows that at least two cooperators are needed to double the range [8]. Considering our VMISO link model in (1), we can show that two helpers (Csl=2) are required for double range instead of one helper, if the path loss exponent increases by a factor log⁡(G3)/log⁡(G2). In practice, the number of cooperators required to conduct CT range extension is regulated by the channel status and different CT physical layer techniques; an efficient protocol should select just enough cooperators to avoid energy overuse. The lifetime with larger battery capacities can be obtained from linear regression. From the slope of the extrapolated lines (not shown), the lifetime growth rate with respect to battery capacity is 1.0 for non-CT, 1.6 for CT with 2 cooperators, and 2.1 for CT with 1 cooperator. Therefore, we conclude that CT gives less of an advantage in terms of lifetime, if more cooperators are required for the same factor of range extension.Figure 3
Optimal lifetime for non-CT network and CT network, as battery capacity varies.N=4 (number of nodes). NH=1 or 2 (required number of cooperators). eth=1, etx=erx=1, einitCT=1, ecoCT=2, qmax⁡=1.Figure4 shows the computed lifetime for different packet arrival rates (PARs). The PAR is normalized with the packet length, that is, the number of new exogenous packets per node during a packet duration. The PARs where the curves start to become flat represent the PAR thresholds, beyond which the numerical results are accurate. Figure 4 demonstrates that our model is accurate for a very large range of arrival rates (<0.4). For example, if a node generates a packet every 100 seconds and the packet transmission time is 100 ms, then the PAR is 0.001, well below 0.4. In other words, the queue model assumption is valid as long as the application generates less than 4 packets per node per second.Figure 4
Lifetime for non-CT network and CT network, as the normalized packet arrival rate (PAR) varies.N=4, NH=2. eth=1, etx=erx=1, einitCT=1, eco⁡CT=2, qmax=1.


### 6.2. Energy Harvesting Networks

In this section, we evaluate the expected total discounted reward and the impacts from certain parameters. The reward function in (27) is used for plotting Figures 5, 6, and 7, while (28) is used for Figure 8.Figure 5
The effect of discount factorλ. α=0.1, γ=0.01, emax⁡=4, qmax⁡=1.Figure 6
The effect of energy harvesting rateγ. α=0.1, λ=0.9999 or 0.99999, emax⁡=4, qmax⁡=1.Figure 7
The effect of packet arrival rateα. λ=0.9999, γ=0.02, emax⁡=4.Figure 8
The effect of weight factorω1. α=0.1, λ=0.99999, γ=0.02, emax⁡=4.Figure5 shows the expected total discounted reward of non-CT and CT networks, versus different discount factors λ. The decision-making horizon is indicated by 1/(1-λ) time units. The system parameters are α=0.1, emax=4, qmax=1, etx=erx=einitCT=1, and ecoCT=2, where etx and erx represent transmitting/receiving energy, einitCT represents the energy consumption of initiating CT, and ecoCT is the energy consumption of a cooperator. We observe that the rewards increase as λ increases due to an increase in the number of decision epochs, which allows prolonged operation of the network in the optimal states prescribed by the optimal policy. While CT network always outperforms non-CT network (55% to 61% improvement), the curve of the CT network also grows with a steeper rate.Figure6 depicts the expected total discounted reward of non-CT and CT networks versus energy harvesting rate γ, with λ=0.9999 or λ=0.99999. Other system parameters are the same as used in Figure 5. We observe that, for both non-CT and CT network, the rewards increase linearly when γ is below 0.01. Then the curves grow with a slower rate, before the performances of non-CT and CT networks start to converge when the value of γ reaches a threshold value γth. For λ=0.9999, γth=0.04, and for λ=0.99999, γth=0.07. This threshold is related to both energy harvesting rate and battery capacity. High harvesting rate, with which packet transmission opportunities are less constrained by energy level, diminishes the benefits of CT. However, in practice, when harvesting rate is not large enough, the CT network still provides a significant gain over the non-CT network, as shown in the figure.Figure7 shows the expected total discounted reward of non-CT and CT networks versus exogenous packet arrival rate α, with qmax⁡=1 or qmax⁡=2. The system parameters are λ=0.9999 and γ=0.02. It can be seen that when the offered traffic load (α) increases, while not saturating the networks, the rewards show a linear increase. When α is large enough, the rewards are bottlenecked by the queue capacity. We also observe that the reward of non-CT shows slight instability between α=0.01 and 0.02, between which the rewards slightly decrease, for both qmax⁡=1 and qmax⁡=2. We did not explain this observation. However, the CT network does not show this behavior.Figure8 gives an example that the calculated benchmark of performance is highly affected by the choice of reward function. The network designer can choose a reward function according to a particular QoS requirement. The x-axis is the preference weighting factor ω1 in the reward function in (28). Note that ω2=1-ω1 represents the significance of an occurrence of QoS degradation. When a certain application deems a state with a node having zero energy as a severe situation, both non-CT and CT networks will be conservative in initiating a packet transmission, limiting the packets delivered in a given time horizon. On the other hand, the value functions increase as the significance relaxes. Again, CT network still outperforms non-CT network in both magnitude and rate in all cases.In Figure9, we evaluate the effect of the CT overhead on the expected total discounted reward of the CT network, with different preference weighting factors ω1=0.1,0.5,0.9. The expected total discounted rewards of the non-CT network, which are constant, are also plotted for reference. The CT overhead is modeled as an extended packet transmission time, which is a result of the extra preamble symbols in front of the packet payload to achieve diversity and synchronization for the purpose of range extension [12, 48]. Specifically, the horizontal axis in Figure 9 is the CT overhead, quantified in terms of the fraction of the total packet length, from 0 to 10%. For ω1=0.9, at the overhead rate of 0.1 (10%), the CT network outperforms the non-CT network by 38.2%. For the CT network, comparing with the overhead rate of 0, only 2.3% degradation is observed at the overhead rate of 0.1. We note that, in a more practical setting with control packets accounted for, we expect to see a bigger degradation value. However, fortunately it is shown that, even with control packets accounted for, CT still has a significant advantage over non-CT in both small networks [9] and large-scale multihop networks [13].Figure 9
The effect of CT overhead rate. Weight factorsω1=0.1,0.5,0.9, α=0.1, λ=0.99999, γ=0.02, emax⁡=4.


## 6.1. Energy Constrained Networks

In this section, we evaluate the optimal lifetime of the EH network and impacts from certain parameters. Note that the funnel topology (with the existence of the bottleneck Node C) captures the essence of the energy hole problem.Figure3 depicts the optimal lifetime for non-CT and CT networks. We observe the lifetimes are linearly increasing with the battery capacity. We also observe that the performance of CT network is significantly higher than that of the non-CT network. For example, with battery capacity of 10 units, the lifetime improvement factor of CT network is 1.89 with 1 cooperator. We assume that either one or two cooperators are required to reach the Sink. This is motivated by the fact that theory [32] predicts that one cooperator can double the range for certain path loss exponents, but our testbed experiment shows that at least two cooperators are needed to double the range [8]. Considering our VMISO link model in (1), we can show that two helpers (Csl=2) are required for double range instead of one helper, if the path loss exponent increases by a factor log⁡(G3)/log⁡(G2). In practice, the number of cooperators required to conduct CT range extension is regulated by the channel status and different CT physical layer techniques; an efficient protocol should select just enough cooperators to avoid energy overuse. The lifetime with larger battery capacities can be obtained from linear regression. From the slope of the extrapolated lines (not shown), the lifetime growth rate with respect to battery capacity is 1.0 for non-CT, 1.6 for CT with 2 cooperators, and 2.1 for CT with 1 cooperator. Therefore, we conclude that CT gives less of an advantage in terms of lifetime, if more cooperators are required for the same factor of range extension.Figure 3
Optimal lifetime for non-CT network and CT network, as battery capacity varies.N=4 (number of nodes). NH=1 or 2 (required number of cooperators). eth=1, etx=erx=1, einitCT=1, ecoCT=2, qmax⁡=1.Figure4 shows the computed lifetime for different packet arrival rates (PARs). The PAR is normalized with the packet length, that is, the number of new exogenous packets per node during a packet duration. The PARs where the curves start to become flat represent the PAR thresholds, beyond which the numerical results are accurate. Figure 4 demonstrates that our model is accurate for a very large range of arrival rates (<0.4). For example, if a node generates a packet every 100 seconds and the packet transmission time is 100 ms, then the PAR is 0.001, well below 0.4. In other words, the queue model assumption is valid as long as the application generates less than 4 packets per node per second.Figure 4
Lifetime for non-CT network and CT network, as the normalized packet arrival rate (PAR) varies.N=4, NH=2. eth=1, etx=erx=1, einitCT=1, eco⁡CT=2, qmax=1.


## 6.2. Energy Harvesting Networks

In this section, we evaluate the expected total discounted reward and the impacts from certain parameters. The reward function in (27) is used for plotting Figures 5, 6, and 7, while (28) is used for Figure 8.Figure 5
The effect of discount factorλ. α=0.1, γ=0.01, emax⁡=4, qmax⁡=1.Figure 6
The effect of energy harvesting rateγ. α=0.1, λ=0.9999 or 0.99999, emax⁡=4, qmax⁡=1.Figure 7
The effect of packet arrival rateα. λ=0.9999, γ=0.02, emax⁡=4.Figure 8
The effect of weight factorω1. α=0.1, λ=0.99999, γ=0.02, emax⁡=4.Figure5 shows the expected total discounted reward of non-CT and CT networks, versus different discount factors λ. The decision-making horizon is indicated by 1/(1-λ) time units. The system parameters are α=0.1, emax=4, qmax=1, etx=erx=einitCT=1, and ecoCT=2, where etx and erx represent transmitting/receiving energy, einitCT represents the energy consumption of initiating CT, and ecoCT is the energy consumption of a cooperator. We observe that the rewards increase as λ increases due to an increase in the number of decision epochs, which allows prolonged operation of the network in the optimal states prescribed by the optimal policy. While CT network always outperforms non-CT network (55% to 61% improvement), the curve of the CT network also grows with a steeper rate.Figure6 depicts the expected total discounted reward of non-CT and CT networks versus energy harvesting rate γ, with λ=0.9999 or λ=0.99999. Other system parameters are the same as used in Figure 5. We observe that, for both non-CT and CT network, the rewards increase linearly when γ is below 0.01. Then the curves grow with a slower rate, before the performances of non-CT and CT networks start to converge when the value of γ reaches a threshold value γth. For λ=0.9999, γth=0.04, and for λ=0.99999, γth=0.07. This threshold is related to both energy harvesting rate and battery capacity. High harvesting rate, with which packet transmission opportunities are less constrained by energy level, diminishes the benefits of CT. However, in practice, when harvesting rate is not large enough, the CT network still provides a significant gain over the non-CT network, as shown in the figure.Figure7 shows the expected total discounted reward of non-CT and CT networks versus exogenous packet arrival rate α, with qmax⁡=1 or qmax⁡=2. The system parameters are λ=0.9999 and γ=0.02. It can be seen that when the offered traffic load (α) increases, while not saturating the networks, the rewards show a linear increase. When α is large enough, the rewards are bottlenecked by the queue capacity. We also observe that the reward of non-CT shows slight instability between α=0.01 and 0.02, between which the rewards slightly decrease, for both qmax⁡=1 and qmax⁡=2. We did not explain this observation. However, the CT network does not show this behavior.Figure8 gives an example that the calculated benchmark of performance is highly affected by the choice of reward function. The network designer can choose a reward function according to a particular QoS requirement. The x-axis is the preference weighting factor ω1 in the reward function in (28). Note that ω2=1-ω1 represents the significance of an occurrence of QoS degradation. When a certain application deems a state with a node having zero energy as a severe situation, both non-CT and CT networks will be conservative in initiating a packet transmission, limiting the packets delivered in a given time horizon. On the other hand, the value functions increase as the significance relaxes. Again, CT network still outperforms non-CT network in both magnitude and rate in all cases.In Figure9, we evaluate the effect of the CT overhead on the expected total discounted reward of the CT network, with different preference weighting factors ω1=0.1,0.5,0.9. The expected total discounted rewards of the non-CT network, which are constant, are also plotted for reference. The CT overhead is modeled as an extended packet transmission time, which is a result of the extra preamble symbols in front of the packet payload to achieve diversity and synchronization for the purpose of range extension [12, 48]. Specifically, the horizontal axis in Figure 9 is the CT overhead, quantified in terms of the fraction of the total packet length, from 0 to 10%. For ω1=0.9, at the overhead rate of 0.1 (10%), the CT network outperforms the non-CT network by 38.2%. For the CT network, comparing with the overhead rate of 0, only 2.3% degradation is observed at the overhead rate of 0.1. We note that, in a more practical setting with control packets accounted for, we expect to see a bigger degradation value. However, fortunately it is shown that, even with control packets accounted for, CT still has a significant advantage over non-CT in both small networks [9] and large-scale multihop networks [13].Figure 9
The effect of CT overhead rate. Weight factorsω1=0.1,0.5,0.9, α=0.1, λ=0.99999, γ=0.02, emax⁡=4.


## 7. Conclusions

Energy harvesting (EH) and energy constrained (EC) multihop wireless sensor networks are modeled under a unified Markovian decision process framework. The model extends the literature by encompassing, from the network interaction point of view, energy harvesting, routing, MAC, and cooperative transmission. The performance of EC and EH networks is characterized by finite-horizon and infinite-horizon problems, respectively. The EC model captures the traffic imbalance due to the “energy hole,” which is a known bottleneck problem limiting network lifetime. In the EH network, the expected total discounted reward model allows one to formulate different performance metrics of interest. The model of EC networks is solved by mixed integer linear programing, capitalizing on the stochastic shortest path nature of the problem, while the model of EH networks is solved by a dual linear programming approach. Numerical results evaluate the sensitivity of several network parameters on the optimal performance of non-CT and CT networks and show the nontrivial impacts of cooperative transmission.



---

*Source: 5258742-2016-02-07.xml*