DOI QR코드

DOI QR Code

Distortion Measurement based Dynamic Packet Scheduling of Video Stream over IEEE 802.11e WLANs

  • Wu, Minghu (School of Electrical and Electronic Engineering, Hubei University of Technology) ;
  • Chen, Rui (School of Communications Engineering, Nanjing Institute of Technology) ;
  • Zhou, Shangli (School of Electrical and Electronic Engineering, Hubei University of Technology) ;
  • Zhu, Xiuchang (Jiangsu Province Key Lab on Image Processing & Image Communication, Nanjing University of Posts and Telecommunications)
  • Received : 2013.07.28
  • Accepted : 2013.10.23
  • Published : 2013.11.30

Abstract

In H.264, three different data partition types are used, which have unequal importance to the reconstructed video quality. To improve the performance of H.264 video streaming transmission over IEEE 802.11e Wireless Local Area Networks, a prioritization mechanism that categorizes different partition types to different priority classes according to the calculated distortion within one Group of Pictures. In the proposed scheme, video streams have been encoded based on the H.264 codec with its data partition enabled. The dynamic scheduling scheme based on Enhanced Distributed Channel Access has been configured to differentiate the data partitions according to their distortion impact and the queue utilization ratio. Simulation results show that the proposed scheme improves the received video quality by 1dB in PSNR compared with the existing Enhanced Distributed Channel Access static mapping scheme.

Keywords

1. Introduction

IEEE 802.11 based Wireless Local Area Networks (WLANs) have been widely deployed in recent years. The use of unlicensed spectrum, the availability of low cost devices, and their ease of management has lead to a plethora of WiFi Access Points, used not only in office environments or as public hot-spots but also to connect residential users and their multimedia devices to the Internet. According to the IEEE 802.11 standard, there are two different channel access mechanisms, a centralized one, known as the Point Coordination Function (PCF), and a distributed one, the Distributed Coordination Function (DCF). However, most of the current WLANs are based on the latter, i.e., a CSMA/CA mechanism that only provides with a best effort service, while the PCF mechanism has received relatively little attention from manufacturers.

Although the first physical layer specification supported only 2 Mbps capacity, due to the increasing bandwidth demands extensions were adopted over the years, such that nominal rates of up to 54 Mbps are achievable with IEEE 802.11g. This rate increase has enabled the use of WLANs also for real-time applications, such as e.g. voice over IP, video streaming or video conferencing. However, these delay and bandwidth sensitive applications are properly supported only in over-provisioned scenarios, where the best-effort based scheme of DCF is enough to fulfill the QoS requirements.

Totally, the latest Wireless Local Area Networks (WLANs) has two tendencies: 1) nominal rates of up to 54Mbps are achievable with IEEE 802.11g or 100Mbps with 802.11n; 2) the new channel access scheme to fulfil the QoS requirements, such as the Enhanced Distributed Coordination Access (EDCA). EDCA is an extension of Distributed Coordination Function (DCF) that supports service differentiation through four different Access Categories (ACs), namely voice, video, best-effort and background. These ACs can be configured with different values of the contention parameters, leading to statistical service differentiation. However, the configuration of both mechanisms is left open, as the standard only specifies a simple scheduler to provide Constant Bit Rate (CBR) services for the case of Hybrid coordination function Controlled Channel Access (HCCA) and a set of recommended values of the contention parameters for EDCA [1].

In IEEE 802.11e EDCA, different kinds of traffic flows are allocated to different queues. Each queue is characterized by specific contention window and interframe spacing values, the parameters which control the amount of time the transceiver has to wait before attempting to access the channel for transmission. Because of the different setting of such parameters for each ACs, the result is that the queues are characterized by unfair chances of getting access to the channel. Service differentiation between ACs is achieved by setting different Contention Window (CWmin, CWmax,) sizes, Arbitrary Interframe Space (AIFS) values, and Transmission Opportunity duration limit (TXOP limit). If one AC has a smaller AIFS or CWmin or CWmax, the AC’s traffic has a better chance of accessing the wireless channel earlier. Generally, AC3 is reserved for real-time voice, AC2 is reserved for video transmission, and the others (AC1, AC0) for best effort and background traffic.

However, the use of the fixed set of recommended values for the EDCA parameters results in poor efficiency for most scenarios, as the optimal configuration of the channel access parameters depends on the WLAN conditions, including the number of stations and their load [2][3]. Thus, when the WLAN is heavily loaded, the performance of real-time applications, and in particular the delay experienced by video traffic, is severely degraded. Following this observation, previous work proposed to improve video performance by adapting the channel access protocol to the WLAN conditions. These works can be classified as follows:

1) Cross-layer approaches

Most of these approaches classify the frames of a layered-encoded video according to their relevance, and map them to different ACs. In [4], the authors employed a controller to drive the delay to an application-specific reference, by employing packet classification at a newly introduced middleware layer. A. Ksentini et al. [5][6] leveraged the inherent H.264 error resilience tools and 802.11e MAC protocol possibilities, and proposed a cross-layer mapping scheme is shown in Table 1. A major disadvantage of these approaches is the static mapping method, no consideration of the queue utilization ratio. In [7], the authors proposed an algorithm to meet the delay QoS requirements of various traffic by dynamic monitoring the 802.11e MAC queues and network conditions. Nafaa et al. [8] proposed a cross-layer MAC design featuring a delay-sensitive backoff range adaptation along with a distributed flow admission control. Some distributed schemes are presented for delay sensitive transmission [9-10]. To minimize the total video distortion, Ref. [9] constructed a general distortion model according to the network’s transmission mechanism and propose a distributed scheduling scheme jointly considering channel assignment, rate allocation, and routing; Ref. [10] proposed a distributed media-aware rate allocation, which considering about the the wireless link speeds and video rate-distortion characteristics, as well as traffic contention among neighboring links. These approaches require rather complex interactions between the application and the MAC layers, and moreover they either require specific video sources, or modifications of the protocol stack. Furthermore, these methods need to add some changes to the MAC layer, and these changes are difficult to achieve on the WLAN card.

Table 1.Cross-layer mapping scheme

2) EDCA parameters compliant approaches

These approaches relied on the EDCA standard mechanism and dynamically update the EDCA parameters and/or the video codec behavior based on the observed WLAN conditions [11-14]. In [11], the authors focused on influence of contention window and AIFS, and Ref. [12] focused on dynamic adjusting TXOP to guarantee the QoS performance. Xiao Y. et al. addressed on bandwidth allocation schemes according to contention-based nature [13]. In [14], EDCA configuration was dynamically adjusted the EDCA configuration according to the distortion measurement with the goal of maximizing the video reconstructed quality. Their major drawback is that they are based on heuristics and lack analytical support, and hence do not guarantee optimized performance. Furthermore, for the Internet of Things, L. Zhou presented a multidemdia traffic classification, and designed a new and efficient media-aware security framework for facilitating various multimedia applications [15].

To address the above questions, the paper proposes a dynamic mapping algorithm, which different data partitions in H.264 are dynamically scheduled into different AC according to the calculated importance factor and the EDCA queue utilization ratio. The rest of this paper is organized as follows. In Section 2, we describe H.264 video packets relies on a Data Partitioning (DP) technique at the application layer. Through employing DP, the H.264 encoder partitions the compressed data in separate units of different importance. Then we calculate the importance factor for each data partition within one Group of Pictures (GoP), and each data partition is marked with an importance factor. In Section 3, according to the marked importance factor and the queue utilization ratio, we dynamic specify the marked packet with an AC provided by 802.11e EDCA. The experimental results and analyses are presented in Section 4 to show the performance of the proposed scheme. Finally, Section 5 concludes this paper.

 

2. The Prior Model of H.264 Video Packets

2.1. Data partitioning in H.264

Data partitioning is an effective application-level framing technique in H.264 standard, which divides the compressed video data into separate units of different importance. Generally, all symbols of MBs are coded together in a single bit string that forms a slice. However, DP creates more than one bit string (partition) per slice, and allocates all symbols of a slice into an individual partition with a close semantic relationship. There are three different partition types in H.264: 1) DPA, i.e., partition A, containing header information such as Macro Block (MB) types, Quantization Parameters (QPs), and Motion Vectors (MVs). This information is the most important because if it is lost, symbols of the other partitions cannot be used. 2) DPB, i.e., partition B, carrying intra Coded Block Patterns (CBPs) and intra coefficients. DPB requires the availability of DPA in order to be useful at the decoding level. In contrast to the inter information partition, intra information can stop further drift and hence is more important than the inter partition. 3) DPC, i.e., partition C, containing only inter CBPs and inter coefficients. Inter partitions are the least important because their information does not resynchronize the encoder and decoder. In order to be used it requires the availability of DPA, but not of DPB.

Usually, if DPB or DPC are missing, the available header information can still be used to improve the efficiency of error concealment. More specifically, due to the availability of the MB types and motion vectors, a comparatively high reproduction quality can be achieved as only texture information is missing.

2.2. Calculating the Importance Factor

In this section, we propose a method to quantify the influence to the video quality of each partition. Firstly, we resume that a video frame is coded into one slice, one slice is divided into three partitions (DPA, DPB, and DPC). For each GoP, which begins with an Instantaneous Decoding Refresh (IDR) frame, let L denotes the size of one GoP. The IDR accesses unit contains information that cannot be partitioned into the three partitions. That is, they contain only the intra picture (coded picture that can be decoded without needing information from previous pictures) where no data partitioning can be applied. Thus, the generated slices (A, B, C, PSC, and IDR) are directed to the Network Abstraction Layer (NAL) with an associated header using an implementation dependent data structure. In this paper, the IDR frame is assumed not lost, only the following L-1 frames are quantified.

Now, we define some notations used in the derivation of the priority model. Let Nf be the pixel number of a frame, let F(i,m) be the original value of m-th pixel in i-th frame, let Fc(i,m) and Fd(i,m) be the reconstructed value at the encoder and decoder respectively. The source distortion Ds(i), channel distortion Dc(i) and total distortion D(i) of i-th frame are calculated under Mean Square Error (MSE) criterion as:

The relationship of Ds(i), Dc(i) and D(i) is:

When DPA, DPB or DPC of i-th frame is lost, it will influence decoding i-th frame and the following frames. To evaluate the influence factor of different partition, the same error-concealment methods are adopted:

1) in case of DPA of i-th frame is lost, the decoder copies the MBs at the same spatial position of (i-1)-th frame;

2) in case of DPB of i-th frame is lost, the decoder copies the MBs at the same spatial position of (i-1)-th frame;

3) in case of DPC of i-th frame is lost, the decoder exploits the predictive data by resulting the motion vector information from the reference frame.

Let D(i,j,k) denotes the distortion of j-th frame caused by the lost of k-th partition of i-th frame, 1≤ i ≤ L-1,0≤ j ≤ L-1, and k ={0,1,2}. k = 0 denote as DPA, k = 1 is DPB and k = 2 is DPC. To quantify the influence of each data partition of i-th frame upon the recovery quality within one GoP, we define the distortion change ΔD(i,k) as the distortion difference between two cases: k-th partition of i-th frame is lost and received without error, and the average distortion change within one GoP is defined as the recovery quality metric or the importance factor. Then is calculated as:

where

Substituting D(i,j,k) and (4) into (5), we can represent as:

Let and be the average distortion change of the intra and inter-MBs respectively, caused by k-th partition lost, then (6) can be represented as:

As mentioned above, the lost of DPA in i-th frame will not influence i-th frame decoding, but also the following frames after i-th frame within one GoP. Then we recursively calculate the propagated influence of the following frames, from (i+1)-th frame to L-frame within one GoP as:

Where Fd(i+1,m) denotes the predictive value of m-th pixel in (i+1)-th frame, denotes the corresponding difference information of m-th pixel. From (8) and (9), using Equation (7), we can calculate the average distortion change within one GoP caused by DPA, DPB or DPC loss respectively.

According to the calculated average distortion change the important factor denoted as IM of each data partition can be categorized to IM_H, IM_M and IM_L as:

Then the proposed mapping scheme according to Equation (10) is described as Table 2:

Table 2.Proposed cross-layer mapping scheme

 

3. Dynamic Scheduling Scheme based on Importance Factors

To further utilize the IEEE 802.11e EDCA queues, we focus on the queues’ status. As we known, each station provides prioritization through four access categories AC0~3, and each AC has its own transmission queue and its own QoS parameters and backoff counter. A collision within a station is handled virtually, whereby the frame from the highest priority queue involved in the collision is chosen and transmitted to the access medium. This mechanism is known as virtual collision.

EDCA also allows stations to transmit multiple frames without contending again, known as contention free bursting (CFB). CFB is limited by the TXOP limit specified for each service class. Longer limit means that the service class can transmit more frames; hence, it receives better QoS. The order in which the slice units are sent is constant. The first slice units transmitted contain the PSC information, which includes some parameters set related to the encoder configuration and relevant for all pictures in the video sequence. The next slice units transmitted contain the IDR picture. Since IDR frames may contain only I slices without data partitioning, they are usually sent at the start of video sequences (just after the PSC). The slice units following the IDR frames contain one of the three partitions (DPA, DPB, or DPC). In this paper, we simulate the transmission of the H.264 video packets relies on data partition using the static mapping scheme as Table 1, and the queue schedule is depicted in Fig. 1.

As shown in Fig. 1, parameter sets (i.e. NVB) include SPS (sequence parameter set) and PPS (picture parameter set). The NVB is the highest important information mapped to the highest-priority AC3, so it is scheduled firstly; IDR and DPA information are mapped to AC2, and scheduled secondly; finally DPB and DPC of P frame are scheduled. In this static mapping scheme, video packets are queued into different AC queues, and the high priority queue is not be fully utilized.

Fig. 1.802.11e scheduling

To tradeoff the importance factor of video packet and queue length for scheduling, we calculate each queue’s average arrival rate and service rate. Firstly, at the sender for each queue AC0~3, let μ0~3 denote the queue average service rate, λ0~3 denote the average data packets arrival rate, then the average service time for each packet is 1/μ0~3, and the average arriving slot is 1/λ0~3, the average queue utilization ratio is ρ0~3=λ0~3/μ0~3. When ρ0~3≤1, the average arrival rate to all queues is smaller than the average service rate that can be provided to them, therefore the packet can be transmitted in time; otherwise when ρ0~3>1, the packet must be wait in the queue for transmitting.

Let t0 denote the time start point, the arriving packets number at t1,…, tk,… are Ri,1, …, Ri,k,…, and the delivered packets number are Ti,1,…,Ti,k,… respectively. The queue’s idle time are denoted as di,1,…,di,k,…, then the delivered packets number at tk is , the total arrival packet number is , and the total idle time is The service rate and arrival ratio for each queue are time-variable, so the α-weighted average sum of μi and λi which denoted as μi,k and λi,k are:

As previously stated, if the average arrival rate λi,k is equal or lower than μi,k, the packet in this queue can be transmitted timely. According to the mapping scheme shown in Table 2, the highest important video packets are mapped to the highest priority access category AC3, the middle important video packets are mapped to AC2, and the lowest important video packets are mapped to AC1. When the low priority queue is scheduling, the low important packets can “borrow” the higher priority queue’s resource if it has idle resource. The available “borrowed” resource is given by

As the above analysis, on the one hand, different partition types has unequal importance at the application layer; on the other hand, 802.11e can support different QoS requirement for unequal important information at MAC layer, so the video packets can be flexible scheduling. Firstly, the system periodically updates the resource available for each queue. When the video packets are to be send, the important factors of each packet are marked by (10) within one GoP. Then according to the important factor, the video packets are mapped to different queue for transmission.

The specific algorithm is as follows.

1) Initialization: set the time start point t0, each queue’s initial available resource λi,k=1;

2) Set time interval= ΔT, calculate the average service rate and average arrival rate of each queue according to (11), calculate the available “borrowed” resource according to (12);

3) Calculate the distortion due to the lost of each data partition within one GoP, categorize the important factor denoted as IM of each data partition according to (10);

4) Schedule video packets to queue AC3~AC1;

5) Go back to step 2.

 

4. Simulation Results and Analysis

In order to evaluate the advantage of the proposed scheme, experiments have been carried out to verify the performance of the proposed algorithm. The wireless network simulation is carried out in Network Simulator-2 (NS-2). For the wireless channel, two-ray ground propagation model is used, and the maximum queue length is 50. The scheduling algortihms described in Sec. 3 have been added to NS-2. The video codec is implemented based on H.264 reference software JM10.2 [14]. The video test sequence “foreman”, which contains of 300 CIF frames, is encoded using only I and P frames (each GoP is structured as one I every 16 frames) at 30fps.

The maximum UDP packet size is at 1024Bytes. We include one access point (AP) and five wireless stations sta0~4. The 802.11e MAC parameters for simulations are depicted in Table 3.

We simulate a unicast H.264 video transmission utilizing a Basic Service Set (BSS) at 1024Mbps. The video frames are then encapsulated into RTP packets using a simple packetization scheme (one frame one packet). The size of each RTP packet is maximally bounded to 1024Bytes. Additionally, the video server generates back ground traffic (300Kbps) using constant bit rate (CBR) over UDP to increase the virtual collisions. The average distortion of each partition is calculated off-line, and the results are stored in one data file ready for the NS-2 module calling.

Table 3.802.11e MAC parameters

The objective function is the reconstructed video quality (the average PSNR of the decoded video sequence). The experimental results shown in Table 4 depict the packet loss rate (PLR) and reconstruction quality in PSNR when using dynamic mapping algorithm vs. the default EDCA mapping algorithm and the algorithm in Ref. [5] and the proposed algorithm. It can be seen that the default EDCA does not distinguish the importance of each video packets, and all video packets are queued to AC2. Both the algorithm in Ref. [5] and the proposed algorithm differential the importance of the video information, so the PLR of IDR and DPA is zero which is protected well. The encoder’s QP=27, the DPB’s loss rates are 11.49% and 8.32% respectively when using the proposed dynamic mapping algorithm vs. the mapping algorithm in Ref. [5]; the DPC’s loss rate are 18.85% and 16.35% respectively. The encoder’s QP=30, the DPB’s loss rates are 11.63% and 9.27% respectively when using the proposed dynamic mapping algorithm vs. the mapping algorithm in Ref. [5]; the DPC’s loss rate are 19.04% and 17.61% respectively. The proposed algorithm outperforms the other two algorithms in PLR and the reconstructed quality in PSNR.

Table 4.Comparison of the performance

Fig. 1 (a) and (b) represent a final decoded frame when using EDCA, static EDCA and the proposed algorithm, respectively. It is readily realized that the proposed algorithm outperforms both EDCA and static EDCA of Ref. [5].

Fig. 2.decoded frame of foreman sequence

 

5. Conclusions

As it is important to develop mechanisms that will optimize every aspect of the transmission system and minimize the distortion imposed by channel limitations, this paper proposes a dynamic packet scheduling scheme based on the importance factor of each data partition and the queue length. The novelty of the proposed algorithm is based on prioritization mechanism that categorizes the data partition to different priority classes according to the calculated distortion within one GoP. Then the dynamic scheduling scheme based on EDCA has been configured to differentiate the transmitted packets according to their distortion impact and the queue length. Significant video packets are appointed to high priority access categories while least significant packets to lower categories. Simulation results have shown that the proposed scheme improves the received video quality in terms of PSNR by 1dB, compared with the existing EDCA static mapping scheme.

References

  1. MacKenzie R, Hands D, O' Farrell T, "QoS of video delivery over 802.11e WLANs," in Proc. of IEEE International Conference on Communications, pp.1-5, June, 2009.
  2. Bianchi G, "Performance analysis of the IEEE 802.11 distributed coordination function", IEEE Journal on Selected Areas in Communications, vol. 18, no. 3, pp.535-547, Match 2000. https://doi.org/10.1109/49.840210
  3. Banchs A, Vollero L, "Throughput analysis and optimal configuration of 802.11e EDCA", Computer Networks, vol. 50, no. 11, pp. 1749-1768, November 2006. https://doi.org/10.1016/j.comnet.2005.07.008
  4. He W, Nahrstedt K, Liu X, "End-to-end delay control of multimedia applications over multihop wireless links", ACM Trans. Multimedia Comput. Commun., vol. 5, no.2, pp.1-20, April, 2008.
  5. Ksentini A, Naimi M, Gueroui A, "Toward an improvement of H.264 video transmission over IEEE 802.11e through a cross-layer architecture", IEEE communication magazine, vol. 44, no. 1, pp. 107-114, 2006. https://doi.org/10.1109/MCOM.2006.1580940
  6. Ksentini A, Gueroui A, Naimi M, "Improving H.264 video transmission in 802.11e EDCA", in Proc. of the 14th International Conference on Computer Communications and Networks, pp. 381-386, 2005.
  7. Argyriou A, "Error-Resilient Video Encoding and Transmission in Multirate Wireless LANs", IEEE Transactions on Multimedia, vol. 10, no. 5, pp. 691-700, May, 2008. https://doi.org/10.1109/TMM.2008.922776
  8. A. Hsien-Po Shiang, Mihaela van der Schaar, "Distributed Resource Management in Multi-hop Cognitive Radio Networks for Delay Sensitive Transmission" IEEE Transactions on Vehicular Technology, vol. 58, no. 2, pp. 941-953, Feburary. 2009. https://doi.org/10.1109/TVT.2008.925308
  9. L. Zhou, X. Wang, W. Tu, G. Muntean, and B. Geller, "Distributed Scheduling Scheme for Video Streaming over Multi-Channel Multi-Radio Multi-Hop Wireless Networks," IEEE Journal on Selected Areas in Communications, vol. 28, no. 3, pp. 409-419, April 2010. https://doi.org/10.1109/JSAC.2010.100412
  10. X. Zhu and B. Girod, "Distributed Media-Aware Rate Allocation for Wireless Video Streaming", IEEE Transactions on Circuits and Systems for Video Technology, vol. 20, no. 11, pp. 1462-1474, November 2010. https://doi.org/10.1109/TCSVT.2010.2077492
  11. Peng F, Peng B, Qian D, "Performance analysis of IEEE 802.11e enhanced distributed channel access ", IET Communications, vol. 4, no. 6, pp. 728-738, 2010. https://doi.org/10.1049/iet-com.2009.0035
  12. Mao Jian-bing, Mao Yu-ming, Leng Su-peng, et al. , "Research of the QoS-supporting IEEE 802.11 EDCA performance ", Journal of Software, vol. 21, no. 4, pp. 750-770, April 2010. https://doi.org/10.3724/SP.J.1001.2010.03490
  13. Xiao, Y., Li, F. H., Li B, "Bandwidth Sharing Schemes for Multimedia Traffic in the IEEE 802.11e Contention-Based WLANs ", IEEE Transactions on Mobile Computing, vol. 6, no. 7, pp. 815-831, July 2007. https://doi.org/10.1109/TMC.2007.1054
  14. Zhang Y., Foh C., Cai J, "An On-Off Queue Control Mechanism for Scalable Video Streaming over the IEEE 802.11e WLAN", in Proc. of International Conference on Communications, pp. 4958-4962, May 2008.
  15. L. Zhou, Han-Chieh Chao, "Multimedia Traffic Security Architecture for Internet of Things", IEEE Network, vol. 25, no. 3, pp. 35-40,June 2011. https://doi.org/10.1109/MNET.2011.5772059
  16. Joint Video Team (JVT) Reference Software JM10.2

Cited by

  1. Priority-based Unequal Error Protection Scheme of Data partitioned H.264 video with Hierarchical QAM vol.8, pp.11, 2014, https://doi.org/10.3837/tiis.2014.11.030