This U.S. patent application claims priority under 35 U.S.C. § 119 to: India provisional application No. 201621035796, filed on Oct. 19, 2016. The entire contents of the aforementioned application are incorporated herein by reference.
This disclosure relates generally to Fog computing, and more particularly to system and methods for optimal deployment of Fog computations in Internet of Things (IoT) environments.
Typically, cloud computing has been utilized as a central storage repository for Internet of things (IoT) devices since with cloud computing, data stored centrally can be accessed for computation or actuation. However, the data of high volume, velocity, variety, variability that is produced in IoT applications, additional architectural modifications to storage and processing architectures may be desirable.
In order to extend the cloud to be closer to the things that produce and act on IoT data, Fog computing can be used. Fog computing is particularly suited for IoT applications where sensors are typically mobile and produce data at large volumes and/or velocity. Moving the control and actuation servers to nodes nearer to the edge devices also reduces traffic on the cloud data centre, while still maintaining low latency overheads. Typically any device with computing, storage, and network connectivity can be a Fog node. For instance, devices such as industrial controllers, switches, routers, embedded servers, video surveillance cameras, and so on, may be example of Fog nodes. As the number of IoT devices scales to trillions of devices, various performance bottlenecks in last mile connectivity and central cloud access may occur.
Embodiments of the present disclosure present technological improvements as solutions to one or more of the above-mentioned technical problems recognized by the inventors in conventional systems. For example, in one embodiment, a processor-implemented method for dynamically managing Fog computations between a coordinating node and a plurality of Fog nodes is provided. The method includes receiving, a request for allocation of at least a subset of a computational task, and a task data associated with the computational task, via one or more hardware processors. The task data includes data subset and one or more task constraints associated with at least the subset of the computational task. Further, the method includes characterizing the plurality of Fog nodes capable of performing the computational task with a plurality of node characteristics to obtain a resource data associated with the plurality of Fog nodes, via the one or more hardware processors. Furthermore the method includes deriving, based on the task data and the resource data, an optimization model for performing the computational task by the plurality of Fog nodes, via the one or more hardware processors. The optimization model is derived based on a plurality of node constraints including battery degradation constraint, communication path loss constraint, and heterogeneous computational capacities of the plurality of Fog nodes. Moreover, the method includes offloading at least the subset of the computational task to a set of Fog nodes from the plurality of Fog nodes based on the optimization model, via the one or more hardware processors.
In another embodiment, a system for dynamically managing Fog computations between a coordinating node and a plurality of Fog nodes is provided. The system includes one or more memories storing instructions; and one or more hardware processors coupled to the one or more memories receive, a request for allocation of at least a subset of a computational task, and a task data associated with the computational task. The task data includes data subset and one or more task constraints associated with at least the subset of the computational task. Further, the one or more hardware processors are further configured by the instructions to characterize the plurality of Fog nodes capable of performing the computational task with a plurality of node characteristics to obtain a resource data associated with the plurality of Fog nodes. Furthermore, the one or more hardware processors are further configured by the instructions to derive, based on the task data and the resource data, an optimization model for performing the computational task by the plurality of Fog nodes. The optimization model is derived based on a plurality of node constraints including battery degradation constraint, communication path loss constraint, and heterogeneous computational capacities of the plurality of Fog nodes. Moreover, the one or more hardware processors are further configured by the instructions to offload at least the subset of the computational task to a set of Fog nodes from the plurality of Fog nodes based on the optimization model.
In yet another embodiment, a non-transitory computer-readable medium having embodied thereon a computer program for executing a method for dynamically managing Fog computations between a coordinating node and a plurality of Fog nodes is provided. The method includes receiving, a request for allocation of at least a subset of a computational task, and a task data associated with the computational task. The task data includes data subset and one or more task constraints associated with at least the subset of the computational task. Further, the method includes characterizing the plurality of Fog nodes capable of performing the computational task with a plurality of node characteristics to obtain a resource data associated with the plurality of Fog nodes. Furthermore the method includes deriving, based on the task data and the resource data, an optimization model for performing the computational task by the plurality of Fog nodes. The optimization model is derived based on a plurality of node constraints including battery degradation constraint, communication path loss constraint, and heterogeneous computational capacities of the plurality of Fog nodes. Moreover, the method includes offloading at least the subset of the computational task to a set of Fog nodes from the plurality of Fog nodes based on the optimization model.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate exemplary embodiments and, together with the description, serve to explain the disclosed principles.
Exemplary embodiments are described with reference to the accompanying drawings. In the figures, the left-most digit(s) of a reference number identifies the figure in which the reference number first appears. Wherever convenient, the same reference numbers are used throughout the drawings to refer to the same or like parts. While examples and features of disclosed principles are described herein, modifications, adaptations, and other implementations are possible without departing from the spirit and scope of the disclosed embodiments. It is intended that the following detailed description be considered as exemplary only, with the true scope and spirit being indicated by the following claims.
The Internet of things (IoT) typically combines the sense-actuate-compute capability of sensor networks, mobility patterns of cellular devices and large scale data volumes of Big Data applications. Cloud computing has further emerged as a central tenet in energy-efficient computing that allows on-demand scaling up/out of virtual machines as per requirements.
The cloud has been typically utilized as a central storage repository for IoT devices as the data stored centrally can be accessed for computation and/or actuation purposes. While the elastic scaling and energy-efficiency of the cloud are appropriate in many cases, the kind of applications that do not typically fit in a central cloud environment may include, but are not limited to applications needing low latency access to storage, computation; geographically distributed sources that can have vast differences in data transfer and processing timelines; and applications requiring near-real time control or actuation of devices. Moreover, in order to coordinate the high volume, velocity, variety, variability of data that are produced in IoT applications, additional architectural modifications are needed with respect to cloud computing architectures. As the number of IoT devices scales to trillions of devices, various performance bottlenecks in last mile connectivity and central cloud access may occur.
Typically Fog computing provides solutions to the aforementioned limitations related to cloud-based computing. “Fog Computing” is motivated by moving data and computation close to the edge of the networks. For example, for IoT applications where sensors are typically mobile and produce data at large volumes and/or velocity, moving control and actuation servers to nodes nearer to the edge devices reduces traffic on the cloud data centre, while still maintaining low latency overheads. Typically any device with computing, storage, and network connectivity can be a fog node. Examples of such devices include industrial controllers, switches, routers, embedded servers, video surveillance cameras, and so on.
Fog computing is a scalable version of the edge that exploits smart gateway devices. The terms ‘Fog’ and ‘Edge’ are synonymous to both end devices (mobile nodes) and intelligent gateway devices. The terms ‘Fog computing’ and ‘Edge computing’ are synonymous, and accordingly, the terms Fog computing and Edge computing have been used interchangeably throughout the description. A typical deployment example of an IoT application with Fog is presented in
When focusing on IoT, communicating and coordinating sensor and/or actuator data received via sensors 102, via the cloud, for example the cloud 106 involves inefficient overheads and reduces autonomous behaviour. The Edge/Fog computing paradigm consisting of Fog nodes such as Fog nodes 104 is configured to move the compute/actuate functions closer to sensing entities by exploiting peers and intermediary nodes. Some of the advantages of moving much of the storage/computation/actuation to the edge of the IoT application environment includes latency reduction, improvement in network bandwidth, improved reliability and geo-optimization. Herein, low-latency response times matter in sensitive applications involving large factory units, health care and industrial outputs. Reducing data transfer requirements can help shave off crucial seconds in the auto-actuation of devices, and in latency reduction. Moreover, with large-scale IoT sensors collecting multiple TBs of data, transporting data would mean large network bandwidth requirements, and hence affecting network bandwidth. Virtual Machine failure, network bottlenecks and last-mile connectivity problems are typical of large scale deployments. By distributing computation and storage, reliability and redundancy of data can be further guaranteed, thereby improving reliability. Additionally, while typical cloud deployments remain agnostic to geo-location of devices, the Fog computing paradigm incorporates the aspect of geo-optimization into the architecture, and hence decision making is done closer to source with periodic analytics provided by the cloud.
The movement of the compute/actuate functions closer to sensing entities entails reduced centralized communication with the cloud and increased coordination between sensing entities and (possibly available) networked switches/routers/gateway devices. However, the typical Fog computing is limited in incorporating the effect of obstacles or indoor multi-path effects as well as effects of transmission frequencies while determining communication overheads between Fog nodes.
To address the aforementioned limitations while using resource limited devices, the utility of offloading computation among peers with respect to computation latency and energy depletion has been provided by determining the trade-offs involved with such computation offloading. Various embodiments of the present disclosure present an optimization formulation that can be applied to various deployment scenarios of a network of devices, taking the computation and communication overheads into account. As will be described later in the description, the disclosed method is implemented on an embedded network of robots developed using ROS (“Robot Operating System”) and Gazebo, that may coordinate to complete a complex computational task. Another embodiment demonstrates an improvement of 90% latency and 54% battery usage over a large computation task, by applying the proposed optimal offloading technique.
The method(s) and system(s) for optimal deployment of Fog computations in IoT environments are further described in conjunction with the following figures. It should be noted that the description and figures merely illustrate the principles of the present subject matter. It will thus be appreciated that those skilled in the art will be able to devise various arrangements that, although not explicitly described or shown herein, embody the principles of the present subject matter and are included within its spirit and scope. Furthermore, all examples recited herein are principally intended expressly to be only for pedagogical purposes to aid the reader in understanding the principles of the present subject matter and the concepts contributed by the inventor(s) to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions. Moreover, all statements herein reciting principles, aspects, and embodiments of the present subject matter, as well as specific examples thereof, are intended to encompass equivalents thereof.
Although the present disclosure is explained considering that the system 202 is implemented on a server, it may be understood that the system 202 may also be implemented in a variety of computing systems, such as a laptop computer, a desktop computer, a notebook, a workstation, a cloud-based computing environment, Fog or edge computing environment and the like. In one implementation, the system 202 may be implemented in a Fog or edge based environment. It will be understood that the system 202 may be accessed by multiple devices 206-1, 206-2 . . . 206-N, collectively referred to as Fog devices 206 hereinafter, or applications residing on the Fog devices 206. Examples of the Fog devices 206 may include, but are not limited to, a portable computer, a personal digital assistant, a handheld device, a Smartphone, a Tablet Computer, a workstation, industrial controllers, switches, routers, embedded servers, video surveillance cameras and the like. The Fog devices 206 are communicatively coupled to the system 202 through a network 208.
In an embodiment, the network 208 may be a wireless or a wired network, or a combination thereof. In an example, the network 208 can be implemented as a computer network, as one of the different types of networks, such as virtual private network (VPN), intranet, local area network (LAN), wide area network (WAN), the internet, and such. The network 206 may either be a dedicated network or a shared network, which represents an association of the different types of networks that use a variety of protocols, for example, Hypertext Transfer Protocol (HTTP), Transmission Control Protocol/Internet Protocol (TCP/IP), and Wireless Application Protocol (WAP), to communicate with each other. Further, the network 208 may include a variety of network devices, including routers, bridges, servers, computing devices, storage devices. The network devices within the network 208 may interact with the system 202 through communication links.
The system 202 is capable of offloading computations among Fog computing nodes 206 or peers, thereby resulting in energy and latency improvements. The system 202 makes use of accurate battery degradation and communication path loss corresponding to the Fog computing nodes, and accordingly provides an optimal deployment, in which computation may be optimally shared among the fog nodes. The optimization deployment can be applied to various deployment scenarios of a network of devices, and takes the computation and communication overheads into account.
As discussed above, the system 202 may be implemented in a computing device 204, such as a hand-held device, a laptop or other portable computer, a tablet computer, a mobile phone, a PDA, a smartphone, and a desktop computer. The system 202 may also be implemented in a workstation, a mainframe computer, a server, and a network server. In an embodiment, the system 202 may be coupled to a data repository, for example, a repository 212. The repository 212 may store data processed, received, and generated by the system 202. In an alternate embodiment, the system 202 may include the data repository 212. The components and functionalities of the system 202 are described further in detail with reference to
The I/O interface 306 may include a variety of software and hardware interfaces, for example, a web interface, a graphical user interface, and the like The interfaces 306 may include a variety of software and hardware interfaces, for example, interfaces for peripheral device(s), such as a keyboard, a mouse, an external memory, a camera device, and a printer. Further, the interfaces 306 may enable the system 300 to communicate with other devices, such as web servers and external databases. The interfaces 306 can facilitate multiple communications within a wide variety of networks and protocol types, including wired networks, for example, local area network (LAN), cable, etc., and wireless networks, such as Wireless LAN (WLAN), cellular, or satellite. For the purpose, the interfaces 306 may include one or more ports for connecting a number of computing systems with one another or to another server computer. The I/O interface 306 may include one or more ports for connecting a number of devices to one another or to another server.
The hardware processor 302 may be implemented as one or more microprocessors, microcomputers, microcontrollers, digital signal processors, central processing units, state machines, logic circuitries, and/or any devices that manipulate signals based on operational instructions. Among other capabilities, the hardware processor 302 is configured to fetch and execute computer-readable instructions stored in the memory 304. In an embodiment, the processor is configured by the instructions stored in the memory, thereby causing the system 300 to perform various functions, as described later in the description below.
The memory 304 may include any computer-readable medium known in the art including, for example, volatile memory, such as static random access memory (SRAM) and dynamic random access memory (DRAM), and/or non-volatile memory, such as read only memory (ROM), erasable programmable ROM, flash memories, hard disks, optical disks, and magnetic tapes. In an embodiment, the memory 304 includes a plurality of modules 320 and a repository 340 for storing data processed, received, and generated by one or more of the modules 320. The modules 320 may include routines, programs, objects, components, data structures, and so on, which perform particular tasks or implement particular abstract data types.
The repository 340, amongst other things, includes a system database 342 and other data 344. The other data 344 may include data generated as a result of the execution of one or more modules in the modules 320. The repository 340 is further configured to maintain computations data 346 pertaining to the computation to be offloaded and sensor data 348 collected by Fog nodes. The sensor data 348 and the computation data 346 will be explained further in the description below.
According to the present subject matter, the system 300 represents a framework for optimal deployment of Fog computations in IoT environments. The system 300 is caused to define a computational task and a plurality of constraints associated with the computational task. In an embodiment, the computational task may be a computationally intensive task to be performed by a single node, hence at least a subset of the computational task may be offloaded to peer nodes (for example, fog devices) that are capable of performing said computations. However, since each peer node may be associated with different capabilities and configurations, the system 300 may be caused to assess said capabilities and configurations. Based on said determination, the system 300 may be caused to offload the computational tasks to different peer nodes according to their capabilities and configurations in a most optimal way. The capabilities and configurations of the peer nodes can be determined by applying certain constraints to the available network of peers or Fog nodes. In an embodiment, the constraints applied by the system 300 may include, but are not limited to battery resources, communication path loss and computation on devices (or Fog nodes) with heterogeneous hardware.
Herein, in an embodiment, the system 300 may be embodied in the node that is intended to perform the computational task. Accordingly, in the present embodiment, the node acts as a coordinating node, and is accordingly caused to optimally offload the computational tasks to different peer nodes according to capabilities and configurations of said peer nodes. Alternatively, the system 300 may be embodied in a node, known as coordinating node, and said coordinating node may be in communication with the node that is intended to perform the computational task. The node may communicate with the coordinating node, and request for allocation of at least a subset of the computational task to one or more peer nodes.
Herein, in addition to the request for allocation of at least the subset of the computational task, the coordinating node may also receive a task data associated with the computational task. The task data includes data subset and one or more constraints associated with at least the subset of the computational task.
The system 300 is caused to characterize the plurality of Fog nodes capable of performing the computational task with a plurality of node characteristics. Herein, characterizing the plurality of Fog nodes refers to obtaining a resource data associated with the plurality of Fog nodes. The resource data herein includes node location, current drawn during computation and communication, total battery capacity, number of CPU cores and CPU operating frequency associated with the plurality of Fog nodes. The system 300 is caused to obtain said resource data associated with the potential nodes in the network. In an embodiment, the resource data may be stored in the repository of the system 300. In an embodiment, the resource data may be made available to the coordinating node for storing in the repository of the system 300 continually or after predetermined time intervals. In an embodiment, the resource data or the information about the locations, battery states and computational power of all peer nodes can be broadcasted periodically to the coordinating node. Each peer node can publish information about locations, battery states and computational power and the coordinating node can subscribe to such information. In an embodiment, polling said information periodically is also possible. For example, protocols such as Simple Network Monitoring Protocol (SNMP) can be exploited for polling said information.
Based on the task data and the resource data, the system 300 is caused to derive an optimization model for performing the computational task by the plurality of Fog nodes. To analyze and determine crucial features involved with IoT devices that may be associated with the Fog, the system 300 is caused to derive an optimization model based on the resource data. Accordingly, in an embodiment, the optimization model is derived based on a plurality of constraints including, but not limited to, battery degradation constraint, communication path loss constraint, and heterogeneous computational capacities of the plurality of Fog nodes.
As battery utilization is one of a crucial features involved with IoT devices that may be associated with the Fog, in an embodiment, deriving the optimization model includes deriving a battery optimization model for optimizing battery consumed in performing the computational task by each of the plurality of Fog nodes. The battery optimization model is capable of analyzing battery discharge profiles and associate lifetimes of the Fog nodes. In an embodiment, the optimization model is derived based on battery consumed as a result of computation of battery consumed by the plurality of Fog nodes and a two way communication overheard. Herein, the battery consumed may refer to the battery consumed by the Fog nodes for a computation cycle c.
When using a non-uniform discharge, the average discharging values may be employed:
Where, L is value of battery lifetime. Typically the value of a is close to battery capacity and b is a value in the range [1.2, 1.7].
The communication path loss during the communication between the coordinating node and the set of Fog nodes may incorporate the effect of obstacles or indoor multi-path effects as well as effects of transmission frequencies. In an embodiment, the communication path loss model may include:
P
t
−P
r (dBm)=20 log10 f+K log10(d)+NwLw−20 (2)
where f is the transmit frequency in MHz,
K is an attenuation factor derived based on the transmit frequency (≈19 for 2.4 GHz), number Nw and loss Lw due to obstacles
Herein, the loss due to obstacles from measurements can range from 1 dB for glass, 7 dB for brick to 25 dB for concrete structures. When dealing with varied transmission solutions such as Wifi, Zigbee, Bluetooth and UWB, incorporation of the transmit frequencies can affect the measured path loss.
In an embodiment, optimizing the battery consumption may include deriving the battery optimization model for solving a linear programming problem with the battery consumed as a result of computation Pic (eq. 1) and two way communication overhead 2. P1t{f, d1
The total computation task C is allocated to participating devices, with a maximal battery capacity of Picap. The optimization model may include:
min P1C·r1+Σi=2N(PiC+2·P1t{f,d1
Such that, Σi=1Nri=C
Pi·ri≤PiCap, ∀iϵN
ri≥0, ∀iϵN
In an embodiment, the Fog nodes may have battery recharges between subsequent task executions, and thus PiCap may be constant. Alternatively, there may be no battery re-charges between runs. In the present embodiment, where there are no battery re-charges between runs, a new constraint P′iCap=PiCap−PiC·ri may account for the power lost due to the optimal allocation during the previous execution. For the most deteriorated battery PiCap→0 is the quickest.
In another embodiment, deriving the optimization model includes deriving a latency optimization model for optimizing a time to complete the computational task based on the resource data by the set of Fog nodes. As each Fog node may have a specific number of CPU cores cc, with corresponding operating frequency hi, the time to complete a computation may be incorporated. For instance, a single core CPU running at 1.2 GHz would perform 8 times slower than a quad-core 2.4 GHz CPU. The optimization model may incorporate the transmission throughput tj
Such that, Σi=1Nri=C
ri≥0, ∀iϵN3.
In yet another embodiment, deriving the optimization model includes deriving a combined model including the battery optimization model and the latency optimization model. In an example embodiment, the primary cost function to be minimized may capture the battery constraint, and the entire computational task may be completed within the latency constraint L:
Such that, Σi=1Nri=C
Pi·ri≤PiCap, ∀iϵN
ri>0, ∀iϵN
In an embodiment, the system 300 may be caused to offload at least the subset of the computational task to a set of Fog nodes from the plurality of Fog nodes based on the optimization model. In an embodiment, the system 300 may be caused to collate output of performing of the subset of computational task from the set of Fog nodes to obtain result of offloaded subset of the computational task.
Herein, it will be understood that the coordinating node can communicate with the plurality of Fog nodes using any one of a proxy-based communication topology, peer-based communication topology and clone-based communication topology. For example, a client-server ensures bi-directional transfer of data combined with one-to-one communication. The client node requests for some data and waits for the reply; the server receives the request, performs the required computation/actuation and sends a response to the client.
At 402, the method includes receiving, a request for allocation of at least a subset of a computational task and a task data associated with the computational task. In an embodiment, the task data includes a data subset and one or more task constraints associated with at least the subset of the computational task. The task constraints may include, but are not limited to, end-to-end delay in completing the computational task, battery consumption associated with the computational task, utilization levels of underlying hardware (CPU/Memory/Disk/Network) and level of parallel operations that may be executed for completing the computational task.
At 404, the method 400 includes characterizing the plurality of Fog nodes capable of performing the computational task with a plurality of node characteristics to obtain a resource data associated with the plurality of Fog nodes. In an embodiment, the node characteristics may include, but are not limited to, dimensions, weight, maximum speed, battery type, battery capacity, runtime (on standby), runtime (nominal use), control and so on. It will be noted that the aforementioned node characteristics represents technical specifications of Fog nodes. However, said node characteristics should not be considered limiting to the disclosure. In alternative embodiment, the node characteristics may include various characteristics and/or specifications that may be specific to the computation task that needs to be offloaded. In an embodiment, data associated with the node characteristics may be stored in the repository of the system, wherein the system may be embodied in the coordination node. Alternatively, the data associated with the node characteristics may be stored in the repository of a remote server, and said remote server can be accessed by the coordination node and/or the system.
At 406, the method includes deriving, based on the task data and the resource data, an optimization model for performing the computational task by the plurality of Fog nodes. The optimization model may be derived based on a plurality of node constraints including battery degradation constraint, communication path loss constraint, and heterogeneous computational capacities of the plurality of Fog nodes. In an embodiment, the optimization model is derived by deriving a battery optimization model based on the resource data. The battery optimization model optimizes battery consumed in performing the computational task and communication between the coordinating node and the plurality of Fog nodes. An example of deriving a battery optimization model in a network of robotic nodes (acting as Fog nodes) is described further in the description.
In another embodiment, the optimization model is derived by deriving a latency optimization model for optimizing a time to complete the computational task based on the resource data by the set of Fog nodes. In an embodiment, deriving the latency optimization model comprises minimizing an objective function associated with a transmission throughput of the resource data. An example of the objective function associated with a transmission throughput of the resource data that is utilized to derive the latency optimization model, is described further in the description below.
In yet another embodiment, the optimization model is derived by combining the battery optimization model and the latency optimization model. An example of deriving the optimization model is derived using the battery optimization model and the latency optimization model is described further with reference to an example scenario.
At 408, the method 400 includes offloading at least a subset of the computational task to a set of Fog nodes from the plurality of Fog nodes based on the optimization model. Herein, the optimization model is capable of identifying a set of nodes that can be utilized for performing at least a subset of the computational task in the most optimal way.
An example scenario considering a network of robots acting as Fog nodes is described further with reference to
Referring now to
The robots (or robot nodes) 502, 504, 506, and 508 may simultaneously move in an indoor environment to perform a computational task. The objective is to complete the computational task with limited battery and computation capabilities present on the robots. Example specifications (or node characteristics) of the hardware robots may include dimensions, weight, maximum speed, battery, battery capacity, runtime (standby), runtime (nominal use), and controls, as presented in the table 1 below:
Herein, the robots may be deployed in an indoor environment where said robots may make use of infrastructure based or infrastructure less (ad-hoc) communication. Typically, the computational task is performed locally—however, due to limited capacity and extended battery consumption of this process, the lifetime of deployed robots may be reduced. An alternative is to make use of the computational capacity of other peer nodes to offload subset of the computational task. Referring to
The coordinating node divides the portion of the task data into locally solvable tasks and then requests for potential resources, at 554. The robot (which has information about the location, battery states and computation power of all robots), may act as the coordinating node and allocate tasks to available robots. Herein, the available robots such as robots 506 and 508 may receive at least a subset of the computation task along with the associated task data, and returns the subsets of the computed tasks to the coordinating node at 556. The coordinating node may collate the subsets of the computed tasks and returns a result of computational task to the robot 502, at 558.
The proposed framework architecture presented in
While ROS typically uses publish-subscribe messaging system to handle interactions between nodes, the framework has an implementation of the offloading of data using the client-service paradigm (
In the present embodiment, the optimization model is derived using the battery optimization model, a communication path loss model and heterogeneous computational capacities of the nodes. Each Fog node is characterized by its location (x, y coordinate), current drawn during computation/communication, total battery capacity, number of CPU cores and CPU operating frequency. In an exemplary embodiment, Fog node with device ID i=1 (for example, the robot 502 of
As discussed with reference to
min P1C·r1+Σi=2N(PiC+2·P1t{f,d1
Such that, Σi=1Nri=C
Pi·ri≤PiCap, ∀iϵN
ri≥0, ∀iϵN
In an embodiment, there may be battery re-charges between subsequent task executions and thus PiCap would be constant. In another embodiment, where there are no battery re-charges between runs, a new constraint P′iCap=PiCap−PiC·ri is needed. The new constraint accounts for the power lost due to the optimal allocation during the previous execution. For the most deteriorated battery PiCap→0 is the quickest.
In certain conditions, latency may be the predominant factor requiring optimization. As such in an embodiment, the optimization model is derived by deriving a latency optimization model for optimizing a time to complete the computational task based on the resource data by the set of Fog nodes. In an embodiment, deriving the latency optimization model comprises minimizing an objective function associated with a transmission throughput of the resource data. As each robot includes a specific number of central processing unit (CPU) cores cc, with corresponding operating frequency hi the time to complete a computation may be incorporated. For instance, a single core CPU running at 1.2 GHz may perform almost 8 times slower than a quad-core 2.4 GHz CPU. The optimization may be posed as follows, incorporating the transmission throughput tij for data from one user to another:
Such that, Σi=1Nri=C
ri≥0, ∀iϵN3.
In yet another embodiment, the optimization model may be derived by combining the battery optimization model and the latency optimization model. A combined model that takes into account both battery and latency constraints can also be formulated. While the primary cost function to be minimized captures the battery constraint, the entire task must be completed within the latency constraint L:
Such that, Σi=1Nri=C
In an embodiment, the system may be caused to solve the aforementioned optimization models by utilizing a tool such as Scilab using the Karmarkar linear optimization solver. The nodes (or robot devices) are specified with resource data such as coordinates, battery, computational capacities and latency/energy depletion with each compute and communication cycle. The path loss model developed in eq. 2 is used in conjunction with WiFi transmission (2.40 GHz, 10 Mb/s) between the nodes.
Referring now to
Referring now to
In the present scenario, the computation deployment assumes no battery re-charge, and heterogeneous device capacities. The results are presented in
Referring now to
In the present scenario, the computation deployment assumes no battery re-charge, latency constraint, heterogeneous device capacities. The results presented in
The networked robotic deployment described in earlier embodiments is developed in ROS/Gazebo on a Linux Machine with quad core i5-6200U CPU (2.30 GHz) and 4.00 GB RAM. The robots collected sensor data (location and orientation coordinates) ranging from 10,000-200,000 entries. A computationally expensive sorting operation is then performed over these tasks either individually or using proposed collaborative model. As all the robots were deployed on the same machine, Linux task set -c command can be used to assign a CPU core to a particular device. In order to generate realistic deployment settings, the Husky datasheet in
Amperes while,
Amperes. The path loss model developed in eq. 2 has been used in conjunction with WiFi transmission (2.40 GHz, 10 Mb/s) between the nodes. The computational load may be defined using the conventional CPU clock ticks used to perform a computation or as a function of the computational complexity. The required parameters are derived by the offloading device or via an intermediary. The results of applying the optimized deployment model are shown in
In various embodiments, methods and systems for Fog based distributed computation in mobile networked environments with resource constrained devices are presented. The disclosed system is capable of accurately modelling the energy and communication costs with respect to a large scale computation, by formulating an optimal deployment strategy when dealing with distributed computation, while considering energy and latency constraints in an environment with resource constrained devices. As an example, the advantages of optimally offloading computation over a network of mobile robots simulated in ROS/Gazebo that coordinate to complete a computationally intensive task have been demonstrated in various embodiments.
In various embodiments, the system and method combines the problem of computational offloading and communication overheads by taking into account both energy and latency costs. The proposed method can lead to optimized deployment of such resource constrained devices on a network. By optimally formulating the computation and communication expenditures in terms of energy and latency, the framework can demonstrate efficient offloading of computations across a network of devices. The results are demonstrated over a network of robots developed in ROS/Gazebo, that demonstrate 90% improvement in latency and 54% improvement in battery consumptions at higher loads. Such a deployment framework can prove useful in multiple scenarios involving Fog based networking architectures for IoT devices.
The illustrated steps are set out to explain the exemplary embodiments shown, and it should be anticipated that ongoing technological development will change the manner in which particular functions are performed. These examples are presented herein for purposes of illustration, and not limitation. Further, the boundaries of the functional building blocks have been arbitrarily defined herein for the convenience of the description. Alternative boundaries can be defined so long as the specified functions and relationships thereof are appropriately performed. Alternatives (including equivalents, extensions, variations, deviations, etc., of those described herein) will be apparent to persons skilled in the relevant art(s) based on the teachings contained herein. Such alternatives fall within the scope and spirit of the disclosed embodiments. Also, the words “comprising,” “having,” “containing,” and “including,” and other similar forms are intended to be equivalent in meaning and be open ended in that an item or items following any one of these words is not meant to be an exhaustive listing of such item or items, or meant to be limited to only the listed item or items. It must also be noted that as used herein and in the appended claims, the singular forms “a,” “an,” and “the” include plural references unless the context clearly dictates otherwise.
Furthermore, one or more computer-readable storage media may be utilized in implementing embodiments consistent with the present disclosure. A computer-readable storage medium refers to any type of physical memory on which information or data readable by a processor may be stored. Thus, a computer-readable storage medium may store instructions for execution by one or more processors, including instructions for causing the processor(s) to perform steps or stages consistent with the embodiments described herein. The term “computer-readable medium” should be understood to include tangible items and exclude carrier waves and transient signals, i.e., be non-transitory. Examples include random access memory (RAM), read-only memory (ROM), volatile memory, nonvolatile memory, hard drives, CD ROMs, DVDs, flash drives, disks, and any other known physical storage media.
It is intended that the disclosure and examples be considered as exemplary only, with a true scope and spirit of disclosed embodiments being indicated by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
201621035796 | Oct 2016 | IN | national |