• No se han encontrado resultados

Descripción sumaria del procedimiento utilizado por Gestora Canaria (2008)

In document Santiago de Luxán Meléndez (página 35-38)

5. CAnARiAS Un CAMinO PROPiO En EL CAMPO DEL RECiCLAJE Y LA ADAPTACiÓn A LAS nUEVAS DiRECTiVAS

5.3. Descripción sumaria del procedimiento utilizado por Gestora Canaria (2008)

In this section, we discuss several issues in implementing the algorithm described in Section 9.1.3. The non-preemptive delay composition theorem, used in deriving the delay constraint 9.4 assumes prioritized scheduling at each intermediate node. As exact prioritized scheduling is impossible to achieve in a dis- tributed wireless network, we implement approximate prioritized scheduling as follows. Each node maintains independent queues for packets of each priority class and always chooses to transmit a packet of higher pri- ority before transmitting a packet of lower priority. Further, in order to prioritize packet scheduling across neighboring nodes, we allow packets of higher priorities to have a smaller minimum contention window size compared to packets of lower priority. In our simulations, we support eight priority levels. This implemen-

tation is similar to the emerging 802.11e standard [1] for the Enhanced Distributed Coordination Function (EDCF), except that the queues do not act as virtual terminals, and packets from higher priority queues are always picked ahead of packets from lower priority queues. Prioritized scheduling can also be achieved using MAC protocols such as [30]. This problem has been addressed in past literature and is orthogonal to the problem we address. Better solutions to MAC layer prioritization will enhance the performance of our algorithm.

Note that the update equations for the algorithm require that nodes are aware of the dual costs and values for X’s and Y ’s computed by nodes in their interference neighborhood, and not just the communication neighborhood (for example, the capacity constraint ensures that the sum of all flow rates in the interference neighborhood of each link is at most as large as the capacity of the link). This behooves the presence of a protocol at the network layer that can obtain this information. Identifying nodes that lie within interference range of a given node is a challenging problem that has been addressed in prior literature in wireless networks (such as [98]). We empirically measured the interference range to be 440m for each link when the communication range was 200m, and used this value in our simulations.

The NUM formulation assumes concave utility functions for the flows, and the optimization objective is to maximize the sum of utilities of all flows in the network. Utility functions serve as a measure of user satisfaction, and can also be used to control the trade-off between efficiency and fairness. For example, [65] defines a family of utility functions targeted at fairness. As the problem of choosing utility functions has been dealt with in literature, we keep our theoretical framework general and not dependent on any particular utility function. In our simulations, we consider two simple logarithmic utility functions to be used with the NUM formulation. In the first utility function, the utility is assumed to be proportional to priority:

fs(xs) = (M ax P riority − Ws+ 1) log xs, (9.20)

where Ws is the priority of flow s (higher value implies lower priority), and M ax P riority is the maximum

permissible priority value. Remember, however, that priority in our framework is set according to urgency, which in general, may not be proportional to utility. Hence, we also consider a utility function that is orthogonal to priority (i.e., urgency), where all flows have the same importance:

fs(xs) = log xs, (9.21)

As mentioned earlier, the above utility functions are true only when delay constraints are met. If delay constraints are violated, the utility is zero. In practice, however, applications such as video streaming can tolerate some deadline misses. Hence, in the evaluation section, rather than dropping utility to zero abruptly,

we drop it linearly in the miss ratio as follows:

App U tility = fs(xs) ∗ (1 − 10 ∗ DM R), DM R < 0.1

= 0, otherwise (9.22)

where fs(xs) is defined as in Equations (9.20) or (9.21), and DM R is the deadline miss ratio for the flow.

Note that the above application utility function reduces to fs(xs), when no deadline misses occur. As

the NUM-based algorithms operate within the feasible region where no deadline misses occur, the optimal solution also lies within this feasible region. At the optimal solution (and at all points within the feasible region), the value of the above application utility function would be the same as that of fs(xs). Hence, the

operation of the NUM-based algorithm remains the same regardless of how utility is defined outside the feasible region. We therefore use fs(xs) defined as per Equations (9.20) or (9.21) as the utility function

for the NUM-based algorithms, but use the application utility defined in Equation (9.22) as a metric of performance in our evaluations in Section 9.1.5.

Finally, the update equations are based on update parameters α. For the update equation for λ, we used a value of 0.5 (α3 = 0.5). For µ, we used a value of 0.2. For all the other update equations we used a

value of 1.0. While we observed that changing these values affect the rate of convergence, for most values of the update parameters, the flow rates converged within 100 iterations of the algorithm. Convergence of a number of NUM problems has been studied in the past [15, 35]. Theoretically studying the convergence and stability properties of the algorithm will be a useful future work.

9.1.5

Simulation Results

In this section, we present results from simulations on ns2 [67]. Our default system consists of 50 nodes placed uniformly at random. We assume that nodes are stationary. The MAC layer protocol is assumed to be 802.11, with prioritized scheduling as described in Section 9.1.4. We consider a default of 5 elastic flows in the system, whose sources and destinations are chosen uniformly at random. The average hop length of the flows was between 3 and 4. The routing protocol is assumed to be DSDV. Link bandwidth is assumed to be 1 Mbps. One iteration of the rate allocation algorithm executes every 0.5 seconds. The flows are assumed to transmit at a constant bit rate chosen by the rate allocation algorithm. For traffic that is bursty, such as video, application-level buffers can be used to smoothen the burst and transmit at the average (roughly constant) rate. Prior theory such as [21] can be used to bound the delay due to buffering as a function of the original burstiness. While the end-to-end delay of a packet is the sum of this buffering delay and the network delay, in this work, we concern ourselves only with the network delay. The buffering delay can be

estimated as discussed in prior work [21].

In our evaluation, we compare the proposed deadline-aware rate allocation algorithm (which we call ‘NUM with Delay Constraints’), with four other algorithms. The first is a rate allocation algorithm determined by the traditional NUM formulation without the delay constraints [59, 51], that maximizes utility in the presence of capacity constraints alone. This algorithm uses prioritized scheduling at the MAC layer and is referred as ‘NUM without Delay Constraints’. In order to demonstrate that prioritized scheduling broadens the space of acceptable flow rates, we choose the second algorithm to be the same as the first except that scheduling at the MAC layer is FIFO. We call this ‘NUM w/o Delay Constraints w/o Prioritized Scheduling’. For the third algorithm, we simulate prioritized scheduling at the MAC layer, in the absence of any rate control (called ‘No Rate Control’). Here, each source of flow is assumed to transmit at the application- specified maximum packet generation rate. This serves as a baseline to analyze the advantages of applying rate control. Finally, to show that our algorithm can work with any prioritized MAC protocol, we evaluate the deadline-aware rate allocation algorithm with 802.11e as the MAC layer protocol (we call this ‘NUM with Delay Constraints with 802.11e’). Table 9.2 shows the differences between the different algorithms. For the rate allocation algorithms based on the NUM formulations with and without the delay constraints, we evaluated both utility functions specified in Section 9.1.4 under Equations (9.20) and (9.21). The results when all flows have the same utility function (Equation (9.21)) are labeled with the suffix ‘Eq. Util. Flows’. The results when the utilities of flows are directly proportional to their priority (Equation 9.20) do not have this suffix. The above algorithms are compared in terms of the achieved throughput and deadline miss ratio for each priority class.

Algorithm Rate Delay Prior.

Control Constr. Sched.

No rate control No No Yes

NUM w/o delay Yes No Yes

NUM w/o delay

Yes No No

w/o prioritization

NUM with delay Yes Yes Yes

NUM with delay,802.11e Yes Yes 802.11e Table 9.2: The different algorithms being compared

All values presented are averaged over 50 simulation runs each lasting for 100 seconds. For each run, results were collected after a duration long enough to ensure that the rate control algorithm had stabilized. Y error bars indicate 95% confidence intervals.

Audio and video flows are typically governed by a maximum traffic generation rate. We imposed different maximum application traffic generation rates that would act as a ceiling for the transmission rates for each flow. We considered traffic generation values equal to 25, 50, 75, 100, 125, and 200 Kbps. A traffic generation

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 200 125 100 75 50 25 0

Deadline Miss Ratio

Traffic Generation Rate (Kbps) No Rate Control NUM without Delay Constraints NUM with Delay Constraints NUM without Delay Constraints - Eq. Util. Flows NUM with Delay Constraints - Eq. Util. Flows

Figure 9.1: Deadline miss ratio, high priority flows

0 25 50 75 100 125 150 200 125 100 75 50 25 0 Throughput (Kbps)

Traffic Generation Rate (Kbps) No Rate Control NUM without Delay Constraints NUM with Delay Constraints NUM without Delay Constraints - Eq. Util. Flows NUM with Delay Constraints - Eq. Util. Flows

Figure 9.2: Throughput, high priority flows

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 200 125 100 75 50 25 0

Deadline Miss Ratio

Traffic Generation Rate (Kbps) No Rate Control NUM without Delay Constraints NUM with Delay Constraints NUM without Delay Constraints - Eq. Util. Flows NUM with Delay Constraints - Eq. Util. Flows

Figure 9.3: Deadline miss ratio, medium priority flows 0 25 50 75 100 125 200 125 100 75 50 25 0 Throughput (Kbps)

Traffic Generation Rate (Kbps) No Rate Control NUM without Delay Constraints NUM with Delay Constraints NUM without Delay Constraints - Eq. Util. Flows NUM with Delay Constraints - Eq. Util. Flows

Figure 9.4: Throughput, medium priority flows

rate of 200 Kbps was observed to be nearly the same as not imposing any limit on the application traffic generation rate. We considered three priority levels for the flows, with end-to-end latency requirements of 2, 4, and 7 seconds. These values reflect typical requirements in military communications and hence were given specific attention. The number of flows of each priority was in the ratio 1:2:4, that is, there were four times as many low priority flows as there were high priority flows. The deadline miss ratios and average achieved throughput were measured for the different algorithms for each priority class. Figures 9.1 and 9.2 plot the comparison for high priority flows. Likewise, Figures 9.3 and 9.4 show the results for medium priority flows, and Figures 9.5 and 9.6 show the results for low priority flows. For all the three priority classes, the algorithm based on the NUM formulation with delay constraints, was able to ensure a deadline miss ratio of less than 5% of the packets, regardless of how the utility functions of flows are defined. In contrast, the algorithm based on the NUM formulation without delay constraints suffered a much higher deadline miss ratio for all priority classes especially at high load scenarios. The deadline miss ratio was observed to be the highest when no rate control was imposed. Further, for the NUM formulation without delay constraints, when prioritized scheduling was replaced by FIFO scheduling, more deadline misses were observed for medium

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 200 125 100 75 50 25 0

Deadline Miss Ratio

Traffic Generation Rate (Kbps) No Rate Control NUM without Delay Constraints NUM with Delay Constraints NUM without Delay Constraints - Eq. Util. Flows NUM with Delay Constraints - Eq. Util. Flows

Figure 9.5: Deadline miss ratio, low priority flows

0 25 50 75 100 200 125 100 75 50 25 0 Throughput (Kbps)

Traffic Generation Rate (Kbps) No Rate Control NUM without Delay Constraints NUM with Delay Constraints NUM without Delay Constraints - Eq. Util. Flows NUM with Delay Constraints - Eq. Util. Flows

Figure 9.6: Throughput, low priority flows and high priority flows, demonstrating the importance of prioritized scheduling. Finally, using 802.11e as the MAC layer protocol the deadline miss ratio and throughput values were found to be similar to when higher priority packets were always transmitted ahead of lower priority packets (instead of the virtual node concept of 802.11e), suggesting that our rate control algorithm would work well with any prioritized MAC protocol.

It can be observed from Figures 9.2, 9.4, and 9.6, that when the utilities of flows are proportional to their priority (for both the NUM with delay constraints and the NUM without delay constraints), the throughput of high priority flows is higher than that of low priority flows. However, when flows have the same utility function regardless of their priority, the throughput of all three priority classes are nearly equal. This conforms with theory suggesting that the throughput (or bandwidth share) that each flow obtains is only dependent on its importance as defined by the utility function, and is independent of the flow priorities. Thus, in a network with both real-time and non-real-time flows, the presence of delay constraints for some flows will not adversely affect the throughput of important non-real-time flows that may operate at the lowest priority. The utilities thus provide a mechanism to specify the importance of different flows in the network, and allocate bandwidth according to their importance.

The rate control algorithm based on the NUM with delay constraints is able to achieve a throughput within 20% of the throughput achieved by the NUM without delay constraints (for both utility function choices). This throughput penalty for imposing and ensuring that the latency constraints of flows are met is acceptable, as receiving a smooth video at low resolution is typically better than a high resolution video that often keeps freezing.

For the same experiment, we measured the application utility defined in Equation 9.22 as follows. In order to distinguish short bursty packet deadline misses and losses from prolonged poor performance, we measured the application utility for every 5 second interval and computed the average across all such intervals and

0 10 20 30 40 50 60 70 80 90 100 200 125 100 75 50 25 0

Average Utility (over 5 second windows)

Traffic Generation Rate (Kbps) No Rate Control NUM without Delay Constraints NUM with Delay Constraints No Rate Control - Eq. Util. Flows NUM without Delay Constraints - Eq. Util. Flows NUM with Delay Constraints - Eq. Util. Flows

Figure 9.7: Average utility of high priority flows 0 10 20 30 40 50 60 70 200 125 100 75 50 25 0

Average Utility (over 5 second windows)

Traffic Generation Rate (Kbps) No Rate Control NUM without Delay Constraints NUM with Delay Constraints No Rate Control - Eq. Util. Flows NUM without Delay Constraints - Eq. Util. Flows NUM with Delay Constraints - Eq. Util. Flows

Figure 9.8: Average utility of medium priority flows

0 2 4 6 8 10 12 14 16 200 125 100 75 50 25 0

Average Utility (over 5 second windows)

Traffic Generation Rate (Kbps) No Rate Control NUM without Delay Constraints NUM with Delay Constraints No Rate Control - Eq. Util. Flows NUM without Delay Constraints - Eq. Util. Flows NUM with Delay Constraints - Eq. Util. Flows

Figure 9.9: Average utility of low priority flows

simulation runs. This is presented for the different algorithms in Figures 9.7, 9.8 and 9.9, for high, medium, and low priority flows, respectively. For the deadline-aware rate control algorithm, the degradation in utility is only marginal with increase in traffic generation rate. In contrast, the other algorithms suffer a significant utility degradation for real-time flows except when the network is underloaded.

0 0.05 0.1 0.15 0.2 7 4 2

Deadline Miss Ratio

Flow Priority Value

Unrelaxed Delay Constraints Delay Constraints Relaxed by 10% Delay Constraints Relaxed by 20% Delay Constraints Relaxed by 33%

Figure 9.10: Deadline miss ratio achieved by the deadline-aware rate control algorithm when the de- lay constraint is relaxed

0 20 40 60 80 100 120 140 7 4 2 Throughput (Kbps) Flow Deadline (s)

Unrelaxed Delay Constraints Delay Constraints Relaxed by 10% Delay Constraints Relaxed by 20% Delay Constraints Relaxed by 33%

Figure 9.11: Throughput achieved by the deadline- aware rate control algorithm when the delay con- straint is relaxed

In order to estimate how accurate or pessimistic the delay constraint is, we progressively relaxed the delay constraint and measured the deadline miss ratio and throughput for different priority classes for the algorithm based on the NUM formulation with delay constraints (shown in Figures 9.10 and 9.11). When the delay constraints were relaxed by 10%, the throughput increased by about 5%, but the deadline miss ratio nearly doubled. This shows that the delay constraints derived in this chapter are reasonably accurate. In order to study the stability of the algorithm under dynamic load conditions, we conducted experiments where we allowed flows to enter and leave the network during the course of the experiment. Flows start with a transmission rate of 50 Kbps, and the deadline aware rate control algorithm is then used to adjust the transmission rate of flows. The transmission rates of flows and total utility (individual flow utilities were assumed to be proportional to their priority as defined in Equation (9.20)) are plotted versus time in Figure 9.12 for this experiment. At time 0, there were three flows in the network, flows 1, 2, and 3, with

0 25 50 75 100 125 150 175 200 0 10 20 30 40 50 60 70 80 90 100 110 120 130 140 150 0 25 50 75 100 125 150 175 200 225 250 Transmission Rate (Kbps) Total Utility Time (s) Flow 1 Flow 2 Flow 3 Flow 4 Flow 5 Total Utility

Figure 9.12: Transmission rate and total utility vs. time for a dynamic set of flows in the network

0 10 20 30 40 50 60 70 80 200 125 100 75 50 25 0 Throughput (Kbps)

Traffic Generation Rate (Kbps) High Priority Real-time Flows Medium Priority Real-time Flows Low Priority Non-real-time Flows

Figure 9.13: Transmission rate and total utility vs. time for a dynamic set of flows in the network priority values 4, 7, and 4 (flow deadlines were same as the priority value in seconds). Fifty seconds into the experiment, flows 4 and 5, with priority values 2 and 7 were started. Note the drop in transmission rate for the first three flows and the increase in utility at time 50. At time 100, flows 1 and 2 leave the network. Note the increase in transmission rates for the other three flows at time 100. The algorithm was observed to stabilize within 10 seconds of each instance of flows entering or leaving the network.

In order to show that the NUM formulation in the presence of delay constraints does not discriminate against non-realtime flows, we conducted an experiment in the presence of both real-time and non-realtime flows. For this experiment, the lowest priority flows (with priority value 7) were made non-real-time flows. The high and medium priority flows were real-time flows with priority values 2 and 4 (equal to their respective deadlines). In order to demonstrate that the throughput allocated to each flow is only determined by its importance defined in the utility function, and not so much by its priority, all flows were assigned the same utility function. The throughput for each priority level for different traffic generation rates is plotted in Figure 9.13. The plot shows that all three priority levels receive nearly the same throughput regardless of their priority. Thus, the importance in the utility function can be adjusted to differentially allocate bandwidth to different flows regardless of whether they have delay constraints.

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 10 5 3 1 0

Deadline Miss Ratio

Maximum Speed (meters/second) No Rate Control NUM without Delay Constraints NUM with Delay Constraints NUM without Delay Constraints - Eq. Util. Flows NUM with Delay Constraints - Eq. Util. Flows

Figure 9.14: Deadline miss ratio of high priority flows for different mobility rates 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 10 5 3 1 0

Deadline Miss Ratio

Maximum Speed (meters/second) No Rate Control NUM without Delay Constraints NUM with Delay Constraints NUM without Delay Constraints - Eq. Util. Flows NUM with Delay Constraints - Eq. Util. Flows

Figure 9.15: Deadline miss ratio of medium priority flows for dif- ferent mobility rates

0 0.1 0.2 0.3 0.4 0.5 0.6 10 5 3 1 0

Deadline Miss Ratio

Maximum Speed (meters/second) No Rate Control NUM without Delay Constraints NUM with Delay Constraints NUM without Delay Constraints - Eq. Util. Flows NUM with Delay Constraints - Eq. Util. Flows

Figure 9.16: Deadline miss ratio of low priority flows for different

In document Santiago de Luxán Meléndez (página 35-38)

Documento similar