Next Article in Journal
Genetic Algorithm and Greedy Strategy-Based Multi-Mission-Point Route Planning for Heavy-Duty Semi-Rigid Airship
Previous Article in Journal
Predicting Patient Length of Stay in Australian Emergency Departments Using Data Mining
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

QoS-Aware Cost Minimization Strategy for AMI Applications in Smart Grid Using Cloud Computing

1
Department of Information Technology, Hazara University Mansehra, Mansehra 21120, Pakistan
2
Department of Telecommunication, Hazara University Mansehra, Mansehra 21120, Pakistan
3
Department of Software Engineering, University of Science and Technology, Bannu 28100, Pakistan
4
Research Center, Future University in Egypt, New Cairo 11835, Egypt
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(13), 4969; https://doi.org/10.3390/s22134969
Submission received: 13 May 2022 / Revised: 27 June 2022 / Accepted: 27 June 2022 / Published: 30 June 2022
(This article belongs to the Section Internet of Things)

Abstract

:
Cloud computing coupled with Internet of Things technology provides a wide range of cloud services such as memory, storage, computational processing, network bandwidth, and database application to the end users on demand over the Internet. More specifically, cloud computing provides efficient services such as “pay as per usage”. However, Utility providers in Smart Grid are facing challenges in the design and implementation of such architecture in order to minimize the cost of underlying hardware, software, and network services. In Smart Grid, smart meters generate a large volume of different traffics, due to which efficient utilization of available resources such as buffer, storage, limited processing, and bandwidth is required in a cost-effective manner in the underlying network infrastructure. In such context, this article introduces a QoS-aware Hybrid Queue Scheduling (HQS) model that can be seen over the IoT-based network integrated with cloud environment for different advanced metering infrastructure (AMI) application traffic, which have different QoS levels in the Smart Grid network. The proposed optimization model supports, classifies, and prioritizes the AMI application traffic. The main objective is to reduce the cost of buffer, processing power, and network bandwidth utilized by AMI applications in the cloud environment. For this, we developed a simulation model in the CloudSim simulator that uses a simple mathematical model in order to achieve the objective function. During the simulations, the effects of various numbers of cloudlets on the cost of virtual machine resources such as RAM, CPU processing, and available bandwidth have been investigated in cloud computing. The obtained simulation results exhibited that our proposed model successfully competes with the previous schemes in terms of minimizing the processing, memory, and bandwidth cost by a significant margin. Moreover, the simulation results confirmed that the proposed optimization model behaves as expected and is realistic for AMI application traffic in the Smart Grid network using cloud computing.

1. Introduction

Recently, Smart Grid [1] has received great attention from researchers in the field of Information Technology (IT). The research community are developing new applications, communication protocols, and simulation models in order to add control, intelligence, automation, and communication capabilities to the existing traditional power grid system. For example, the new IT infrastructure in the Smart Grid paradigm consists of computing resources such as computation servers, storage servers, network devices, and Smart Grid applications [2,3], which are provided as services that perform fault tolerance, self-healing, demand response, load balancing, power generation, and optimal supply of electricity in an efficient and economic fashion in the Smart Grid network. Similarly, the intelligent smart meters (SMs) [4] at the customer domain (residential, commercial, and industrial) generate enormous metering data simultaneously to obtain real-time power consumptions, flexible pricing tariffs, and a monthly bill enquiry from the Smart Grid Utility provider. However, when the number of AMI application traffic increases between SMs and host servers in the control center, congestion occurs in the underlying Smart Grid network and performance degrades due to lack of sufficient computing resources in the existing IT setup. Using traditional techniques of centralized computing servers, storage, and database application, tightly coupled with business applications, leads to poor system reliability, higher cost, and time consumption in making a quick decision on the received real-time AMI application traffic in the Smart Grid network. Therefore, to fully realize the complex Smart Grid network in a cost-effective manner, the primary challenges are to improve the availability, reliability, and efficiency of the computing resources and quality of service (QoS) of application services, which are most important to be considered in the Smart Grid network.
In order to cope with these challenges, coupling the Internet of Things (IoT)-based networks [5,6] with cloud computing [7,8] will play an important role in the development of an improved Smart Grid architecture. With the induction of these two modern networking technologies, the residential users (here, SMs) will keep no concerns about the IT resource allocation (hardware, software) and application services (here, database application) because cloud computing primarily focuses on providing these services in a flexible and pay-as per-use manner over the Internet. Organization such as Smart Grid should pay attention to understand the current usage of cloud resources and increasing traffic rates (rising workloads) in order to efficiently utilize the actual cloud resources and applications (business operations). Such strategies enhance the overall network performance in terms of the agreed QoS and reduced costs (here, paid for cloud services), which are the key parameters being monitored by both the consumers and Utility provider in order to save money and time. Although, in the cloud environment, horizontal (e.g., adding more virtual machines) and vertical (increase size of the CPU, storage, RAM, and bandwidth) scaling are employed by organizations to handle the growing demands, ensure uptime, and optimize the network performance. For simplicity, here, the cost of cloud resource [9,10] means the leasing of cloud resources or paying for the use of cloud services, e.g., database applications, which consumers pays to the cloud provider. In Smart Grid, QoS provision with agreed terms and conditions, i.e., service level agreements (SLAs), are set at the time of the smart meter connection and installation.
For example, many public cloud providers, such as amazon web service (AWS), have a free tier micro instance called elastic computing cloud (EC2), which provides a limited set of cloud resources (services) free for 750 h per month for 12 months and do not charge all inbound traffics. However, AWS charges consumers for bandwidth on an hourly basis for outbound data transfers such as network-intensive workloads (services), such as IoT, real-time applications, and other public traffic such as video, audio, and gaming, due to which consumers pay high monthly bills. Therefore, the optimization of bandwidth is essential to increase the throughput, eliminate bottlenecks, and reduce substantially the majority of cloud computing costs both from the perspective of consumers and organizations.
Therefore, in this article, our main focus was to efficiently handle the cloud resources in order to minimize the cost of its usages and improve the QoS parameters of all intended AMI application traffic in the Smart Grid network. At this end, motivated by the aforementioned discussion, this article introduces a QoS-aware hybrid queue scheduling (HQS) model for AMI application traffic in the IoT-based Smart Grid network using cloud computing technology. Our proposed model particularly extended our previous work in [11], by focusing comprehensively on system implementation, simulation modelling, and cost reduction in terms of efficiently utilizing cloud resources and ensuring QoS provisioning to all AMI applications in the Smart Grid. The acronyms used in this articles are described in Table 1. In this context, following are some of the significant research contributions of this article:
  • The relay nodes in the network topology and the control central server in the Smart Grid network were programmed to differentiate and classify the AMI application traffic into periodic, normal, and time critical classes based on their packet size, latency, and priority level.
  • Our proposed optimization model employed three algorithms in order to allocate the resources in an optimized manner and schedule the AMI application traffic with co-existence to the public traffic in the Smart Grid communication network.
  • To achieve QoS levels and reliable communication, the proposed QoS-aware HQS model employed a combination of priority queue (non-preemptive) and first-come, first-serve scheduling techniques. A priority metric was assigned to each AMI traffic to prioritize transmission. The priority metric was computed based on the packet size, latency, and priority level of the AMI application, that is, smaller priority metric traffic had the highest priority in transmission to meet the latency requirement.
  • We developed an objective function that was mathematically formulated in order to optimize the cloud resources in such a way to minimize the total cost incurred in the usage of cloud services.
  • Finally, we analyzed and validated the efficacy of our proposed QoS-aware HQS model through extensive CloudSim simulation. The simulation results obtained demonstrate that the objective function is accurately implemented and successfully minimized the total costs in terms of CPU processing, RAM, and BW in the cloud computing environment.
The remaining article is ordered as follows. Section 2 elaborates on the related study about AMI applications, which particularly focused on AMI traffic management and scheduling schemes employed in the Smart Grid network. Section 3 briefly describes the problem statement. Section 4 describes in detail the proposed QoS-aware hybrid queue scheduling model, which includes the AMI application traffic model, network model, problem formulation, and proposed optimization model for AMI applications with an operational example. In Section 5, we analyze and validate the CloudSim simulation results. Lastly, the article is concluded and future work is described in Section 6.

2. Related Work

In recent years, due to the rapid development in IT and wireless technologies, that is, specifically the IoT-based network supported by the cloud computing environment, has received great attention from the research community. These networking concepts are particularly useful in Smart Grid infrastructure to allow things (e.g., SMs) and people in a residential area to exchange huge amounts of metering data with the Utility control center in the Smart Grid network. However, due to the resource constraint in the Smart Grid network, efficient utilization of CPU processing, memory, and network bandwidth with low cost is essential as well as to fulfill AMI applications requirements such as QoS, which is a challenging task in these infrastructures. Therefore, we present an in-depth literature review of existing research topics, covering the most important such as the background of AMI applications, traffic management, and resource allocation strategies in a cost-effective manner in the Smart Grid network.
For ensuring QoS through traffic scheduling in the Smart Grid network, multiple research efforts have been performed in the past. For instance, in our previous work [11], we proposed an IoT-based hierarchical clustering architecture for AMI applications in the Smart Grid network. We derived an objective function that was implemented via different algorithms to maximize network coverage, minimize the infrastructure cost, and eliminate bottleneck problems in the network topology. In addition, the simulation results depicted that the scheduling policy optimizes the use of CPU processing in terms of the execution time of AMI application traffic, which significantly enhances the QoS such as to maintain reliability and low delay in the Smart Grid network. In [12], the proposed model was used to classify different Smart Grid application traffics with different QoS requirements into five traffic classes based on service differentiation unit. In class 1, traffics were scheduled with non-preemptive priority queue discipline, while other classes were scheduled with the round robin scheduling scheme. Analytical and simulation results showed that QoS requirements, such as delay (mean waiting times), for different Smart Grid traffics were satisfied. Similarly, a traffic scheduling algorithm was proposed in [13], which classified the Smart Grid application traffic into two different classes, namely event-driven and fixed scheduling. The scheduling model works in two stage that is, in the first stage, the bandwidth is efficiently allocated to the traffic in the event-drive class, while the remaining bandwidth is assigned to the second class to ensure QoS levels such as latency and bandwidth allocation to other traffics. In order to release congestion and minimize packet loss ratio in multi-hop wireless mesh networks, the authors in [14] proposed a new scheduling technique based on random-switching, which uses the load balancing concept to schedule burst data in the metering data collection tree. The simulation results showed that the proposed scheme makes metering data collection, traffic distribution, and traffic forwarding processes more reliable and efficient in the network. The authors in [15] proposed a packet scheduling algorithm to handle metering traffic in outage conditions. The proposed scheme considered the hop count from the mesh node to the gateway node and queue length in the packet scheduling process. Numerical and simulation results showed that the network’s delay was minimized and that the overall network reliability was enhanced under emergency situations, such as the exchange of outage notifications in the network. In [16], the authors addressed the uplink bottleneck in long term evolution (LTE) networks. To solve this problem, a scheduling policy was employed that takes into account the channel quality, traffic priority, and packet delay in order to send periodic electricity consumption data of SMs, along with users real-time traffic such as voice calls. The proposed scheduler served a great number of user’s traffic with coexistence to smart metering traffic in the LTE networks. An optimization scheme in [17] was proposed for critical data such as critical faults with high arrival rates in the monitored environment in order to maintain low latency and high reliability, as well as to provide QoS to critical data with low energy consumption using wireless sensor networks (WSNs) for Smart Grid applications. Similarly, using WSNs in the Smart Grid network, the authors in [18] proposed a delay-aware cross-layer (DRX) and fair and delay-aware cross-layer (FDRX) algorithms for Smart Grid monitoring applications to minimize the delay and maintain lower collision rates in the communication channel. In [19], a backscattering green technology was proposed for information exchange and energy signals for wireless sensor battery recharge in Smart Grid. An asynchronous advantage actor critic (A3C) model using priority was designed to handle uplink resource allocation to increase the throughput in the network.
The use of the cognitive radio network (CRN) was investigated as a key wireless technology in [20,21,22,23] for traffic scheduling and the optimization of resources to reduce interference in the communication channel and optimize bandwidth usage in the Smart Grid network. In [20], the authors proposed a scheduling algorithm in order to increase network throughput and preserve priority and stringent delay parameters of real-time Smart Grid applications, such as transmission line monitoring in rural areas, using cognitive radio (CR) technology. In [21], a QoS-aware packet scheduling mechanism based on prioritization and classification in CRNs for Smart Grid applications was proposed to enhance the transmission quality of secondary users, that is, high-priority as well as increase the system utilization. Similarly, the work in [22] presented an Adam optimizer scheduling technique for Smart Grid applications using CR technology to reduce latency, increase network throughput, and obtain optimal system cost in the Smart Grid. The proposed scheduling technique was expressed as an objective function that is equal to the sum of throughput and latency utility functions. In addition, priority classes and sub-classes of Smart Grid applications based on their latency and throughput parameters were categorized. The scheduler maintains priority queues for traffic classes. In addition, a traffic scheduling technique using the priority of various Smart Grid applications, such as meter readings, multimedia sensing data, and control commands, was proposed in [23] for a CR-based Smart Grid network. The work specifically focused on CR channel allocation and Smart Grid traffic scheduling to solve the utility optimization problem in the system.
Different studies researching IoT applications in Smart Grid are presented in [24,25]. In [24], the authors proposed an IoT-based model for meter billing and energy monitoring applications in Smart Grid. The case study analysis explained that the proposed system design contributes to prevent electricity shortages and reduce power wastages. IoT-based applications have been comprehensively analyzed in [25] for Smart Grid and smart environments such as smart homes, smart cities, smart metering, etc. Nowadays, cloud environment [26,27,28,29] offers promising deployment models and services such as software, infrastructure, and hardware on user’s requests over the computer networks. In [26], authors showed the effectiveness and weaknesses of different scheduling and allocation algorithms in the cloud environment using a CloudSim framework. In [27], multiple resource allocation techniques were proposed in order to increase the QoS and efficiently utilize the cloud resources. In [28], a simulation model using CloudSim was defined to save time and money for researchers and organizations by reducing the energy and expense load in the cloud framework. Similarly, in [29], the authors presented a cloud-based simulation model using a CloudSim simulator for hosting Smart Grid applications to fulfill their processing, storage, and network requirements in the cloud infrastructure. Various virtual machine (VM) allocation policies have been analyzed, taking different VM parameters in order to make decisions for hosting Smart Grid applications in the cloud environment.
In the light of aforementioned discussion, we concluded that most of the previous research works as tabulated in Table 2 and are multi-objective; that is, the existing works in the literature are considered either to improve the QoS requirement or optimize the resources using various scheduling approaches for application -specific to the Smart Grid network. The work in IoT-based cloud computing for resource optimization in a cost-effective manner for AMI applications in Smart Grid is limited and needs the attention of researchers. We developed an optimization model based on IoT networking and cloud computing, which specifically focuses on AMI application traffic modelling, classification, prioritization, and traffic scheduling, using a hybrid queue scheduling scheme to achieve both cost minimization and QoS provisioning objectives in the Smart Grid network. The existing works in the literature do not address both the objectives in the Smart Grid network.

3. Problem Statement

In residential areas (urban), a large number of SMs are deployed at the consumer premises in the Smart Grid network, since SM-based applications generate a huge amount of metering data that need to be transmitted to the software-defined control center in a timely and reliable manner over the public IP-based network in the Smart Grid. However, the relay devices (here, SMs and DCs) used in the communication network have limited built-in resources (CPU, RAM, and BW) to accommodate such a high volume of traffic with required QoS levels in the communication network. For instance, power control commands (PCC) will be immediately transmitted within the recommended latency boundary (1 s) during peak load hours in the Smart Grid communication network; that is, it requires network access within a short time period, hence calling for priority-based transmission. In the absence of an active queue management mechanism in these devices, data packets will be dropped or even delayed in such a situation; thus, a queue contention solution is required. In addition, the available BW requires careful handling of the network both for end-users and AMI applications intending to improve the QoS levels. This problem is mathematically formulated in Equation (1) as follows:
i = 1 N SM λ i t > μ j t     i N SM ,   j N CH   or     j CCS
where i = 1 N SM are the total SMs, λ i is the packet arrival rate (Poisson distribution) from SMs, and μ j is the service rate (here, RAM of finite size, processing power, and limited BW), that is, exponentially distributed in these devices at time “t”.
From the perspective of the cloud-based control center, the exchange of metering data (e.g., power consumptions) plays a vital role in making complex decisions to balance electricity generation and distribution in the overall Smart Grid architecture. Therefore, suitable resource handling and scheduling schemes are required for AMI application traffic in these devices that aim to ensure that needful buffer space and BW is available, such that congestion is avoided and dropping rates of data packets are minimized in peak load hours. Since cloud provides these services (resources) on a pay as-per use basis, cost minimization needs to be considered from the business perspective of both the end-user and organization.
Hence, in the light of the above discussion, we attempted to resolve the optimization problem through a QoS-aware HQS model aiming to ensure the required QoS levels and the efficient utilization and allocation of limited resources in a cost-effective manner during the processing of complex computations at the cloud-based CCS in the Smart Grid network.

4. Proposed QoS-Aware Hybrid Queue Scheduling (HQS) Model

This section presents details about our proposed QoS-aware hybrid queue scheduling model for AMI applications in the Smart Grid network, which includes the sub-sections: AMI applications traffic model, network model with the main clustering topology (as shown in Figure 1), problem formulation, and proposed optimization model, such that resources are handled efficiently and the QoS requirements of each AMI application is maintained. A walk-through example is presented that clearly illustrates the working of the proposed optimization model in this article.

4.1. AMI Applications Traffic Model

The Smart Grid network consists of multiple applications such as Substation automation, demand response (DR), distribution automation (DA), and AMI, which consists of interval meter read (IMR), on-demand meter read (ODMR), electric vehicle (EV) charging, etc., where each has different traffic characteristics such as packet size, latency, data sampling frequency rate, reliability, and BW. Further, Smart Grid applications are classified into two different traffic types, namely deterministic and event-driven, as summarized in Table 3 below.
In this article, we only considered AMI applications from the SM perspective and presented how our proposed QoS-aware HQS model classifies various AMI-specific traffic (metering data) that is generated or received by the SMs into two different traffic classes, namely non-critical and time-critical, based on characteristics such as packet size, latency, and priority level. These characteristics may be pre-configured by the Utility administrator in all SMs and on other network devices before their deployment in the residential areas. The network model will support these traffic classes [3] with required communication characteristics, as listed in Table 4 below. Moreover, the non-critical traffic class consists of AMI applications such as IMR, ODMR, ODMRR, and billing information. IMR represents the customer electricity load profile (consumptions) typically sampled after every fixed time interval (e.g., 15–60 min), which can be mathematically expressed in Equation (2) as follows:
IMR = : a = 1 n kWh ah
where a = 1 , ,   n . represents the household appliances, and kWh ah represents the electricity consumptions of an individual household appliance in kilo Watt per hour. The time interval depends upon the Utility provider. The IMR can be used later to prepare the consumer electricity bill, which may be shared with consumers through the billing information application. Similarly, ODMR is the meter reading request sent to the SM by the Utility provider, while on-demand meter reading response (ODMRR) is the SM response sent to the Utility provider that may be used in load forecasting and DR programs. On the contrary, the time-critical traffics consist of remote-control command (RCC), power control command (PCC), EV charging, and outage alert (OA) applications. Moreover, RCC includes commands such as remote disconnect\reconnect of devices, PCC consists of load control signals, EV charging shares electric vehicle charging information, and OA consists of messages such as outage detection sent to the Utility provider about the unavailability of electricity at the customer head-end. Among the two traffic classes, time-critical requires priority-based transmission due to its stringent latency and throughput requirements, while the non-critical could tolerate a delay of a few minutes in transmission in the Smart Grid network.
Once all the AMI applications are classified and their data sources (here, SMs) are identified, then the total traffic estimated for an AMI application can be expressed in Equation (3) [30] as:
AMI   Traffic   Estimation = : i = 1 n PS i + OS i   ×   ( N SM ) i
where PS is the payload size, OS represents the overhead size of an SM, and N SM is the number of SMs that generated the ith AMI application, whereas the traffic arrival rate λ i (Poisson process) at the ith device can be characterized [31] below as:
λ i = :   ρ i λ up + λ down + λ up   if   i   is   a   SM ρ i λ up + λ down ,   if   i   is   a   Router N SM × λ down ,   if   i   is   a   DC  
where ρ i represents the shortest path to the   ith device acting as relay node (here, CH), λ up denotes the mean transmission rate from each SM to the DC (uplink), λ down denotes the mean transmission traffic from the DC to each SM (downlink), and N SM is the number of SMs connected to a DC in a given residential area. In addition, λ up and λ down can be calculated as:
λ up   or   λ down = BW i   Pkt _ size i
where BW i is the bandwidth (bits per second), and   Pkt _ size i is the packet size of the ith AMI application. However, if the ith device retransmits the packet due to collision, then the actual traffic rate λ i [31] can be defined as:
λ i = : N i × λ i
where N i is the average number of packets retransmitted at the ith device, and λ i is the traffic arrival rate as given in Equation (4). Another important factor that can be modelled is the mean service rate (here, BW) as given below:
μ i = : BW out Pkt _ size i
where BW out is the output BW allocated to an AMI application and is formulated as:
BW out = : α i = 1 q BW i
where α is a constant factor between 0 < α < 1 , and q represents the corresponding queue identifier that is allocated to each traffic class. Therefore, with an AMI traffic classification and traffic estimation (i.e., transmission rate) in hand, we needed to design an optimization model that will ensure the stringent QoS requirements (e.g., BW, latency, and throughput) and the reliability (e.g., accuracy and low packet errors) of each AMI application in the cloud-based Smart Grid network.

4.2. Network Model and Assumptions

The network model needed to be redesigned for the proposed model, which consists of smart meters (SMs) and data concentrators (DCs) at the lower level and a central router and main central control server (CCS) at the top level of the hierarchical IoT-based Smart Grid architecture. All these network components are pre-programmed (software defined) by the Utility operator in order to communicate with each other using default channel access methods in the underlined communication technology. A logical network topology for the proposed model is depicted in Figure 1 at the lower level in the hierarchical architecture. Further, the whole residential area was divided into IoT-based disjoint clusters using a modified K-means clustering method [11,32] (though clustering is not the focus in this article), where each cluster consists of a cluster-head (CH) and cluster-members (SMs). A CH operates similar to a traffic controller and scheduler to allocate resources and exchange the AMI application traffic between the cluster members and the DC in a single hop manner. In other words, each CH facilitates the communication between cluster-members and DC in a controlled manner to ensure the QoS levels of different AMI applications. The DC is directly connected over the Internet to the main CCS. For simplicity, we defined the total clusters as: K , cluster-members as: N SM , cluster-head as: c K , number of active CHs as: N CH , and number of DC as: N DC in the network model. Before discussing further, let us summarize the essential components of the network model as follows.

4.2.1. Smart Meter

In Smart Grid, SMs [33] are typically installed at low altitudes in homes and buildings and play an important role in making decisions such as the demand and supply of electricity in Smart Grid. These SMs measure the power consumption of the home appliances at fixed-time intervals, as well as on demand, and exchange these measurements with the Utility provider via a shared communication network. Each SM has an IEEE 802.15.4g [34] interface used for intra-cluster communication as well as to enable the CHs to communicate directly with the DC. However, each SM has limited functionality due to built-in resources (CPU, RAM, and BW) in the Smart Grid network.

4.2.2. IPSec Tunnel

The cluster members communicate locally and across the public IP network (Internet) with the main CCS using IPSec tunneling to ensure secure connectivity in the Smart Grid network. IPSec tunneling helps to provide security functions to AMI application traffic such as privacy and integrity, protection against non-repudiation, and replay attacks. Further, IPSec establishes secure connections via VPN between the pre-defined network devices (here, SMs, DCs, and the central router) and CCS of the Utility control center to limit the inbound and outbound traffic. VPN makes the IP address hidden which makes it harder for a flooding DDoS attack [35] to locate and target the Smart Grid network.

4.2.3. Data Concentrator

Usually, DCs [36] are typically installed and mounted on top of poles in residential areas. The DC concentrates the metering traffic via CHs and forwards it to the main CCS for further storage and processing via the Internet. The DC has a higher processing capability, buffer space, and channel capacity and a longer radio range compared to the SMs in the Smart Grid network.

4.2.4. Wide Area Network (WAN)

WAN interconnects the DCs to the main CCS via a bi-directional communication network that has a long-range communication and high network capacity (BW). WAN is the backbone network used to transmit the AMI application traffic, employing different technologies (e.g., optical fibre, wireless radio, LTE, etc.) [37], which have longer distance coverage and higher data rates. In this article, we opted to use LoRaWAN [38] as the WAN technology between the DCs and the central router at the control center head-end.

4.2.5. Central Router

A central router, if present at the control center premise, facilitates the continuous exchange of metering traffic between the DCs and cloud applications deployed on top of the main CCS in the Smart Grid network.

4.2.6. Control Center

The control center is a centralized component in the Smart Grid network that enables instant access to important resources (software and hardware) inside the Utility provider that creates a global view of the Smart Grid network (hierarchical architecture). This is why it is also termed the software-defined data center (SDDC) in the Smart Grid architecture. The control center includes a software system, referred to as the metering data management system (MDMS) [39,40], built on top of the main CCS, that performs complex computations (e.g., validation, analysis, and estimation) and stores the received metering data for long-term into a database application that contains data about the meters, their consumers, electricity bills, and other network devices. In particular, cloud services are deployed over the main CCS. To access the cloud services (e.g., database application), communication between the main CCS and SMs are established through specific RESTfull APIs over the Internet. Here, the message broker in the cloud framework manages the exchange of AMI application traffic (web request) between SMs and the database application. Further, necessary business logic and traffic rules (scheduling policies) are applied on received traffic that describe the clear scope and network behavior of the Smart Grid network. We made the following few assumptions in the design of our network model:
  • Only one DC at the centre of the residential area was considered.
  • Each device was assigned a unique IP address and meter registration ID.
  • Each device was authentic, and the CCS was fully trustworthy.
  • Every device was capable of computing the priority metric.
  • Finally, we considered that queuing delay was negligible, as we dealt with very low data rates.

4.3. Problem Formulation

Considering the optimization problem in Section 3, we focused on allocating a guaranteed number of resources such as CPU, RAM, and BW in a cost-effective manner; these are required by the AMI application traffic at the cloud-based CCS in order to ensure the QoS levels and improve the overall system performance of the Smart Grid network. The notations used in this section are already described in Table 1.
To optimize these limited resources, the optimization problem becomes a cost minimization problem. Therefore, the overall cost minimization problem can be formulated in the form of an objective function in Equation (9) as follows:
minimize k = 1 K q = 1 Q i = 1 N SM ( C CPU + C RAM + C BW ) I , q k
Subject to:
k = 1 K i = 1 N SM λ k i μ k i     i N SM ,     C k N CH
k = 1 K q = 1 Q i = 1 N SM Q q k λ i k I     i N SM ,     C k N CH ,   q Q
k = 1 K q = 1 3 i = 1 N SM BI i , q k BW tot     i N SM ,     C k N CH ,   q Q
k = 1 K i = 1 N SM IW i , 4 k BW rem     i N SM ,     C k N CH ,   4   Q
BW rem 0     i N SM ,     C k N CH ,   4   Q
In Equation (9), the total cost is expressed as a sum of each resource cost: CPU processing, RAM, and BW, where K represents the total number of clusters in the network model, C k denotes the corresponding CH, N CH denotes the number of cluster heads, Q is the number of priority queues created at each device, and N SM represents the number of cluster-members in each cluster. The objective function in Equation (9) intends to reduce the total system cost in terms of CPU processing ( C CPU ), buffer space ( C RAM ), and bandwidth ( C BW ) through the optimal allocation of these resources during the transmission of AMI applications in the Smart Grid network by ensuring constraints (9a)–(9e), whereas constraint (9a) ensures that the average traffic arrival rate ( λ i k ) at a device should be less than or equal to the average service rate μ i k at that device to minimize traffic losses or traffic retransmission later. Next, constraint (9b) satisfies that the AMI traffic is transmitted in the recommended latency ( L R ) range in terms of the average traffic arrival rate and a particular queue length ( Q q k ), respectively. Constraint (9c) ensures that the guaranteed output BW is allocated to all AMI traffic in the corresponding queues ( Q ). Finally, constraint (9d) and (9e) ensures that the remaining portion of bandwidth ( BW rem ), i.e., non-negative, is allocated to other public traffic that exists in the communication network, where BW rem is expressed in (9f) below as:
BW rem = BW tot k = 1 K q = 1 3 i = 1 N SM BW i , q k

4.4. Proposed Optimization Model

In this section, we provide details about the proposed optimization model (QoS-aware HQS model) for AMI applications in this article that intends to guarantee the QoS levels and reliability of different AMI traffics so that costs incurred in the cloud resource usage are minimized and that the system performance is improved. As mentioned in Section 4.2, we particularly focused on implementing the resource allocation and scheduling techniques in CHs, DC, and the main CCS during the transmission of AMI applications. Assuming that these network devices have received the AMI traffic, there must be a mechanism to determine their arrival order, accommodate buffer space (RAM), and allocate BW on a priority basis before transmitting towards their destination in the Smart Grid network. Therefore, the following necessary operations would be performed on the AMI traffic:
  • The received traffic is classified into two traffic classes based on their characteristics.
  • Further traffic characterization is employed to handle BW allocation.
  • Different queues (M\M\1) are created based on priority levels of these traffic classes, and AMI traffics are accommodated in these corresponding queues in a sorted order.
  • A combination of queue scheduling schemes is used to serve AMI traffics based on their priority metric assigned in these queues.
where the priority metric ( P i ,   q k ) of the ith AMI application traffic in the qth queue at the kth device can be computed as:
Priority   metric   P i ,   q k = : Pkt _ Size   ×   L R   ×   P L i
where Pkt _ Size represents the packet size, L R is the latency, and P L denotes the priority level of the ith AMI application. These traffic characteristics are listed in Table 4, and usually P L values are set by the network operator of the Utility provider. For clarity, P L assists in the creation of priority queues (qth) in order to avoid conflict of the queue allocation; that is, the queue contention of AMI application traffic requires priority-based transmission without delay and packet loss, whereas the priority metric ( P i ,   q k ) computed in Equation (10) above assists in scheduling the AMI traffic in priority queues. In the proposed optimization model, four queues ( Q = 1 , , 4 ) were created in buffer space at each device. The incoming traffic from time-critical class applications such as RCC, PCC, EV charging, and OA were accommodated into queue1 (Q1), which has the highest priority level, while, traffic from the AMI applications such as ODMR, ODMRR, and billing information from a non-critical class were placed into queue2 (Q2), which has the 2nd highest priority level. Further, queue3 (Q3) was reserved for IMR application, which may tolerate delay up to a few minutes during transmission and has the lowest priority level 3 in the AMI traffics. Queue4 (Q4) was assigned to other public traffics. To serve these queues, we acquired a hybrid queue scheduling model which operated as follows: First, non-preemptive priority queue scheduling (NP-PQS) was applied to Q1 and Q2 using the priority metric for each AMI traffic to ensure that time-critical traffic will be served first ahead of non-critical traffic due to their tight latency boundary. Most importantly, NP-PQS is more useful for making decisions on the order of traffic arrivals, which determines the priority level, RAM, and BW allocation at the output link when congestion is experienced. In contrast, the FCFS scheduling method (default) was applied to Q3, as the priority metric of all AMI traffics are the same. Finally, other public traffic in Q4 were served after all AMI traffics were scheduled and served.
As discussed above, we presented three algorithms to bring in practice the proposed optimization model in order to solve the constraints of objective function. Below is the pseudo code used in Algorithm 1 to classify the incoming AMI application traffic listed in Table 4 at various devices in the hierarchical Smart Grid network.
Algorithm 1: for classification of AMI applications traffic
Input: K , N SM , Pkt , S
1 Begin
2 insert TC ,   ToA ,   and P L flags   into   application   layer   header   of   P k t i
3 set   n ,   i = 0 ; j = 1 ;   ; Q 4 S = φ ; R 1 4 = F 1 4 = 1 ; ctr =   start ;
4 L :   while   ctr   ! = stop   do
5 read   k = 1 K i = 1 N SM Pkt i , j k using   Equation   ( 5 )
6 if   Pkt i . TC = = Time - Critical   and   Pkt i . ToA = = RCC   or   PCC   or   EV   charging   or   OA   then
7 P L 1
8 else   if   Pkt i . TC = = Non - Critical   and   Pkt i . ToA = = ODMR   or   ODMRR   or   Bill   Info   t h e n
9 P L 2
10 e l s e   i f   Pkt i . TC = = Non - Critical   and   Pkt i . ToA = = IMR   t h e n
11 P L 3
12 e l s e
13 P L 4
14 e n d   i f
15 s w i t c h   P L   do
16 case   1 :   queue Pkt i ,   R 2 , F 1 , 0   break ;
17 case   2 :   queue Pkt i ,   R 2 , F 2 , 1   break ;
18 case   3 :   queue Pkt i ,   R 3 , F 3 , 2   break ;
19 case   4 :   queue Pkt i ,   R 4 , F 4 , 3   break ;
20 e n d   s w i t c h
21 g e t   c t r
22 e n d   w h i e
23 v o i d   queue   Pkt ,   R ,   F ,   n   t h e n
24 i f   R   > = S   t h e n
25 D i s p l a y   Queue   Overflow
26 e l s e
27 i f   R = = 1   t h e n   R = 0
28 Q n R =   Pkt
29 R + +
30if F = = 1 then F = 0
31 e n d   i f
32 R e t u r n   Q 4 S
33 E n d
Output : Save   incoming   packet   Pkt i   in   corresponding   Queues
Algorithm 1 begins with the assumption that three flags are added to the application layer header in each packet using Line 3. In line 4, certain variables are initialized, including a two-dimensional array ( Q 4 S ) where four rows are created for four priority level queues, and S represents the queue length in the buffer space. The incoming packets ( P k t ) are read in the next line of code according to the arrival pattern as defined in Equation (5) until the loop condition remains true. Lines 6–14 are used to classify and assign the priority level to each traffic class. This traffic differentiation can be conducted through the use of traffic class (TC) and type of application (ToA) flags, which were already added in the packet header. Next, incoming packets are placed into their respective queues based on priority level ( P L ) and front (F) and rear (R) pointers in unsorted form using Lines 15–31. Finally, Algorithm 1 ends and returns the priority queues as output in the next lines of code. Once traffic classification and queue formation are completed, next we present Algorithm 2 to transmit and process both traffics (AMI and public) from these queues through queue scheduling schemes (NP-PQS and FCFS) using the priority metric. The pseudo code in Algorithm 2 is given below:
Algorithm 2: for prioritization and transmission of AMI applications traffic
Input: Q   4 S , Row ,   S ,   K ,   CH ,   DC
1 B e g i n
2 s e t   Pkt i , j = φ ;   Row = 0 ; Col = 0 ; Prio _ metric = 0 ;
3 void   S o r t P r i o r i t y Q u e u e   ( Q [ ] [ ] , Row ,   Col )   t h e n
4 f o r   i = 0 ; i < R o w ; i + +   d o   / / only   first   and   second   row   queue   will   be   sorted
5 f o r   ( j = 0 ; j < C o l ; j + + )   d o
6 f o r   ( n = 0 ; n < C o l j 1 ; n + + )   d o
7 C a l c u l a t e   Prio _ metric   i , n   and   Prio _ metric   i , n + 1 using   E q u . 10   for   Q i n   and   Q i n + 1   respectively
8 I f   Prio _ metric   i , n > Prio _ metric   i , n + 1 t h e n
9 s w a p   Q i n , Q i n + 1
10 e l s e   i f   Prio _ metric   i , n = = Prio _ metric   i , n + 1   t h e n
11 D i s p l a y   Do   nothing   and   proceed   to   next   queue   item
12 e n d   i f
13 e n d   f o r ; e n d   f o r ;   e n d   f o r
14 C a l l   SortPriorityQueue   ( Q [ ] [ ] ,   2 ,   S )
15 i f Q Row Col   ! =   φ   t h e n
16 i f   Con ST     DC = Disconnect   OR   ! r e c e i v e   Con RP DC   t h e n
17 s e n d   Con RQ DC
18 CH k r e c e i v e Con RP
19 i f   Con RP = =   Allowed t h e n
20 f o r   i = 0 ; i < 4 ; i + +   d o  
21 f o r   ( j = 0 ; j < S ; j + + )   d o
22 i f   i   ! = 2   t h e n
23 NP PQS ( Q i j ) Pkt i , j
24 s e n d   Pkt i , j     DC
25 e l s e
26 FCFS Q i j Pkt i , j
27 s e n d   Pkt i , j     DC   using   E q u a t i o n   7
28 e n d   i f
29 Allocate   bandwidth   BW out   using   E q u a t i o n   8
30 Q i j . remove ( )
31 e n d   f o r ; e n d   f o r
32 CH k r e c e i v e   ACK RP
33 send Con TR   DC
34 e l s e
35 Retry   or   wait   for   CH k until TTL = = 0 ; using E q u a t i o n 6
36 e n d   i f
37 e l s e
38 D i s p l a y   Queue   is   empty
39 R e t u r n   Null ;
40 e n d   i f
41 R e t u r n   Pkt i , j
42 E n d
Output: Save outgoing packet Pkt i , j in the corresponding output interface
Algorithm 2 begins with the initialization of necessary variables in Line 2. Before the transmission of AMI application traffic, Lines 3–14 are used to sort out the first two queues in ascending order using the bubble sort method using the priority metric. However, if more than one data packet has the same priority metric, then they are processed in the order in which they have arrived in these queues. Next, if the queue is not empty, using Line 15, a TCP\IP connection setup is initiated and established between the CH and DC in Lines 15–19 using notations such as connection status ( Con ST ), connection request ( Con RQ ), and connection reply ( Con RP ). First, the time-critical traffic from queue-1 is scheduled and processed, and then queue-2 is scheduled with NP-PQS, respectively. Similarly, queue-3 with IMR traffic and queue-4 with public traffic is scheduled with FCFS scheduling, respectively. The output bandwidth is allocated to the outgoing packet in Line 29. After successful transmission acknowledged with the ( ACK RP ) message, the packet is removed from the corresponding queues, and the connection is terminated with connection termination ( Con TR ) in Lines 30–33. However, if the connectivity fails, the CH request will be either stored in the buffer state until it is time for the live (TTL) session to expire, or it will try again using Lines 35–36. The algorithm returns nothing (null value) in lines 38–41 if the queue is empty. Algorithm 2 returns the outgoing packet as the output and ends in Line 41–42. Further, a similar procedure was adopted at the DC to transmit the AMI application traffic over the Internet towards the main CCS for further analysis and processing. Lastly, Algorithm 3 is presented, which helps to simulate the proposed optimization model using the CloudSim framework at the control center side. The pseudo code is given below:
Algorithm 3: for simulation of QoS-aware HQS model at the cloud-based CC server
Input: K , N DC , N SM , Pkt , Row , S , RAM , HDD , BW
1 B e g i n
2 s e t   n = i = j = 0 ; Q [ Row ] [ S ] = φ ; CloudletList = HostList = φ ; ctr = start ; pesNo = 1 ;
3 w h i l e   ctr   ! = stop   d o
4 r e a d   k = 1 K j = 1 N DC i = 1 N SM Pkt i , j k using   E q u a t i o n   5
5 c a l l   Algorithm   1   to   classify   and   queue   the   incoming   packets
6 g e t   ctr
7 e n d   w h i e
8 c a l l   Algorithm   2   and   use   Lines   2 14   to   sort   queue   1   &   2   respectively
9 i f Q Row S   ! =   φ   t h e n
10 HostList = new   Host HostID , RAM , HDD , BW , PE mips , new   VMSchedularSpaceShared PE
11 Datacenter = new   Datacenter Name , Arch , OS , VMM ,   new   VMAllocationPolicySImple , HostList , HDD , 0
12 Broker = new   DatacenterBroker Broker , BrokerID
13 VMList = new   VM ( VMID , mips , BrokerID , size , RAM , BW , pesNo , VMM ,   new   CloudletSchedulerSpaceShared ( ) )
14 Broker   VMList   VM
15 i f CloudletList = =   φ t h e n
16 s e t   Name Pkt . ToA ; Priority Pkt . P L
17 CloudLetList = New   Cloudlet ( ID , Name , pesNo , Length , Filesize , OutputSize , Priority , new   UtilizationModelFull ( ) )
18 r e p e a t   Pkt n   Q Row S   d o
19 M a p :   Pkt n   CloudLet n
20 CloudLet n   BrokerID
21 CloudLet n   VMID
22 s w i t c h   CloudLet n . Priority do
23 case   1 :   NP PQS CloudLet n   break ;
24 case   2 :   NP PQS CloudLet n   break ;
25 case   3 :   FCFS CloudLet n   break ;
26 case   4 :   FCFS CloudLet n   break ;
27 e n d   s w i t c h
28 CloudLetList . add CloudLet n
29 n + +
30 U n t i l l   n   Q . Length 1
31 e l s e
32 D i s p l a y   Queue   is   empty   nothing   to   process   on   server   CPU
33 R e t u r n   Null ;
34 e n d   i f
35 Broker . submit CloudletList
36 s t a r t   cloudsim . simulation ( )
37 s t o p   cloudsim . simulation ( )
38 Return   CloudletList
39 E n d
Output: Save incoming packet in the corresponding Queues and show the output as CloudLetList (requests)
Algorithm 3 works in three parts to implement and simulate our objective function expressed in Equation (9). In the first part, important variables are initialized in Line 3, and incoming packets are read through Lines 4–8 until the loop condition remains true. Further, Algorithm 1 is called to classify and accommodate the AMI traffic into corresponding queues to satisfy constraint (9a). In the second part, Algorithm 2 is called in Line 9 to sort out the AMI traffic based on priority metric in the corresponding queues so that constraint (9b) is fulfilled. In the third part, Lines 10–38 are used to set up the cloud environment with scheduling algorithms (NP-PQS and FCFS) at the CCS to ensure constraints (9c)–(9e). The processed CloudletList is returned as output in Line 39, which shows that the optimization problem has been solved, i.e., resource utilization costs are minimized in an efficient manner, which results in saving money and time in the Smart Grid network.

4.5. A Walk-Through Example

In this section, we briefly present the working of our proposed optimization model to clarify the concept and validate the findings extracted from a small-scale residential area, as visualized in Figure 2. The IoT-based [33] Smart Grid hierarchical architecture is composed of SMs, DC, and the main CCS. In the clustering topology, SMs are configured to submit IMR data at fixed time intervals (e.g., 60 min) regularly and other metering data as needed to their respective CHs, which then transmit them to the DC. The DC forwards them to the main CCS over the Internet to access remote cloud services such as database application.
Therefore, an IoT-based architectural style (stateless client\server model) was adopted in designing the network model and applications via a set of RESTful APIs that are implemented using JavaScript-Node.js software. REST is a request-response IoT communication model, which is deployed to provide network connectivity to on-premise SMs and make available the cloud applications over the Internet as web services. This is why these SMs are also known as REST clients, which communicate with the main CCS, also referred as a REST server, using unique IP addresses in the TCP\IP network. The RESTful APIs support various HTTP methods such as POST, GET, PUT, and DELETE to manipulate a resource (software and hardware) of cloud environment. Multiple queries are passed (pushed) via a set of RESTful APIs (web services) [41] using HTTP protocol to exchange metering data in a standard format (JSON) between SMs and the main CCS with minimum efforts. Today, REST APIs are regarded as the “language of Internet”, as they are relatively easier to implement, test, and maintain, which makes them a better choice in the deployment of real world IoT communication models. Further, RESTfull APIs are language- and platform-independent, which works on top of HTTP-based standards and easily works with firewalls. Therefore, for any change in the firmware upgrade, configuration, etc., of the network devices, engineers need no manual intervention to change the parameters of the proposed model.
However, the devices in an IoT-based Smart Grid network are mostly resource-constrained, having limited CPU processing, RAM and BW capabilities, and different operational behaviour. REST architecture uses HTTP-based protocol, which requires extensive computational and memory capabilities to provide resources in the IoT-based Smart Grid network. Thus, it will be difficult for devices with limited resource capabilities to support HTTP-based RESTful APIs. Therefore, our proposed optimization model was employed aiming to optimize the resource allocation with QoS provisioning to AMI applications in the underlying IoT network. In the following example, we show that the metering data of seven SMs are listed in Table 5 and data were uploaded via a set of HTTP-based RESTful APIs methods to the cloud-based CCS (REST Server), as visualized in Figure 2. The received metering data were processed in real time and stored in a database application that was created in the Microsoft SQL server for future usages and analytics.
For instance, in Table 5 above SM1, (REST client) uses the HTTP-based POST method to submit request ( R 1 ), that is IMR data in a JSON string (packet) with associated properties and values by creating the URL: (http://192.168.1.1:9000/MeterReadAPI/NormalRead) in a browser as shown in Figure 3 below.
Similarly, a RESTful API status line with code (HTTP\1.0 200 OK) in data acknowledgement (response) indicates that the POST request is received successfully at the cloud-based REST server. A different status code requires retransmission of the POST request. Now, the received requests are processed according to the proposed optimization model based on Algorithms 1, 2 and 3, respectively. The time-critical requests ( R 2 , R 5 , R 6 , R 8 , R 9 , R 10 ) having the highest priority level of 1 are stored in queue1 (Q1), and the non-critical requests ( R 3 , R 7 ) with the priority level of 2 are assigned to queue2 (Q2). Similarly, the remaining non-critical requests ( R 1 , R 4 ) are placed into queue3 (Q3), which has the lowest priority level of 3. Further, Q1 and Q2 are scheduled through the NP-PQS method based on the priority metric of each request, which is computed upon packet size, latency, and priority level, as expressed in Equation (10) and shown in Table 6 below. In addition, Q3 is scheduled on an FCFS basis. Public traffic is not considered in this example.
In this fashion, the resources are allocated in an optimized manner to these requests in order to ensure the QoS levels in terms of latency and throughput at the cloud-based REST server. The benefits of our proposed optimization model are that it is easier to design and can be deployed to any region in the Smart Grid network in a cost-effective manner.

5. Simulation and Performance Evaluation

This section presents details about the simulated cloud computing model for AMI applications by using the CloudSim simulator. The simulation results obtained show the correctness and effectiveness of our proposed optimization model.

5.1. Simulation Model

The CloudSim [26] simulator was used to simulate and estimate the performance of our QoS-aware HQS model as mathematically expressed in Equation (9). Further, CloudSim is a de facto and open-source Java-based platform (API) that allows the researcher and cloud developers in the simulation, experimentation, and modeling of the computing server (hardware) as Infrastructure as a Service (IaaS) [42] and services in the cloud environment. There are many cloud simulation tools, and among them, 18 [43] are extensions or derivatives of CloudSim. In addition, CloudSim incurs no installation and maintenance cost, is easy to use, is scalable, and helps to evaluate bottlenecks in earlier stages before deployment over the real-world cloud systems of both public and private cloud providers.
Since the cloud infrastructure provides “pay as per usage” services, it is necessary to optimize the resources in order to assess RAM, BW, and CPU processing for the control center to the SMs network communication. This can be accomplished via optimal resource allocation and scheduling algorithms in order to reduce money (cost) and time for organizations in cloud environment. The CloudSim classes are extended and modified for the proposed optimization model, and details are given in Table 7 below.
More precisely, a Data Centre was created and configured that has enough processing, storage, RAM, and BW capabilities to store and process metering data from multiple residential areas into a cloud-based database application. Further, Data Centre manages one host (physical server). Each host consists of a single or multiple CPU cores that are characterized by processer speed (i.e., MIPS), RAM, physical storage (i.e., HDD), and BW. An allocation policy in the Host decides how many CPU cores, CPU shares, and memory will be allocated to a designated VM. The Cloud simulation parameters are set on a personal laptop with configuration details, as given in Table 8 below.
One broker and two VMs were created for the Data Centre. The VM were assigned to the broker and each VM had the following configurations:
  • VMM: “Xen”;
  • VM RAM: 1 GB;
  • VM processor speed: 300 MIPS;
  • VM Scheduling policy: Time-shared;
  • VM Image size: 512 MB;
  • VM BW: 10 Mbps.
We created a pool of cloudlets that are defined in CloudSim as jobs\tasks in order to respond to specific incoming REST requests (AMI traffics) from REST clients. These incoming requests are managed by a broker with publish\subscribe protocols. Each cloudlet has the following configurations:
  • File input size: 300 kb;
  • Instruction length: Random (100–40,000);
  • File output size: 300 kb.
We varied the number of cloudlets randomly according to the number of incoming REST requests that were received by the VMs. The CPU core allocation is managed by a VM Scheduler class that implements either the default time-shared or space-shared policy and can be modified to implement custom CPU allocation policies. The broker executes each cloudlet on VM according to a provisioning policy (e.g., space-shared) on resources of the physical Host in the Data Centre, since our cloud-based simulation model uses the CloudSim tool that requires a Java Runtime Environment (JRE) working in the cloud computing system. In addition, the CloudSim tool has no support for GUI, so an IDE such as Eclipse is required for the simulation model development in Java Language. Further, since CloudSim has no hardware constraint but a computer system with dual-core processing, 1 GB storage and 2 GB RAM will be good enough to run the simulation model with complex cloud scenarios. However, due to a lack of CloudSim support for distributed and parallel execution in memory systems, our simulation model is susceptible to support these execution techniques.

5.2. Simulation Results and Discussion

To evaluate the performance of our proposed optimization model (detailed in Section 4.4), we used a simulated cloud model. We used varying number of cloudlets in order to compute the cloud resources such as RAM, CPU, and BW demanded by each cloudlet. Moreover, the simulation results were quantified and compared to make sure that objective function developed for the AMI applications behaved as expected. After running the simulation model (detailed in Section 5.1), we obtained the following simulation results.

Objective Function: The Cost Minimization

During this simulation, we tried to validate the effectiveness of our proposed optimization model to achieve objective function, or the cost minimization, which is mathematically formulated using Equation (9) to demonstrate the optimal utilization in terms of RAM, BW, and CPU processing during the overall execution of cloudlets in the cloud environment. For this, in each simulation run, we took five sets with different ranges of cloudlets each consisting of 100, 200, 300, 400, and 500 cloudlets. In addition, each simulation run was carried over different settings of VMs and cloudlets having random lengths acquired by the queue scheduling schemes, i.e., FCFS [7], Priority-Based [8], and QoS-aware HQS in this article, whereas the cost incurred per cloud resource (CPU, RAM and BW) in each VM can be defined by the following three Equations (11)–(13), respectively.
C CPU VM i = Actual   used   CPU MIPS by   Cloudlets Total   CPU MIPS in   VM i CostPerMIPS
C RAM VM i = Actual   used   RAM   by   Cloudlets Total   RAM   capacity in   VM i CostPerRAM
C BW VM i = Actual   used   BW   by   Cloudlets Total   BW   capacity in   VM i CostPerBW
C total VM i = ( C CPU + C RAM + C BW )   in   VM i
We set CostPerMIPS   to   3.0 per second, CostPerRAM   to   0.05 per megabyte, and CostPerBW to 0.1 per mega bit per second. Equation (14) presents the total cost, which is the sum of the CPU processing cost, RAM cost, and BW cost incurred during the scheduling and processing of cloudlets in VMs. The results obtained in each simulation run are tabulated in Table 9 below.
The simulation results shown in Figure 4 below are detailed above in Table 9. Figure 4 depicts the effect of different cloudlet ranges on the VM CPU processing cost. As the cloudlet size increases from 100 to 500, the cost of VM CPU processing is increased due to the number of instructions increased in cloudlets, i.e., more instructions will be transferred to VM CPU cores for processing. For example, for 100 cloudlets in 2 VMs hosted by 1 Host, the CPU processing cost incurred by FCFS is 50, while it is 40 in a Priority-Based scheme respectively. Similarly, the cost of CPU processing for 100 cloudlets by the QoS-aware HQS model is 30, which is less expensive than the other two scheduling algorithms. Further, we noticed the same less CPU processing cost with 200, 300, 400, and 500 cloudlets compared to other scheduling algorithms.
Figure 5 renders the plot of VM RAM cost against a different set of cloudlets. The comparison of VM RAM cost incurred in the cloudlet execution reveals that the RAM cost was greater in the FCFS and Priority-Based scheduling scheme than our proposed scheme. For example, when the number of cloudlets are 100 (at RAM = 1024), the QoS-aware HQS scheme incurs 0.49 VMs RAM cost, which is 23.9% of the total VM RAM cost, as compared with the FCFS, which is 0.88 (42.92%), and Priority-Based is 0.68 (33.17%). Similar VM RAM cost trends have been deduced for cloudlet sets consisting of 200, 300, 400, and 500.
Figure 6 plots the effects of VM BW cost on processing different sets of cloudlets. As the number of cloudlets increases, the cost of BW is much higher in the FCFS and Priority-Based scheme than in our proposed QoS-aware HQS scheme. The reason behind lower cost in terms of BW is that as we employed traffic classification and prioritization for AMI application traffic, which efficiently utilizes the BW and results into lower cost of BW. For example, at Cloudlets = 100, the BW cost of our proposed QoS-aware HQS scheme is 3× times lower than the Priority-Based and 5× times lower than the FCFS-based scheduling scheme. This is due to the FCFS and Priority-Based scheme sharing a single queue for all traffic, which leads to a queue contention problem. As a result, forwarding traffic flows may not be able to obtain enough BW, i.e., loss of BW occurs due to traffic contention, which increase the use of BW and its cost in resources. These simulation results confirm the effectiveness of our proposed scheme in this article.
Similarly, Figure 7 below depicts the overall cost comparison based on Equation (14) in percentile form, e.g., our proposed model significantly reduced cost to 24% compared to the other existing schemes, which shows its effectiveness and successful achievement of the objective function, as expected in the cloud-based Smart Grid network.
By comparing all these simulation results, we can deduce that our proposed optimization model efficiently utilized the cloud resources as expected, since it incurred lower costs in terms of CPU, RAM, and BW such that the cost minimization objective was successfully achieved and the target QoS requirements of all AMI application traffic were satisfied.

6. Conclusions and Future Work

In this article, we presented a novel optimization model for AMI application traffic in the Smart Grid network. The proposed optimization model relies on an IoT-based network coupled with cloud computing, which enables the Utility control center to remotely monitor and access the SMs in urban areas. SMs in the Smart Grid network generate a large amount of metering data (traffics) that heavily rely on adequate network infrastructure, including enough memory, storage, computing servers with higher processing, and bandwidth capabilities to cope with the target QoS requirements in the Smart Grid network. Therefore, we mainly focused on the optimal cloud resource allocations, which is the optimization problem. For this, we defined an objective function, a mathematical model, in order to reduce the costs incurred in terms of CPU processing, memory, and bandwidth during a wide number of system loads (cloudlets). To achieve this, we developed a QoS-aware HQS scheme which classified the AMI application traffic into two different traffic classes, namely time-critical and non-critical. In addition, the traffic from these classes were queued into four different priority queues, namely critical queue, normal queue, periodic queue, and public traffic queue with priority levels 1, 2, 3, and 4, respectively. Priority metric was computed based on the packet size, latency, and priority level of each traffic and was assigned to traffic in each queue. First, the NP- PQS scheme was used to schedule the traffic from the critical and normal queue, respectively, while the FCFS queueing discipline was applied to the periodic queue and public traffic queue, respectively. The proposed optimization model was implemented on a CloudSim simulator. Moreover, the efficiency and performance of our proposed optimization model was quantified and compared with other state-of-the-art scheduling scheme costs via simulation results. Finally, the simulation results confirmed that the proposed optimization model showed better cost reduction in terms of VM CPU processing, VM RAM, and VM BW on various lengths of cloudlets, as compared with the existing schemes. This cost evaluation is beneficial for researchers and organization in making decisions from a business perspective regarding deploying AMI applications on cloud frameworks, as it saves lots of time and money. At the end, we can deduce that the optimization model we developed for the AMI applications in the Smart Grid network behaves as expected.
Future Work—Our proposed optimization model integrates the emerging IoT technology with the cloud computing for client-server communication of AMI applications traffic in the Smart Grid network. The IoT framework is vulnerable to various security threats and becomes a challenging task to uncover malicious activities involving things such as consumers, SMs, DCs, and computing servers connected via the Internet in the world of the IoT-based Smart Grid. Therefore, lightweight security features are necessary to restrict malicious objects from establishing multiple connections with the network devices at a given time to avoid limited resource exhaustion (e.g., misconfiguration of firmware, etc.) and a DDoS attack. How our proposed scheme can address these security threats is a topic to be investigated in future work.

Author Contributions

Conceptualization, A.K. and A.I.U.; methodology, A.K.; software, A.K.; validation, A.K., M.S. and S.H.S.; formal analysis, A.K.; investigation, A.K. and W.I.; resources, A.K.; data curation, A.K.; writing—original draft preparation, A.K.; writing—review and editing, A.K., S.H.S.; visualization, M.A.; supervision, A.I.U.; project administration, A.K.; funding acquisition, A.M. and M.A. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

We would like to specially thank Bei Yu, Associate Professor, CSE Department, Chinese University of Hong Kong for his research directions and valuable comments and for providing laboratory resources used in simulation modeling during my IRSIP scholarship for PhD study funded by the Higher Education Commission (HEC) of Pakistan.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Wang, W.; Xu, Y.; Khanna, M. A survey on the communication architectures in smart grid. Comput. Netw. 2011, 55, 3604–3629. [Google Scholar] [CrossRef]
  2. Gungor, V.C.; Sahin, D.; Kocak, T.; Ergut, S.; Buccella, C.; Cecati, C.; Hancke, G.P. A Survey on Smart Grid Potential Applications and Communication Requirements. IEEE Trans. Ind. Inform. 2012, 9, 28–42. [Google Scholar] [CrossRef] [Green Version]
  3. Kuzlu, M.; Pipattanasomporn, M.; Rahman, S. Communication network requirements for major smart grid applications in HAN, NAN and WAN. Comput. Netw. 2014, 67, 74–88. [Google Scholar] [CrossRef]
  4. Yang, Y.; Yin, Y.; Hu, Z. MAC Protocols Design for Smart Metering Network. arXiv 2016, arXiv:1601.01069. [Google Scholar] [CrossRef] [Green Version]
  5. Siboni, S.; Sachidananda, V.; Meidan, Y.; Bohadana, M.; Mathov, Y.; Bhairav, S.; Shabtai, A.; Elovici, Y. Security Testbed for Internet-of-Things Devices. IEEE Trans. Reliab. 2018, 68, 23–44. [Google Scholar] [CrossRef]
  6. Chernyshev, M.; Baig, Z.; Bello, O.; Zeadally, S. Internet of things (iot): Research, simulators, and testbeds. IEEE Internet Things 2017, 5, 1637–1647. [Google Scholar] [CrossRef]
  7. Samann, F.E.F.; Zeebaree, S.R.M.; Askar, S. IoT Provisioning QoS based on Cloud and Fog Computing. J. Appl. Sci. Technol. Trends 2021, 2, 29–40. [Google Scholar] [CrossRef]
  8. Qu, Z.; Wang, Y.; Sun, L.; Peng, D.; Li, Z. Study QoS Optimization and Energy Saving Techniques in Cloud, Fog, Edge, and IoT. Complexity 2020, 2020, 8964165. [Google Scholar] [CrossRef] [Green Version]
  9. Dhirani, L.L.; Newe, T.; Nizamani, S. Can IoT escape Cloud QoS and Cost Pitfalls. In Proceedings of the 12th International Conference on Sensing Technology (ICST), Limerick, Ireland, 4–6 December 2018; pp. 65–70. [Google Scholar] [CrossRef]
  10. Țigănoaia, B.; Iordache, G.; Negru, C.; Pop, F. Scheduling in CloudSim of Interdependent Tasks for SLA Design. Stud. Inform. Control. 2019, 28, 477–484. [Google Scholar] [CrossRef]
  11. Khan, A.; Umar, A.I.; Munir, A.; Shirazi, S.H.; Khan, M.A.; Adnan, M. A QoS-Aware Machine Learning-Based Framework for AMI Applications in Smart Grids. Energies 2021, 14, 8171. [Google Scholar] [CrossRef]
  12. Sadeghi, S.; Moghddam, M.H.Y.; Bahekmat, M.; Yazdi, A.S.H. Modeling of Smart Grid traffics using non-preemptive priority queues. In Proceedings of the Iranian Conference on Smart Grids, Tehran, Iran, 24–25 May 2012; pp. 1–4. [Google Scholar]
  13. Hajimirzaee, P.; Fathi, M.; Qader, N.N. Quality of service aware traffic scheduling in wireless smart grid communication. Telecommun. Syst. 2017, 66, 233–242. [Google Scholar] [CrossRef]
  14. Shao, S.; Guo, S.; Qiu, X.; Meng, L.; Jiao, Y.; Wei, W. Traffic scheduling for wireless meter data collection in smart grid communication network. In Proceedings of the 5h International Conference on Computing, Communications and Networking Technologies (ICCCNT), Hefei, China, 11–13 July 2014; pp. 1–7. [Google Scholar] [CrossRef]
  15. Gharavi, H.; Xu, C. Traffic Scheduling Technique for Smart Grid Advanced Metering Applications. IEEE Trans. Commun. 2012, 60, 1646–1658. [Google Scholar] [CrossRef]
  16. Carlesso, M.; Antonopoulos, A.; Granelli, F.; Verikoukis, C. Uplink scheduling for smart metering and real-time traffic coexistence in LTE networks. In Proceedings of the IEEE International Conference on Communications (ICC), London, UK, 8–12 June 2015; pp. 820–825. [Google Scholar] [CrossRef] [Green Version]
  17. Al-Anbagi, I.; Erol-Kantarci, M.; Mouftah, H.T. QoS-aware inter-cluster head scheduling in WSNs for high data rate smart grid applications. In Proceedings of the IEEE Global Communications Conference (GLOBECOM), Atlanta, GA, USA, 9–13 December 2013; pp. 2628–2634. [Google Scholar] [CrossRef]
  18. Al-Anbagi, I.; Erol-Kantarci, M.; Mouftah, H.T. Priority- and Delay-Aware Medium Access for Wireless Sensor Networks in the Smart Grid. IEEE Syst. J. 2013, 8, 608–618. [Google Scholar] [CrossRef]
  19. Yang, Z.; Feng, L.; Chang, Z.; Lu, J.; Liu, R.; Kadoch, M.; Cheriet, M. Prioritized Uplink Resource Allocation in Smart Grid Backscatter Communication Networks via Deep Reinforcement Learning. Electronics 2020, 9, 622. [Google Scholar] [CrossRef] [Green Version]
  20. Zhou, J.; Hu, R.Q.; Qian, Y. Traffic scheduling for smart grid in rural areas with cognitive radios. In Proceedings of the IEEE Global Communications Conference (GLOBECOM), Anaheim, CA, USA, 3–7 December 2012; pp. 5172–5176. [Google Scholar] [CrossRef]
  21. Xu, S.; Wei, L.; Liu, Z.; Guo, S.; Qiu, X.; Meng, L. A QoS-Aware Packet Scheduling Mechanism in Cognitive Radio Networks for Smart Grid Applications. China Commun. 2016, 13, 68–78. [Google Scholar]
  22. Khan, M.W.; Zeeshan, M.; Farid, A.; Usman, M. QoS-aware traffic scheduling framework in cognitive radio based smart grids using multi-objective optimization of latency and throughput. Ad Hoc Netw. 2019, 97, 102020. [Google Scholar] [CrossRef]
  23. Huang, J.; Wang, H.; Qian, Y. Priority-Based Traffic Scheduling and Utility Optimization for Cognitive Radio Communication Infrastructure-Based Smart Grid. IEEE Trans. Smart Grid 2013, 4, 78–86. [Google Scholar] [CrossRef]
  24. Pallav, P.K. IoT Based Energy Meter Billing and Monitoring System—A Case Study. Int. Res. J. Adv. Eng. Sci. 2017, 2, 64–68. [Google Scholar]
  25. Kabalci, Y.; Kabalci, E.; Padmanaban, S.; Holm-Nielsen, J.B.; Blaabjerg, F. Internet of Things Applications as Energy Internet in Smart Grids and Smart Environments. Electronics 2019, 8, 972. [Google Scholar] [CrossRef] [Green Version]
  26. Hicham, G.T.; Chaker, E.A. Cloud Computing CPU Allocation and Scheduling Algorithms Using CloudSim Simulator. Int. J. Electr. Comput. Eng. 2016, 6, 1866–1879. [Google Scholar]
  27. Kandan, M.; Manimegalai, R. Optimum Resource Allocation Techniques for Enhancing Quality of Service Parameters in Cloud Environment BT. In Proceedings of the International Conference on Artificial Intelligence, Smart Grid and Smart City Applications, Coimbatore, India, 3–5 January 2019; pp. 831–839. [Google Scholar]
  28. Srivastava, S.K.; Rangasamy, K. Priority Based Resource Scheduling Algorithhm In CloudSim. Int. J. Sci. Res. 2014, 3. [Google Scholar]
  29. Mehmi, S.; Verma, H.K.; Sangal, A. Simulation modeling of cloud computing for smart grid using CloudSim. J. Electr. Syst. Inf. Technol. 2017, 4, 159–172. [Google Scholar] [CrossRef] [Green Version]
  30. De Carvalho, R.S.; Sen, P.K.; Velaga, Y.N.; Ramos, L.F.; Canha, L.N. Communication System Design for an Advanced Metering Infrastructure. Sensors 2018, 18, 3734. [Google Scholar] [CrossRef]
  31. Malandra, F.; Sanso, B. Analytical performance analysis of a large-scale RF-mesh smart meter communication system. In Proceedings of the IEEE Power & Energy Society Innovative Smart Grid Technologies Conference (ISGT), Washington, DC, USA, 18–20 February 2015; pp. 1–5. [Google Scholar] [CrossRef]
  32. Alam, S.; Malik, A.N.; Qureshi, I.M.; Ghauri, S.A.; Sarfraz, M. Clustering-Based Channel Allocation Scheme for Neighborhood Area Network in a Cognitive Radio Based Smart Grid Communication. IEEE Access 2018, 6, 25773–25784. [Google Scholar] [CrossRef]
  33. Sun, D.; Li, W.; Yao, X.; Liu, H.; Chai, J.; Xie, K.; Zhu, L.; Feng, L. Research on IoT Architecture and Application Scheme for Smart Grid BT. In Proceedings of the 9th International Conference on Computer Engineering and Networks, Changsha, China, 25–27 February 2021; pp. 921–928. [Google Scholar]
  34. Harada, H.; Mizutani, K.; Fujiwara, J.; Mochizuki, K.; Obata, K.; Okumura, R. IEEE 802.15.4g Based Wi-SUN Communication Systems. IEICE Trans. Commun. 2017, E100.B, 1032–1043. [Google Scholar] [CrossRef] [Green Version]
  35. Yan, Q.; Yu, F.R.; Gong, Q.; Li, J. Software-Defined Networking (SDN) and Distributed Denial of Service (DDoS) Attacks in Cloud Computing Environments: A Survey, Some Research Issues, and Challenges. IEEE Commun. Surv. Tutor. 2015, 18, 602–622. [Google Scholar] [CrossRef]
  36. Aalamifar, F.; Lampe, L. Cost-Efficient QoS-Aware Data Acquisition Point Placement for Advanced Metering Infrastructure. IEEE Trans. Commun. 2018, 66, 6260–6274. [Google Scholar] [CrossRef]
  37. Ogbodo, E.; Dorrell, D.; Abu-Mahfouz, A. Radio Resource Allocation Improvements in CRSN for Smart Grid: A Survey. Preprints 2019, 2019110272. [Google Scholar] [CrossRef]
  38. Petäjäjärvi, J.; Mikhaylov, K.; Pettissalo, M.; Janhunen, J.; Iinatti, J.H. Performance of a low-power wide-area network based on LoRa technology: Doppler robustness, scalability, and coverage. Int. J. Distrib. Sens. Netw. 2017, 13. [Google Scholar] [CrossRef] [Green Version]
  39. King, C.; Strapp, J. Software Infrastructure and the Smart Grid. In Smart Grid; Elsevier: Amsterdam, The Netherlands, 2012; pp. 259–288. [Google Scholar] [CrossRef]
  40. Zivic, N.; Ur-Rehman, O.; Ruland, C. Smart Metering for Intelligent Buildings. Trans. Netw. Commun. 2016, 4, 25. [Google Scholar] [CrossRef]
  41. Fielding, R.T.; Taylor, R.N. Principled design of the modern web architecture. ACM Trans. Internet Technol. 2002, 2, 115–150. [Google Scholar] [CrossRef]
  42. Singh, A. What is CloudSim? Available online: https://www.cloudsimtutorials.online/tag/cloudsim-introduction/ (accessed on 12 June 2022).
  43. Byrne, J.; Svorobej, S.; Giannoutakis, K.M.; Tzovaras, D.; Byrne, P.J.; Östberg, P.-O.; Gourinovitch, A.; Lynn, T. A Review of Cloud Computing Simulation Platforms and Related Environments. In Proceedings of the International Conference on Cloud Computing and Services Science, Porto, Portugal, 24–26 April 2017; Volume 2, pp. 679–691. [Google Scholar] [CrossRef]
Figure 1. A simplified IoT and cloud-based hierarchical architecture of Smart Grid.
Figure 1. A simplified IoT and cloud-based hierarchical architecture of Smart Grid.
Sensors 22 04969 g001
Figure 2. A walk-through example of QoS-aware HQS model using cloud computing.
Figure 2. A walk-through example of QoS-aware HQS model using cloud computing.
Sensors 22 04969 g002
Figure 3. An example of the JSON packet generated by a smart meter (SM).
Figure 3. An example of the JSON packet generated by a smart meter (SM).
Sensors 22 04969 g003
Figure 4. VMs CPU processing cost vs. number of cloudlets.
Figure 4. VMs CPU processing cost vs. number of cloudlets.
Sensors 22 04969 g004
Figure 5. VM RAM cost vs. number of cloudlets.
Figure 5. VM RAM cost vs. number of cloudlets.
Sensors 22 04969 g005
Figure 6. VMs bandwidth cost vs number of cloudlets.
Figure 6. VMs bandwidth cost vs number of cloudlets.
Sensors 22 04969 g006
Figure 7. Overall VM cost comparisons.
Figure 7. Overall VM cost comparisons.
Sensors 22 04969 g007
Table 1. Acronyms and description.
Table 1. Acronyms and description.
AcronymDescription
AMIAdvanced metering infrastructure
APIApplication programming interface
BWBandwidth
BW tot Total available bandwidth
BW rem Remaining bandwidth
CCSControl center server
CPUCentral processing unit
C BW Cost of bandwidth
C CPU Cost of CPU processing
C RAM Cost of random access memory
C total Total cost
DCData concentrator
FCFSFirst come, first serve
HDDHard disk drive
HTTPHypertext transfer protocol
HQSHybrid queue scheduling
IoTInternet of Things
IPSecInternet protocol security
JSONJava script object notation
MIPSMillions instructions per second
NP-PQSNon-preemptive, priority queue scheduling
pesNoNumber of processing core
PEProcessing element
QoSQuality of service
RESTRepresentational stateless transfer
SQLStructured query language
SMSmart Meter
URLUniform resource locator
VMMVirtual machine manager
VPNVirtual private network
Table 2. Summary of resource optimization strategies for AMI applications in the Smart Grid network.
Table 2. Summary of resource optimization strategies for AMI applications in the Smart Grid network.
LiteratureProblem SpecificationResource Optimization StrategyApplications (Traffic)Network EnvironmentObjective (s)
[11]Coverage Maximization Dual-head placementNon-preemptive priority schedulingAMIIoT-based Cloud Computing
  • Improve QoS and coverage
  • Minimize cost and Runtime
[12]Modeling of Smart Grid TrafficsNon-preemptive priority and Round Robin Smart Grid and VoIPSmart Grid
  • QoS with low delay
  • Increase throughput
[13]Resource allocation approachTwo stage traffic schedulingAMISmart Grid
  • QoS with latency requirement
  • Optimize the BW
[14]Network topology limitationRandom switching traffic schedulingSmart GridWireless Smart Grid
  • Minimize packet drop ratio
  • Release congestion
[15]Scheduling problemMulti-gate and single-class back-pressure scheduling algorithmAMISmart Grid
  • Improve network reliability and delay performance
[16]Uplink bottleneckMax rate uplink schedulerAMI and real-time trafficLTE-based Smart Grid
  • QoS with increased throughput
[17]Delay optimization modelInter cluster head schedulingSmart GridWSN-based Smart Grid
  • QoS with low latency, energy consumption, and high reliability
[18]Medium access approachesDRX and FDRX data transmissionSmart GridWireless actor and area network
  • Reduces delay
  • Lower collision rate
[19]Uplink resource allocationBackscatter communication modelSmart Grid and energy CR-based Smart Grid
  • Ensure business requirement
  • Increase performance
[20]Scheduling problemThreshold triggered schedulingSmart GridCRN
  • Maximize throughput
  • Preserve priority and delay
[21]Packet scheduling mechanismChannel switch with priority schedulingSmart GridCRN
  • Improves QoS and
  • transmission quality
[22]Multi objective optimization problemPriority based queues using weightsSmart GridCR-based Smart Grid
  • Minimize latency
  • Maximize throughput
[23]Utility optimization problemPriority based traffic scheduling and CR channel allocationSmart GridCR-based Smart Grid
  • Low dropping rate
  • Increases throughput
[24]Energy meter billing and monitoringMessage queuing telemetry transportEnergy usagesIoT-based
  • Minimize energy wastage
  • Prevent energy shortage
[25]Energy internet based IoT applicationA case study approachAMI and Smart GridIoT systems
  • Highlight challenges and future opportunities of IoT applications in Smart Grid
[26]CPU allocation and schedulingOptimized Round Robin (RR) and FCFSCloud tasksCloud Computing
  • Shrink costs
  • Increase IT quality
[27]Optimum resource allocationQoS based resource allocation (QRA)Cloud requestCloud Computing
  • Faster response time
  • Low cost and energy
[28]Resource allocationModified priority schedulingCloud applicationsCloud Computing
  • Save time and money
[29]Simulation modeling of Smart GridSpace-shared and time-shared VM policiesSmart GridCloud Computing
  • Minimize cost of CPU, RAM, and BW
ProposedCost minimization strategyHybrid queue scheduling (HQS)AMIIoT-based Cloud Computing
  • QoS and
  • cloud costs minimization
Table 3. Characteristics of Smart Grid applications [2].
Table 3. Characteristics of Smart Grid applications [2].
Traffic TypeSmart Grid ApplicationPacket Size
(Bytes)
Latency
(Seconds)
Sampling Frequency
(Per Day)
Bandwidth
(Kb/s)
Reliability
(%)
DeterministicIMR1600–2400<4 h4–6 (Residential)
12–24 (Commercial)
10–100
500 backhaul
99–99.99
Event-DrivenODMR100<15as needed10–10099–99.99
EV charging1002 s–5 min2–49.6–5699–99.99
Substation Automation10015–200 msas needed9.6–5699–99.99
On-demand DR100500 ms–1 min1 per event14–10099
Real Time DR100500 ms–1 minas needed14–10099
DA10020–200 msas needed9.6–10099–99.99
Table 4. Characteristics of AMI applications [3].
Table 4. Characteristics of AMI applications [3].
Traffic Class
(TC)
AMI Application
(ToA)
Packet Size
(Pkt_Size)
Latency
( L R )
Sampling Frequency
(Per Day)
Traffic TypeTraffic Flow
( λ up / λ down )
Priority Level
( P L )
Non-criticalIMR250 Bytes5–60 min12–24 (Residential)
4–6 (Commercial)
Deterministicuplink3
ODMR100 Bytes<15 sas per needEvent-drivendownlink2
ODMRR100 Bytes30 s5 daysuplink
Billing info100 Bytess or minas per need
Time-criticalRCC100 Bytes1 sas per needEvent-drivenuplink1
PCC100 Bytes1 sas per need
EV charging100 Bytes<15 s2–4
OA50 Bytes3 sas per need
Table 5. An example of metering data exchanged via RESTful APIs.
Table 5. An example of metering data exchanged via RESTful APIs.
SM IDREST APIAMI Application Detail   of   Request   ( R n ) Date and TimeSeason and Hour TypePacket (Bytes)LatencyPriority Level
SM 1POSTIMR
(Non-Critical)
R 1 = Current read 54318 August 20211
6:30:11 PKT
Summer
Peak
250 60 min3
SM 2POSTRCC
(Time-Critical)
R 2 = Hardware Crash18 August 2021
15:20:26 PKT
Summer
Peak
1001 s1
SM 3GETODMR
(Non-Critical)
R 3 = Current Read?18 August 2021
14:17:39 PKT
Summer
Peak
100<15 s2
SM 4POSTIMR
(Non-Critical)
R 4 = Current read 82018 August 2021
14:05:41 PKT
Summer
Peak
250 60 min3
SM 1GETRCC
(Time-Critical)
R 5 = = Remote Disconnect18 August 2021
13:27:54 PKT
Summer
Peak
1001 s1
SM 5POSTOA
(Time-Critical)
R 6 = Outage Detection18 August 2021
13:15:56 PKT
Summer
Peak
503 s1
SM 3POSTODMRR
(Non-Critical)
R 7 = Current read 23421 August 2021
12:31:16 PKT
Summer
Off-Peak
100 30 s2
SM 6DELETERCC
(Time-Critical)
R 8 = Hardware Crash21 August 2021
12:31:18 PKT
Summer
Off-Peak
1001 s1
SM 3POSTOA
(Time-Critical)
R 9 = Outage Restoration21 August 2021
12:31:33 PKT
Summer
Off-Peak
503 s1
SM 7GETRCC
(Time-Critical)
R 10 = OS Update21 August 2021
11:44:13 PKT
Summer
Off-Peak
1001 s1
Table 6. Output of the proposed optimization model.
Table 6. Output of the proposed optimization model.
SNO. AMI   Application / Request   ( R n ) Priority MetricDescription
1 R 5 100 R 5 will be processed 1st
2 R 6 100 R 6 …………………… 2nd
3 R 9 100 R 9 …………………… 3rd
4 R 2 150 R 2 …………………… 4th
5 R 8 150 R 8 …………………… 5th
6 R 10 150 R 10 …………………… 6th
7 R 3 1000 R 3 …………………… 7th
8 R 7 6000 R 7 …………………… 8th
9 R 1 2,700,000 R 1 …………………… 9th
10 R 4 2,700,000 R 4 …………………… 10th
Table 7. Details of the simulated Cloud.
Table 7. Details of the simulated Cloud.
Cloud ClassesValue
Data Centre1
Physical host1
Broker1
VM2
Cloudlets100–500
Table 8. Configuration details of the Host in a Data Centre.
Table 8. Configuration details of the Host in a Data Centre.
Cloud ServerConfiguration
ArchitectureX64
Processor (CPU)Intel(R) Core™ i5-8250M CPU@ 1.60 GHz 1.80 GHz
Processor speed (MIPS)1000
RAM8 GB
HDD1000 GB
BW50 Mbps
Operating systemWindows 10 Pro
Table 9. Cost of cloud resources in QoS-aware HQS Model compared with state-of-the-art scheduling schemes.
Table 9. Cost of cloud resources in QoS-aware HQS Model compared with state-of-the-art scheduling schemes.
Simulation RunNumber of CloudletsFCFS (Basic) [7]Priority-Based [8]QoS-Aware HQS Model
CPURAMBWCPURAMBWCPURAMBW
1100500.885400.683300.491
22001001.7610801.376600.982
33001502.64151202.059901.463
44002003.52201602.73121201.954
55002504.39252003.42151502.445
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Khan, A.; Umar, A.I.; Shirazi, S.H.; Ishaq, W.; Shah, M.; Assam, M.; Mohamed, A. QoS-Aware Cost Minimization Strategy for AMI Applications in Smart Grid Using Cloud Computing. Sensors 2022, 22, 4969. https://doi.org/10.3390/s22134969

AMA Style

Khan A, Umar AI, Shirazi SH, Ishaq W, Shah M, Assam M, Mohamed A. QoS-Aware Cost Minimization Strategy for AMI Applications in Smart Grid Using Cloud Computing. Sensors. 2022; 22(13):4969. https://doi.org/10.3390/s22134969

Chicago/Turabian Style

Khan, Asfandyar, Arif Iqbal Umar, Syed Hamad Shirazi, Waqar Ishaq, Mohsin Shah, Muhammad Assam, and Abdullah Mohamed. 2022. "QoS-Aware Cost Minimization Strategy for AMI Applications in Smart Grid Using Cloud Computing" Sensors 22, no. 13: 4969. https://doi.org/10.3390/s22134969

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