Next Article in Journal
A High Precision, Wireless Temperature Measurement System for Pervasive Computing Applications
Next Article in Special Issue
Hybrid TSR–PSR Alternate Energy Harvesting Relay Network over Rician Fading Channels: Outage Probability and SER Analysis
Previous Article in Journal
Carbon Monoxide Sensing Technologies for Next-Generation Cyber-Physical Systems
Previous Article in Special Issue
Enhancing the Isolation and Performance of Control Planes for Fog Computing
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

qCon: QoS-Aware Network Resource Management for Fog Computing

1
School of Electrical and Electronics Engineering, Chung-Ang University, 84 Heukseok-ro, Dongjak-gu, Seoul 06974, Korea
2
Department of Computer Science and Engineering, Korea University, 145 Anam-ro, Seongbuk-gu, Seoul 02841, Korea
*
Author to whom correspondence should be addressed.
Sensors 2018, 18(10), 3444; https://doi.org/10.3390/s18103444
Submission received: 16 August 2018 / Revised: 26 September 2018 / Accepted: 10 October 2018 / Published: 13 October 2018

Abstract

:
Fog computing is a new computing paradigm that employs computation and network resources at the edge of a network to build small clouds, which perform as small data centers. In fog computing, lightweight virtualization (e.g., containers) has been widely used to achieve low overhead for performance-limited fog devices such as WiFi access points (APs) and set-top boxes. Unfortunately, containers have a weakness in the control of network bandwidth for outbound traffic, which poses a challenge to fog computing. Existing solutions for containers fail to achieve desirable network bandwidth control, which causes bandwidth-sensitive applications to suffer unacceptable network performance. In this paper, we propose qCon, which is a QoS-aware network resource management framework for containers to limit the rate of outbound traffic in fog computing. qCon aims to provide both proportional share scheduling and bandwidth shaping to satisfy various performance demands from containers while implementing a lightweight framework. For this purpose, qCon supports the following three scheduling policies that can be applied to containers simultaneously: proportional share scheduling, minimum bandwidth reservation, and maximum bandwidth limitation. For a lightweight implementation, qCon develops its own scheduling framework on the Linux bridge by interposing qCon’s scheduling interface on the frame processing function of the bridge. To show qCon’s effectiveness in a real fog computing environment, we implement qCon in a Docker container infrastructure on a performance-limited fog device—a Raspberry Pi 3 Model B board.

1. Introduction

Centralized cloud computing platforms such as Amazon EC2 and the Google Cloud Platform have become a prevalent approach to collect and process massive Internet of Things (IoT) data generated by countless sensors, micro-cameras, and smart-objects; in the literature, when a cloud infrastructure is constructed on the core of the network, the cloud is regarded as centralized [1,2]. IoT application developers are increasingly moving their applications to cloud services, as they are always available, robust, and reliable [3]. Nevertheless, centralized clouds require IoT developers to deploy their applications into a geographically distant data center. As the computation and storage resources are remote from IoT devices, end users suffer low bandwidth, high network latency, and deficient responsiveness. This limitation eventually leads to a poor experience for end users utilizing traditional cloud services.
Recent fog computing architectures overcome the limitation of traditional clouds by placing computation resources near IoT devices [4,5]. Fog computing exploits computation and network resources at the edge of a network to build small clouds, which perform as small data centers. Fog computing employs network gateways, routers, and WiFi access points (APs), which construct data paths between IoT devices and internet service providers, as a distributed cloud computing platform. A great deal of data produced by IoT devices can be collected and analyzed in these computation resources closer to IoT devices, which allows higher bandwidth, lower latency, improved responsiveness, and a better user experience. Besides fog computing, there are several computing paradigms that utilize computation resources at the edge. For example, edge computing employs computation and network resources at the edge of a network without building a cloud [1]. Osmotic computing constructs a federated computing environment between a data center at the edge and a data center at the traditional cloud by enabling automatic deployment of micro services that are interconnected over both infrastructures [6].
In recent years, containers [7] have been used as a fog computing infrastructure because they enable lightweight virtualization for performance-limited edge devices such as WiFi APs and set-top boxes employed as network gateways [8,9]. As containers are multiplexed by a single operating system (OS) kernel, they do not require an additional software layer for virtualization (e.g., hypervisors) compared to virtual machine technologies. This feature allows containers to begin and finish quickly and to achieve near-native performance [7]. Recent edge devices show a tendency to be equipped with single-board computers to offer better power efficiency. Leveraging containers in a fog computing platform is obviously an attractive choice for such low-power devices.
Unfortunately, containers have a weakness in the control of network bandwidth for outbound traffic, which poses a challenge to fog computing. Recent container engines such as Docker [10] do not provide their own quality of service (QoS) mechanism for controlling bandwidth. They send traffic in a best-effort manner, and therefore bandwidth-intensive or real-time multimedia applications would suffer unacceptable network performance. To address this issue, they suggest exploiting Linux Traffic Control [11] to configure each container’s network performance for outbound traffic. However, the existing scheduling policies of Linux Traffic Control provide limited and incomplete functionalities [12], which cannot ensure efficient control of network bandwidth on containers in fog computing. Linux Traffic Control has limitations in that (1) it cannot guarantee proportional share bandwidth distribution as specified in each container’s parameters on a performance-limited device, which will be explained in Section 2.3, (2) it cannot simultaneously apply both proportional share scheduling and bandwidth shaping to containers [11], and finally (3) it incurs high CPU overhead [13].
In this paper, we propose qCon, which is a QoS-aware network resource management framework for containers in fog computing. QoS is an important metric for fog applications and can be classified into four categories as follows: connectivity, reliability, capacity (or network bandwidth), and delay [14]. The main problem that this article tries to address belongs to the capacity category among the four items. qCon is able to differentiate each container’s outbound network performance according to the container’s characteristic or the price paid for network resources. qCon’s objective is to efficiently limit the outbound rate of TCP and UDP traffic to satisfy different network performance requirements, which are described in terms of network bandwidth. For this purpose, qCon supports three scheduling policies that can be applied to containers simultaneously: proportional share scheduling, minimum bandwidth reservation, and maximum bandwidth limitation. Proportional share scheduling offers relative performance based on the weight of each container [15]. Another objective of qCon is to implement a lightweight framework to be used in containers for performance-limited fog devices such as WiFi APs and set-top boxes. For this purpose, qCon is embedded in the Linux bridge, which connects the host operating system network and the internal network for containers, and conducts network scheduling during packet processing of the Linux bridge in a synchronized manner.
Figure 1 suggests two use cases of qCon. The left figure shows a smart factory where an edge resource (i.e., IoT gateway) receives raw data from sensors, preprocesses and filters the received data, and sends the filtered data to the private cloud server in the same factory [16]. The private cloud can protect privacy for sensitive data and offer faster response than a public cloud. The cloud server performs comprehensive data analytics using machine learning and big data technologies and sends immediate feedback to the controller to control factory machines. The IoT gateway is equipped with containers to offer an isolated environment to each application filtering different sensor data. In this scenario, qCon is responsible for differentiating each container’s outbound network performance according to the application’s characteristic when sending traffic to the server. For example, the administrator can assign a container running a bandwidth-intensive application a high weight value for proportional share scheduling, so that the container can reliably send packets to the cloud server at a high rate.
In the right figure, qCon is used in a fog computing environment where mobile devices such as smartphones and laptops form a small cloud in a coffee shop or a university [17]. The mobile devices are directly connected with each other by WiFi-Direct for fast communication [18]. In this use case, an idle device with sufficient capability can provide its computation resources to other tenants and receive an incentive. The mobile device providing computation resources is equipped with containers to give an isolated environment to each tenant. In this use case, qCon can effectively control each container’s network send rate as follows: First, a weight value for each container is assigned by the administrator according to the price paid for network resources. Second, if a tenant requires a quantitative network resource amount such as “minimum 20 Mbps” for real-time multimedia applications, qCon can apply the minimum bandwidth reservation policy to its container. Finally, let us suppose that the tablet in the figure has used up the network quotas allowed for a day. The administrator can apply the maximum bandwidth limitation policy to its container in order to impose a limited network speed within the same day.
To show qCon’s effectiveness in a real fog computing environment, we implement qCon in a Docker container platform on a performance-limited fog device, a Raspberry Pi 3 Model B board, and present its evaluation results. Throughout the evaluation, we show that qCon provides fine-grain bandwidth control according to each container’s requirement, incurs low CPU overhead, and accurately isolates each container’s traffic.
The remainder of this paper is structured as follows: In Section 2, we explain the background of containers, their network driver models, and network bandwidth control on containers. Section 3 elaborates on the design of qCon including the scheduler, the credit allocator, and the configuration interface. Section 4 shows the performance evaluation results. Section 5 explains related work. Section 6 suggests discussion points. Finally, we present our conclusions in Section 7.

2. Background

Virtual machine (VM) technologies such as KVM [19] and Xen [20] have been a popular approach to achieve elasticity in a cloud platform. In recent years, lightweight virtualization (e.g., containers) is gaining significant attention in fog computing thanks to its high performance and easy deployment. In this section, we will review the use of containers in fog computing, feasible network models in containers, and network bandwidth control on containers.

2.1. Containers in Fog Computing

Containers have been used as a fog platform instead of VMs because containers provide low overhead for performance-limited fog devices such as network gateways, routers, and WiFi access points (APs). Container technologies utilize namespaces and cgroups provided by the Linux kernel in order to enable fault and performance isolation between multiple containers. Namespaces partition kernel resources so that one container of a certain namespace cannot access the kernel resources of containers with other namespaces. Therefore, a container’s fault would be contained within the container boundary and could not affect other containers, implementing fault isolation. Different namespaces can be used for isolating container IDs, network interfaces, interprocess communication, and mount-points. cgroups limit and account for each container’s resource usage, including the CPU, memory, and I/O devices. For example, cgroups can limit a specific container to a configured CPU amount. In addition to fault isolation enforced by namespaces, cgroups focus on performance isolation between containers by sharing and limiting available hardware resources.

2.2. Network Driver Models in Containers

The container engine (e.g., Docker) supports several pluggable network drivers for containers, which provide core networking functionality [21]. The provided drivers include the host, bridge, overlay, macvlan, and none drivers. In this section, we explain the two most significant ones widely utilized in containers: the host and bridge drivers.
The host driver allows containers to share the network established by the host, as shown on the left side of Figure 2. In this mode, packets sent to or received from containers are processed by the same network stack of the Linux kernel. The container packets are fundamentally handled in the same way in which the host processes packets. To be specific, containers in the host mode share the same media access control (MAC) and IP addresses so that packets are distributed to each container based on a port number. The host driver model is useful when multiple containers are owned by a single user and the containers communicate with each other. However, this mode does not provide an isolation feature. For example, applications having the same port number in different containers cannot send or receive packets concurrently.
The bridge driver is the default network driver configured by the container engine. In this mode, a link layer bridge of the Linux kernel is exploited. A physical bridge (or switch) essentially merges two local area networks (LANs) and makes them a unified network. Similarly, the Linux bridge configured by the container engine is a virtual network switch and connects the network of the host to the internal network established by containers, as shown on the right side of Figure 2. In bridge mode, each virtual network interface in containers (i.e., eth0 in each container) can connect to the bridge without concerning its existence. The bridge then forwards packets between the two networks based on each MAC address of the network interfaces. As each container can employ a virtual network interface inside it, the bridge mode provides an isolated network environment to each container compared with the host driver mode [22]. We select the bridge driver for our design and implementation of qCon, as this mode enables isolation between containers for multiple tenants exploiting fog computing facilities.

2.3. Network Bandwidth Control on Containers

Recent container engines suggest exploiting Linux Traffic Control [11] to adjust each container’s outbound network performance. However, we found that desirable QoS levels could not be achieved with Linux Traffic Control when we evaluated the Deficit Round-Robin (DRR) scheduler [23] in Linux Traffic Control for proportional share scheduling. Figure 3 shows the evaluation result when we assigned the weights of 3:2:1 to three containers on a fog device (i.e., Raspberry Pi). A weight reflects the container’s relative use of network resources. As shown in the figure, the DRR failed to achieve weighted fair sharing on the three containers because the scheduler efficiently works only when its scheduling queue is congested with sufficient packets to send. Unfortunately, when we sent TCP packets from the containers, we observed that each packet left the system as soon as it entered the queue. Therefore, the network performance of each of the three containers became similar, as shown in the figure. From this evaluation, we identified that it is difficult to congest a queue with sufficient packets on a performance-limited device in fog computing compared to servers in data centers. With UDP packets, the queue becomes slightly more congested, but the scheduler still cannot guarantee weighted fair sharing.

3. Design of qCon

In this section, we present the details of qCon, a QoS-aware network resource management framework for containers in fog computing for IoT. First, we describe the design goals of qCon that aim to provide a lightweight bandwidth control infrastructure for containers. Next, we elaborate on the qCon architecture consisting of the scheduler, the credit allocator, and the configuration interface. Finally, we explain the scheduling algorithms of qCon for achieving diverse performance goals.

3.1. Design Goals

The goals of qCon, which focuses on implementing a lightweight bandwidth control infrastructure for containers on fog devices, are as follows.

3.1.1. Implementing a Lightweight Framework

qCon aims to provide a lightweight framework to be used in containers for performance-limited fog devices such as WiFi APs and set-top boxes. In addition to these devices, up-to-date fog computing technologies employ battery-powered and energy-limited devices such as smart phones, laptops, cars, and drones [17,24]. To exploit these devices in fog computing, qCon considers energy efficiency as an important factor and tries to achieve low CPU overhead. To satisfy this goal, qCon does not revise Linux Traffic Control, which has complicated internal implementations and incurs significant CPU overhead [25]. Instead, qCon implements its own scheduling framework on the Linux bridge by interposing qCon’s scheduling interface on a frame processing function of the bridge. qCon’s scheduling framework adopts a simple credit-based accounting mechanism so that it incurs low CPU overhead.

3.1.2. Enabling a Proportional Share Scheduling Policy

Fog computing implements a decentralized cloud computing environment where tenants utilize computation resources in fog nodes close to their devices [18,26]. In a cloud computing environment, it is essential to enforce a proportional share scheduling policy for network resources on virtual entities such as containers. The proportional share scheduling policy assigns a weight value to each container, and allows the container to utilize the network resources in proportion to its weight. A weight value is assigned by the administrator according to the price paid for network resources or other conditions. The Deficit Round Robin scheduler [23] in Linux Traffic Control is supposed to enable proportional share scheduling on containers, but it fails to achieve desirable QoS levels as it works only when the scheduling queue is congested, as described in Section 2.3. This limitation prevents fog computing from giving access to network resources on a pay-per-use basis. qCon endeavors to implement a proportional share scheduling policy regardless of the congestion in the scheduling queue.

3.1.3. Concurrent Support of Multiple Performance Policies

qCon aims to support multiple performance policies on each container at the same time. Recent fog computing users tend to run various network applications on their containers [27,28]. These applications obviously have different network performance requirements, which can be described in terms of network bandwidth. Minimum sustainable bandwidth can be an example for applications that process streaming videos [29]. In order to satisfy various demands of containers in fog computing, qCon offers the following three performance policies: proportional share scheduling, minimum reservation, and maximum limitation. These three policies can be simultaneously applied to a container.

3.2. qCon Architecture

qCon exploits the bridge driver model for networking in order to enable isolation between containers, as explained in Section 2.2. qCon extends the Linux bridge to implement the scheduling framework and its subcomponents. As the Linux bridge is located in the kernel space of the host OS, qCon also implements its components in kernel space. Developing some components in kernel space generally requires both recompilation of the kernel source code and a reboot of the system. In order to alleviate this deployment burden, qCon’s core components are implemented as loadable kernel modules (LKMs), which can be installed without recompilation and reboot. As depicted in Figure 4, qCon consists of the following three components: the scheduler, the credit allocator, and the configuration interface.

3.2.1. qCon Scheduler

The qCon scheduler is the main entity that enables qCon’s multiple performance policies, which will be explained in Section 3.3. We extend the Linux bridge to execute qCon’s scheduling function, as shown in Figure 5. When a container sends its network traffic, the netif_rx_internal function is executed to steer the container’s packet to the bridge. Then, the handle_bridge function checks whether the packet is to be sent to the bridging subsystem. If the check is successful, the br_handle_frame function checks whether the packet is delivered for bridging or routing. If the packet is to be bridged, the function executes a Netfilter callback (i.e., NF_BR_PRE_ROUTING) to filter or modify the packet. Before the Netfilter callback in the br_handle_frame function, we create a hook to call qCon’s scheduling function (i.e., qCon_schedule), which queues packets and selects appropriate packets for transmission according to the scheduling policies. The qCon_schedule function maintains queues for each container and processes the requests in each queue in a round-robin manner. The function selects and sends the packets of a certain queue only when its corresponding container has sufficient resource allocation. The selected packets will be consecutively processed by br_handle_frame_finish, br_forward, and br_forward_finish, which find the destination MAC address from the forwarding database and forward the packets to the correct bridge port.

3.2.2. qCon Credit Allocator

The credit allocator periodically assigns a credit to the virtual network interface of each container based on the specified performance requirements. qCon utilizes the credit concept [30] adopted from the Xen hypervisor [20] in order to represent the amount of resource allocation. When the network resources of each container are being used, the virtual network interface of the container consumes its credit according to the requested packet sizes. The credit value of each container is periodically recharged as claimed by the weight of the container and the minimum and maximum bandwidth requirements. For this purpose, the credit allocator has a kernel timer that regularly executes a credit calculation function every 30 ms, which obtains each container’s credit value according to the performance requirements and adds the attained value to the remaining credit value. The details of scheduling mechanisms using the credit concept are given in Section 3.3.

3.2.3. qCon Configuration Interface

The configuration interface allows the administrator to specify the performance requirements of each container in terms of network bandwidth. This interface utilizes the proc file system in the host OS. The proc file system reflects the current state of the OS kernel and allows the administrator to change the required state in user space. Therefore, the proc file system can be used as a communication channel between kernel and user spaces. In qCon, when a new container is created, its corresponding file is generated in the proc directory. The administrator is then able to access the created file to configure the weight, the minimum, and the maximum bandwidth of the new container. The default weight value is set to 1, and the default minimum and maximum bandwidth are set to 0, which means that the container would receive a fair share of network resources and have no lower or upper limitation of network bandwidth. The administrator can change the configured settings during runtime according to the demand of each tenant. The configuration interface also provides some useful information, such as the actual resource usage of each container during runtime.

3.3. Scheduling Policies

qCon provides the following three scheduling policies to satisfy various demands of containers in fog computing: proportional share scheduling, minimum bandwidth reservation, and maximum bandwidth limitation. Proportional share scheduling is the default scheduling policy in qCon, and differentiates the amount of allocated network resources proportionally based on the weight of each container. qCon also supports work-conserving [31] to maximize network resource utilization. Minimum bandwidth reservation ensures that the quantitative network resource amount of a certain container is greater than a specified amount. With this policy, qCon can support applications that require sustainable minimum bandwidth such as a multimedia applications that demand stable and quantitative network bandwidth to achieve high-quality video playback. Maximum bandwidth limitation prevents a container from consuming more than a specified amount of network resources. This policy can be used by the administrator to enforce bandwidth limitations on a container when the container has used up the quotas allowed for a day or a month. These three policies can be applied to a container simultaneously. In this case, the priority is given to maximum bandwidth limitation and minimum bandwidth reservation over proportional share scheduling.

3.3.1. Proportional Share Scheduling

Proportional share scheduling is a base policy of qCon that controls a container’s network performance in proportion to its weight. The containers on the fog device are denoted by C O N = { C O N 1 , C O N 2 , , C O N n }, where n is the number of containers on the fog device (n ≥ 1). The weight of container C O N i is represented by ω ( C O N i ) , which is a relative proportion of network consumption. The sum of the weights of every container on the fog device is equal to 1. Therefore, we have i = 1 n ω ( C O N i ) = 1 . Proportional share scheduling distributes network resources, which are represented as credits [30], to each container at every scheduling period (i.e., 30 ms). The credit amount for each container is calculated sequentially from C O N 1 to C O N n at the scheduling period. C i A represents an allocated credit amount for C O N i that can be consumed during the scheduling period. This value is the weighted fair share of network resources for C O N i according to its weight. C T indicates the total amount of credits for all containers during a scheduling period. C i A is then calculated as follows:
C i A = C T × ω ( C O N i ) , where 0 ω ( C O N i ) 1 .
The fundamental principle of our proportional share scheduling is similar to max–min-like policies, because the credit-based algorithm is a computationally efficient substitute for them. Both algorithms can distribute network resources in proportion to the weight, but credit-based scheduling is much simpler and more computationally efficient [32].

3.3.2. Support for Work-Conserving

qCon supports a work-conserving policy [31] to improve network resource utilization. Work-conserving keeps network resources busy by allowing a virtual network interface of a container with no requests to yield its allocated network resources to other virtual network interfaces, which are ready to be scheduled. Work-conserving is an important factor in fog computing, as it allows network resource utilization to be maximized. For this purpose, when container C O N i does not fully consume its allocated credit during the current scheduling period, the remaining credit is added to the total credits of the next scheduling period and distributed to other containers. C i R indicates the remaining credit of container C O N i at the current scheduling period. This credit amount is distributed to other containers in proportion to their weights.
When we assume that container C O N j receives the remaining credit from container C O N i , we first obtain the fair share of container C O N j , C j A , at the next scheduling period as follows:
C j A = C T × ω ( C O N j ) + C i R × 1 1 ω ( C O N i ) × ω ( C O N j ) ,
= ( C T + C i R × 1 1 ω ( C O N i ) ) × ω ( C O N j ) .
Next, we generalize this equation. We assume that container C O N j receives the remaining credits from other containers, yielding their allocated network resources as well. We then obtain the fair share of container C O N j , C j A , at a certain scheduling period as follows:
C j A = C T × ω ( C O N j ) + i = 1 n ( C n R × 1 1 ω ( C O N n ) ) × ω ( C O N j ) .
According to Equation (4), every container receives a greater credit amount than its fair share amount calculated by Equation (1), which makes the sum of credits of all containers greater than C T . We correct this situation by deducting credits from containers that yield their allocated network resources. This deduction is reasonable because such containers tend to underutilize network resources for several scheduling periods. When C l A T indicates a temporary credit value of container C O N l received by Equation (4), we obtain the fair share of container C O N l that yields its allocated network resources to other containers at a certain scheduling period as follows:
C l A = C l A T C l R .

3.3.3. Minimum Bandwidth Reservation and Maximum Bandwidth Limitation

Minimum bandwidth reservation and maximum bandwidth limitation are performance policies to ensure a quantitative performance guarantee in controlling the network performance of containers. When the minimum bandwidth reservation policy is applied to container C O N i , qCon ensures that the network performance of container C O N i is greater than the configured value, C i , m i n A . Container C O N i receives a credit of C i A by proportional share scheduling with work-conserving (Section 3.3.1 and Section 3.3.2) at every scheduling period. When this fair share value, C i A , is below the configured value, C i , m i n A , minimum bandwidth reservation changes the value of C i A to C i , m i n A to ensure minimum bandwidth while retrieving network resources from other containers in proportion to their weights. Obviously, the aggregated amounts of minimum bandwidth requests from all containers should not exceed the total amount of credits, C T .
When we assume that the fair share value, C i A , is below the configured value, C i , m i n A , the received credit amount of container C O N i by minimum bandwidth reservation at a certain scheduling period is as follows:
C i A = C i , m i n A .
At this time, the network resources of other containers are retrieved. When k is the set of containers having minimum bandwidth reservation, we obtain the credit amount of container C O N j whose network resources are retrieved, C j A , at a certain scheduling period as follows:
C j A = C T × ω ( C O N j ) k ( ( C k , m i n A C k A ) × 1 1 ω ( C O N k ) ) × ω ( C O N j ) .
To prevent the case where the sum of the minimum bandwidths of applications exceeds the total bandwidth, C T , qCon applies an admission control policy. qCon rejects further minimum bandwidth reservation requests when it does not have sufficient available resources. Therefore, qCon can satisfy existing containers’ minimum bandwidth reservations without request crashes. The container that issued the rejected request can be migrated to another fog node that has enough network resources by an orchestration mechanism [33]. In future work, we plan to adopt an orchestration mechanism to automatically migrate containers with rejected requests.
Maximum bandwidth limitation prevents containers from exceeding their performance limits, which is achieved by redistribution of surplus credits of containers that have maximum bandwidth limitation. When the maximum bandwidth limitation policy is applied to container C O N i , qCon enforces that the network performance of container C O N i is not greater than the configured value, C i , m a x A . When the fair share value by proportional share scheduling, C i A , is above the configured value, C i , m a x A , maximum bandwidth limitation changes the value of C i A to C i , m a x A to enforce maximum bandwidth while re-distributing surplus network resources from container C O N i to other containers in proportion to their weights.
When we assume that the fair share value, C i A , is above the configured value, C i , m a x A , the received credit amount of container C O N i by maximum bandwidth limitation at a certain scheduling period is as follows:
C i A = C i , m a x A .
At this time, the surplus network resources of container C i A are distributed to other containers. When k is the set of containers having maximum bandwidth limitation, we obtain the credit amount of container C O N j that receives surplus network resources, C j A , at a certain scheduling period as follows:
C j A = C T × ω ( C O N j ) + k ( ( C k A C k , m a x A ) × 1 1 ω ( C O N i ) ) × ω ( C O N j ) .

3.3.4. Combination of the Three Scheduling Policies

Algorithm 1 shows the credit calculation function of qCon, where the three scheduling policies (i.e., proportional share scheduling, minimum bandwidth reservation, and maximum bandwidth limitation) are combined with the work-conserving mechanism. This function performs iteration from the first container to the last one to calculate each container’s credit value at the current scheduling period according to the performance requirements. In the algorithm, total_weight denotes the sum of the weights of all containers. weight_left is initialized as total_weight, and indicates the sum of the weights of remaining containers during the for loop. total_credit is the total amount of credits that will be distributed to all containers. credit_left is initialized as zero, and is a temporary variable to save the remaining credit when a container does not fully consume its allocated credit.
Algorithm 1: Combination of the three scheduling policies with the work-conserving mechanism.
 total_weight ← the sum of weights of all containers;
 weight_left ← total_weight;
 total_credit ← the total amount of credits;
 credit_left ← 0;
Sensors 18 03444 i001
At each iteration of the for loop, current denotes the current container to be processed. The first part of the algorithm applies proportional share scheduling. It obtains the current container’s fair share credit value, credit_fair, based on two factors: the total amount of credits and the container’s weight. Then, it adds the obtained value to the remaining credit value of the current container (i.e., remaining_credit). The remaining credit value is the cumulative credit amount. The second part performs work-conserving. When the current container’s remaining credit value is greater than the fair share amount, the unused credit value in the previous scheduling period is added to total_credit so that it can be distributed to other containers. This procedure is performed if there are some remaining containers to be processed in the next iterations (i.e., weight_left > 0). The third part is for processing minimum bandwidth reservation. When the current container is configured to reserve minimum bandwidth and at the same time lacks sufficient resources, the container retrieves network resources from other containers. The final part processes maximum bandwidth limitation. When the current container is configured to limit maximum bandwidth, the container re-distributes surplus network resources to other containers.

4. Evaluation

We present the performance evaluation results of qCon in this section. We implemented qCon on a Raspberry Pi 3 Model B board as shown in Figure 6, which had an ARMv7 64-bit quad core CPU running at 1.2 GHz, 1 GB of RAM, and a 100 Megabit Ethernet chip. We used Ubuntu Linux 16.04 for the Raspberry Pi board, and its kernel version was v4.4.38. The Raspberry Pi board is a small single-board computer that runs multiple containers managed by Docker with version 18.03. We used another x86 server for receiving packets from the Raspberry Pi board. The server had an Intel i7-3930K Hexa core CPU running at 3.2 GHz, 16 GB of RAM, and a Gigabit Ethernet card. As the Raspberry Pi card has a 100 Megabit Ethernet chip, the connection speed between the two machines was limited to 100 Mbps. In our evaluation, each container ran a client of a network benchmark program called netperf, which transmitted 16 KB TCP packets for 60 s. The x86 server ran a netperf server that received the transmitted packets from the client and measured the network throughput.

4.1. Multiple Scheduling Policies

qCon supports the following three scheduling policies to satisfy various performance requirements of containers in fog computing: proportional share scheduling, minimum bandwidth reservation, and maximum bandwidth limitation. We first applied each scheduling policy respectively to containers and observed the network performance of each container. We then applied the three scheduling policies together to containers.

4.1.1. Proportional Share Scheduling Evaluation

First, we evaluated proportional share scheduling when various weight values were assigned to three containers C1, C2, and C3 running concurrently on the Raspberry Pi board. We applied three sets of weight values to the three containers for three experiments. The weight sets were as follows:
  • Weight set 1 to 1 : {1, 1, 1};
  • Weight set 1 to 3 : {1, 2, 3};
  • Weight set 1 to 5 : {1, 3, 5}.
Each weight set represents the target performance ratio for containers C1, C2, and C3. For example, weight set 1 to 5 means that the ratio of network performance would converge to 1:3:5 for containers C1, C2, and C3. If the experiment results met the target ratio, we could conclude that qCon successfully differentiated the network performance of containers based on the weight values.
Figure 7 shows that qCon effectively differentiated the network performance of each container depending on each weight set. As qCon allocates credits to containers according to their weights, the network performance of each container was proportionally differentiated, as expected. When weight set 1 to 1 was applied, three containers had the same bandwidth. When weight set 1 to 3 was configured, container C3 achieved 43 Mbps of bandwidth while container C1 showed reduced bandwidth, 16 Mbps, compared to weight set 1 to 1. When we assigned weight set 1 to 5, the network performance of container C3 increased by five times compared to container C1.
In addition, we measured the network performance of containers when the number of containers running concurrently increased from one to five. We utilized the weight set 1 to 5 for the containers, which means that the ratio of network performance would converge to 1:2:3:4:5 for containers C1, C2, C3, C4, and C5. As depicted in Figure 8, when C1 executed netperf alone, C1 utilized the entire network bandwidth of the Raspberry Pi board. As explained in Section 3.3.2, qCon supports a work-conserving policy that allows a container to receive more credits than its fair share when there are unused network resources. As containers C2, C3, C4, and C5 started to run one-by-one, the network performance of each container was differentiated in proportion to its weight. For example, when the five containers ran simultaneously, container C4 achieved 24 Mbps, which was twice the performance of container C2 (12 Mbps).

4.1.2. Minimum Bandwidth Reservation Evaluation

Then, we applied the minimum bandwidth reservation policy while proportional share scheduling with weight set 1 to 5 was applied to each container. The first case of Figure 9 shows the result when proportional share scheduling was only applied to each container. Then, we assigned 30 Mbps to container C1 as its minimum bandwidth. As shown in the second case of Figure 9, the performance of C1 increased by up to 31 Mbps, which satisfied the minimum bandwidth condition. As qCon retrieves network resources from other containers as explained in Equation (7) of Section 3.3.3, the performance of containers C2, C3, C4, and C5 decreased compared to the first case. Then, we assigned 20 Mbps to container C2 as its minimum bandwidth while maintaining the proportional share scheduling condition and container C1’s minimum bandwidth. Similarly, the performance of container C2 increased by up to 20 Mbps while preserving container C1’s minimum bandwidth reservation, as shown in the third case of Figure 9. In the fourth case, we assigned 15 Mbps to container C3, and its minimum bandwidth could be reserved. In the last case, we configured each minimum bandwidth of containers C1, C2, C3, and C4 as 30, 20, 15, and 15 Mbps, respectively. As shown in the last case, the containers with minimum bandwidth reservation could achieve the configured bandwidth. Container C5 without minimum bandwidth reservation showed decreased network performance as it received the remaining network resources after other containers’ minimum bandwidth reservation was completed.

4.1.3. Maximum Bandwidth Limitation Evaluation

Next, we evaluated the maximum bandwidth limitation policy when proportional share scheduling with weight set 1 to 1 was applied to each container. The first case of Figure 10 shows the result of proportional share scheduling. Then, we assumed that container C1 had used the quotas allowed for a day, and bandwidth limitation needed to be enforced on the container. We assigned 10 Mbps to container C1 as the maximum bandwidth limitation. In this case, qCon retrieved the container’s excessive credit and re-distributed it to other containers as explained in Equation (9) of Section 3.3.3. Therefore, the network performance of C1 decreased by up to 9 Mbps while an amount of 9 Mbps was re-distributed to other containers in proportion to their weights, as shown in the second case of Figure 10. The third case shows the performance result when we assigned 10 Mbps to containers C1 and C2, respectively, as maximum bandwidth limitation. Then, we limited the performance of containers C3 and C4 to 15 and 25 Mbps, respectively, as shown in the fourth and last cases of Figure 10. In the last case, the performance of containers C3 and C4 decreased by up to 15 and 25 Mbps while qCon preserved the maximum bandwidth limitations of containers C1 and C2 and increased the performance of C5 by up to 34 Mbps.

4.1.4. Evaluation of Concurrent Support of Multiple Policies

Finally, the three scheduling policies of qCon were applied simultaneously to a fog device. qCon adjusts the performance of containers when the obtained performance calculated by proportional share scheduling does not meet the minimum reservation or maximum limitation performance. This is because minimum bandwidth reservation and maximum bandwidth limitation have a higher priority than proportional share scheduling. Figure 11 shows the performance results of each container when the scheduling policies were applied cumulatively. The first case of the figure shows the result when proportional share scheduling was only applied to each container with weight set 1 to 3. When we applied minimum bandwidth reservation for container C1 to achieve 30 Mbps, the performance of C1 increased by up to 31 Mbps while the performance of C2 and C3 decreased as shown in the second case of the figure. Finally, when we limited the performance of container C3 to 15 Mbps, the surplus resources of container C3 were re-distributed to containers C1 and C2 depending on their weights, which increased the performance of containers C1 and C2 as shown in the last case of the figure.

4.2. CPU Overhead

In fog computing, it is important to decrease CPU overhead in order to achieve energy efficiency, as up-to-date fog technologies employ energy-limited devices. We evaluated the CPU overhead caused by qCon in terms of CPU utilization. We also compared the results with native Docker and Linux Traffic Control, which controls the network performance of containers similar to qCon. In Linux Traffic Control and qCon, we applied proportional share scheduling and configured all containers to have the same weight.
Figure 12 shows the CPU utilization of the target board when the number of containers running the netperf client increased from one to five consecutively. In this figure, qCon achieved the lowest CPU overhead compared to native Docker and Linux Traffic Control. qCon reduced the CPU utilization of the target board by elaborately controlling the network resource consumption of each container with the new scheduling algorithm. This enabled efficient packet processing in the Linux bridge by eliminating resource contention between co-located containers. On the other hand, Linux Traffic Control showed the highest CPU utilization because of its spinlock implementation. Linux Traffic Control utilizes spinlocks for synchronization between multiple cores. When the number of containers increases, the number of cores for processing packets is also increased, which grows synchronization bottlenecks [34].

4.3. Network Latency

In this section, we measured the network latency of qCon and compared the results with native Docker and Linux Traffic Control using the same experimental setup explained in Section 4.2. We used a ping program that sent 64-byte UDP packets to the evaluation server to measure the latency. Table 1 demonstrates that qCon did not incur additional latency compared to native Docker. This is because qCon does not intervene in packet processing in the Linux bridge, but limits the transmission rate of each container according to the configured scheduling policy. The Linux Traffic Control also showed similar latency to qCon.

5. Related Work

In centralized cloud computing, a number of techniques have been proposed to enable virtualized devices to support QoS [13,35,36,37,38]. In particular, network interfaces are regarded as challenging devices for ensuring QoS, because many scheduling layers are involved in packet processing in virtualization.
Lee et al. [36] proposed a network virtualization framework that differentiates the network performance of VMs by allocating network resources in proportion to the CPU usage. The framework is based on a leaky bucket controller with a time slot-based resource allocator. DMVL [38] provides a technique to assign certain network bandwidth to each VM in a fair-share manner. For this purpose, it offers different I/O queues to each virtual machine and separates the logical data path for packet processing. It also monitors the network resource usage of each VM by using shared memory between the driver domain and the VM, which is used for the adjustment of resource allocation.
Most of the techniques for VMs process packets based on a rate-limiting approach [39], which controls the transmission rate of each VM. However, this approach incurs non-negligible CPU overhead for network performance management [40]. Rate limiting generally needs to analyze and classify packets from VMs based on their source or destination addresses, and this requires an amount of computation resources. This situation makes it difficult to adopt rate limiting in container-based fog computing, as fog computing often employs performance-limited devices.
ANCS [13] is our previous work and achieves QoS in Xen-based VMs. Compared to the rate-limiting approach, ANCS incurs lower overhead by adopting credit-based scheduling, as with qCon. However, ANCS focuses on a virtual machine (VM) environment in a data center where computation and network resources are redundant. ANCS runs in an additional kernel thread in the Xen hypervisor to schedule network resources. The kernel thread fetches network requests from the backend driver in the driver domain (i.e., domain0) of Xen and sends packets according to its scheduling policy. However, the kernel thread requires a dedicated processor core for preventing packet delays in the backend driver. Different from ANCS, qCon targets fog computing, which means qCon needs to be redesigned much lighter than ANCS. In order to minimize computation resources for network resource management, qCon eliminates the kernel thread of ANCS. Instead, qCon is embedded in the Linux bridge and conducts network scheduling during packet processing of the Linux bridge in a synchronized manner. This new design does not require a dedicated processor core and is suitable for performance-limited fog devices, which have smaller cores.
Network resource management for containers can be enabled by using cgroups and Linux Traffic Control. cgroups assign the specific bounds of resource usage to a container, and Linux Traffic Control processes each container’s packets according to the configured scheduling policy. However, cgroups and Linux Traffic Control only provide limited functionalities, which cannot support the efficient control of network bandwidth for QoS management, as explained in Section 1. For example, the existing scheduling policies of Linux Traffic Control such as the Deficit Round-Robin (DRR) scheduler [23] and the Hierarchical Token Bucket (HTB) queuing discipline [11] do not offer complete proportional sharing or minimum reservation. Dusia et al. [12] utilized Linux Traffic Control to enable priority-based network scheduling for Docker containers. Compared to these studies, qCon enables a proportional share scheduling policy, which is essential for fog computing to give access to network resources on a pay-per-use basis. qCon can also apply multiple performance policies, including proportional share scheduling, minimum reservation, and maximum limitation to containers concurrently.
Most studies on network resource management for containers mainly focus on developing QoS-aware orchestration systems [33,41,42,43]. In fog and edge computing, devices have limited network capabilities, and this limitation causes the fog and edge devices to only perform until they reach the maximum network capacity. QoS-aware orchestration systems exploit several fog and edge nodes to load-balance workloads or deploy an application in an appropriate node while considering the level of QoS. Brogi et al. [41] proposed a general model for the QoS-aware deployment of IoT applications. The model determines where to deploy an IoT application in a fog infrastructure through recursive searching. Similarly, Pavsvcinski et al. [33] presented an orchestration technique that places network-intensive utilities while considering the geographical information of the fog nodes. They implemented the proposed technique in an open source container system called Kubernetes, and showed that their solution was able to find the most appropriate fog node to deploy the network utilities. Skarlat et al. [42] presented the fog service placement problem (FSPP), which determines the placement of IoT services on virtualized fog resources with a consideration of QoS constraints. The FSPP aims to discover optimal mapping between IoT services and the fog resources, which satisfies the QoS requirements and achieves high resource utilization.
qCon is complementary to these orchestration systems. Even with a QoS-aware orchestration tool, performance interference can occur between co-located containers running on the same machine. The co-located containers share the same computing resources (e.g., the CPU, memory, and network devices). When a specific container consumes the network resources aggressively, other containers on the same node may experience resource starvation, which cannot guarantee the configured QoS by the QoS-aware orchestration system [43]. By offering both proportional fair scheduling and bandwidth shaping, qCon enables the enforcement of the resource allocation determined by the orchestration system.

6. Discussion

In the open internet, bandwidth cannot be reserved without help of intermediate routers. Therefore, we expect that qCon can be employed in a network environment where qCon can send traffic with qCon’s scheduling policies, and a neighbor node located within a single-hop distance receives the traffic according to the controlled bandwidth. As explained in the use cases in Section 1, qCon can be employed by IoT gateways in a smart factory, and the IoT gateway can send traffic received from sensors to a neighbor server in the same factory for analyzing the data. In addition, a device employing qCon can be utilized as a fog node where multiple tenants directly connect to the device. In this use case, qCon controls outbound traffic to the tenants according to the performance policy. In these scenarios, the scheduling policies of qCon can be reserved as qCon’s device and its neighbor nodes are within a single-hop distance.
As with other traffic control mechanisms [12,44], qCon performs buffering on both TCP and UDP traffic. An effect of buffering of UDP packets is to limit the rate of outbound traffic by delaying the sending of UDP packets. For example, suppose that a container generates a very high volume of UDP traffic at one burst. Then, other containers sending TCP traffic would be influenced by the massive UDP packets, resulting in low bandwidth and high latency. qCon’s scheduling can prevent this situation with proportional share scheduling by controlling the container with UDP traffic to send traffic at a stable rate according to its weight.
qCon focuses on outgoing traffic for bandwidth control, as with other traffic control mechanisms [12,44]. In principle, it is difficult to limit the rate of inbound traffic without any cooperation from outside network devices [45]. Therefore, qCon does not perform bandwidth control on inbound traffic. As explained in the use cases in Section 1, qCon limits the rate of outbound TCP and UDP traffic to satisfy the various performance requirements of containers.

7. Conclusions

In this paper, we proposed qCon, which is a QoS-aware network resource management framework for containers in fog computing for IoT. In a container environment, qCon can provide both proportional 16 share scheduling and bandwidth shaping to containers in order to meet various performance demands. qCon also implements its own scheduling framework on the Linux bridge, which incurs low CPU overhead.
References

Author Contributions

The work presented here was completed in collaboration between all authors. Conceptualization, C.-H.H. and K.L.; Methodology, C.-H.H., K.L., and M.K.; Validation, K.L. and M.K.; Formal Analysis, K.L.; Writing—Original Draft Preparation, C.-H.H., K.L., and C.Y.; Writing—Review & Editing, C.Y.; Visualization, C.-H.H. and K.L.; Supervision, C.Y.; Funding Acquisition, C.-H.H. and C.Y.

Funding

This work was supported by the Institute for Information & communications Technology Promotion (IITP) grant funded by the Korea government (MSIT) (No. 2015-0-00280, (SW Starlab) Next generation cloud infra-software toward the guarantee of performance and security SLA). This research was also supported by the Chung-Ang University Research Grants in 2018.

Acknowledgments

The authors are grateful to the anonymous reviewers for their valuable comments and suggestions.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Satyanarayanan, M. The emergence of edge computing. Computer 2017, 50, 30–39. [Google Scholar] [CrossRef]
  2. Chandra, A.; Weissman, J.; Heintz, B. Decentralized edge clouds. IEEE Internet Comput. 2013, 17, 70–73. [Google Scholar] [CrossRef]
  3. He, Q.; Zhou, S.; Kobler, B.; Duffy, D.; McGlynn, T. Case study for running HPC applications in public clouds. In Proceedings of the 19th ACM International Symposium on High Performance Distributed Computing, Chicago, IL, USA, 21–25 June 2010; ACM: New York, NY, USA, 2010; pp. 395–401. [Google Scholar]
  4. Bonomi, F.; Milito, R.; Zhu, J.; Addepalli, S. Fog computing and its role in the internet of things. In Proceedings of the First Edition of the MCC Workshop on Mobile Cloud Computing, Helsinki, Finland, 17 August 2012; ACM: New York, NY, USA, 2012; pp. 13–16. [Google Scholar]
  5. Dastjerdi, A.V.; Buyya, R. Fog computing: Helping the Internet of Things realize its potential. Computer 2016, 49, 112–116. [Google Scholar] [CrossRef]
  6. Villari, M.; Fazio, M.; Dustdar, S.; Rana, O.; Ranjan, R. Osmotic computing: A new paradigm for edge/cloud integration. IEEE Cloud Comput. 2016, 3, 76–83. [Google Scholar] [CrossRef]
  7. Felter, W.; Ferreira, A.; Rajamony, R.; Rubio, J. An updated performance comparison of virtual machines and linux containers. In Proceedings of the 2015 IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS), Philadelphia, PA, USA, 29–31 March 2015; pp. 171–172. [Google Scholar]
  8. Bellavista, P.; Zanni, A. Feasibility of fog computing deployment based on docker containerization over raspberrypi. In Proceedings of the 18th International Conference on Distributed Computing and Networking, Hyderabad, India, 5–7 January 2017; ACM: New York, NY, USA, 2017; p. 16. [Google Scholar]
  9. Liu, P.; Willis, D.; Banerjee, S. Paradrop: Enabling lightweight multi-tenancy at the network’s extreme edge. In Proceedings of the IEEE/ACM Symposium on Edge Computing (SEC), Washington, DC, USA, 27–28 October 2016; pp. 1–13. [Google Scholar]
  10. Merkel, D. Docker: Lightweight linux containers for consistent development and deployment. Linux J. 2014, 2014, 2. [Google Scholar]
  11. Hubert, B.; Graf, T.; Maxwell, G.; van Mook, R.; van Oosterhout, M.; Schroeder, P.; Spaans, J.; Larroy, P. Linux advanced routing & traffic control. In Proceedings of the Ottawa Linux Symposium, Ottawa, ON, Canada, 26–29 June 2002; Volume 213. [Google Scholar]
  12. Dusia, A.; Yang, Y.; Taufer, M. Network quality of service in docker containers. In Proceedings of the 2015 IEEE International Conference on Cluster Computing (CLUSTER), Chicago, IL, USA, 8–11 September 2015; pp. 527–528. [Google Scholar]
  13. Hong, C.H.; Lee, K.; Park, H.; Yoo, C. ANCS: Achieving QoS through Dynamic Allocation of Network Resources in Virtualized Clouds. Sci. Prog. 2016, 2016, 4708195. [Google Scholar] [CrossRef]
  14. Yi, S.; Li, C.; Li, Q. A survey of fog computing: Concepts, applications and issues. In Proceedings of the 2015 Workshop on Mobile Big Data, Hangzhou, China, 21 June 2015; ACM: New York, NY, USA, 2015; pp. 37–42. [Google Scholar]
  15. Caprita, B.; Chan, W.C.; Nieh, J.; Stein, C.; Zheng, H. Group Ratio Round-Robin: O (1) Proportional Share Scheduling for Uniprocessor and Multiprocessor Systems. In Proceedings of the USENIX Annual Technical Conference, Anaheim, CA, USA, 10–15 April 2005; pp. 337–352. [Google Scholar]
  16. De Brito, M.S.; Hoque, S.; Steinke, R.; Willner, A.; Magedanz, T. Application of the fog computing paradigm to smart factories and cyber-physical systems. Trans. Emerg. Telecommun. Technol. 2018, 29, e3184. [Google Scholar] [CrossRef]
  17. Habak, K.; Ammar, M.; Harras, K.A.; Zegura, E. Femto clouds: Leveraging mobile devices to provide cloud service at the edge. In Proceedings of the 2015 IEEE 8th International Conference on Cloud Computing (CLOUD), New York, NY, USA, 27 June–2 July 2015; pp. 9–16. [Google Scholar]
  18. Silva, P.M.P.; Rodrigues, J.; Silva, J.; Martins, R.; Lopes, L.; Silva, F. Using edge-clouds to reduce load on traditional wifi infrastructures and improve quality of experience. In Proceedings of the 2017 IEEE 1st International Conference on Fog and Edge Computing (ICFEC), Madrid, Spain, 14–15 May 2017; pp. 61–67. [Google Scholar]
  19. Habib, I. Virtualization with kvm. Linux J. 2008, 2008, 8. [Google Scholar]
  20. Barham, P.; Dragovic, B.; Fraser, K.; Hand, S.; Harris, T.; Ho, A.; Neugebauer, R.; Pratt, I.; Warfield, A. Xen and the art of virtualization. In Proceedings of the ACM SIGOPS Operating Systems Review, Bolton Landing, NY, USA, 19–22 October 2003; ACM: New York, NY, USA, 2003; Volome 37, pp. 164–177. [Google Scholar]
  21. Lee, K.; Kim, H.; Kim, B.; Yoo, C. Analysis on network performance of container virtualization on IoT devices. In Proceedings of the International Conference on Information and Communication Technology Convergence (ICTC), Jeju, Korea, 18–20 October 2017; pp. 35–37. [Google Scholar]
  22. Lee, K.; Kim, Y.; Yoo, C. The Impact of Container Virtualization on Network Performance of IoT Devices. Mob. Inf. Syst. 2018, 2018, 9570506. [Google Scholar] [CrossRef]
  23. Shreedhar, M.; Varghese, G. Efficient fair queuing using deficit round-robin. IEEE/ACM Trans. Netw. 1996, 4, 375–385. [Google Scholar] [CrossRef] [Green Version]
  24. Amento, B.; Balasubramanian, B.; Hall, R.J.; Joshi, K.; Jung, G.; Purdy, K.H. FocusStack: Orchestrating Edge Clouds using location-based focus of attention. In Proceedings of the 2016 IEEE/ACM Symposium on Edge Computing (SEC), Washington, DC, USA, 27–28 October 2016; pp. 179–191. [Google Scholar]
  25. Khalid, J.; Rozner, E.; Felter, W.; Xu, C.; Rajamani, K.; Ferreira, A.; Akella, A. Iron: Isolating Network-based CPU in Container Environments. In Proceedings of the 15th USENIX Symposium on Networked Systems Design and Implementation (NSDI 18), USENIX, Renton, WA, USA, 9–11 April 2018. [Google Scholar]
  26. Jang, M.; Lee, H.; Schwan, K.; Bhardwaj, K. SOUL: An edge-cloud system for mobile applications in a sensor-rich world. In Proceedings of the 2016 IEEE/ACM Symposium on Edge Computing (SEC), Washington, DC, USA, 27–28 October 2016; pp. 155–167. [Google Scholar]
  27. Vinel, A.; Breu, J.; Luan, T.H.; Hu, H. Emerging technology for 5G-enabled vehicular networks. IEEE Wirel. Commun. 2017, 24, 12. [Google Scholar] [CrossRef]
  28. Teerapittayanon, S.; McDanel, B.; Kung, H. Distributed deep neural networks over the cloud, the edge and end devices. In Proceedings of the 2017 IEEE 37th International Conference on Distributed Computing Systems (ICDCS), Atlanta, GA, USA, 5–8 June 2017; pp. 328–339. [Google Scholar]
  29. Simoens, P.; Xiao, Y.; Pillai, P.; Chen, Z.; Ha, K.; Satyanarayanan, M. Scalable crowd-sourcing of video from mobile devices. Proceeding of the 11th Annual International Conference on Mobile Systems, Applications, and Services, Taipei, Taiwan, 25–28 June 2013; ACM: New York, NY, USA, 2013; pp. 139–152. [Google Scholar] [Green Version]
  30. Cherkasova, L.; Gupta, D.; Vahdat, A. Comparison of the three CPU schedulers in Xen. SIGMETRICS Perform. Eval. Rev. 2007, 35, 42–51. [Google Scholar] [CrossRef] [Green Version]
  31. Fattah, H.; Leung, C. An overview of scheduling algorithms in wireless multimedia networks. IEEE Wirel. Commun. 2002, 9, 76–83. [Google Scholar] [CrossRef]
  32. Bensaou, B.; Tsang, D.H.; Chan, K.T. Credit-based fair queueing (CBFQ): A simple service-scheduling algorithm for packet-switched networks. IEEE/ACM Trans. Netw. 2001, 9, 591–604. [Google Scholar] [CrossRef]
  33. Paščinski, U.; Trnkoczy, J.; Stankovski, V.; Cigale, M.; Gec, S. QoS-aware orchestration of network intensive software utilities within software defined data centres. J. Grid Comput. 2018, 16, 85–112. [Google Scholar] [CrossRef]
  34. Hong, C.H.; Kim, Y.P.; Park, H.; Yoo, C. Synchronization support for parallel applications in virtualized clouds. J. Supercomput. 2016, 72, 3348–3365. [Google Scholar] [CrossRef]
  35. Park, H.; Yoo, S.; Hong, C.H.; Yoo, C. Storage SLA guarantee with novel ssd i/o scheduler in virtualized data centers. IEEE Trans. Parallel Distrib. Syst. 2016, 27, 2422–2434. [Google Scholar] [CrossRef]
  36. Lee, S.; Kim, H.; Ahn, J.; Sung, K.; Park, J. Provisioning service differentiation for virtualized network devices. In Proceedings of the International Conference on Networking and Services, Venice/Mestre, Italy, 22–27 May 2011. [Google Scholar]
  37. Hong, C.H.; Spence, I.; Nikolopoulos, D.S. FairGV: Fair and fast GPU virtualization. IEEE Trans. Parallel Distrib. Syst. 2017, 28, 3472–3485. [Google Scholar] [CrossRef]
  38. Tan, H.; Huang, L.; He, Z.; Lu, Y.; He, X. DMVL: An I/O bandwidth dynamic allocation method for virtual networks. J. Netw. Comput. Appl. 2014, 39, 104–116. [Google Scholar] [CrossRef]
  39. Raghavan, B.; Vishwanath, K.; Ramabhadran, S.; Yocum, K.; Snoeren, A.C. Cloud control with distributed rate limiting. ACM SIGCOMM Comput. Commun. Rev. 2007, 37, 337–348. [Google Scholar] [CrossRef]
  40. Radhakrishnan, S.; Geng, Y.; Jeyakumar, V.; Kabbani, A.; Porter, G.; Vahdat, A. SENIC: Scalable NIC for End-Host Rate Limiting. In Proceedings of the 11th USENIX Symposium on Networked Systems Design and Implementation (NSDI ’14), Seattle, WA, USA, 2–4 April 2014; Volume 14, pp. 475–488. [Google Scholar]
  41. Brogi, A.; Forti, S. QoS-aware deployment of IoT applications through the fog. IEEE Internet Things J. 2017, 4, 1185–1192. [Google Scholar] [CrossRef]
  42. Skarlat, O.; Nardelli, M.; Schulte, S.; Dustdar, S. Towards qos-aware fog service placement. In Proceedings of the 2017 IEEE 1st International Conference on Fog and Edge Computing (ICFEC), Madrid, Spain, 14–15 May 2017; pp. 89–96. [Google Scholar]
  43. Heidari, P.; Lemieux, Y.; Shami, A. Qos assurance with light virtualization-a survey. In Proceedings of the 2016 IEEE International Conference on Cloud Computing Technology and Science (CloudCom), Luxembourg, 12–15 December 2016; pp. 558–563. [Google Scholar]
  44. Almesberger, W. Linux Traffic Control-Implementation Overview. Available online: https://www.almesberger.net/cv/papers/tcio8.pdf (accessed on 13 October 2018).
  45. Hwang, J.; Hong, C.H.; Suh, H.J. Dynamic inbound rate adjustment scheme for virtualized cloud data centers. IEICE Trans. Inf. Syst. 2016, 99, 760–762. [Google Scholar] [CrossRef]
Figure 1. Use cases of qCon (a) in a smart factory and (b) in fog computing using mobile devices. IoT: Internet of Things; LAN: local area network.
Figure 1. Use cases of qCon (a) in a smart factory and (b) in fog computing using mobile devices. IoT: Internet of Things; LAN: local area network.
Sensors 18 03444 g001
Figure 2. Architecture of the host driver mode (left) and the bridge driver mode (right).
Figure 2. Architecture of the host driver mode (left) and the bridge driver mode (right).
Sensors 18 03444 g002
Figure 3. Performance of Deficit Round-Robin in Linux Traffic Control when the weights of three containers are 3:2:1, and each container sends TCP (left) and UDP packets (right).
Figure 3. Performance of Deficit Round-Robin in Linux Traffic Control when the weights of three containers are 3:2:1, and each container sends TCP (left) and UDP packets (right).
Sensors 18 03444 g003
Figure 4. qCon components.
Figure 4. qCon components.
Sensors 18 03444 g004
Figure 5. Scheduling function of qCon implemented in the Linux bridge.
Figure 5. Scheduling function of qCon implemented in the Linux bridge.
Sensors 18 03444 g005
Figure 6. Raspberry Pi 3 Model B used in the evaluation.
Figure 6. Raspberry Pi 3 Model B used in the evaluation.
Sensors 18 03444 g006
Figure 7. Proportional share scheduling evaluation results of qCon when the weight sets were 1 to 1, 1 to 3, and 1 to 5.
Figure 7. Proportional share scheduling evaluation results of qCon when the weight sets were 1 to 1, 1 to 3, and 1 to 5.
Sensors 18 03444 g007
Figure 8. Proportional share scheduling evaluation results of qCon when the number of containers running concurrently increased from one to five (weight set was 1 to 5).
Figure 8. Proportional share scheduling evaluation results of qCon when the number of containers running concurrently increased from one to five (weight set was 1 to 5).
Sensors 18 03444 g008
Figure 9. Minimum bandwidth reservation results of qCon when (1) proportional share scheduling was applied with weight set 1 to 5, (2) minimum bandwidth was configured as [C1 = 30 Mbps] with weight set 1 to 5, (3) [C1 = 30 Mbps, C2 = 20 Mbps] with weight set 1 to 5, (4) [C1 = 30 Mbps, C2 = 20 Mbps, C3 = 15 Mbps] with weight set 1 to 5, and (5) [C1 = 30 Mbps, C2 = 20 Mbps, C3 and C4 = 15 Mbps] with weight set 1 to 5.
Figure 9. Minimum bandwidth reservation results of qCon when (1) proportional share scheduling was applied with weight set 1 to 5, (2) minimum bandwidth was configured as [C1 = 30 Mbps] with weight set 1 to 5, (3) [C1 = 30 Mbps, C2 = 20 Mbps] with weight set 1 to 5, (4) [C1 = 30 Mbps, C2 = 20 Mbps, C3 = 15 Mbps] with weight set 1 to 5, and (5) [C1 = 30 Mbps, C2 = 20 Mbps, C3 and C4 = 15 Mbps] with weight set 1 to 5.
Sensors 18 03444 g009
Figure 10. Maximum bandwidth limitation results of qCon when (1) proportional share scheduling was applied with weight set 1 to 1, (2) maximum bandwidth limitation was set to [C1 = 10 Mbps] with weight set 1 to 1, (3) [C1 and C2 = 10 Mbps] with weight set 1 to 1, (4) [C1 and C2 = 10 Mbps, C3 = 15 Mbps] with weight set 1 to 1, and (5) [C1 and C2 = 10 Mbps, C3 = 15 Mbps, C4 = 25 Mbps] with weight set 1 to 1.
Figure 10. Maximum bandwidth limitation results of qCon when (1) proportional share scheduling was applied with weight set 1 to 1, (2) maximum bandwidth limitation was set to [C1 = 10 Mbps] with weight set 1 to 1, (3) [C1 and C2 = 10 Mbps] with weight set 1 to 1, (4) [C1 and C2 = 10 Mbps, C3 = 15 Mbps] with weight set 1 to 1, and (5) [C1 and C2 = 10 Mbps, C3 = 15 Mbps, C4 = 25 Mbps] with weight set 1 to 1.
Sensors 18 03444 g010
Figure 11. Network performance of the three scheduling policies when (1) proportional share scheduling was applied with weight set 1 to 3, (2) container C1’s minimum bandwidth reservation was set to 30 Mbps with weight set 1 to 3, and (3) container C3’s maximum bandwidth limitation was set to 15 Mbps with weight set 1 to 3 and C2’s minimum bandwidth reservation.
Figure 11. Network performance of the three scheduling policies when (1) proportional share scheduling was applied with weight set 1 to 3, (2) container C1’s minimum bandwidth reservation was set to 30 Mbps with weight set 1 to 3, and (3) container C3’s maximum bandwidth limitation was set to 15 Mbps with weight set 1 to 3 and C2’s minimum bandwidth reservation.
Sensors 18 03444 g011
Figure 12. CPU utilization of the target board with the increase of active containers from one to five.
Figure 12. CPU utilization of the target board with the increase of active containers from one to five.
Sensors 18 03444 g012
Table 1. Network latency (ms) measured using ping under native Docker, Linux Traffic Control, and qCon.
Table 1. Network latency (ms) measured using ping under native Docker, Linux Traffic Control, and qCon.
PlatformNative DockerLinux Traffic ControlqCon
Latency (ms)0.50.60.5

Share and Cite

MDPI and ACS Style

Hong, C.-H.; Lee, K.; Kang, M.; Yoo, C. qCon: QoS-Aware Network Resource Management for Fog Computing. Sensors 2018, 18, 3444. https://doi.org/10.3390/s18103444

AMA Style

Hong C-H, Lee K, Kang M, Yoo C. qCon: QoS-Aware Network Resource Management for Fog Computing. Sensors. 2018; 18(10):3444. https://doi.org/10.3390/s18103444

Chicago/Turabian Style

Hong, Cheol-Ho, Kyungwoon Lee, Minkoo Kang, and Chuck Yoo. 2018. "qCon: QoS-Aware Network Resource Management for Fog Computing" Sensors 18, no. 10: 3444. https://doi.org/10.3390/s18103444

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop