Wireless Internet of Things: Enabling Future Generation Connectivity and CommunicationsView this Special Issue
The Lyapunov Optimization for Two-Tier Hierarchical-Based MAC in Cloud Robotics
Cloud robotics can largely enhance the robot intelligence by offloading tasks to the cloud dynamically. However, the robots differ in their own hardware configuration such as battery and processing capacity, while the transmission frames are also a mixture of different quality of service (QoS) requirements. As the competition for limited channel resource is inevitable, how to optimize the system performance by effective resource allocation is a key problem. The paper proposes a two-tier hierarchical-based MAC (Two-Tier MAC) which means the classification exists not only in frames but also in robots. The Lyapunov optimization technique is used to maximize the time-averaged quality satisfaction. The experiments show the superior performance of the Two-Tier MAC compared with other MAC protocols especially in overloaded networks. Meanwhile, the system also presents a longer lifetime because the Two-Tier MAC takes energy balance into consideration.
Robotics is evolving from a single platform to cluster collaboration for the applications with high complexity, uncertainty, and real time. Although robots share information and cooperate with each other by a decentralized wireless network, the intelligence is still limited by their own hardware configuration. Cloud robotics  provides a novel concept to break the individual limitation in low intelligence and processing capacity. By means of the offloading task to cloud dynamically, robots get rid of the huge storage and intensive computing bottleneck.
As shown in Figure 1, the offloading task is divided into a series of flows and is processed on cloud hosts in parallel by virtualization technology. Task flows are then repacked by upper layers with header information and finally encapsulated into MAC frames in the data link. For enhancing the survival ability in complex environment, robots adopt a decentralized ad hoc network and contend for communication channel in the carrier sense multiple access/collision avoidance (CSMA/CA) mode.
As the competition is inevitable, how to allocate the limited resource to guarantee the QoS performance and maximize the total system utility is a big challenge for the offloading scenario. Frame differentiation is easily thought of. For example, simultaneous localization and mapping (SLAM) should enjoy a better real-time than environment monitoring application. However, robots themselves also differ in processing capacity, hardware configuration, task emergency, and so on which is often overlooked. Meanwhile, the network condition is time varying which is hard to predict. When the network is overloading, the system cannot support the QoS for all robots. The data arrival rate should be adjusted to avoid blocking.
For the problems above, the paper proposes a two-tier hierarchical-based MAC (Two-Tier MAC) to realize the classification on both frames and robots. The Lyapunov optimization technique as well as isolated time slots and admission control is adopted to maximize the system utility even in poor network condition. The main contributions are as follows:(i)The classification on both frames and robots is considered. All frames are divided into different priorities waiting in corresponding queues with isolated time slots to reduce collision consumption. Frames in the same queue but from different robots are allocated diverse accessing probability to ensure the energy balance(ii)The system optimization can be decoupled into two independent issues by the Lyapunov method. One is admission control (AC) in which the frames will be rejected when the network is overloading. The other is resource allocation (RA) to adjust the accessing probability to maximize the system utility function
The rest of the paper is organized as follows. Chapter II reviews related works. In Chapter III, the scheme of the Two-Tier MAC is detailed. The Lyapunov optimization method is described in Chapter IV. In Chapter V, a series of experiments are operated to test the effectiveness of the Two-Tier MAC. The conclusion and future work are illustrated in Chapter VI.
2. Related Works
Since the widespread of heterogeneous, crosslayered “thin robots,” it is the best way to control the network transmission in the MAC layer or transceivers in the physics layer.
Some researches based on multiqueuing architecture have realized QoS support by assigning different queues with different resource or CSMA/CA parameters, such as contention window size, interframe space, active time, transmission power, TCP congestion window, and data rate [2, 3]. In specific, QoS-based MAC  adjusts the contention window for diverse QoS requirements and duty cycle to preserve sensory energy. PRIN-MAC  can minimize energy consumption and increase system throughput by varying the interarrival time according to the packets priorities. ASMAC  avoids overhearing and reduces contention and delay by asynchronously scheduling the wake-up time of neighboring nodes. RF-MAC  focuses on how the placement, chosen frequency, and number of RF energy transmitters impact the sensor charging time. CACC-MAC  is proposed for crosslayer congestion control by the dynamic TCP congestion window and MAC contention window scheme. The mechanism proposed in  operates QoS provisioning at the MAC layer for urgent traffic and provides data rate adjustment at the application layer. Each algorithm can improve QoS performance in certain scenarios. However, they are verified from the view of system realization or protocol design without theory analysis such as system stability and dynamic performance.
Based on this problem, we have tried to apply control theory in this area in recent years. FD-MAC  designs a less-step controller to provide proportional delay differentiated (PDD) QoS support. It adopts a linear model for system identification which is not precisely enough and without taking energy consumption into consideration. On this basis, CSFD-MAC  proposes a cascade self-tuning architecture as well as active power management, and MQEB-MAC  adopts a back propagating (BP) neural network to develop an all-in-one mixed QoS insurance and energy-balanced scheme. Although the algorithms above are verified to be valid by experiments, they still have the following limitations: Firstly, they only focus on the difference in frames but neglect the heterogeneity of the robots themselves. Secondly, channel condition is time varying, but few papers notice the system performance under poor channel conditions which is actually a common scenario in the wireless network. Thirdly, the mathematical model above is either too simple such as the linear system or low in real time such as the BP neural network.
3. System Model
3.1. Two-Tier Hierarchical Architecture
Figure 1 shows the Two-Tier MAC architecture for cloud robotics, and Table 1 exhibits all the variables present in the paper. There are robots, and all frames are divided into types waiting in the isolated queues without interference. Note that blocks with the same color come from the same robot, while blocks fulfilled with the same shape have the same frame priority.
To avoid blocking, the arrival rate should be adjusted according to the channel condition. For example, if one queue is fulfilled, the robot should reject new corresponding arrived frames. Queues will be allocated different time slots according to the frame priority, and frames in the same queue are allocated diverse accessing probability according to robot classification.
3.2. Time Slot Isolation
Actually, the robots are power driven related to system lifetime. Isolated time slots are adopted to reduce the collision energy consumption. Frames contend for communication channel by the CSMA/CA mode, with the key algorithm that once the collision is detected, the node will wait for a random back off in the range of where is called the contention window. The more intensive a robot attempts to transmit frames, the higher the probability collision and retransmission occur, which will not only cause the unnecessary energy wasting but also induce a large end-to-end delay. Define to be the accessing probability, then
Figure 1 also shows a dynamic time slot isolation framework. There are time slots in total, and means the number of time slots allocated to the th queue (). Frames with the same priority content for channel medium in specified time slots are actually a kind of resource reservation mechanism to avoid the across-class contention. Data arrival rate of robots is independently and identically distributed (i.i.d). Without loss of generality, assume the data priority is prefixed or dynamically negotiated by high level protocol, and robots are classified by battery capacity.
3.3. Utility Function
In the th queue, suppose that the arrival rate and the admission rate are and , respectively. Although each frame expects a higher admission rate, it is still limited by data arrival rate, i.e.,
It is known that user experience and satisfaction follow logarithmic laws . Since the normalized positive weight vector is prefixed by a high level protocol, the utility function for the th queue can be written as
3.4. Queuing Model
Define to be the data backlog (number of frames waiting in the queue) for the th queue at time . The queue grows with the admission rate and gets short with the service rate . According to the queue theory , the recursive formula of queue length is
As mentioned before, frames are with the same priority content for the channel medium in specified time slots in the manner of CSMA/CA. So the service rate mainly depends on both the time slots and accessing probability. For every robot, supposing PHY transmission ratio is , the class factor is , then the service rate iswhere is the accessing probability of the th frame type in robot . So there is
According to paper , an individual queue is the mean-rate-stable ifand a network is stable if all individual queues in the network are stable. In a real system, the mean rate stability implies that the long-term average departure rate from the queue is greater than or equal to the long-term average input rate injected into the queue, i.e., . Thus, all frames placed in the queue will be finally transmitted when the data queue is mean-rate-stable.
3.5. Problem Formulation
In summary, the utility function can be optimized by adjusting the time slots and accessing the probability dynamically. The problem can be described ass.t.where , , and are the optimized parameter vector/matrix to be solved. C1 constrains the admission rate which cannot exceed the arrival rate. C2 constrains the accessing probability which is in the range of [0,1], and the total value of different frame priorities in one robot at a time should equal to 1. C3 constrains the time slots which are limited by an upper bound for energy consumption, and C4 constrains the queue which is mean-rate-stable.
4. Lyapunov Optimization
4.1. Problem Transformation
The queue system should be stable, so the Lyapunov method is used to ensure the stability in the long term. Define the Lyapunov function as
Without loss of generality, assume all queues are empty when , i.e., . Lyapunov function drift is
The drift-minus-reward term has an upper bound according to Lemma 1.
Lemma 1 (see ). For any nonnegative real number , , and , there holds thatwhere is defined as a finite constant to simplify the inequation above, and is a nonnegative constant parameter that controls the trade-off between drift and satisfaction function. By the Lyapunov optimization technique, problem P1 can be transformed into minimizing the right-hand side (RHS) of (12) subjected to constraints C1-C4.
Furthermore, according to Equation (12), P1 can be decoupled into two subproblems: the first one is the admission control (AC) related to , which means the new frames will be rejected if the queue is full. The second one is the resource allocation (RA) related to and to guarantee the higher priority could enjoy a better QoS performance.
4.2. Admission Control
Due to the resource limitation, admission control is adopted to ensure that the QoS performance will not degrade below an acceptable level even in the overloading case. Based on Equation (12), the AC problem is formulated ass.t.
Easily verify that P2 is a convex optimization problem. Set the derivative of with respect to to be 0 to solve the service rate:
Since the admission rate is also limited by arrival rate, the optimal AC decision is
4.3. Resource Allocation
For the RA problem, both the time slots and accessing probability should be optimized to maximize P3:s.t.
P3 is nonconvex and may have several local minima, which make it different to find the closed-form solution. In recent years, some heuristic algorithms have been applied and proven to be valid. In this paper, the genetic algorithm (GA) as shown in Algorithm 1 is used for it can jump out of local minimal points and obtain the global optimization by finding a better artificial population iteratively.
For the unified value range of variables, take to replace original :
The fitness function is denoted as . Since , are interpreted into a binary chromosome by a 16-bit Gray code, each individual can be represented by a -bit-long binary vector, i.e., . The coding and decoding functions used in Algorithm 1 are defined as and , respectively. The superscript denotes the number of generations. The output of GA is , and can be adjusted by CW according to Equation (1).
Since P3 is nonconvex, it is hard to prove the convergence in a mathematical way. However, as shown in Figure 2, the GA algorithm can converge with a finite number of generations by simulation with different crossover probability and mutation probability .
5. Experiments and Results
The experiments are operated by ZigBit TM 900 hardware module with Atmel R AVR2025 software package. Specifically, ZigBit TM 900 is a 784/868/915 MHz IEEE 802.15.4 OEM module, while AVR2025 is a configurable MAC stack for ZigBit 900, which provides the fundamental abstract methods for hardware operation and a secondary development supported the MAC stack.
30 robots classified into 3 groups according to their battery configuration are deployed in the radius of 100 m. Every node randomly sends data packets to the other. Packets are encapsulated into MAC frames with 3 different priorities which are preset by upper layers as . A larger value means a better service.
The interval of frames obeys the normal distribution with the average of , where is the offered traffic normalized by service data rate. The frame length follows the Pareto distribution with the shape parameter of 1.1 and average of bits. The transmitted power is 1 mW, , . The average frame length is 105 bytes and the symbol rate is 256 kbps.
5.1. Static Performance
Static performance concerns the throughput, power consumption, and energy efficiency changing with time, which are related to system utility, lifetime, and data transmission efficiency, respectively. Energy efficiency is defines as
The experiments last 800 s, and 4 different MAC protocols (IEEE 802.15.4, FD-MAC, MQEB-MAC, and Two-Tier MAC) are compared.(1)During 0-200 s, it runs the original IEEE 802.15.4 MAC without any classification scheme(2)During 200-400 s, FD-MAC operates for frame differentiation. However, the throughput remains nearly the same, and the presented energy efficiency drops slightly. That is because in channel contention, energy is consumed once a node transmits whether or not the data is correctly received. FDMAC which makes a small CW size with high priority increases the collision probability, which will induce unwanted re-transmission and energy wasting(3)During 400-600 s, MQEB-MAC presents its advance in both throughput and energy efficiency because of the time slot isolation and BP self-tuning control. However, energy saving by only reducing the time slots allocated to soft QoS traffic limits further performance improvement(4)During 600-800 s, Two-Tier MAC takes over to maximize the system utility. Throughput is increased because of Lyapunov optimization, and the power consumption is reduced because of the time slot isolation scheme for avoiding across-class collision. As a result, the energy efficiency is largely improved compared with the other three MAC protocols, specifically, about 50.1%, 55.4%, and 23.8% enhancement compared with IEEE 802.15.4, FD-MAC, and MQEBMAC, respectively
Notice that for a specific MAC protocol, frames with high priority enjoy a large throughput but at the same time will lead to more power consumption. So no matter which frame priority, there is no big difference in energy efficiency of the same protocol (Figure 3(c)). The phenomenon will also be present in Section 5.2.
(c) Energy efficiency
5.2. Statistic Performance
(c) Energy efficiency
For one robot itself, the frames with different priorities are distinguished. Frames with a higher priority enjoy a better throughput which is in accordance with the results shown in Figure 3.
Among different robots, the ones in the higher class still have a better throughput statistically (Figure 3(a)) but lead to more power consumption (Figure 3(b)). As a result, no matter which frame priority or robot class, the energy efficiency is always approximately equal (Figure 3(c)). This conclusion is greatly meaningful to the system lifetime discussed below.
Define the system lifetime as the moment when the first robot is out of battery. The lifetime in different protocols is shown in Table 3. Obviously, the lifetime in the Two-Tier MAC will be extended to take energy balance into consideration.
5.3. Dynamic Performance
The experiments above only consider the normal load scene. However, traffic burst is more common in cloud robotics. Here, we focus on the effect of varying arrival rates to the system performance, i.e., dynamic performance, especially in the overloading situation. The parameter setting is the same as the former except that the arrival rate changes in the range of 50-350 frame/s.
As shown in Figure 5, when the system capacity is unsaturated (50-250 frame/s), the throughput is proportional to the growth of the arrival rate for all protocols. The features of power consumption and energy efficiency present similar characteristic with Section 5.1. After that, robots suffer from traffic bursting which leads to distinct performance in the four protocols.
(c) Energy efficiency
For 802.15.4, FD-MAC, and MQEB-MAC, network congestion occurs, and the system performance is reduced because of the noncongesting protection mechanism. Data loss will consume extra energy and lead to the degradation of throughput and energy efficiency. On the contrary, thanks to the admission control, the Two-Tier MAC could reject new frames when the network is overloading to avoid network congestion. So the energy efficiency can be maintained even in this severe network environment.
Considering the heterogeneity on both robots and frames, a two-tier hierarchical-based MAC is proposed to guarantee the differentiated QoS performance and maximize the system throughput. Experiments show that compared with IEEE 802.15.4, FD-MAC, and MQEB-MAC, the Two-Tier MAC can improve the overall throughput by the Lyapunov theory, reduce power consumption by the time slot isolation scheme, and expend system lifetime by the energy balance. Even in the overloading condition, the QoS performance can be guaranteed thanks to the admission control.
In the future, we would like to do more work to find the close-formed solution for the optimized problem instead of the heuristic algorithm. In addition, in this paper, all robots operate task offloading to the central cloud which suffers from large end-to-end delay. Along the development of 5G, offloading in the distributed mobile edge computing (MEC) scenario should be studied in the future.
The data used to support the findings of this study are included within the article.
Conflicts of Interest
The authors declare that there is no conflict of interests regarding the publication of this paper.
This work is supported by the Fundamental Research Funds for the Central Universities (nos. 300102328105 and 300102320203), Xi’an Technology Plan (no. GXYD21.1), China Postdoctoral Science Foundation (no. 2017M623243), Shaanxi Province Postdoctoral Science Foundation (no. 2018BSHYDZZ26), Shaanxi and Guangxi Keypoint Research and Invention Program (nos. 2019ZDLGY13-02-02, 2017ZDXMGY-101, and AB19110036), Taicang Keypoint Science and Technology Plan (nos. TC2018SF03 and TC2019SF03), National Natural Science Foundation of China (nos. 61803042 and 61803040), National Natural Science Foundation of Shaanxi Province (no. 2019JLZ-06), and IoT Innovation and Fusion Application Project of MIIT (no. 470).