On the Capacity Requirement for Arbitrary End-to-End Deadline and Reliability Guarantees in Multi-hop Networks
Han Deng, I-Hong Hou

TL;DR
This paper analyzes the capacity needed in multi-hop networks to guarantee end-to-end deadlines and reliability, proposing efficient algorithms that require minimal redundancy and outperform existing policies.
Contribution
It introduces a low-complexity online algorithm that guarantees performance with minimal redundancy and a distributed protocol for practical deployment.
Findings
Redundancy needed is at most twice the theoretical lower bound in large networks.
The proposed policies outperform existing state-of-the-art methods.
The algorithms require only a small amount of additional capacity to ensure guarantees.
Abstract
It has been shown that it is impossible to achieve both stringent end-to-end deadline and reliability guarantees in a large network without having complete information of all future packet arrivals. In order to maintain desirable performance in the presence of uncertainty of future packet arrivals, common practice is to add redundancy by increasing link capacities. This paper studies the amount of capacity needed to provide stringent performance guarantees. We propose a low-complexity online algorithm and prove that it only requires a small amount of redundancy to guarantee both end-to-end deadline and reliability. Further, we show that in large networks with very high reliability requirements, the redundancy needed by our policy is at most twice as large as a theoretical lower bound. Also, for practical implementation, we propose a fully distributed protocol based on the previous…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNetwork Traffic and Congestion Control · Advanced Wireless Network Optimization · Wireless Networks and Protocols
On the Capacity Requirement for Arbitrary End-to-End Deadline and Reliability Guarantees in Multi-hop Networks
Han Deng
Department of ECE
Texas A&M University
College Station, TX 77840, USA
Email: [email protected]
I-Hong Hou
Department of ECE
Texas A&M University
College Station, TX 77840, USA
Email: [email protected]
Abstract
It has been shown that it is impossible to achieve both stringent end-to-end deadline and reliability guarantees in a large network without having complete information of all future packet arrivals. In order to maintain desirable performance in the presence of uncertainty of future packet arrivals, common practice is to add redundancy by increasing link capacities. This paper studies the amount of capacity needed to provide stringent performance guarantees. We propose a low-complexity online algorithm and prove that it only requires a small amount of redundancy to guarantee both end-to-end deadline and reliability. Further, we show that in large networks with very high reliability requirements, the redundancy needed by our policy is at most twice as large as a theoretical lower bound. Also, for practical implementation, we propose a fully distributed protocol based on the previous centralized policy. Without adding redundancy, we further propose a low-complexity order-optimal online policy for the network. Simulation results also show that our policy achieves much better performance than other state-of-the-art policies.
I Introduction
Many emerging safety-critical applications, such as Internet of Things (IoT) and Cyber-Physical Systems (CPS), require communication protocols that support strict end-to-end delay and reliability guarantees for all packets. In a typical scenario, when sensors detect unusual events that can cause system instability, they send out this information to actuators or control centers. This information needs to be delivered within a strict deadline for actuators or control centers to resolve the unusual events. The system can suffer from a critical fault when a small portion of packets fail to be delivered on time.
Despite the huge literature on quality of service (QoS), there is little work that can provide end-to-end delay and reliability guarantees simultaneously, especially when packet arrivals are time-varying and unpredictable. The lack of progress is mainly caused by two fundamental challenges. On one hand, it is obvious that one cannot design the optimal network policies without obtaining complete knowledge of future packet arrivals and incurring high computation complexity. Therefore, practical solutions need to rely on online suboptimal policies. On the other hand, in a multi-hop network, the scheduling decision of one communication link will impact the decisions of subsequent links. The negative effects of suboptimal decisions by online policies therefore get accumulated along the path of multi-hop transmissions. In fact, a recent work by Mao, Koksal, and Shroff [1] has proved that the performance of any online policies deteriorates as the length of the longest path in the network increases. As a result, no online policy can provide meaningful performance guarantees when the size of the network is large.
In order to maintain desirable performance using online suboptimal policies, current practice is to add redundancy into the system. During system deployment, the capacities of communication links are chosen to be larger than necessary. Such redundancy alleviates the negative impacts of suboptimal decisions by online policies. Using this approach, a critical question is to determine the amount of redundancy needed to provide the desirable performance guarantees. This paper aims to answer this question.
We first show that the problem of maximizing the number of timely packet deliveries can be formulated as a linear programming problem when one knows the complete knowledge of all future packet arrivals. In the setting of online policies, some of the parameters of this linear programming problem will only be revealed when the corresponding packets arrive. Therefore, online policies need to make routing and scheduling decisions for packets without knowing all parameters. On the other hand, we also observe that adding redundancy by increasing link capacities is equivalent to relaxing a subset of constraints in the linear programming problem. Based on these observations, we define a competitive ratio that, given the amount of redundancy, quantifies the relative performance of online policies in comparison to the optimal offline solution.
Using the primal-dual method, we propose an online policy that achieves good performance in terms of competitive ratio. This policy has several important features: First, when there is no redundancy added to the system, the performance of our online policy is asymptotically better than that of the recent work [1] when the size of the network increases. Second, we also show that only a small amount of redundancy is needed to achieve strict performance guarantees. Specifically, in order to guarantee the timely delivery of at least as many packets as the optimal solution in a network whose longest path has length , our policy only needs to increase link capacities by times. Finally, we also show that our policy can be implemented with very low complexity.
Next, we establish a theoretical lower bound of competitive ratio for all online policies. We show that, in order to guarantee a certain degree of performance, the redundancy needed by our policy is only a small amount away from the theoretical limit. In particular, when both and , as defined in the previous paragraph, go to infinity, the redundancy needed by our policy is at most twice as large as the theoretical limit.
We also study online policies when one cannot increase network capacity by adding redundancy. We propose another online policy and prove that it is order optimal with fixed link capacity. Specifically, we show that this online policy guarantees to deliver at least as many packets before their deadlines as the optimal offline solution, where is the maximum route length. As the previous study [1] has proved no online policy can deliver more than packets without redundancy, our policy is order-optimal.
While neither of our online policies need any information about future packet arrivals to make routing and scheduling decisions, they are centralized algorithms that require tight coordination. For large networks without a centralized coordinator, we also propose a fully distributed protocol that is inspired by the design principles of our centralized online policies. This distributed protocol only requires each node to broadcast its local congestion information very infrequently, and therefore it only incurs a small amount of communication overhead. When a packet arrives at a source node, the source node determines a suggested route for the packet using its received congestion information, and each link on the route makes scheduling decisions solely based on its local information.
All three of our policies are evaluated by simulations. We compare our policies with the widely used earliest deadline first policy (EDF) and recent policy studied in [1]. Simulation results show that all our policies perform better than the other two policies. This result is in particular surprising because our distributed protocol even achieves better performance than the online policy in [1], which is a centralized one.
The rest of the paper is organized as follows. Section II reviews some existing works. Section III introduces our system model defines the competitive ratio. Section IV proposes our online policy and studies its competitive ratio and computation complexity. Section V establishes a theoretical lower bound of competitive ratio. Section VI proposes an order-optimal policy and studies its competitive ratio. Section VII proposes a distributed protocol based on the intuitions of our centralized online policy. Section VIII provides simulation on our proposed algorithms and compare them with two other online policies. Finally, Section IX concludes this paper.
II Related Work
Online scheduling problem in real-time environment has been studied in many previous works. Studies show that earliest deadline first algorithm (EDF) [2, 3] and least laxity first algorithm (LLF) [3] achieve the same performance as the optimal offline algorithm when the system is under-loaded, that is, the optimal offline algorithm can serve all jobs in the system. In under-loaded system, all jobs enter the system can be served by EDF and we do not need to drop any job when it arrives at the system. However, in over-loaded system, even with optimal offline algorithm, there are still some jobs that cannot be served. EDF and LLF achieve the same performance as the optimal online policy when the system is over-loaded. Also [3] proved that no online algorithm can guarantee to serve more than of the jobs that can be served by optimal offline algorithm and provided an algorithm in a uniprocessor system which achieves service bound. [4, 5] consider admission control in online scheduling. In [4], when all jobs have equal length, the competitive ratio of deterministic algorithm is bounded by 2. [6] considers the similar model as [4]. It introduces a parameter to indicate the willingness of a job to have a delay before being served. It shows that when all jobs have equal length, the competitive ratio of deterministic algorithm is -competitive instead.
In addition, online scheduling with multiple-server case has also been studied. [7] studies the scheduling of equal length jobs on two identical machines. [8, 9, 10] studies the case with parallel machines. The scheduler need to decide whether to accept or reject a packet and which machines is chosen to serve the job. [9] has proposed an algorithm with immediate decision which approaches -competitive when the number of machines is greater or equal to 3. It also provide another lower bound that deterministic online algorithm with immediate decision is no better than 1.8-competitive when there are 2 machines. Later [10] has shown that online algorithm which makes immediate decision upon job releasing is bounded by -competitive for multiple machine case.
There are also many works studying the scheduling problem in multihop network. An early study [11] focuses on the problem of packet scheduling with arbitrary end-to-end delay, fix route, and known packet injection rate. It propose a distributed algorithm which achieve a certain delay bound. [12] studies the scheduling problem on a tree network. Packets arrive at an arbitrary node and they need to be transmitted to root node before the deadlines. Any packet that cannot arrive root node within deadline is considered lost. Thus this is also a fix route problem. The goal is to minimize the total lost packets. Shortest time to extinction (STE) algorithm is proposed and it is shown to achieve the performance of optimal offline policy. Also there are many works studying the end-to-end delay in multiohop network. Rodoplu et al. [13] have studied the problem of dynamic estimating end-to-end delay over multi-hop mobile wireless networks. Sanada Komuro and Sekiya[14] have used Markov-chain model to study the string-topology multi-hop network and analyse the end-to-end throughput and delay. Jiao et al. [15] have studied the problem of estimating the end-to-end delay distribution for general traffic arrival model and Nakagami-m channel model by analyzing packet delay at each hop. Li et al. [16] ] have proposed using expected end-to-end delay for selecting path in wireless mesh networks. The expected end-to-end delay takes both queuing delay and delay caused by unsuccessful wireless transmissions. However, their work only aims at minimizing the average end-to-end delays, and cannot provide guarantees on per-packet delays.
Li and Eryilmaz [17] has studied the end-to-end deadline constrained traffic scheduling in multihop network. They develop algorithms to meet the deadline and throughput requirement in a wired network. However, they only consider the fix route model and they do not provide any performance guarantee. Wang et al. [18] have studied the problem of routing and scheduling on multi-hop wireless sensor network in order to optimize the system with the constraint of end-to-end delay and proposed a sub-optimal algorithm. Hou[19] proposed a throughput optimal policy for up-link tree networks with end-to-end delay constraints and delivery ratio requierement. The packets deadlines are the end of the frames in which they are generated. Singh and Kumar[20] have proposed a scheduling policy which maximize the throughput for multi-hop wireless networks. However, the paper uses a fix-route model and does not consider end-to-end delay. Mao, Koksal and Shroff [1] also considers a fix route problem. The network has arbitrary packet arrival and packet weight. The paper aims to maximize the total cumulative weight of packets that reach destination before their deadline. The paper has proved that the competitive ratio of any online policy is no better than , where is the length of the maximum route. It has also proposed an admission control and packet scheduling policy and shown that it is -competitive. Liu and Yang [21] have studied the multi-hop routing problem with hard end-to-end delay and the throughput region. They also assume that packets are required to be delivered to destination within one frame and the performance is evaluated by simulation. Our work will focus on online routing and scheduling on multi-hop network with end-to-end delay constraint and aim to guarantee both packet deadline and network delivery ratio.
III System Model
We consider a network with multihop transmissions. The network is represented by a directed graph where each node represents a router and an edge from one node to another represents a link between the corresponding routers. Packets arrive at their respective source nodes following some unknown sequence. We use to denote the set of all packets and the set of all links. When a packet arrives at its source node, it specifies its destination and a deadline. The packet requests to be delivered to its destination before its specified deadline. Packets that are not delivered on time do not have any value, and can be dropped from the network. We aim to deliver as many packets on time as possible.
We assume that time is slotted and numbered by . Different links in the network may have different link capacities, and we denote by the number of packets that link can transmit in a time slot. At the beginning of each time slot, each node decides which packets to transmit over its links, subject to capacity constraints of the links. Packets transmitted toward a node in time slot will be received by that node at the end of the time slot, so that the node can transmit these packets to subsequent nodes starting from time slot .
Delivering a packet to its destination before its deadline require determining two things: the route used to forward the packet from its source to its destination, and the times at which the packet is transmitted along its route. We define a valid schedule for each packet as the collection of links of a route, as well as the times of transmissions for each of these links, so that packet can be delivered to its destination on time. For example, consider the network shown in Fig. 1. Suppose a packet arrives at node A at time slot 1, and needs to be delivered to node F before the end of time slot 3. One valid schedule for this packet is to transmit it over link d in time slot 1, and then over link g in time slot 2. We use to represent this valid schedule. Other valid schedules include , etc. On the other hand, is not a valid schedule because the packet is delivered to its destination after its deadline at time slot 4. The schedule is not valid because it would require node D to transmit the packet over link g at time slot 2 before it receives the packet at time slot 3. For each packet , we let denote the set of valid schedules for . The problem of deciding how to deliver packets on time then becomes one of choosing valid schedules for packets.
We use to denote the schedule selection for packet . If , packet is transmitted using valid schedule , and , otherwise. Given the information of all packets, the problem of maximizing the total number of successful deliveries can be formulated as the following linear programming problem:
Schedule:
[TABLE]
Since if packet is transmitted using valid schedule , Eq. (1) is the total number of packets that are delivered on time. Eq. (2) states that at most one valid schedule can be chosen for each packet. Eq. (3) states that each link can transmit at most packets in any time slot. In practice, can only be either 0 or 1, but our problem formulation allows to be any real number in . Thus, the optimal solution to Schedule describes an upper bound on the total number of successful deliveries.
If information of all packets is available when the system starts, the optimal solution to Schedule can be found by standard linear programming methods. In practice, however, packets arrive sequentially, and we need to rely on online policies that determines the values of for each arriving packet without knowing future packet arrivals. Without the knowledge of future arrivals, it is obvious that online policies cannot always achieve the optimal solution to Schedule. In fact, a recent work [1] has shown that, when the longest path between a source node and a destination node is , no online policy can guarantee to deliver more than as many packets as the optimal solution. To put this number in perspective, consider a medium-sized network with . Even when the optimal solution can deliver all packets on time, the bound in the recent work states that no online policy can guarantee to deliver more than of all packets. Such performance of online policies is unacceptable for virtually any applications.
In order to achieve good performance for online policies in the presence of unknown future arrivals, we consider the scenario where service providers can increase link capacities by, for example, upgrading network infrastructures. When the link capacities are increased by times, link can transmit packets in each time slot. With the increase in capacities, our problem can be rewritten as follows:
Schedule():
[TABLE]
To evaluate the performance of online policies, we define a competitive ratio that incorporates the increase in capacities:
Definition 1
Given a sequence of packet arrivals, let be the optimal value of in Schedule, and be the number of packets that are delivered under an online policy when the link capacities are increased by times. The online policy is said to be -competitive if , for any sequence of packet arrivals.
IV An Online Algorithm and Its Competitive Ratio
IV-A Algorithm Description
In this section, we propose an online policy based on primal-dual method and analyze the competitive ratio. We first note that the dual problem of Schedule is:
Dual:
[TABLE]
where is the Lagrange multiplier corresponding to constraint (2), and is the Lagrange multiplier corresponding to constraint (3).
By the Weak Duality Theorem, we have the following lemma:
Lemma 1
Given any vectors of and that satisfy the constraints (10)–(12), we have .
We now introduce our online algorithm. Our algorithm constructs simultaneously while ensuring they satisfy all constraints in Schedule() and Dual. Initially, it sets . When a packet arrives, the algorithm finds the valid schedule that has the largest among all . If , then the algorithm drops packet and sets and , for all . On the other hand, if , packet is transmitted using the valid schedule . Our algorithm sets , , and updates as for all , where is chosen to be . The complete policy is shown in Algorithm 1.
IV-B Complexity of the Algorithm
In step 4, the algorithm finds the valid schedule that maximizes . We now show that this step can be completed in polynomial time by dynamic programming. Before presenting the algorithm, some new notations are given as follows. We say that packet joins the network at the beginning of time slot , and specifies its deadline as . Its source node and destination node are and , respectively. Therefore, a valid schedule for is one that can deliver a packet from node to node between time slots and .
Let be the smallest value of among all schedules that can deliver a packet from node to node between time slots and . if there is no schedule that delivers a pacekt from to between time slots and . Step 4 of Alg. 1 is then equivalent to finding the valid schedule that achieves . Since packet arrives at the beginning of time slot , or, equivalently, at the end of time slot , we set and for .
There are only two different ways to deliver a packet to node by the end of time slot : The first is to deliver the packet to by time slot , in which case . The second is to deliver the packet to one of ’s neighbors, say, node , by time slot , and then forward the packet along the link from to at time slot . In this case, . Therefore, we have
[TABLE]
Based on the above recursive equation, we design an algorithm for computing . The detailed algorithm is shown in Algorithm 2, where we also use to denote the schedule that achieves .
In Alg. 2, the inequality is only evaluated once for any link and time slot. Let be the number of links in the system. Suppose the number of links is larger than the number of nodes, and , for all , then the complexity of Alg. 2 is .
IV-C Competitive Ratio Analysis
Before analyzing the performance of Algorithm 1, we first establish a basic property of the values of .
Lemma 2
Let be the value of after packets are scheduled to use link at time . Then,
[TABLE]
Proof:
First, note that the value of is only changed when Algorithm 1 uses link at time to transmit a packet. Therefore, the value of only depends on the number of packets that are scheduled to use link at time .
We then prove (13) by induction. Initially, when , and (13) holds.
Suppose (13) holds for the first packets. When the -th packet is scheduled for link at time , we have
[TABLE]
We select , and therefore
[TABLE]
and (13) still holds for . Thus, by induction, (13) holds for all . ∎
We now establish the competitive ratio of Algorithm 1.
Theorem 1
Let , , and be the longest path between a source node and a destination node, that is, all valid schedules have , for all . Algorithm 1 produces solutions that satisfy all constraints in Schedule() and Dual. Moreover, Algorithm 1 is -competitive, which converges to -competitive, as .
Proof:
First, we show that the dual solutions and satisfy constraints (10) to (12). Initially, we have . By Lemma 2, holds. Since step 6 is only used when , holds. From step 4 and 6, we know that . Thus (10) to (12) hold.
Next, we show satisfies constraints (6) to (8). By step 4, the algorithm picks at most one schedule for packet , constraint (6) holds. With Lemma 2, when packets use link at time . Since a valid schedule including will be chosen for packet only when , all in the chosen valid schedule must have , and therefore the number of packets transmitted over link at time must be less than . Thus, at any time , there are at most packets using link . Constraint (7) holds. By initialization and step (8), constraint (8) holds.
We derive the ratio between and . Initially, both are equal to 0. We consider the increasing amount for both when a new packet arrives at the network. We use to denote the change of , and to denote the change of .
If packet is dropped, both and are 0. If packet is accepted and transmitted using valid schedule , we have . Thus, . On the other hand, is increased as:
[TABLE]
Therefore, for each packet arrival, the ratio between and is no larger than if . When the algorithm terminates, we have . By Lemma 1, , and the competitive ratio of Algorithm 1 is . When , , and the competitive ratio of Algorithm 1 converges to . ∎
There are several important implications of Theorem 1. First, without increasing capacity, that is, when , the competitive ratio of our policy is . In comparison, the online algorithm proposed in the recent work [1] focuses on the special case of and has a competitive ratio of . Therefore, our algorithm is asymptotically better than the online algorithm in [1]. Second, this theorem allows us to quantify the amount of capacity needed to a certain performance guarantee. Suppose the optimal solution to Schedule indeed delivers all packets. In order to guarantee that of the packets are transmitted to their destinations before their deadlines, Theorem 1 states that we only need to increase all link capacities by times so that . Therefore, we have . For example, if we are required to deliver of the packets and the longest path consists of 10 hops, then we need to increase capacity by 6.9 times.
V A Theoretical Lower Bound for Competitive Ratio
In Section IV, we showed that our policy is -competitive. In this section, we will establish a lower bound for the competitive ratio of online policies.
Theorem 2
Any online algorithm cannot be better than -competitive.
Proof:
We design a network as shown in Fig 2. We start to construct the network from an up-link tree, which is shown as the white nodes in Fig 2. Root is marked as node and it is the destination of all packets. There are levels of non-root nodes with nodes in each level. Each node is connected to one node in the next level. Nodes do not share parent except the -th level nodes share the same root node. At the -th level, where , there are extra nodes, which is shown as the black nodes in Fig 2, with each node connecting to an unique set of nodes in this level. For example, there is one black node connected to all white nodes in level 1, and there are black nodes connected to white nodes in level 2, where each of these black nodes is connected all but one white nodes in level 2. Likewise, there are black nodes connected to white nodes in level 3, with each black node connected to white nodes in level 3, and no two black nodes are connected to the same subset of white nodes.
Next, we describe packet arrivals. Packets only arrive at black nodes. Of all black nodes connected to the same level of white nodes, only one black node has packet arrival. Let be the set of white nodes in -th level which connects to the black node with packet arrivals. The black nodes with packet arrivals are chosen such that all nodes in are connected to those in . Fig 3 is a simplified network of Fig 2, where we omit the black nodes with no packet arrival and marked each black node with a number from 1 to .
Packets arrive at nodes . Their destination is node . Each link in the network has capacity . At the beginning of time slot , there are packets arriving at node . Node is connected to links: , , , . At the beginning of time slot , there are packets arriving at node . Node is connected to links: , , , . Similarly for nodes , , . At the beginning of time , there are packets arriving at node . The deadline of all packets is . Node is connected only to link .
When one knows which black nodes have packet arrivals, the offline optimal algorithm is to transmit the first packets through link and the following links, the second packets through link and the following links, , and the -th packets through link and the following link. The total number of delivered packets is .
Next we consider the online algorithm when all links’ capacity is increased by times. Since online policies do not know which black nodes will have packet arrivals, the optimal online policy is to distribute packets evenly among all connected links. That is, at time , each of links , , transmit packets. At time , each of link , , transmits packets. At time , link , , transmits packets. For simplicity, we call the routes from node to node through route . If all packets arrive at node are accepted, routes , have the same load on each link. When any link on a single route reaches its capacity, the route cannot be used for future arrival packets. Suppose the route gets over-loaded at time , that is, packets arrive at node are accepted and packets arrive at node are not fully accepted. The maximum load of a single link on route is at most and at least . We then have:
[TABLE]
and
[TABLE]
Since
[TABLE]
and
[TABLE]
We have:
[TABLE]
and
[TABLE]
Then we can derive the value of as: . The total number of accepted packets is in the range .
Thus the competitive ratio of an online policy is at best . In Fig. 2, the longest path in the network is between the leftmost black node and the sink, which has length . The competitive ratio can then be rewritten as . ∎
Let us once again consider the scenario where online policies need to guarantee to deliver at least as many packets as the optimal solution. Theorem 2 states that any online policy needs to increase its link capacities by at least times so that . Solving this equation, and we have needs to be at least . In comparison, our policy only needs to increase link capacities by times to ensure the delivery of as many packets as the optimal solution. Therefore, the capacity requirement of our policy is at most away from the lower bound. Suppose we fix the ratio between and , and let them both go to infinity, then we have . Therefore, when both and are large, our policy at most requires twice as much capacity as the theoretical lower bound.
VI An Order-Optimal Online Policy with Fixed
We have shown that Alg. 1 is -competitive. Without increasing link capacity, i.e, , the algorithm is -competitive, as . While the competitive ratio of Alg. 1 is an order better than that of the online policy in the previous work [1], it still fails to achieve the theoretical bound of -competitive. In this section, we propose another online algorithm and prove that it achieves the theoretical bound when .
VI-A Algorithm Description
Similar to the design of Alg. 1, we aim to design an algorithm that constructs while ensuring they satisfy all constraints in Schedule and Dual. The algorithm is described in Alg. 3. One can see that Alg. 3 is very similar to Alg. 1, and their only difference lie in the update rules for . Specifically, let be the value of when link serves a total number of packets at time . Then Alg. 3 chooses the value of as:
[TABLE]
To illustrate the difference in , we plot the values of for a link with under the two policies in Fig. 4, where we consider the two cases and for Alg. 3. As can be shown in the figure, when is small, Alg. 3 increases the value of much slower than Alg. 1 does. Moreover, Alg. 3 increases slower when is larger. Recall that both Alg. 1 and Alg. 3 only schedule a packet when , or, equivalently, . By increasing slower when is small, Alg. 3 ensures that more packets with long routes can be accepted, especially when the network is lightly loaded.
VI-B Competitive Ratio Analysis
We now prove that Alg. 3 achieves the theoretical bound in [1] by being -competitive.
Lemma 3
Let . In Algorithm 3, each time a new packet is scheduled, the ratio between the change of Schedule and Dual is bounded by , where the value of is independent of .
Proof:
If a new packet is admitted to the network, the increasing amount of Dual is
[TABLE]
We define as
[TABLE]
Note that . By using Taylor Sequence, we then have
[TABLE]
for some bounded constant , where and are the first and second derivative of , respectively. We note that the function is continuous for all , and infinitely differentiable for all except at the point . At the point , we define and . This ensures that the above inequality still holds.
By (16) we know that if and only if .
If , then . We have:
[TABLE]
Let , then
[TABLE]
when .
On the other hand, If , then and . We have:
[TABLE]
Let , then
[TABLE]
when .
If packet is transmitted using valid schedule , we have . Thus, . On the other hand, is increased as:
[TABLE]
[TABLE]
From Algorithm 3 step 4 we know that , thus we have
[TABLE]
and the proof is complete. ∎
Theorem 3
Algorithm 3 produces solutions that satisfy all constraints in Schedule and Dual. Moreover, it is -competitive, as .
Proof:
First, we show that the dual solutions and satisfy constraints (10) to (12). Initially, we have . By (16), holds. Since step 5 is only used when , holds. From step 3 and 5, we know that . Thus (10) to (12) hold.
Next, we show satisfies constraints (2) to (4). By step 3, the algorithm picks at most one schedule for packet , constraint (2) holds. With (16), when the number of packets on link at is , we have . Also, since a packet is scheduled if , we have for all . Therefore, the number of packets transmitted on link at any time is at most . Constraint (3) holds. By initialization and step (13), constraint (4) holds.
When a new packet arrives, it will either be dropped or scheduled. If it is dropped, both and are 0. If it is scheduled, both (9) and (1) increase. With Lemma 3,the ratio between and is bounded by . Therefore the competitive ratio of Algorithm 3 is , as .
∎
Thus, comparing with the result in [1], Algorithm 3 achieves the optimal competitive ratio when .
VII A Fully Distributed Protocol for Implementation
The two algorithms that we have proposed so far are both centralized algorithms. Specifically, when a packet arrives at a node, the node needs to have complete knowledge of all of all links to find a valid schedule. Such information is usually infeasible to obtain. In this section, we propose a distributed protocol based on the design of Algorithm 1.
In our distributed protocol, the task of transmitting a packet to its destination is decomposed into two parts: First, when a packet arrives at a node, the node determines a suggested schedule based on statistics of past system history. This suggested schedule consists of the route for forwarding the packet, as well as a local deadline for each link. After determining the suggested schedule, the node simply forwards it to the first link of the route. On the other hand, when a link receives a packet along with a suggested schedule, the link tries to forward the packet to the next link in the suggested schedule before its local deadline. The link drops the packet when it cannot forward the packet on time.
To facilitate this protocol, each link keeps track of its own , which reflects the number of packets that are scheduled to be transmitted over link at time . The value of changes over time, as link schedules more and more packets to be transmitted at time . Therefore, we define as the value of when the current time is . Each link then measures as the average of . In other words, when the current time is , the expected value of is . Link broadcasts its periodically so that all nodes can estimate the values of .
We now describe how a node determines a suggested schedule upon the arrival of a packet. Suppose a packet arrives at time . Following the Alg. 1, the node would like to find a valid schedule that maximizes . In practice, the node does not know the exact value of . However, it knows that the expected value of is . In our protocol, the node assumes that , and then finds a valid schedule that maximizes . Similar to Alg. 1, the node drops the packet if . If , then the node puts information of into the header of the packet, and forwards the packet to the first link in .
Since the actual value of can be different from , there is no guarantee that a packet can be delivered on time using the valid schedule even if . Therefore, when a node determines a valid schedule for a packet, the valid schedule is treated only as a suggestion for links in . Specifically, if contains an entry , then the link interprets as a requirement that needs to forward the packet to the next link before , or drops the packet. When obtains the packet, it still has the freedom to choose when to forward the packet, as long as the packet is forwarded before time .
Next, we discuss how each link determines the actual time to transmit each packet. Obviously, each link knows its own . From the design of Alg. 1, we can see that Alg. 1 prefers to transmit packets when is small. Our proposed policy is based on this principle. When a link receives a packet, it finds the entry from the valid schedule specified in the header of the packet. Link then finds a time between the current time and that has the smallest , and transmits the packet at time . Alg. 5 describes the details of the policy for packet transmission.
VIII Simulation
In this section, we evaluate the performance of our policies by simulation. We compare our algorithms with EDF policy and the policy, which we call Mao-Koksal-Shroff (MKS) online algorithm, proposed in [1]. Both EDF policy and MKS online algorithm focus on packet scheduling, and are applicable only when the route of the packet is given. For these two policies, we assume that each packet is routed through the shortest path.
We first consider a small network as shown in Fig 5. The network has 9 nodes from node 1 to node 9. There are directed arrows showing the directed links between nodes. All links have the same capacity . We assume that there are 1000 packets arriving at the system. For each packet, the source node is chosen uniformly at random between node 1 to node 6, and the destination is chosen uniformly at random between node 7 to node 9. The inter-arrival time between packets are chosen to be 0 with probability 0.7 and 1 with probability 0.3. The deadline of each packet equals its arrival time plus a slack time. The slack time is chosen uniformly from integers between 2 and 6.
Simulation results for different values of are shown in Fig. 6. From the result, we can see that all our three policies outperform two other current policies. From the figure, we can see that all our policies are able to deliver all packets when is 2. On the other hand, EDF is able to deliver all packets when , and MKS can deliver all packets only when is as large as 6. We also note that both EDF and MKS are centralized policies. The fact that our distributed algorithm performs better than these two centralized policies further highlights the superiority of our algorithms.
Next, we consider that different links can have different capacities. Since MKS requires all links to have the same capacity, we only compare our policies against EDF. The network topology is also shown in Fig 5. We assume that, when , the link capacity are integers uniformly chosen from 5 to 10. There are 10000 i.i.d packets to be delivered. At the beginning of each time slot, there are a certain number of packets arriving the system. The source node and destination node are both chosen from node 1 to node 9 with equal probability and destination node is not allowed to be the same with source node. The number of packets is randomly chosen between 100 and 500. Each packet has a slack time between arrival and deadline, which is uniformly chosen from . The result is shown in Fig 7. Once again, we see that our policies, including the distributed algorithm, perform much better than EDF in most cases.
IX Conclusion
In this paper, we study the multi-hop network scheduling problem with end-to-end deadline and hard transmission rate requirement. Given the capacity of each link in the network, we aim to find out how much capacity we need to increase to guarantee the required ratio of packets can be successfully transmitted to its destination before its deadline without knowing the packet arrival sequences in advance.
We have proposed an online algorithm which works for both fix route and non-fix route network. The algorithm is proved to be -competitive, where is the length of the longest path. We have also showed that the complexity of our algorithm is , where is the total number of links and is the largest slack time. Next, we have showed that any online algorithm cannot be better than -competitive. When both and required deliver rate are large, our policy requires at most twice as much capacity as the lower bound. In addition, We have proposed an online algorithm for fixed capacity network. When the capacity cannot be increased, our algorithm is proved to be -competitive, which is also an order-optimal policy. For practical implementation of our centralized algorithm, we have proposed a heristic for distributed algorithm so that each node can make decisions without requiring real-time information from all other nodes. In addition to the theoretical results, we compare our policies with two other online policies, including the widely-used EDF policy and a recent proposed policy, by simulation. The results show that the performance of our policies are better than the other two policies. Also the result shows that the distributed algorithm still provide a good delivery ratio.
X Acknowledgment
This material is based upon work supported in part by the U. S. Army Research Laboratory and the U. S. Army Research Office under contract/grant number W911NF-15-1-0279 and NPRP Grant 8-1531-2-651 of Qatar National Research Fund (a member of Qatar Foundation).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Z. Mao, C. E. Koksal, and N. B. Shroff, “Optimal online scheduling with arbitrary hard deadlines in multihop communication networks,” IEEE/ACM Transactions on Networking , vol. 24, pp. 177–189, Feb 2016.
- 2[2] C. L. Liu and J. W. Layland, “Scheduling algorithms for multiprogramming in a hard-real-time environment,” J. ACM , vol. 20, pp. 46–61, Jan. 1973.
- 3[3] S. Baruah, G. Koren, D. Mao, B. Mishra, A. Raghunathan, L. Rosier, D. Shasha, and F. Wang, “On the competitiveness of on-line real-time task scheduling,” in Real-Time Systems Symposium, 1991. Proceedings., Twelfth , pp. 106–115, Dec 1991.
- 4[4] S. A. Goldman, J. Parwatikar, and S. Suri, “Online scheduling with hard deadlines,” Journal of Algorithms , vol. 34, no. 2, pp. 370 – 389, 2000.
- 5[5] M. H. Goldwasser and B. Kerbikov, “Admission control with immediate notification,” J. of Scheduling , vol. 6, pp. 269–285, May 2003.
- 6[6] M. H. Goldwasser, “Patience is a virtue: The effect of slack on competitiveness for admission control,” Journal of Scheduling , vol. 6, no. 2, pp. 183–211, 2003.
- 7[7] M. H. Goldwasser and M. Pedigo, “Online nonpreemptive scheduling of equal-length jobs on two identical machines,” ACM Trans. Algorithms , vol. 5, pp. 2:1–2:18, Dec. 2008.
- 8[8] J. Ding and G. Zhang, Online Scheduling with Hard Deadlines on Parallel Machines , pp. 32–42. Berlin, Heidelberg: Springer Berlin Heidelberg, 2006.
