Skip to main content

Enabling smartphone-based HD video chats by cooperative transmissions in CRNs

Abstract

Smartphones have been equipped with the cameras that can shoot HD videos, and the video chat apps such as Skype are becoming popular. We can, therefore, intuitively predict the trend that users are expecting to enjoy HD video chats via utilizing their smartphones. Most of the current Internet services, however, cannot support the live HD video transmissions because of their low uplink rate. In order to overcome this limit, we propose to offload the uplink transmissions to cooperative users via cognitive radio networks. Specifically, we first divide the video stream into several substreams according to the H.264/SVC standard and the cooperative users’ uplink rates. Then, the cooperative users are selected by employing our proposed optimal multiple stopping method. Finally, the substreams are assigned to the selected cooperative users by a 0-1 Knapsack-based allocation algorithm. The simulation results demonstrate that our proposed scheme can successfully support 720P HD video chats.

1 Introduction

High-definition cameras are currently available on popular smartphones. These cameras have been physically ready to support HD video shootings (such as 720P and 1,080P). According to [1], 720P and 1,080P videos require the transmission speeds of 6 and 12 Mbps, respectively. However, most of the popular Internet services are mainly optimized for downlink transmission. The uplink transmission rate supported by most popular Internet access networks is only 2 Mbps, and the typical upload speed on 3G/4G approximately ranges from 0.45 to 1.93 Mbps [2]. As a result, a single user’s Internet upload speed is generally not enough to support live HD video transmission. Therefore, an open problem is how could users enjoy the HD video chats without upgrading their Internet services, which may be too expensive and/or not necessary for other applications.

In order to enable the smartphone-based HD video chat, we propose to utilize cooperative users to help with the uplink transmission in cognitive radio networks (CRNs). The challenge of this task is how to efficiently select appropriate CR relays for cooperative uplink transmission as the real-time requirement of video chat is very strong. In other works, the sender does not have enough time to look at all the candidate relays to select the best subset for the transmission. The sender has to do quick decisions on relay selection while guaranteeing the HD video transmission with a reasonable low cost. Therefore, our objective is to design an efficient relay selection method, which can support HD video chat with the lowest cost, and a load assignment method, which can optimally distribute the video data among the selected relays. Specifically, the major work and the contributions can be summarized as the following:

  • Overall, we propose a scheme to support smartphone-based HD video chat without upgrading the user’s internet service by utilizing the cooperative CR users’ unlink resource. Simulations verify that our proposed scheme can successfully support 720P HD video chat.

  • Intuitively, the selected relays can use more time to forward packets if the relay selection time can be reduced. According to the requirement of HD video transmission rate and the cooperative CR users’ uplink rate, given a number of time slots, we analyze the relationship between the relay selection time and the relay forwarding time so that the requirement can be satisfied.

  • To the best of our knowledge, this is the first work to formulate an optimal multiple stopping model to solve the problem of relay selection for supporting HD video chat via cooperative transmission. We derive the multiple optimal stopping rules by jointly considering the instantaneous reward (of selected relays) and the expected sum reward (of the unobserved candidate relays). The proposed selection method can select the relays, whose instantaneous reward is at least the same as the expected sum reward.

  • Extensive simulations have been conducted to investigate the impact of the parameters on the performance of the proposed scheme.

The rest of this paper is organized as follows. The most related work is summarized in Section 2. The overview of H.264/SVC, the network model, and the adopted relaying framework are illustrated in Section 3. Section 4 introduces our optimal stopping policy-based cooperative relay selection scheme and the packets assignment algorithm. The results of the performance evaluation are reported in Section 5. The paper is concluded in Section 6.

2 Related work

In recent years, researchers have shown a great interest in HD video technology. Jansen, 2011 [3] studies video-conferencing system for home. Lu, et al. 2010 [4] studies and compares mechanisms and performance of the existing video conference systems. Mirta, et al. 2010 [5] introduces a HD video broadcasting scheme by using scalable video coding so that the devices under various network environments can obtain the video with different resolutions. All of these work are studied under ideal network situations. However, for smartphone users, their uplink rate is generally not enough for HD transmission.

Several current video coding standards such as H.264/AVC, Dirac, AVS China, and VC-1 are introduced in [6]. Schwarz, et al. 2012 [7] provides the comparison of the coding efficiency for these video coding standards. Schwarz, et al. 2007 [8] gives a detailed overview of the scalable video coding extension of the H.264/AVC standard. In our work, we consider H.264/SVC as the coding standard utilized by HD video chat app.

An overview of existing cooperative relaying selection schemes is provided in [9]. They require channel-related information from all the candidate relay nodes, which is inefficient when the number of candidate relays is large or the time for relay selection is limited [10]. For example, channel state information and SNR are required by the relay selection approaches proposed in [11,12], respectively. Moreover, [12] needs to compute the SNR thresholds for all candidate relays.

Jing, et al. 2013 [13] studies the relay selection problem in cognitive networks by applying optimal stopping theory. This approach does not look at the information from all the candidate relay nodes as it scans the candidate secondary user (SU) relays one by one and stops when a suitable relay is identified. As a result, this relay selection process is efficient for single relay selection. As a comparison, our work is the first one to apply optimal multiple stopping theory for multiple relay selection in cognitive radio networks, to our best knowledge. We design an optimal multiple stopping rule to find out the relays with good performance and within a short observation time.

3 Preliminaries

3.1 Overview of H.264/SVC

H.264/SVC standard, an extension of the H.264/AVC standard, is generally applied in HD video stream transmission. The speeds for 720P and 1,080P HD videos are 6 and 12 Mbps, respectively, according to [5]. An SVC video bit stream is essentially constructed with a base layer sub-stream and more than one scalable enhancement layer sub-stream referring to different video layers. If part of the scalable stream is lost, the rest of the sub-stream forms a new valid bit stream with a certain bit-rate and reduced quality level which can be decoded by the target decoder. Hence, SVC can be applied in lossy transmission environments where graceful degradation of rate, format, and power adaptation exists. It is believed that H.264/SVC allows 20% packet loss in the network without affecting the quality [14].

Compared to the bit stream derived by dropping packets, a sub-stream can tolerate a lower temporal resolution (lower frame rate), lower spatial resolution (smaller screen), or lower quality video signal, which are named by these three modalities of scalability: temporal scalability, spatial scalability, and quality scalability.

3.2 System model

We consider a simple time-slotted cooperative transmission model depicted in Figure 1 which consists of a pair of primary users and a number of secondary users. To implement a HD video chat, a primary user (PU) transmitter, denoted by P t , transmits its HD video stream to a primary user receiver, denoted by P r , with the assistance of multiple cooperative users, who are the secondary users (SUs). The n secondary users, represented by S i , i= 1,2,,n, have the ability to help transmit packets for the primary users, which are called candidate relays. When P t needs to transmit packets to P r , m free secondary users, which have favorable channel condition, can be selected as relay nodes by the PU transmitter. The m secondary users finally selected by the PU transmitter are called cooperative relays.

Figure 1
figure 1

Cooperative transmission model.

It is assumed that the multiple cooperative relay selection is performed at each time slot. The duration of a time slot is \(T=\frac {D_{\text {hd}}}{R_{\text {hd}}}\), where D hd represents the amount of the packets to be transmitted for HD video and R hd represents the required transmission rate for HD video.

As illustrated in Figure 2, each time slot T is partitioned into three components T se, T sr, and T rd. Let τ be the time needed for observing a candidate relay. We assume that τ is identical for different SUs and for different time slots. Denoted by S={s 1,s 2,,s n } an observation order/sequence, which is a permutation of the SU candidate relays index set {1,2,,n}. At the beginning of a time slot, P t starts to observe the SU candidate relay nodes sequentially according to the observation sequence. If the reward of the kth observation satisfies a specific criterion, P t stops at the kth SU candidate relay node and then continues to observe candidate relay nodes for the following stops. The whole observation ends after P t stops m times. T se represents the time of selecting relays in each time slot. After the cooperative relay selection process, P t transmits packets to relay node i in T i . The total time for transmission between PU transmitter and the relay nodes is denoted by T sr, which is the sum of T 1,T 2,,T m . Then, the m cooperative relays forward the video stream packets to P r simultaneously in T rd.

Figure 2
figure 2

The time slot structure.

From Figure 2, we can see that:

$$ T=T_{\text{se}}+T_{\text{sr}}+T_{\text{rd}} $$
((1))

T and T sr are given by:

$$ T=\frac{D_{\text{hd}}}{R_{\text{hd}}} \, \ T_{\text{sr}}=\frac{D_{\text{hd}}}{R_{\text{sr}}} $$
((2))

where R sr represents the transmittion rate between the PU transmitter and the cooperative relay node. Then we can get:

$$ T_{\text{se}}+T_{\text{rd}}=T-T_{\text{sr}}=\frac{D_{\text{hd}}}{R_{\text{hd}}}-\frac{D_{\text{hd}}}{R_{\text{sr}}} $$
((3))

During T rd, the cooperative relays forward the video packets to the PU receiver simultaneously. When there are m relays forwarding packets, the estimated value of T rd is given by:

$$ T_{\text{rd}}^{*}=\frac{D_{\text{hd}}}{{mR}_{\text{rd}}^{*}} $$
((4))

where \(R_{\text {rd}}^{*}\) denotes the expected rate of a relay node in a flat Rayleigh fading channel. Then, we can get the estimated observation time and the estimated size of observation sequence n below:

$$ T_{\text{se}}^{*}=\frac{D_{\text{hd}}}{R_{\text{hd}}}-\frac{D_{\text{hd}}}{R_{\text{sr}}}-\frac{D_{\text{hd}}}{{mR}_{\text{rd}}^{*}} $$
((5))
$$ n=\frac{T_{\text{se}}^{*}}{\tau} $$
((6))

Obviously, the size of observation sequence should be larger than the number of cooperative relays. Since the condition that observation time T se is larger than zero should be satisfied, we estimate the value of m with a variable parameter K as:

$$ m^{*}=\text{min}\left\{m|n>m+K,T_{\text{se}}^{*}>0\right\} $$
((7))

There are two types of relaying techniques: decode and forward (DF) and amplify and forward (AF) [15,16]. In DF, a relay node first decodes the encoded data from the source node and then recodes before forwarding it to the destination node [17]. Different from the DF technique, a relay node in AF simply amplifies the signal of the received packets and then delivers them [18,19]. In this paper, we adopt AF to illustrate our designs.

This cooperative video stream transmission scheme can be divided into three steps: (i) the video source selects a group of cooperative users that have the independent Internet access and are willing to help; (ii) after encoding the video in H.264-SVC, the video source distributes the video frames to the cooperative users via CR channels; and (iii) the cooperative users forward the video frames to the destination via their own Internet access networks, then, the video destination can get the HD video after decoding it successfully. Undoubtedly, the whole process is transparent to the destination. The procedure of HD video transmission is depicted in Figure 3.

Figure 3
figure 3

The procedure of HD video transmission.

4 Optimal multiple stopping policy

4.1 Problem formulation

In this paper, we formulate the cooperative transmission problem as multiple stopping problem in CRNs. In order to select m relays for cooperative transmissions, the PU transmitter observes multiple SU candidate relays one by one in an observation sequence. After contacting with a candidate relay, the PU decides whether to make a stop to select the current relay as a cooperative relay. The observation comes to the end if the PU finishes selecting m relays. When PU makes a decision, it considers the reward in the sum case. In other words, we assume the PU has selected l relays before observing ith relay, if PU selects the current relay, we can get a sum reward denoted by \(y_{i}+V_{i}^{m-l-1}\), where y i represents the instantaneous reward of the ith relay and \(V_{i}^{m-l-1}\) represents an expected reward of the ml−1 relays to be selected from the remaining candidate relays; if PU does not select the current relay, we can get an expected sum reward of ml relays to be selected from the remaining candidate relays \(V_{i}^{m-l}\). If the sum reward with selecting the current relay is larger than the one without selecting the current relay, the PU makes a stop and vice versa. Therefore, the multiple relay selection problem can be further formulated as a sequential decision problem which can be solved by the optimal multiple stopping theory.

We first introduce a definition of multiple stopping theory in the sum case. We, then, formulate our cooperative relay selection problem as an optimal multiple stopping problem in the sum case.

Definition 1.

A multiple stopping rule problem in the sum case is defined by two parts:

  • A sequence of random variables, X 1,X 2,, which have a known joint distribution

  • A sequence of sum reward function \({z_{0}^{l}}=y_{0}+V_{0}^{m-l}\), \({z_{1}^{l}}(x_{1})=y_{1}(x_{1})+V_{1}^{m-l},\cdots,{z_{j}^{l}}\left (x_{1},x_{2},\cdots,x_{j}\right)=y_{j}\left (x_{1},x_{2},\cdots,x_{j}\right)+V_{j}^{m-l}\), where y j (x 1,x 2,,x j ) represents the instantaneous reward of j t h relay, \(V_{j}^{m-l}\) represents the expected sum reward of ml relays to be selected in the remaining candidate relays.

The objective is to find out the variables in the sequence such that the sum reward function is maximized.

In order to further investigate the channel quality in our cooperative relay selection problem, we assume that the underlying channel is a flat Rayleigh fading channel [20], in which the instantaneous signal-to-interference-plus-noise ratio (SNR) is received by the destination with an exponential distribution having a probability density function (PDF) \(f(\gamma)=\frac {1}{\overline {\gamma }}e^{-\frac {\gamma }{\overline {\gamma }}}\), where \(\overline {\gamma }\) denotes the average SNR in the channel model. Then, we can model the Rayleigh fading channel as a finite state Markov chain (FSMC) as proposed in [6]. In the FSMC, we partition the SNR into U intervals and then divide SNR into a finite-state space. Thus, the SNR thresholds are denoted by Υ={γ 1=0,γ 2,,γ U ,γ U+1=}. If an instantaneous SNR Γ is in [γ u ,γ u+1), the channel of the SU candidate relay is said to be in state s u . When the PU pair observes the channel of the candidate relay, the probability of the SU being in state s u for the channel can be given by:

$$ q_{u}=\int_{\gamma_{u}}^{\gamma_{u+1}}f(\gamma)d\gamma=e^{-\frac{\gamma_{u}}{\overline{\gamma}}}-e^{-\frac{\gamma_{u+1}}{\overline{\gamma}}},u=1,\cdots,U $$
((8))

In our cooperative transmission problem, the achievable transmission rate is viewed as a metric for the channel quality in wireless communications. Let r k denote the achievable transmission rate between the PU pair and the SU candidate relay node k. According to the Shannon’s theorem [21], r k is calculated as follows:

$$ r_{k}=W\log(1+\gamma_{k}) $$
((9))

where W denotes the bandwidth of the spectrum. Thus, the corresponding date rate can be denoted as R={r 1,r 2,,r U }. We can also model the transmission rate as a discrete random variable, which has a same distribution as the channel state:

$$ Pr\{R=r_{u}\}=q_{u}, u=1,2,\cdots,U $$
((10))

The PU pair acquires the achievable transmission rate of the channel between itself and the SU candidate relay by executing the observation in relay selection. The process of observation is similar to the request-to-send (RTS)/clear-to-send (CTS) access mechanism designed for the 802.11 technique [22,23]. At each observation step, the PU transmitter sends a RTS frame to the candidate relay. Upon receiving of a RTS frame, the candidate relay returns a CTS frame, which includes the information for calculating the achievable rate. We define that X k =R k is the valid transmission rate of the kth observation step. Then, the distribution of X k can be calculated as follows:

$$ \begin{aligned} &p_{u}=Pr\{X_{k}=x_{u}=r_{u}\}=q_{u}\\ \text{for}\ 1&\leq u\leq U, 1\leq k \leq n \end{aligned} $$
((11))

Then, we derive the instantaneous reward function denoted by Y k based on the valid transmission rate and two scaling factors. We denote e(k,l) as the scaling function if the PU pair stops at the kth observed candidate relay node with l selected relays:

$$ e(k,l)=1-\frac{k(m-l)}{M} $$
((12))

where m also means the stopping times for the whole observation and l also means the times we have stopped. M is a variable parameter. From (12), we can see that e(k,l) is an increasing function of k and a decreasing function of l. In other words, a larger number of SU candidate relay nodes, which the PU transmitter has observed, means the lower efficiency of the cooperative relay selection process. More relays, which have been selected by the PU transmitter, means the less number of stops remains. As a result, the efficiency of the cooperative relay selection process becomes higher. Accordingly, the reward after the kth observation attempt with l stops is given by:

$$ Y_{k}=e_{k}X_{k} $$
((13))

After deriving the reward function, we summarize the optimal multiple stopping problem in cooperative relay selection as follows: the PU pair receives the reward Y k after the kth observations, then the PU transmitter makes a decision on whether to make a stop at the current candidate relay. The PU transmitter finally stops the observation till m cooperative relays are all selected. Note that no recall is allowed since the channel quality is changing rapidly in cognitive radio networks due to the complicated conditions such as the mobility of the users.

4.2 Optimal multiple stopping rule

In this subsection, we solve the multiple stopping problems in the sum case by deriving the optimality equations. We also prove that the proposed rule is better than the random stopping rule, in which the PU stops m times randomly.

We denote F i as the probability distribution function of the instantaneous reward Y i after the ith observation. For the finite payoff reward sequence Y 1,,Y n that are independent and identically distributed as depicted in Section 4.1, the optimality equations can be stated as follows for the m-stopping problems. In case m=1, a well-known recursive solution of stopping problem is defined by:

$$ V_{n}:=-\infty $$
((14))
$$ V_{i}:=E\left[Y_{i+1}\vee V_{i+1}|F_{i}\right] $$
((15))

where \({V_{i}^{m}}\) represents the expected sum reward of continue observing for m stopping times after ith observation and denotes the maximum. We need a version of this classical result for stopping times larger than a given stopping time C.

Proposition 1.

Recursive solution of one-stopping problems.

(a) For any time point 0≤kn−1, the stopping time

$$ T(k):=min\{k<i\leq n:Y_{i}>V_{i}\} $$
((16))

is optimal in the sense that for any stopping time we have

$$ E\left[Y_{T(k)}|F_{k}\right]=V_{k}\geq E\left[Y_{T}|F_{k}\right] $$
((17))

(b) For any stopping time C, the stopping time

$$ T(C):=min\left\{C<i\leq n:Y_{i}>V_{i}\right\} $$
((18))

is optimal in the sense that for any stopping time T with C<T conditionally on { C<n} and C=T conditionally on C=n, we have

$$ E\left[Y_{T(C)}|F_{C}\right]=V_{C}\geq E\left[Y_{T}|F_{C}\right] $$
((19))

For m-stopping problems, the following variant of Proposition 1 will also be needed. Let C be a stopping time, let B be measurable with the same probability distribution with Y i and h be measurable with E h(Y i ,B)+<. We can also define recursively for b:

$$ V_{n}(b):=h(Y_{n},b) $$
((20))
$$ V_{i}(b):=E\left[h(Y_{i+1},b)\vee V_{i+1}(b)|F_{i}\right] $$
((21))

Then the stopping time:

$$ T(C,B):=\text{min}\left\{C<i\leq n:h(Y_{i},B)>V_{i}(B_{i})\right\} $$
((22))

is optimal in the sense that for any further stopping time T with C<T conditionally on C<n and C=T conditionally on C=n, we have:

$$ E\left[h(Y_{T(C,B),B)}|F_{C}\right]=V_{C}(B_{C})\geq E\left[h(Y_{T},B)|F_{C}\right] $$
((23))

The idea of solving m-stopping problem is based on the one for solving the one-stopping problem. The lth stopping time T l should be i, if the total expected reward by taking i as a stop is larger than the one, where i will not be a stop. We define the thresholds \(V_{n-m+1}^{m},{V_{i}^{0}}\) and \({V_{i}^{m}}\) by:

$$ V_{n-m+1}^{m}:=-\infty $$
((24))
$$ {V_{i}^{0}}:=0 $$
((25))
$$ {V_{i}^{m}}:=E\left[{\left(Y_{i+1}+V_{i+1}^{m-l}\right)\vee{V_{i+1}^{m}}|F_{i}}\right] $$
((26))

From (26), we know that \(V_{i+1}^{m-1}\) and \(V_{i+1}^{m}\) can be calculated by backwards induction. We compute \({V_{i}^{m}}\) as follows:

$$ \begin{aligned} {V_{i}^{m}}&=E\left[\left(Y_{i+1}+V_{i+1}^{m-1}\right)\vee{V_{i+1}^{m}}|F_{i}\right]\\ &=E\left\{\left[e(k,l)X_{i+1}+V_{i+1}^{m-1}\vee{V_{i+1}^{m}}\right]|F_{i}\right\} \\ &=\sum\limits_{\alpha} \left[e(k,l)x_{\alpha}+V_{i+1}^{m-1}\right]p_{\alpha}+\sum\limits_{\beta} V_{i+1}^{m}p_{\beta} \end{aligned} $$
((27))

where \(\alpha \in \left \{k\mid e(k,l)x_{k}+V_{i+1}^{m-1}>V_{i+1}^{m},k=0,1,2,\cdots,U\right \}\), \(\beta \in \left \{k\mid e(k,l)x_{k}+V_{i+1}^{m-1} < V_{i+1}^{m},k=0,1,2,\cdots,U\right \}\), subject to:

$$ \left\{ \begin{array}{ll} 0\leq \alpha\leq U \\ 0\leq \beta\leq U \\ \alpha+\beta=U \end{array} \right. $$
((28))

Then, we can get the sum reward function:

$$ {z_{i}^{l}}(x_{1},x_{2},\cdots,x_{i})=y_{i}(x_{1},x_{2},\cdots,x_{i})+V_{i}^{m-l} $$
((29))

where y i (x 1,x 2,,x i ) denotes the instantaneous reward after the i th observation. It is optimal to stop if \({z_{i}^{l}}(x_{1},x_{2},\cdots,x_{i})\) is larger than \(V_{i}^{m-l+1}\).

The related threshold stopping times are defined recursively for 1≤mn, 0≤knm by:

$$ T_{1}^{m}(k)\!:=\!\min \left\{ k<i\leq n-m+1|{z_{i}^{1}}(x_{1},x_{2},\cdots,x_{i})\!>\!{V_{i}^{m}}\right\} $$
((30))
$$ \begin{aligned} {T_{l}^{m}}(k)&:=\min\left\{T_{l-1}^{m}(k)\!<\!i\leq n-m+l\ |{z_{i}^{l}}\left(x_{1},x_{2},\cdots,x_{i}\right)\right.\\ &>\left.V_{i}^{m-l+1}\right\}, 2\leq m\leq n. \end{aligned} $$
((31))

As in the one-stopping problem, it holds that \(\{{T_{i}^{m}}(k)\}\) are optimal stopping times.

Proposition 2.

For multiple stopping problem in the sum case, \(\{ {T_{i}^{m}}(k)\}\) are optimal m-stopping times in the sense that for all stopping times k<T 1<<T m n it holds that:

$$ \begin{aligned} E{\left[{\sum\limits_{l=1}^{m}Y_{{T_{l}^{m}}(k)}}\vert F\right]}\geq E\left[{\sum\limits_{l=1}^{m}Y_{T_{l}}}\vert F\right] \end{aligned} $$
((32))

Proof 1.

This proof is by induction in m. As depicted above, {Y i } are independent and identically distributed. In the case m=1, we can get:

$$ \begin{aligned} E\left[ Y_{{T_{1}^{1}}(k)}\vert F\right]&={V_{k}^{1}} \\ &=E\left[{\left(Y_{k+1}+V_{k+1}^{0}\right)\vee{{V_{k}^{1}}}|F}\right] \\ &=E\left\{ Y_{k+1}\vee \cdots E\left[ Y_{n-1}\vee E(Y_{n})\right] |F\right\} \\ &\geq {(n-k)}\cdot \frac{1}{n-k} E\left[ Y_{i}|F\right]=E\left[ Y_{T_{1}}|F\right] \end{aligned} $$
((33))

For the induction step mm+1, by induction hypothesis we obtain:

$$ \begin{aligned} & E\left[ Y_{T_{1}}+\cdots+Y_{T_{m+1}}|F\right] \\ &=E\left[ Y_{T_{1}}|F\left[+E\right] \left[ Y_{T_{2}}+\cdots+Y_{T_{m+1}}|Y_{T_{1}}\right]|F\right] \\ &\leq E\left[ Y_{{T_{1}^{m+1}}(k)}|F\right]+E\left[ Y_{{T_{1}^{m}}(T_{1})}+\cdots+Y_{{T_{m}^{m}}(T_{1})}|F\right] \\ &=E{\left[{\sum\limits_{l=1}^{m+1}Y_{T_{l}^{m+1}(k)}}\vert F\right]} \end{aligned} $$
((34))

This is maximized by choosing T 1 to be the optimal one-stopping time of the process \((Y_{i}+{V_{i}^{m}})\). This optimal stopping time is given from the case m=1 by \(T_{1}=T_{1}^{m+1}\). In consequence, the optimal stopping times for 1≤lm are obtained by \({T_{l}^{m}}(T_{1}^{m+1})=\) \(T_{l+1}^{m+1}\).

Therefore, we propose the optimal multiple stopping rule in Algorithm 1. The PU observes an SU candidate relay node according to the observation sequence S and obtains an instantaneous reward y i after the ith observation (line 4). Then, the PU compares the sum reward \({z_{i}^{l}}\) with the expected sum reward \(V_{i}^{m-l+1}\). If \({z_{i}^{l}}\leq V_{i}^{m-l+1}\), the PU continues to observe the next SU candidate relay. Otherwise, the PU pair makes a stop at the ith relay. When m cooperative relays are all selected, PU finishes the whole observation. Note that if the PU observes the (nm+l)th candidate relay with having selected l cooperative relays, it has to select the rest of SU nodes as the cooperative relays for supporting the transmissions regardless of the value of the sum reward.

4.3 Video frames allocation algorithm

Since different cooperative relay nodes may have varied transmission rates, we target on maximizing the amount of transmission on each relay under certain rate limits. In this subsection, we intend to find an optimal video frames allocation algorithm by formulating it as 0-1 Knapsack problem.

The 0-1 Knapsack problem [24] is a subproblem of Knapsack problem, which is a problem in combinatorial optimization. We first give an brief definition of 0-1 Knapsack problem, which is employed in our allocation model.

Definition 2.

The 0-1 Knapsack problem is defined as follows: given a set of items, each with a weigh and a value, determine the number (0 or 1) for each item to include in a collection, so that the total weight is less than or equal to a given limit, and the total value is maximized.

The PU video source encoder divides the video stream into a base sub-stream and M enhancement streams. Let D={D 1,D 2,,D M } denote the set of divided packets, where D k (k=1,2,,M) represents the amount of a specific video packet. We allocate the packets to the selected cooperative relays one by one according to the descending order of their transmission rates. For the ith cooperative relay s i , we denote set \(D^{i}=\left \{ \!{D_{1}^{i}},{D_{2}^{i}},\cdots,D_{M_{i}}^{i}\!\right \}\) as the set of the amount of packets that have not been allocated.

We formulate the video frames allocated problem as follows. The PU selects m cooperative relays with the rate {r 1,r 2,,r m } for forwarding packets to the PU receiver. Let A i , i=1,2,,m, denote relay s i ’a available amount of transmissions, which is defined as the amount of packets that can be forwarded by s i . In T rd, the amount of packets, which relay s i can forward, is r i ·T rd. Therefore, we obtain A i =r i ·T rd. Then, we define an available transmission amount of vector A as A={A 1,A 2,,A m }.

In our allocation model, we take \(D^{i}=\left \{\!{D_{1}^{i}},{D_{2}^{i}},\cdots,D_{M_{i}}^{i}\!\right \}\) as the weigh and the value for items of base layer and enhancement layers. We regard set A={A 1,A 2,,A m } as the given limits depicted in Definition 2.

In 0-1 Knapsack problem, the weigh and the limit should be integers, we, therefore, construct a corresponding integer sets \(D^{i*}\,=\,\left \{ D_{1}^{i*},D_{2}^{i*}\cdots,D_{M_{i}}^{i*}\right \}\) and \(A^{*}\!=\left \{ A_{1}^{*},A_{2}^{*},\cdots,A_{m}^{*}\right \}\). Where \(D_{k}^{i*}=\left \{ {D_{k}^{i}}\right \}+1\) and \(A_{i}^{*}=[\! A_{i}]\). Here, [·] represents the integral function. Note that after the allocation for a relay, the set D i changes regularly.

The objective of our video frames allocation is to determine the subset Q i {1,2,,M i } such that:

$$ \text{max} \sum\limits_{t\in Q_{i}}D_{t}^{i*}, $$
((35))
$$ \text{subject} \ \text{to} \sum\limits_{t\in Q_{i}}D_{t}^{i*}\leq A_{i}^{*}. $$
((36))

For \(1\leq k\leq M_{i}, 0\leq r \leq A_{i}^{*}\), we set:

$$ G(0,r)=0, \ G(k,0)=0 $$
((37))
$$ if \,\,D_{k}^{i*}>r, \ G(k,r)=G(k-1,r) $$
((38))
$$ \begin{aligned} if \, \, D_{k}^{i*}&\leq r, \\ G(k,r)&= \text{max}\left\{ D_{k}^{i*}+G\left({k-1},r-D_{k}^{i*}\right), G(k-1,r)\right\} \end{aligned} $$
((39))

From (38) and (39), we can see that there are only two choices for \(\{ D_{1}^{i*},D_{2}^{i*}\cdots,D_{M_{i}}^{i*}\}\) to compute G(k,r).

  1. 1.

    Leave \(D_{k}^{i*}\): the maximal amount that relay i can forward from \(\left \{ D_{1}^{i*},D_{2}^{i*}\cdots,D_{M_{i}}^{i*}\right \}\) with limit r is G(k−1,r).

  2. 2.

    Take \(D_{k}^{i*}\) (only possible if \(D_{k}^{i*}\leq r\)): we gain \(D_{k}^{i*}\) of transmission amount and the maximal amount that the relay can transmit from \(\left \{ D_{1}^{i*},D_{2}^{i*}\cdots,D_{M_{i}}^{i*}\right \}\) with rate limit \(r-D_{k}^{i*}\) is \(G\left ({k-1},r-D_{k}^{i*}\right)\). Totally, we get \(D_{k}^{i*}+G({k-1})\).

To allocate packets for relay i, we first do the bottom-up computation using iteration by computing the table using (38) and (39) row by row as shown in Figure 4.

Figure 4
figure 4

Bottom-up computation table. Figure 4 has been moved to this new location, and the citation for Figure 4 has been added in the above paragraph.

The set Q i is derived by the process depicted in Algorithm 2, where T x,y represents the element in row x column y of the table. The video frames allocation algorithm which is based on the Knapsack problem is depicted in Algorithm 3.

5 Performance evaluation

In this section, we evaluate the performance of our cooperative HD video transmission scheme by simulations. The video stream is divided into five parts: one base layer substream and four pieces of enhancement layer substream. It is assumed that the transmission rate r k of the kth SU candidate relay node does not change within one slot. We divide the finite-state space of SNR received by the receiver into U=30 intervals. The bandwidth W is set to be 1 MHz. The rate of PU source is set to be the average rate of channel. The controlling factor M is set to be 106. We set the transmission rate of 720P HD video as 6 Mbps. Each result reported in this section is the average of 100 instances.

To provide a deep insight into the feasibility of our cooperative HD video transmission scheme, we first make a comparison between our cooperative relay selection scheme and the random cooperative relay selection scheme. Then, we investigate the performance of our video frames allocation algorithm by comparing it with the random video frames allocation scheme. Moreover, we study the impact of the average SNR \(\overline {\gamma }\) and the observation duration τ on the transmission performance.

5.1 The comparison with random schemes

In this subsection, we compare our cooperative relay selection scheme and video frames allocation algorithm with the corresponding random methods, respectively. We set the average SNR \(\overline {\gamma }\) to be 30 dB, the time duration τ to be 3µs.

We change the transmission time T from 0.4 to 0.85 ms and investigate the available cooperative transmission rate and the realistic cooperative transmission rate of schemes. Figure 5 reports the performance comparison of our cooperative relay selection scheme and the random relay selection scheme. We can see that selecting cooperative relays via optimal multiple stopping rule can achieve higher available cooperative transmission rate than selecting relays randomly. With the increasing of HD video transmission time, the available cooperative transmission rate of our scheme increases linearly, while the available cooperative transmission rate of random cooperative relay selection is distributed irregularly. From the equations in Section 4.1, we can see that with a specific SNR \(\overline {\gamma }\), the number of candidate relays increases with T, which is explained in Section 5.2 in detail. So we have greater chance to find cooperative relays with good performance.

Figure 5
figure 5

Our cooperative relay selection scheme vs. the random cooperative relay selection scheme.

Then, we compare the proposed video frames assignment algorithm with the random allocation scheme. In this part, all the relay nodes are selected by our cooperative relay selection scheme. As Figure 6 shows, the realistic cooperative rate in the situation where applying the proposed video frames allocation is almost as same as the transmission rate for 720P HD video, which implies that our scheme can support HD video transmissions. We can also see that the realistic rate in the situation, where the packets are assigned randomly, is always lower than the transmission rate required by 720P HD video.

Figure 6
figure 6

Assignment based on 0-1 Knapsack problem vs. random assignment.

5.2 The impact of the parameter \(\boldsymbol {\overline {\gamma }}\)

In this subsection, we investigate the impact of the parameter \(\overline {\gamma }\) on the number of nodes, available cooperative transmission rate, and realistic cooperative transmission rate under the situation, where the average SNR \(\overline {\gamma }\) changes regularly. We set the observation duration τ to be 3µs. The transmission time T is set to be 0.5, 0.6, and 0.7ms. We set K=10 in (7) when \(\overline {\gamma }\geq 22\)dB and K=0 when \(\overline {\gamma }<22\)dB, respectively.

The relationship between \(\overline {\gamma }\) with the the number of candidate relays and cooperative relays can be seen from Figure 7. We can see that the lager the average SNR \(\overline {\gamma }\) is, the less cooperative relays we need. According to the analysis in Section 4.1, we can know that the observation time is decided by the number of cooperative relays and average SNR \(\overline {\gamma }\), but the number of cooperative relays has a larger impact on the observation time for all candidate relays. Therefore, when the number of cooperative relays decreases one, the number of candidate relays that is in proportion to observation time reduces greatly; when the number of cooperative relays remains unchanged, the number of candidate relays impacted by \(\overline {\gamma }\) increases linearity.

Figure 7
figure 7

The number of relays vs. the parameter \(\boldsymbol {\overline {\gamma }}\) .

Note that when \(\overline {\gamma }\) is below 22 dB, the available transmission rate of candidate relays is low. As a result, we need to select more cooperative relays for cooperative transmissions. However, the number of candidate relays is less than the number of cooperative relays with the parameter K in (7) is set to be 0. Therefore, our proposed scheme is infeasible when the average SNR \(\overline {\gamma }\) is low.

Form Figure 8, we can see that the available cooperative transmission rate increases with rising average SNR. We know from Figure 7 that the higher average SNR results in the larger number of candidate relays when the number of cooperative relays remains unchanged. With the increasing number of candidate relays, the PU transmitter has higher probability to choice relays with better performance. Therefore, the available cooperative transmission rate increases. Similar results can be obtained in Figure 9. With the increasing of \(\overline {\gamma }\), the realistic cooperative transmission rate increases at the beginning, then stays in a stable state that can satisfy the transmission rate for supporting 720P HD video.

Figure 8
figure 8

The available transmission amount vs. the parameter \(\boldsymbol {\overline {\gamma }}\) .

Figure 9
figure 9

The realistic transmission amount vs. the parameter \(\boldsymbol {\overline {\gamma }}\) .

5.3 The impact of observation duration τ

In this subsection, we investigate the impact of observation duration τ on the length of observation steps and available cooperative transmission rate. We set the average SNR \(\overline {\gamma }\) to be 28, 29, and 30 dB.

From Figure 10, we can see that the length of observation steps decreases slowly with the observation duration τ increases regularly. In other words, a larger τ results in a smaller number of observation steps. This is because the value of τ represents the cost of observing one SU candidate relay, and the PU needs to stop observing as soon as possible to avoid generating a large cost. On the contrary, when the value of τ is small, the cost for observation is low, and the PU tends to observe more candidate relays to find better cooperative relays. We also can see that different \(\overline {\gamma }\) impacts the length of observation. A larger \(\overline {\gamma }\) results in a larger the number of candidate relays according to Figure 7.

Figure 10
figure 10

The length of observation steps vs. time for one observation.

We can see from Figure 11 that the available cooperative transmission rate declines slowly with the increasing of the time duration for each observation τ. This relationship can be obtained from the analysis in Section 4.2. When τ increases, the expected sum reward decreases. The decrease of the performance of selected relays, therefore, leads to a lower available cooperative transmission rate. On the other hand, the cost increases with the τ’s increasing. Therefore, the available cooperative transmission rate declines. Similarly, different \(\overline {\gamma }\) impacts the available transmission rate. This observation is consistent with the analysis in Section 5.2 for Figure 7.

Figure 11
figure 11

The available transmission amount vs. Time for one observation.

6 Conclusions

In this paper, we propose an optimal multiple stopping scheme to solve the problem of multiple cooperative relay selection for supporting smartphone-based HD video chat in CRNs. In the proposed scheme, the video source selects the candidate CR relays by following a proposed optimal multiple stopping rule to guarantee the success of HD video chat. The proposed scheme has been verified to be able to support 720P video chat via simulations. In the future, we will implement the proposed scheme on android smartphones.

References

  1. B Gonzalez, All about Internet speed requirements for Hulu, Netflix, and Vudu Movie Viewing. http://hometheater.about.com/od/internethometheater2/a/Internet-Speed-for-Netflix-Vudu.htm.

  2. M Sullivan, 3G/4G performance map: data speeds for AT & T Sprint, T-Mobile, and Verizon. http://www.techhive.com/article/254888/3g_4g_performance_map_data_speeds_for_atandt_sprint_t_mobile_and_ verizon.html.

  3. J Jansen, P Cesar, DC Bulterman, T Stevens, I Kegel, J Issing, Enabling composition-based video-conferencing for the home. Multimedia IEEE Trans. 13(5), 869–881 (2011).

    Article  Google Scholar 

  4. Y Lu, Y Zhao, F Kuipers, P Van Mieghem, in NETWORKING 2010. Measurement study of multi-party video conferencing (Springer-VerlagBerlin, Heidelberg, 2010), pp. 96–108.

    Chapter  Google Scholar 

  5. S Mirta, T Schierl, T Wiegand, P Inigo, C LeGuern, C Moreau, L Guarnieri, J Tronc, in Advanced Satellite Multimedia Systems Conference (asma) and the 11th Signal Processing for Space Communications Workshop (spsc). HD video broadcasting using scalable video coding combined with dvb-s2 variable coding and modulation (Cagliari, Italy, 2010), pp. 114–121.

  6. KR Rao, Do Nyeon Kim, in System Theory (SSST), 42nd Southeastern Symposium On. Current video coding standards: H. 264/avc, dirac, avs china and vc-1 (IEEETyler, TX, USA, 2010), pp. 1–8.

    Google Scholar 

  7. H Schwarz, G Sullivan, T Tan, T Wiegand, in Circuits Syst. Video Technol. IEEE Trans, 22. Comparison of the coding efficiency of video coding standards-including high efficiency video coding (HEVC), (2012), pp. 1669–1684.

  8. H Schwarz, D Marpe, T Wiegand, Overview of the scalable video coding extension of the h.264/avc standard. Circuits Syst. Video Technol. IEEE Trans. 17(9), 1103–1120 (2007).

    Article  Google Scholar 

  9. W Elmenreich, N Marchenko, H Adam, C Hofbauer, G Brandner, C Bettstetter, M Huemer, Building blocks of cooperative relaying in wireless systems. Elektrotechnik und Informationstechnik. 125, 353–359 (2008).

    Article  Google Scholar 

  10. Z Cai, S Ji, J He, L Wei, AG Bourgeois, Distributed and asynchronous data collection in cognitive radio networks with fairness consideration. Parallel Distributed Syst. IEEE Trans. 25(8), 2020–2029 (2014).

    Article  Google Scholar 

  11. Y Jing, H Jafarkhani, Single and multiple relay selection schemes and their achievable diversity orders. Wireless Commun. IEEE Trans. 8(3), 1414–1423 (2009).

    Article  Google Scholar 

  12. G Amarasuriya, M Ardakani, C Tellambura, in Wireless Communications and Networking Conference (WCNC). Adaptive multiple relay selection scheme for cooperative wireless networks (IEEESydney, Australia, 2010), pp. 1–6.

    Google Scholar 

  13. T Jing, S Zhu, H Li, X Cheng, Y Huo, in IEEE INFOCOM Mini-Conference. Cooperative relay selection in cognitive radio networks (Turin, Italy, 2013).

  14. N Stratton, Reality of H.264 SVC. http://www.robotics.net/2013/02/04/reality-of-h-264-svc/.

  15. W Su, AK Sadek, KR Liu, Cooperative communication protocols in wireless networks: performance analysis and optimum power allocation. Wireless Pers. Commun. 44(2), 181–217 (2008).

    Article  Google Scholar 

  16. J Li, S Li, F Zhao, R Du, Co-channel interference modeling in cognitive wireless networks. Commun. IEEE Trans. 62(9), 3114–3128 (2014).

    Article  Google Scholar 

  17. S Li, G Bi, Time domain averaging and correlation-based improved spectrum sensing method for cognitive radio. EURASIP J. Adv. Signal Process. 46(1), 520–532 (2014).

    Google Scholar 

  18. Y Chen, C-X Wang, H Xiao, D Yuan, Novel partial selection schemes for AF relaying in Nakagami-fading channels. Vehicular Technol. IEEE Trans. 60(7), 3497–3503 (2011).

    Article  Google Scholar 

  19. H Xiao, S Ouyang, Power control game in multisource multirelay cooperative communication systems with a quality-of-service constraint. Int. Trans. Syst. IEEE Trans. 16(1), 41–50 (2015).

    Article  Google Scholar 

  20. Z Cai, J He, AG Bourgeois, S Ji, in 2012 IEEE 32nd International Conference On Distributed Computing Systems (ICDCS), Macau, China. Optimal distributed data collection for asynchronous cognitive radio networks, (2012), pp. 245–254.

  21. Z Cai, Y Duan, AG Bourgeois, Delay efficient opportunistic routing in asynchronous multi-channel cognitive radio networks. J. Combinatorial Optimization, 1–21 (2013).

  22. G Bianchi, Performance analysis of the IEEE 802.11 distributed coordination function. Selected Areas Commun. IEEE J. 18(3), 535–547 (2000).

    Article  Google Scholar 

  23. Y Duan, Z Cai, G Liu, Opportunistic channel-hopping based effective rendezvous establishment in cognitive radio networks. Wireless Algorithms Syst. Appl. 7405, 324–336 (2012).

    Article  Google Scholar 

  24. M Hristakeva, D Shrestha, in The Midwest Instruction and Computing Symposium. Different approaches to solve the 0/1 knapsack problem (Eau Claire, WI, USA, 2005).

Download references

Acknowledgements

The authors would like to thank the support from the National Natural Science Foundation of China (Grant No. 61272505, 61172074 and 61371069) and the National Science Foundation of the US (CNS-1265311).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Wei Cheng.

Additional information

Competing interests

The authors declare that they have no competing interests.

Rights and permissions

Open Access  This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made.

The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.

To view a copy of this licence, visit https://creativecommons.org/licenses/by/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Jing, T., Cui, X., Cheng, W. et al. Enabling smartphone-based HD video chats by cooperative transmissions in CRNs. J Wireless Com Network 2015, 45 (2015). https://doi.org/10.1186/s13638-015-0290-9

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s13638-015-0290-9

Keywords