WO2019200716A1 - Fog computing-oriented node computing task scheduling method and device thereof - Google Patents

Fog computing-oriented node computing task scheduling method and device thereof Download PDF

Info

Publication number
WO2019200716A1
WO2019200716A1 PCT/CN2018/093934 CN2018093934W WO2019200716A1 WO 2019200716 A1 WO2019200716 A1 WO 2019200716A1 CN 2018093934 W CN2018093934 W CN 2018093934W WO 2019200716 A1 WO2019200716 A1 WO 2019200716A1
Authority
WO
WIPO (PCT)
Prior art keywords
task
computing
migration
fog
user equipment
Prior art date
Application number
PCT/CN2018/093934
Other languages
French (fr)
Chinese (zh)
Inventor
王昆仑
杨旸
李强
周明拓
Original Assignee
上海无线通信研究中心
福州物联网开放实验室有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海无线通信研究中心, 福州物联网开放实验室有限公司 filed Critical 上海无线通信研究中心
Publication of WO2019200716A1 publication Critical patent/WO2019200716A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1014Server selection for load balancing based on the content of a request
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0215Traffic management, e.g. flow control or congestion control based on user or device properties, e.g. MTC-capable devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the invention relates to a node computing task scheduling method for fog calculation, and relates to a fog computing device for implementing the node computing task scheduling method, which belongs to the technical field of computing communication.
  • Cloud Computing centralizes storage, control, and processing power in powerful cloud servers, leveraging centralized data processing and resource management to improve network resource utilization efficiency and energy efficiency.
  • Fog Computing is a cloud computing that is scattered around people. In fog computing, data, data processing, and applications are concentrated in network edge devices, rather than being stored almost entirely in cloud servers.
  • fog computing Compared with cloud computing, fog computing relies not on cloud servers in a central location, but on distributed computer resources that are closer to local devices.
  • a typical fog computing network system utilizes functions of computing, storage, communication, management, and the like from a cloud server to a network edge device to a user device, forming a continuous service area from the cloud server to the terminal.
  • the network edge device may be a traditional network device, such as a base station, a router, a switch, a gateway, etc., which has been deployed in the network, or a dedicated local server.
  • Fog computing brings the boundaries of the cloud closer to the "edge" of the local server (connected to the Internet of Things), rather than keeping them almost entirely in the cloud like cloud computing. It can be seen that unlike cloud computing floating at the far end, fog computing is to let the computing unit be dispersed around people like fog, so as to achieve the most efficient use of computing resources.
  • direct communication between devices and devices can be realized without the help of network devices such as base stations, which can improve the spectral efficiency of data transmission and achieve efficient load balancing. Based on these advantages, direct communication between devices will occupy a major position in next-generation wireless communications.
  • mobile applications are becoming more and more complex, and because of the low latency requirements of these complex applications, user equipment requires a large amount of computing and communication resources to ensure real-time performance. Therefore, migrating the computing tasks of the user equipment to the adjacent idle devices can realize resource sharing and ensure efficient operation with low latency, and has a good application prospect.
  • the primary technical problem to be solved by the present invention is to provide a node computing task scheduling method for fog calculation.
  • Another technical problem to be solved by the present invention is to provide a fog computing device that implements the above-described node computing task scheduling method.
  • a node computing task scheduling method for fog calculation including the following steps:
  • the user equipment undertaking the computing task migrates the computing task to the idle neighboring device for calculation according to the optimal energy-efficient communication time and the corresponding task migration amount.
  • the user equipment and the neighboring device multiplex the spectrum of the cellular network by using an opportunistic spectrum sharing mechanism to implement direct communication between devices.
  • the user equipment migrates the computing task to the neighboring device by using a time division multiplexing manner or an orthogonal frequency division multiple access method.
  • the energy efficiency is calculated by the following formula:
  • u ee energy efficiency
  • l the task migration amount of the user equipment
  • E i the energy consumption of the task migration
  • E re the energy consumption calculated by the task
  • E 0 the circuit energy consumption
  • K is a positive integer.
  • the task migration amount among them Indicates the probability of successfully accessing the jth spectrum resource.
  • W and b i,j respectively represent the modulation mode of the bandwidth and the transmission, and i and j are positive integers.
  • the energy consumption of the task migration among them Indicates the probability of successfully accessing the jth spectrum resource
  • the average transmission time obtained in the time slot T for the direct communication between the i-th pair of devices, f(b i,j ) is the power expression of the task migration, and i and j are positive integers.
  • ⁇ task migration uses the symbol error probability when the modulation mode is b i,j , and ⁇ (d i,i ) represents the channel fading parameter when the distance between devices is d i,i .
  • a fog computing device comprising a processor and a memory, the processor reading a computer program in the memory for performing the following operations:
  • the optimal energy-efficient communication time and the corresponding task migration amount of the task migration of the fog computing device and the adjacent fog computing device are obtained;
  • the fog computing device undertaking the computing task migrates the computing task to the adjacent idle fog computing device for calculation according to the optimal energy efficiency communication time and the corresponding task migration amount.
  • the fog computing device and the adjacent fog computing device multiplex the spectrum of the cellular network through an opportunistic spectrum sharing mechanism to implement direct communication between devices.
  • the fog computing device migrates the computing task to the adjacent fog computing device by means of time division multiplexing or orthogonal frequency division multiple access.
  • the node computing task scheduling method and device can process as many computing tasks as possible with as little migration energy as possible.
  • user equipments that are idle around the user equipment referred to as idle devices
  • Tasks online games, virtual reality simulation, etc.
  • FIG. 1 is a diagram showing an example of a working scenario of a typical fog computing network system
  • FIG. 2 is a diagram showing an example of a fog computing network system for implementing the present invention
  • FIG. 3 is a flowchart of an operation for implementing a task task uninstallation according to an embodiment of the present invention
  • Figure 4 is a simulation comparison diagram of performance comparison of different computing task migration methods
  • Fig. 5 is a view showing an example of the structure of a fog calculating apparatus for carrying out the present invention.
  • the computing resources are disclosed to the undirected users accessing the local network, who needs to use the application, increase the resource utilization by sharing, and improve the reliability of the entire network system in a redundant manner.
  • this kind of computing resource allocation mode for the task-intensive users, if the computing task is migrated to the cloud server, the power consumption of the entire network system and the delay of data access are relatively large.
  • the migration of computing tasks to the cloud server imposes a heavy burden on the server, which affects the user's need for business access.
  • the migration of computing tasks to nearby small base stations equipped with servers also has similar problems for remote users.
  • the node computing task scheduling method provided by the present invention firstly studies the energy consumption of the task calculation and task migration of the fog computing network system, and then uses the mathematical optimization method to solve the overall energy efficiency optimization problem according to the system constraints, and finally according to the mathematics.
  • the optimized solution obtains the optimal energy-efficient communication time and the optimal task amount to be migrated to each adjacent device when the user equipment is paired with each adjacent user equipment (referred to as an adjacent device).
  • the user equipment S as the fog computing device needs to calculate the task amount in a time slot as R S , wherein the l-bit task quantity needs to be migrated to the neighboring device, and the other (R S -l)-bit passes.
  • the calculation is performed by its own central processing unit (CPU). In general, most of the calculated results of the task are small relative to the task itself.
  • CPU central processing unit
  • the user equipment migrates the computing task to K (K is a positive integer) neighboring devices by time division multiplexing, and any device communicates with the device.
  • Group i can randomly allocate time resources ⁇ i , i ⁇ ⁇ 1, 2, ..., K ⁇ of any size.
  • the power consumption of the i-th pair device and device communication group use the jth resource block for task migration is P i,j and the noise power is ⁇ 2 .
  • the energy efficiency in the present invention can be defined as the task amount with the smallest energy consumption migration. Considering the task amount of the user equipment migration is 1, the energy efficiency can be expressed as:
  • the task migration based on the direct communication between the devices can perform the optimal energy-efficient task migration according to the computing resources of the neighboring devices and the calculation energy consumption, and ensure the optimal task amount for each adjacent device to migrate. . Therefore, the key to the successful application of the task scheduling method based on the optimal energy efficiency is how to solve the optimal solution problem based on the energy efficiency expression.
  • the spectrum resource used for direct communication between devices is through an opportunistic spectrum sharing mechanism (ie, when the cellular system does not occupy a certain spectrum resource, the fog computing network system) Reusing the idle spectrum resource of the segment.
  • the spectrum sharing mechanism mainly accesses the spectrum resource of the cellular communication by means of the monitoring of the spectrum by the fog computing device, and according to the definition, the direct communication between the device of the i-th pair can be obtained in the time slot.
  • the average transmission time obtained in T is among them Indicates the probability of successfully accessing the jth spectrum resource.
  • the amount of tasks that can be migrated between the i-th pair of devices can be obtained as Where W and b i,j represent the modulation of the bandwidth and transmission , respectively.
  • W and b i,j represent the modulation of the bandwidth and transmission , respectively.
  • ⁇ i,j represents the received signal to noise ratio.
  • the expression of the received signal to noise ratio of the i-th pair of devices can be obtained as Where ⁇ (d i,i ) represents the channel fading parameter when the distance between devices is d i,i .
  • the energy consumption of the task migration of the i-th pair of inter-device communication groups can be obtained as among them
  • the total task migration energy consumption can be expressed as
  • C re,i P re,i can be expressed as the energy consumed by the 1-bit calculation.
  • the calculated energy consumed by the device can be expressed as E re,i , According to the previous derivation, you can get:
  • the energy efficiency expression of the entire fog computing network system can be obtained during the migration computing task:
  • the fog computing device that undertakes the computing task is based on the optimal energy efficiency communication time.
  • the corresponding task migration Migrate computing tasks to idle neighbors for calculation.
  • the data transmitting end uses the optimal energy-efficient modulation mode for data transmission.
  • the so-called optimal energy efficiency modulation method refers to the number of bits containing the optimal energy efficiency in the symbols of data transmission, that is, b i,j for solving the optimization problem.
  • the node computing task scheduling method provided by the present invention is described below in conjunction with a specific embodiment.
  • the mission device S and the neighboring device B in the fog computing network system are capable of pairing for communication.
  • the task device S needs to perform a computing task uninstallation. Since direct communication between these devices does not have its own spectrum resources, it is necessary to multiplex the spectrum resources of the cellular network. Therefore, it is assumed that spectrum resources in a cellular network are used to implement direct communication between devices, and the spectrum of the cellular network is multiplexed by an opportunistic spectrum sharing mechanism. Referring to FIG. 3, the specific steps for implementing the uninstallation of the computing task in this embodiment are as follows:
  • Step A1 According to the total amount of tasks to be migrated and the energy of the migration, calculate the energy consumption, and obtain an energy efficiency expression:
  • Step A2 Energy efficiency optimization problem of computing task migration according to system constraints
  • Step A3 According to the form of the energy-efficient closed expression, the above optimization problem is equivalent to the low complexity optimization problem
  • Step A4 Obtain optimal time resource allocation by mathematical optimization method And task migration
  • Step A5 It is assumed that the task device S has K neighboring devices, and the task device S passes the TDMA (Time Division Multiple Access) mode or the orthogonal frequency division multiple access mode (which requires combining multiple antenna technologies), based on the above optimal Time resource allocation And task migration Migrate computing tasks to these K neighboring devices.
  • TDMA Time Division Multiple Access
  • orthogonal frequency division multiple access mode which requires combining multiple antenna technologies
  • the optimal calculation method of task migration can be obtained by a low complexity algorithm. Specifically, the original optimization problem is first translated into the following questions:
  • Figure 4 shows the performance comparison simulation results of different computational task migration methods in terms of energy efficiency. It can be seen from the comparison of the simulation results that the computational task migration scheme of the optimal energy efficiency (including optimal time allocation and optimal migration rate) provided by the present invention is always superior to the conventional scheme in performance. Moreover, under the same time resource allocation conditions, selecting the optimal energy efficiency transmission rate for task migration will have a great performance gain.
  • the present invention also provides a fog computing device that implements the above node computing task scheduling method.
  • the fog computing device includes at least a processor and a memory, and further includes a communication component, a sensor component, a power component, a multimedia component, and an input/output interface according to actual needs.
  • the memory, the communication component, the sensor component, the power component, the multimedia component, and the input/output interface are all connected to the processor.
  • the memory in the fog computing device may be a static random access memory (SRAM), an electrically erasable programmable read only memory (EEPROM), an erasable programmable read only memory (EPROM), Programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, etc.
  • the processor can be a central processing unit (CPU), graphics processing unit (GPU), field programmable logic gate array (FPGA) ), application specific integrated circuits (ASIC), digital signal processing (DSP) chips, and the like.
  • CPU central processing unit
  • GPU graphics processing unit
  • FPGA field programmable logic gate array
  • ASIC application specific integrated circuits
  • DSP digital signal processing
  • the processor reads a computer program in the memory for performing the following operations: calculating energy consumption when performing task calculation and task migration between the user equipment and the adjacent device; obtaining by mathematical optimization method The optimal energy-efficient communication time of the user equipment and the adjacent equipment for task migration and the corresponding task migration amount; the user equipment undertaking the calculation task migrates the calculation task to the idle neighboring device according to the optimal energy-efficient communication time and the corresponding task migration amount. Calculation.
  • the user equipment and the neighboring device multiplex the spectrum of the cellular network through an opportunistic spectrum sharing mechanism to implement direct communication between devices.
  • the user equipment migrates the computing task to the neighboring device by means of time division multiplexing.
  • the present invention considers an optimal computing task migration scheme from the perspective of resource utilization, and uses the direct communication between devices to migrate computing tasks while considering how to allocate these tasks to the optimal energy efficiency.
  • idle devices around the user equipment can achieve optimal migration of computing tasks, thereby sharing their computing resources (CPU, GPU, etc.), so that resource-constrained user equipment will have too many computing tasks (online games, virtual reality) Simulation, etc.) migrate to idle devices with sufficient resources nearby, minimizing service delay and achieving high energy efficiency of communication.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed by the present invention is a fog computing-oriented node computing task scheduling method and device thereof. The method comprises: computing energy efficiency when task computing and task migration are performed between a user equipment and a neighboring equipment; obtaining, by means of the mathematical optimization method, an optimal energy efficiency communication time of the task migration between the user equipment and the neighboring equipment and a corresponding task migration amount; and migrating, by the user equipment undertaking the computing task, the computing task to an idle neighboring equipment for computing according to the optimal energy efficiency communication time and the corresponding task migration amount. According to the present invention, an idle equipment around the user equipment can implement optimal migration of computing tasks, thereby sharing the computing resources thereof, so that resource-constrained user equipment migrates excessive computing tasks to nearby idle equipment with sufficient resources, thus reducing service delay to the greatest extent and achieving high energy efficiency of communication.

Description

面向雾计算的节点计算任务调度方法及其设备Node computing task scheduling method and device for fog calculation 技术领域Technical field
本发明涉及一种面向雾计算的节点计算任务调度方法,同时涉及一种实施该节点计算任务调度方法的雾计算设备,属于计算通信技术领域。The invention relates to a node computing task scheduling method for fog calculation, and relates to a fog computing device for implementing the node computing task scheduling method, which belongs to the technical field of computing communication.
背景技术Background technique
随着网络架构的持续演进,云计算、雾计算等先进的分布式计算概念被陆续提出,用于应对爆发式增长的数据流量需求和低时延业务的挑战。云计算(Cloud Computing)将存储、控制、处理能力都集中在功能强大的云服务器中,利用集中式数据处理和资源管理,提高了网络的资源利用效率和能量效率。雾计算(Fog Computing)是弥散在人们身边的云计算。在雾计算中,数据、数据处理和应用程序集中在网络边缘设备中,而不是全部几乎保存在云服务器中。With the continuous evolution of network architecture, advanced distributed computing concepts such as cloud computing and fog computing have been proposed to cope with the explosive growth of data traffic demand and low latency business challenges. Cloud Computing centralizes storage, control, and processing power in powerful cloud servers, leveraging centralized data processing and resource management to improve network resource utilization efficiency and energy efficiency. Fog Computing is a cloud computing that is scattered around people. In fog computing, data, data processing, and applications are concentrated in network edge devices, rather than being stored almost entirely in cloud servers.
与云计算相比,雾计算主要依赖的不是位于中心位置的云服务器,而是用离本地设备较近的分布式计算机资源。如图1所示,典型的雾计算网络系统利用了从云服务器到网络边缘设备、直至用户设备的计算、存储、通信、管理等功能,形成了从云服务器到终端的连续服务区域。该网络边缘设备可以是传统的网络设备,例如早已部署在网络中的基站、路由器、交换机、网关等,也可以是专门部署的本地服务器。雾计算将云端的边界靠近本地服务器(连接到物联网)的“边缘”,而不像云计算那样将它们几乎全部保存在云中。可见与飘在远端的云计算不同,雾计算就是让计算单元像雾气一样弥散在人们周围,从而实现计算资源最高效的利用。Compared with cloud computing, fog computing relies not on cloud servers in a central location, but on distributed computer resources that are closer to local devices. As shown in FIG. 1 , a typical fog computing network system utilizes functions of computing, storage, communication, management, and the like from a cloud server to a network edge device to a user device, forming a continuous service area from the cloud server to the terminal. The network edge device may be a traditional network device, such as a base station, a router, a switch, a gateway, etc., which has been deployed in the network, or a dedicated local server. Fog computing brings the boundaries of the cloud closer to the "edge" of the local server (connected to the Internet of Things), rather than keeping them almost entirely in the cloud like cloud computing. It can be seen that unlike cloud computing floating at the far end, fog computing is to let the computing unit be dispersed around people like fog, so as to achieve the most efficient use of computing resources.
在雾计算网络系统中,设备与设备之间可以实现直接通信而不需要基站等网络设备的帮助,它能够提升数据传输的频谱效率以及实现高效的负载均衡。基于这些优势,设备间直接通信将会在下一代无线通信中占据主要位置。另一方面,移动应用变得越来越复杂,由于这些复杂的应用具有低时延的需求,使得用户设备需要大量的计算和通信资源来保证实时性。因此,将用户设备的计算任务迁移到临近的空 闲设备,可以实现资源的共享并保证低时延的高效运作,具有很好的应用前景。In the fog computing network system, direct communication between devices and devices can be realized without the help of network devices such as base stations, which can improve the spectral efficiency of data transmission and achieve efficient load balancing. Based on these advantages, direct communication between devices will occupy a major position in next-generation wireless communications. On the other hand, mobile applications are becoming more and more complex, and because of the low latency requirements of these complex applications, user equipment requires a large amount of computing and communication resources to ensure real-time performance. Therefore, migrating the computing tasks of the user equipment to the adjacent idle devices can realize resource sharing and ensure efficient operation with low latency, and has a good application prospect.
发明内容Summary of the invention
本发明所要解决的首要技术问题在于提供一种面向雾计算的节点计算任务调度方法。The primary technical problem to be solved by the present invention is to provide a node computing task scheduling method for fog calculation.
本发明所要解决的又一技术问题在于提供一种实施上述节点计算任务调度方法的雾计算设备。Another technical problem to be solved by the present invention is to provide a fog computing device that implements the above-described node computing task scheduling method.
为实现上述的发明目的,本发明采用下述的技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:
根据本发明实施例的第一方面,提供一种面向雾计算的节点计算任务调度方法,包括如下步骤:According to a first aspect of the embodiments of the present invention, a node computing task scheduling method for fog calculation is provided, including the following steps:
计算用户设备与临近设备之间进行任务计算和任务迁移时的能效;Calculate the energy efficiency when performing task calculation and task migration between the user equipment and the neighboring equipment;
通过数学优化方法,求得用户设备与临近设备进行任务迁移的最优能效通信时间以及相应的任务迁移量;Through the mathematical optimization method, the optimal energy-efficient communication time of the task migration between the user equipment and the neighboring equipment and the corresponding task migration amount are obtained;
承担计算任务的用户设备根据所述最优能效通信时间以及相应的任务迁移量,将计算任务迁移给空闲的临近设备进行计算。The user equipment undertaking the computing task migrates the computing task to the idle neighboring device for calculation according to the optimal energy-efficient communication time and the corresponding task migration amount.
其中较优地,所述用户设备与所述临近设备之间通过机会式频谱共享机制复用蜂窝网络的频谱,实现设备间直接通信。Preferably, the user equipment and the neighboring device multiplex the spectrum of the cellular network by using an opportunistic spectrum sharing mechanism to implement direct communication between devices.
其中较优地,所述用户设备通过时分复用方式或者正交频分多址接入方式将计算任务迁移给所述临近设备。Preferably, the user equipment migrates the computing task to the neighboring device by using a time division multiplexing manner or an orthogonal frequency division multiple access method.
其中较优地,所述能效通过如下公式计算获得:Preferably, the energy efficiency is calculated by the following formula:
Figure PCTCN2018093934-appb-000001
Figure PCTCN2018093934-appb-000001
其中,u ee为能效,l为用户设备的任务迁移量,E i为任务迁移的能量消耗,E re为任务计算的能量消耗,E 0为电路能量消耗,K为正整数。 Among them, u ee is energy efficiency, l is the task migration amount of the user equipment, E i is the energy consumption of the task migration, E re is the energy consumption calculated by the task, E 0 is the circuit energy consumption, and K is a positive integer.
其中较优地,所述任务迁移量
Figure PCTCN2018093934-appb-000002
其中
Figure PCTCN2018093934-appb-000003
表示成功接入第j个频谱资源的概率,
Figure PCTCN2018093934-appb-000004
为第i对设备间直接通信在时隙T内获得的平均传输时间,W和b i,j分别表示带宽和传输的调制方式,i、j均为正整数。
Preferably, the task migration amount
Figure PCTCN2018093934-appb-000002
among them
Figure PCTCN2018093934-appb-000003
Indicates the probability of successfully accessing the jth spectrum resource,
Figure PCTCN2018093934-appb-000004
For the average transmission time obtained in the time slot T for the direct communication between the i-th pair of devices, W and b i,j respectively represent the modulation mode of the bandwidth and the transmission, and i and j are positive integers.
其中较优地,所述任务迁移的能量消耗
Figure PCTCN2018093934-appb-000005
其中
Figure PCTCN2018093934-appb-000006
表示成功接入第j个频谱资源的概率,
Figure PCTCN2018093934-appb-000007
为第i对设备间直接通信在时隙T内获得的平均传输时间,f(b i,j)为任务迁移的功率表达式,i、j均为正整数。
Preferably, the energy consumption of the task migration
Figure PCTCN2018093934-appb-000005
among them
Figure PCTCN2018093934-appb-000006
Indicates the probability of successfully accessing the jth spectrum resource,
Figure PCTCN2018093934-appb-000007
The average transmission time obtained in the time slot T for the direct communication between the i-th pair of devices, f(b i,j ) is the power expression of the task migration, and i and j are positive integers.
其中较优地,
Figure PCTCN2018093934-appb-000008
其中σ 2为噪声功率,ε任务迁移采用调制方式为b i,j时的符号差错概率,φ(d i,i)表示设备间距离为d i,i时的信道衰落参数。
Which is better,
Figure PCTCN2018093934-appb-000008
Where σ 2 is the noise power, ε task migration uses the symbol error probability when the modulation mode is b i,j , and φ(d i,i ) represents the channel fading parameter when the distance between devices is d i,i .
根据本发明实施例的第二方面,提供一种雾计算设备,包括处理器和存储器,所述处理器读取所述存储器中的计算机程序,用于执行以下操作:According to a second aspect of the embodiments of the present invention, there is provided a fog computing device comprising a processor and a memory, the processor reading a computer program in the memory for performing the following operations:
计算本雾计算设备与临近的雾计算设备之间进行任务计算和任务迁移时的能效;Calculating energy efficiency when task calculation and task migration are performed between the fog computing device and the adjacent fog computing device;
通过数学优化方法,求得本雾计算设备与临近的雾计算设备进行任务迁移的最优能效通信时间以及相应的任务迁移量;Through the mathematical optimization method, the optimal energy-efficient communication time and the corresponding task migration amount of the task migration of the fog computing device and the adjacent fog computing device are obtained;
承担计算任务的雾计算设备根据所述最优能效通信时间以及相应的任务迁移量,将计算任务迁移给临近的空闲雾计算设备进行计算。The fog computing device undertaking the computing task migrates the computing task to the adjacent idle fog computing device for calculation according to the optimal energy efficiency communication time and the corresponding task migration amount.
其中较优地,本雾计算设备与临近的雾计算设备之间通过机会式频谱共享机制复用蜂窝网络的频谱,实现设备间直接通信。Preferably, the fog computing device and the adjacent fog computing device multiplex the spectrum of the cellular network through an opportunistic spectrum sharing mechanism to implement direct communication between devices.
其中较优地,本雾计算设备通过时分复用方式或者正交频分多址接入方式将计算任务迁移给临近的雾计算设备。Preferably, the fog computing device migrates the computing task to the adjacent fog computing device by means of time division multiplexing or orthogonal frequency division multiple access.
与现有技术相比较,本发明所提供的节点计算任务调度方法及其设备能够用尽可能少的迁移能量处理处理尽可能多的计算任务。利用本发明,用户设备周边空闲的用户设备(简称为空闲设备)可以实现计算任务的最优迁移,从而共享其计算资源(CPU、GPU等),使得资源受限的用户设备将过多的计算任务(在线游戏、虚拟现实仿真等)迁移到附近资源充足的空闲设备,最大程度地降低了业务时延,实现通信的高能效性。Compared with the prior art, the node computing task scheduling method and device provided by the present invention can process as many computing tasks as possible with as little migration energy as possible. With the present invention, user equipments that are idle around the user equipment (referred to as idle devices) can implement optimal migration of computing tasks, thereby sharing their computing resources (CPU, GPU, etc.), so that resource-constrained user equipments will be excessively calculated. Tasks (online games, virtual reality simulation, etc.) are migrated to nearby idle devices with sufficient resources to minimize business latency and achieve high energy efficiency of communication.
附图说明DRAWINGS
图1为典型的雾计算网络系统的工作场景示例图;1 is a diagram showing an example of a working scenario of a typical fog computing network system;
图2为用于实施本发明的雾计算网络系统的示例图;2 is a diagram showing an example of a fog computing network system for implementing the present invention;
图3为本发明的实施例中,实现计算任务卸载的操作流程图;FIG. 3 is a flowchart of an operation for implementing a task task uninstallation according to an embodiment of the present invention; FIG.
图4为不同的计算任务迁移方法在能效上的性能比较仿真图;Figure 4 is a simulation comparison diagram of performance comparison of different computing task migration methods;
图5为用于实施本发明的雾计算设备的结构示例图。Fig. 5 is a view showing an example of the structure of a fog calculating apparatus for carrying out the present invention.
具体实施方式detailed description
下面结合附图和具体实施例对本发明的技术内容进行详细具体的说明。The technical content of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
在雾计算网络系统中,运算资源对于接入本地网络的不定向用户公开,谁需要使用谁提出申请,以共享方式提高资源利用率,以冗余方式提高整个网络系统的可靠性。在这种运算资源分配方式下,对于其中的任务密集型用户,如果将计算任务迁移到云服务器中,整个网络系统的功率消耗以及数据访问的时延都是比较大的。另一方面,将计算任务迁移到云服务器中,对服务器造成的负担比较重,会影响用户对业务访问的需求。而将计算任务迁移到装备有服务器的临近小基站中,对远端用户同样存在类似的问题。In the fog computing network system, the computing resources are disclosed to the undirected users accessing the local network, who needs to use the application, increase the resource utilization by sharing, and improve the reliability of the entire network system in a redundant manner. In this kind of computing resource allocation mode, for the task-intensive users, if the computing task is migrated to the cloud server, the power consumption of the entire network system and the delay of data access are relatively large. On the other hand, the migration of computing tasks to the cloud server imposes a heavy burden on the server, which affects the user's need for business access. The migration of computing tasks to nearby small base stations equipped with servers also has similar problems for remote users.
为此,本发明所提供的节点计算任务调度方法首先研究了雾计算网络系统进行任务计算和任务迁移时的能量消耗,然后根据系统约束条件采用数学优化方法解决整体能效优化的问题,最后根据数学优化的解得到用户设备与每个临近的用户设备(简称为临近设备)配对传输时实现最优能效的通信时间以及迁移到每个临近设备的最优任务量。To this end, the node computing task scheduling method provided by the present invention firstly studies the energy consumption of the task calculation and task migration of the fog computing network system, and then uses the mathematical optimization method to solve the overall energy efficiency optimization problem according to the system constraints, and finally according to the mathematics. The optimized solution obtains the optimal energy-efficient communication time and the optimal task amount to be migrated to each adjacent device when the user equipment is paired with each adjacent user equipment (referred to as an adjacent device).
下面对上述节点计算任务调度方法展开详细具体的说明。The detailed description of the above-mentioned node calculation task scheduling method will be described below.
首先,结合表1介绍本发明所用到的一些新的技术概念及其参数。First, some new technical concepts and their parameters used in the present invention are introduced in conjunction with Table 1.
Figure PCTCN2018093934-appb-000009
Figure PCTCN2018093934-appb-000009
表1 参数对照关系表Table 1 Parameter comparison table
假设作为雾计算设备的用户设备S需要在一个时隙内计算的任务量为R S,其中有l-bit的任务量需要迁移到临近设备中,而另外的(R S-l)-bit通过自身的中央处理器(CPU)进行计算。一般来说,大部分的任务计算后的结果相对于任务本身来说数据量是很小的,这里可以假设临近设备将计算结果反馈给用户设备的时间和能量开销可以忽略不计。 It is assumed that the user equipment S as the fog computing device needs to calculate the task amount in a time slot as R S , wherein the l-bit task quantity needs to be migrated to the neighboring device, and the other (R S -l)-bit passes. The calculation is performed by its own central processing unit (CPU). In general, most of the calculated results of the task are small relative to the task itself. Here, it can be assumed that the time and energy cost of the neighboring device to feed back the calculation result to the user equipment is negligible.
令蜂窝网络频谱资源块的集合为M={1,2,…,N m},用户设备通过时分复用方式将计算任务迁移到K(K为正整数)个临近设备,任意设备与设备 通信组i可以随机分配任意大小的时间资源τ i,i∈{1,2,…,K}。令第i对设备与设备通信组使用第j个资源块进行任务迁移的功率消耗为P i,j而噪声功率为σ 2Let the set of spectrum resource blocks of the cellular network be M={1, 2, . . . , N m }, and the user equipment migrates the computing task to K (K is a positive integer) neighboring devices by time division multiplexing, and any device communicates with the device. Group i can randomly allocate time resources τ i , i ∈ {1, 2, ..., K} of any size. Let the power consumption of the i-th pair device and device communication group use the jth resource block for task migration is P i,j and the noise power is σ 2 .
假设所有的雾计算设备具有相同的电路功率消耗P 0,相应地在迁移时间T消耗的电路能量为E 0。与传统的能效定义类似,这里的能效考虑了计算任务迁移时的能量消耗E off和任务计算时的能量消耗E comp。因此,本发明中的能效可以定义为最小的能量消耗迁移最多的任务量,考虑用户设备迁移的任务量为l,则能效可以表示为: It is assumed that all of the fog computing devices have the same circuit power consumption P 0 , correspondingly the circuit energy consumed at the migration time T is E 0 . Similar to the traditional energy efficiency definition, the energy efficiency here takes into account the energy consumption E off when the task is migrated and the energy consumption E comp when the task is calculated. Therefore, the energy efficiency in the present invention can be defined as the task amount with the smallest energy consumption migration. Considering the task amount of the user equipment migration is 1, the energy efficiency can be expressed as:
Figure PCTCN2018093934-appb-000010
Figure PCTCN2018093934-appb-000010
另一方面,在雾计算网络系统中,计算任务迁移的常见方式包括以下两种:On the other hand, in the fog computing network system, common methods for calculating task migration include the following two types:
Figure PCTCN2018093934-appb-000011
将计算任务迁移到在云服务器
Figure PCTCN2018093934-appb-000011
Migrate computing tasks to the cloud server
Figure PCTCN2018093934-appb-000012
将计算任务迁移到临近小基站
Figure PCTCN2018093934-appb-000012
Migrate computing tasks to adjacent small base stations
和传统云服务器或者基站端的任务迁移相比,基于设备间直接通信的任务迁移可以根据临近设备的计算资源以及计算能量消耗进行最优能效的任务迁移,保证每个临近设备迁移最优的任务量。因此,基于最优能效的节点计算任务调度方法能否成功应用的关键在于如何根据能效的表达式求解出最优解的问题。Compared with the task migration of the traditional cloud server or the base station, the task migration based on the direct communication between the devices can perform the optimal energy-efficient task migration according to the computing resources of the neighboring devices and the calculation energy consumption, and ensure the optimal task amount for each adjacent device to migrate. . Therefore, the key to the successful application of the task scheduling method based on the optimal energy efficiency is how to solve the optimal solution problem based on the energy efficiency expression.
为解决上述问题,在图2所示的雾计算网络系统中,假设设备间直接通信使用的频谱资源是通过机会式频谱共享机制(即当蜂窝系统没有占用某段频谱资源时,雾计算网络系统复用该段空闲的频谱资源。这种频谱共享机制主要通过雾计算设备对频谱的监测来实现)的方式接入蜂窝通信的频谱资源,根据定义可以得到第i对设备间直接通信在时隙T内获得的平均传输时间为
Figure PCTCN2018093934-appb-000013
其中
Figure PCTCN2018093934-appb-000014
表示成功接入第j个频谱资源的概率。相应地,可以得到第i对设备间通信能够迁移的任务量为
Figure PCTCN2018093934-appb-000015
其中W和b i,j分别表示带宽和传输的调制方式。当任务迁移采用调制方式 为b i,j时的符号差错概率为
In order to solve the above problem, in the fog computing network system shown in FIG. 2, it is assumed that the spectrum resource used for direct communication between devices is through an opportunistic spectrum sharing mechanism (ie, when the cellular system does not occupy a certain spectrum resource, the fog computing network system) Reusing the idle spectrum resource of the segment. The spectrum sharing mechanism mainly accesses the spectrum resource of the cellular communication by means of the monitoring of the spectrum by the fog computing device, and according to the definition, the direct communication between the device of the i-th pair can be obtained in the time slot. The average transmission time obtained in T is
Figure PCTCN2018093934-appb-000013
among them
Figure PCTCN2018093934-appb-000014
Indicates the probability of successfully accessing the jth spectrum resource. Correspondingly, the amount of tasks that can be migrated between the i-th pair of devices can be obtained as
Figure PCTCN2018093934-appb-000015
Where W and b i,j represent the modulation of the bandwidth and transmission , respectively. When the task migration adopts the modulation mode of b i,j , the symbol error probability is
Figure PCTCN2018093934-appb-000016
Figure PCTCN2018093934-appb-000016
其中,χ i,j表示接收的信噪比。根据机会式频谱共享机制的工作原理,可以得到第i对设备间通信的接收信噪比表达式为
Figure PCTCN2018093934-appb-000017
其中φ(d i,i)表示设备间距离为d i,i时的信道衰落参数。
Where χ i,j represents the received signal to noise ratio. According to the working principle of the opportunistic spectrum sharing mechanism, the expression of the received signal to noise ratio of the i-th pair of devices can be obtained as
Figure PCTCN2018093934-appb-000017
Where φ(d i,i ) represents the channel fading parameter when the distance between devices is d i,i .
根据函数关系可以得到误符号率的近似解以及任务迁移的功率表达式为According to the function relationship, the approximate solution of the symbol error rate and the power expression of the task migration are obtained.
Figure PCTCN2018093934-appb-000018
Figure PCTCN2018093934-appb-000018
代入频谱共享功率以及时间资源分配,可以得到第i对设备间通信组的任务迁移的能量消耗为
Figure PCTCN2018093934-appb-000019
其中
Figure PCTCN2018093934-appb-000020
Substituting the spectrum sharing power and the time resource allocation, the energy consumption of the task migration of the i-th pair of inter-device communication groups can be obtained as
Figure PCTCN2018093934-appb-000019
among them
Figure PCTCN2018093934-appb-000020
由于计算任务可以迁移到K个临近设备,总的任务迁移能量消耗可以表示为Since the computing task can be migrated to K neighboring devices, the total task migration energy consumption can be expressed as
Figure PCTCN2018093934-appb-000021
Figure PCTCN2018093934-appb-000021
在X.Chen,L.Jiao,W.Li,and X.Fu共同发表的论文《“Efficient multi-user computation offloading for mobile-edge cloud computing》(刊载于《IEEE/ACM Trans.Networking》,vol.24,no.5,pp.2795-2808,Oct.2016)中,提出了利用设备与设备间通信将计算任务进行迁移的技术思想,但该论文没有充分考虑能效的问题。在本发明中,借鉴该论文所提供的技术思想,假设第i个临近设备计算1-bit任务所需要的CPU周期为C re,i,一个周期的计算所消耗的能量为P re,i。则C re,iP re,i可以表示为计算1-bit所消耗的能量。假设第i个临近设备所需要计算的任务量为l i-bit,则该设备所消耗的计算能量可以表示为E re,i,根 据之前的推导可以得到: "Efficient multi-user computation offloading for mobile-edge cloud computing" (published in IEEE/ACM Trans. Networking, vol.), co-published by X. Chen, L. Jiao, W. Li, and X.Fu. 24, no. 5, pp. 2795-2808, Oct. 2016), the technical idea of using the communication between the device and the device to migrate the computing task is proposed, but the paper does not fully consider the problem of energy efficiency. In the present invention, Referring to the technical idea provided by the paper, it is assumed that the CPU cycle required for the i-th neighboring device to calculate the 1-bit task is C re,i , and the energy consumed for the calculation of one cycle is P re,i . Then C re,i P re,i can be expressed as the energy consumed by the 1-bit calculation. Assuming that the task quantity required to be calculated by the i-th neighboring device is l i -bit, the calculated energy consumed by the device can be expressed as E re,i , According to the previous derivation, you can get:
Figure PCTCN2018093934-appb-000022
Figure PCTCN2018093934-appb-000022
在这里,可以假设不同临近设备的CPU频率可以不同,而同一个设备的CPU频率是固定的。Here, it can be assumed that the CPU frequencies of different neighboring devices can be different, and the CPU frequency of the same device is fixed.
根据上文中推导出的任务计算和任务迁移的能量消耗闭式表达式以及能效的定义,可以得到在迁移计算任务的过程中,整个雾计算网络系统的能效表达式为:According to the energy consumption closed expression and the definition of energy efficiency, which are derived from the above task calculation and task migration, the energy efficiency expression of the entire fog computing network system can be obtained during the migration computing task:
Figure PCTCN2018093934-appb-000023
Figure PCTCN2018093934-appb-000023
为了实现整个雾计算网络系统的最优能效,通过计算可以得到所需要的任务迁移量。因此,根据系统约束条件可以得到需要解决的优化问题为:In order to achieve the optimal energy efficiency of the entire fog computing network system, the required task migration can be obtained through calculation. Therefore, according to the system constraints, the optimization problem that needs to be solved is:
Figure PCTCN2018093934-appb-000024
Figure PCTCN2018093934-appb-000024
s.t. b i,j∈[b min,b max], St b i,j ∈[b min ,b max ],
C re,il i≤C i, C re,i l i ≤C i ,
Figure PCTCN2018093934-appb-000025
Figure PCTCN2018093934-appb-000025
l i≥0, l i ≥ 0,
τ i≥0. τ i ≥0.
将上述优化问题可以转化为等价的低复杂度问题
Figure PCTCN2018093934-appb-000026
其中
Figure PCTCN2018093934-appb-000027
Figure PCTCN2018093934-appb-000028
通过数学优化方法,可以求得每对设备间直接通信组i进行任务迁移的最优能效通信时间
Figure PCTCN2018093934-appb-000029
以及相应的任务迁移量
Figure PCTCN2018093934-appb-000030
Transform the above optimization problem into an equivalent low complexity problem
Figure PCTCN2018093934-appb-000026
among them
Figure PCTCN2018093934-appb-000027
Figure PCTCN2018093934-appb-000028
Through the mathematical optimization method, the optimal energy-efficient communication time for task migration of the direct communication group i between each pair of devices can be obtained.
Figure PCTCN2018093934-appb-000029
And the corresponding task migration
Figure PCTCN2018093934-appb-000030
最后,承担计算任务的雾计算设备根据最优能效通信时间
Figure PCTCN2018093934-appb-000031
以及相应的任务迁移量
Figure PCTCN2018093934-appb-000032
将计算任务迁移给空闲的临近设备进行计算。当需要进行任务迁移时,数据发送端采用最优能效的调制方式进行数据传输。所谓最优能效的调制方式是指数据传输的符号中包含最优能效的比特数量,即优化问题求解的b i,j
Finally, the fog computing device that undertakes the computing task is based on the optimal energy efficiency communication time.
Figure PCTCN2018093934-appb-000031
And the corresponding task migration
Figure PCTCN2018093934-appb-000032
Migrate computing tasks to idle neighbors for calculation. When task migration is required, the data transmitting end uses the optimal energy-efficient modulation mode for data transmission. The so-called optimal energy efficiency modulation method refers to the number of bits containing the optimal energy efficiency in the symbols of data transmission, that is, b i,j for solving the optimization problem.
下面结合一个具体实施例对本发明所提供的节点计算任务调度方法进行说明。在该实施例中,雾计算网络系统中的任务设备S和临近设备B能够配对进行通信。任务设备S需要进行计算任务卸载。由于这些设备之间的直接通信没有自己的频谱资源,需要复用蜂窝网络的频谱资源。因此,假设使用蜂窝网络中的频谱资源实现设备间直接通信,并且通过机会式频谱共享机制复用蜂窝网络的频谱。参见图3所示,该实施例中实现计算任务卸载的具体步骤如下:The node computing task scheduling method provided by the present invention is described below in conjunction with a specific embodiment. In this embodiment, the mission device S and the neighboring device B in the fog computing network system are capable of pairing for communication. The task device S needs to perform a computing task uninstallation. Since direct communication between these devices does not have its own spectrum resources, it is necessary to multiplex the spectrum resources of the cellular network. Therefore, it is assumed that spectrum resources in a cellular network are used to implement direct communication between devices, and the spectrum of the cellular network is multiplexed by an opportunistic spectrum sharing mechanism. Referring to FIG. 3, the specific steps for implementing the uninstallation of the computing task in this embodiment are as follows:
步骤A1:根据需要迁移的整个任务量以及迁移能量、计算能量消耗,得到能效表达式:Step A1: According to the total amount of tasks to be migrated and the energy of the migration, calculate the energy consumption, and obtain an energy efficiency expression:
Figure PCTCN2018093934-appb-000033
Figure PCTCN2018093934-appb-000033
步骤A2:根据系统约束条件得到计算任务迁移的能效优化问题Step A2: Energy efficiency optimization problem of computing task migration according to system constraints
Figure PCTCN2018093934-appb-000034
Figure PCTCN2018093934-appb-000034
步骤A3:根据能效闭式表达式的形式,将上述优化问题等价为低复杂度的优化问题
Figure PCTCN2018093934-appb-000035
Step A3: According to the form of the energy-efficient closed expression, the above optimization problem is equivalent to the low complexity optimization problem
Figure PCTCN2018093934-appb-000035
步骤A4:通过数学优化方法得到最优的时间资源分配
Figure PCTCN2018093934-appb-000036
和任务迁移量
Figure PCTCN2018093934-appb-000037
Step A4: Obtain optimal time resource allocation by mathematical optimization method
Figure PCTCN2018093934-appb-000036
And task migration
Figure PCTCN2018093934-appb-000037
步骤A5:假设任务设备S有K个临近设备,任务设备S通过TDMA(时分多址)方式或者正交频分多址接入方式(采用该方式需要结合多天线技术),基于上述最优的时间资源分配
Figure PCTCN2018093934-appb-000038
和任务迁移量
Figure PCTCN2018093934-appb-000039
将计算任务分别迁移到这K个临近设备中。
Step A5: It is assumed that the task device S has K neighboring devices, and the task device S passes the TDMA (Time Division Multiple Access) mode or the orthogonal frequency division multiple access mode (which requires combining multiple antenna technologies), based on the above optimal Time resource allocation
Figure PCTCN2018093934-appb-000038
And task migration
Figure PCTCN2018093934-appb-000039
Migrate computing tasks to these K neighboring devices.
在求解算法最优解的过程中,最优的任务迁移量的计算方法可以通过低复杂度的算法得到。具体地说,首先将原始优化问题转化为如下问题:In the process of solving the optimal solution of the algorithm, the optimal calculation method of task migration can be obtained by a low complexity algorithm. Specifically, the original optimization problem is first translated into the following questions:
Figure PCTCN2018093934-appb-000040
Figure PCTCN2018093934-appb-000040
其中,
Figure PCTCN2018093934-appb-000041
然后,证明上述优化问题等价于求解如下问题:
among them,
Figure PCTCN2018093934-appb-000041
Then, it is proved that the above optimization problem is equivalent to solving the following problems:
Figure PCTCN2018093934-appb-000042
Figure PCTCN2018093934-appb-000042
最后,通过低计算复杂度的迭代凸优化方法可以求解得到最优解。Finally, the optimal solution can be solved by the iterative convex optimization method with low computational complexity.
图4显示了不同的计算任务迁移方法在能效上的性能比较仿真结果。从仿真结果对比可以看到,本发明所提供的最优能效(包括最优时间分配和最优迁移速率)的计算任务迁移方案在性能上总是优于传统的方案。并且,在同样的时间资源分配条件下,选择最优能效的传输速率进行任务迁移会在性能上有很大的增益。Figure 4 shows the performance comparison simulation results of different computational task migration methods in terms of energy efficiency. It can be seen from the comparison of the simulation results that the computational task migration scheme of the optimal energy efficiency (including optimal time allocation and optimal migration rate) provided by the present invention is always superior to the conventional scheme in performance. Moreover, under the same time resource allocation conditions, selecting the optimal energy efficiency transmission rate for task migration will have a great performance gain.
进一步地,本发明还提供一种实施上述节点计算任务调度方法的雾计算设备。如图5所示,该雾计算设备至少包括处理器和存储器,还可以根据实际需要进一步包括通信组件、传感器组件、电源组件、多媒体组件及输入/输出接口。其中,存储器、通信组件、传感器组件、电源组件、多媒体组件及输入/输出接口均与该处理器连接。在本发明的实施例中,雾计算设备中的存储器可以是静态随机存取存储器(SRAM)、电可擦除可编程只读存储器(EEPROM)、可擦除可编程只读存储器(EPROM)、可编程只读存储器(PROM)、只读存储器(ROM)、磁存储器、快闪存储器等,处理器可以是中央处理器(CPU)、图形处理器(GPU)、现场可编程逻辑 门阵列(FPGA)、专用集成电路(ASIC)、数字信号处理(DSP)芯片等。其它通信组件、传感器组件、电源组件、多媒体组件等均可以采用现有智能手机中的通用部件实现,在此就不具体说明了。Further, the present invention also provides a fog computing device that implements the above node computing task scheduling method. As shown in FIG. 5, the fog computing device includes at least a processor and a memory, and further includes a communication component, a sensor component, a power component, a multimedia component, and an input/output interface according to actual needs. The memory, the communication component, the sensor component, the power component, the multimedia component, and the input/output interface are all connected to the processor. In an embodiment of the invention, the memory in the fog computing device may be a static random access memory (SRAM), an electrically erasable programmable read only memory (EEPROM), an erasable programmable read only memory (EPROM), Programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, etc., the processor can be a central processing unit (CPU), graphics processing unit (GPU), field programmable logic gate array (FPGA) ), application specific integrated circuits (ASIC), digital signal processing (DSP) chips, and the like. Other communication components, sensor components, power components, multimedia components, and the like can be implemented by using common components in existing smart phones, and are not specifically described herein.
在上述的雾计算设备中,处理器读取存储器中的计算机程序,用于执行以下操作:计算用户设备与临近设备之间进行任务计算和任务迁移时的能量消耗;通过数学优化方法,求得用户设备与临近设备进行任务迁移的最优能效通信时间以及相应的任务迁移量;承担计算任务的用户设备根据最优能效通信时间以及相应的任务迁移量,将计算任务迁移给空闲的临近设备进行计算。作为优选方案之一,用户设备与临近设备之间通过机会式频谱共享机制复用蜂窝网络的频谱,实现设备间直接通信。作为优选方案之二,用户设备通过时分复用方式将计算任务迁移给临近设备。In the above-mentioned fog computing device, the processor reads a computer program in the memory for performing the following operations: calculating energy consumption when performing task calculation and task migration between the user equipment and the adjacent device; obtaining by mathematical optimization method The optimal energy-efficient communication time of the user equipment and the adjacent equipment for task migration and the corresponding task migration amount; the user equipment undertaking the calculation task migrates the calculation task to the idle neighboring device according to the optimal energy-efficient communication time and the corresponding task migration amount. Calculation. As one of the preferred solutions, the user equipment and the neighboring device multiplex the spectrum of the cellular network through an opportunistic spectrum sharing mechanism to implement direct communication between devices. As a second preferred solution, the user equipment migrates the computing task to the neighboring device by means of time division multiplexing.
与现有技术相比较,本发明从资源利用率的角度考虑最优的计算任务迁移方案,在利用设备间直接通信的方式迁移计算任务的同时,考虑了如何以最优能效将这些任务分配给不同的临近设备,并且求解了最优的任务迁移量。利用本发明,用户设备周边的空闲设备可以实现计算任务的最优迁移,从而共享其计算资源(CPU、GPU等),使得资源受限的用户设备将过多的计算任务(在线游戏、虚拟现实仿真等)迁移到附近资源充足的空闲设备,最大程度地降低了业务时延,实现通信的高能效性。Compared with the prior art, the present invention considers an optimal computing task migration scheme from the perspective of resource utilization, and uses the direct communication between devices to migrate computing tasks while considering how to allocate these tasks to the optimal energy efficiency. Different proximity devices and solved the optimal task migration. With the present invention, idle devices around the user equipment can achieve optimal migration of computing tasks, thereby sharing their computing resources (CPU, GPU, etc.), so that resource-constrained user equipment will have too many computing tasks (online games, virtual reality) Simulation, etc.) migrate to idle devices with sufficient resources nearby, minimizing service delay and achieving high energy efficiency of communication.
上面对本发明所提供的面向雾计算的节点计算任务调度方法及其设备进行了详细的说明。对本领域的一般技术人员而言,在不背离本发明实质精神的前提下对它所做的任何显而易见的改动,都将构成对本发明专利权的侵犯,将承担相应地法律责任。The node calculation task scheduling method and device for fog calculation provided by the present invention are described in detail above. Any obvious changes made to the invention without departing from the spirit of the invention will constitute an infringement of the patent right of the present invention and will bear corresponding legal liabilities.

Claims (10)

  1. 一种面向雾计算的节点计算任务调度方法,其特征在于包括如下步骤:A node computing task scheduling method for fog computing, comprising the following steps:
    计算用户设备与临近设备之间进行任务计算和任务迁移时的能效;Calculate the energy efficiency when performing task calculation and task migration between the user equipment and the neighboring equipment;
    通过数学优化方法,求得用户设备与临近设备进行任务迁移的最优能效通信时间以及相应的任务迁移量;Through the mathematical optimization method, the optimal energy-efficient communication time of the task migration between the user equipment and the neighboring equipment and the corresponding task migration amount are obtained;
    承担计算任务的用户设备根据所述最优能效通信时间以及相应的任务迁移量,将计算任务迁移给空闲的临近设备进行计算。The user equipment undertaking the computing task migrates the computing task to the idle neighboring device for calculation according to the optimal energy-efficient communication time and the corresponding task migration amount.
  2. 如权利要求1所述的节点计算任务调度方法,其特征在于:The node computing task scheduling method according to claim 1, wherein:
    所述用户设备与所述临近设备之间通过机会式频谱共享机制复用蜂窝网络的频谱,实现设备间直接通信。The user equipment and the neighboring device multiplex the spectrum of the cellular network through an opportunistic spectrum sharing mechanism to implement direct communication between devices.
  3. 如权利要求1所述的节点计算任务调度方法,其特征在于:The node computing task scheduling method according to claim 1, wherein:
    所述用户设备通过时分复用方式或者正交频分多址接入方式将计算任务迁移给所述临近设备。The user equipment migrates the computing task to the neighboring device by means of time division multiplexing or orthogonal frequency division multiple access.
  4. 如权利要求1所述的节点计算任务调度方法,其特征在于所述能效通过如下公式计算获得:The node computing task scheduling method according to claim 1, wherein the energy efficiency is calculated by the following formula:
    Figure PCTCN2018093934-appb-100001
    Figure PCTCN2018093934-appb-100001
    其中,u ee为能效,l为用户设备的任务迁移量,E i为任务迁移的能量消耗,E re为任务计算的能量消耗,E 0为电路能量消耗,K为正整数。 Among them, u ee is energy efficiency, l is the task migration amount of the user equipment, E i is the energy consumption of the task migration, E re is the energy consumption calculated by the task, E 0 is the circuit energy consumption, and K is a positive integer.
  5. 如权利要求4所述的节点计算任务调度方法,其特征在于:The node computing task scheduling method according to claim 4, wherein:
    所述任务迁移量
    Figure PCTCN2018093934-appb-100002
    其中
    Figure PCTCN2018093934-appb-100003
    表示成功接入第j个频谱资源的概率,
    Figure PCTCN2018093934-appb-100004
    为第i对设备间直接通信在时隙T内获得的平均传输时间,W和b i,j分别表示带宽和传输的调制方式,i、j均为正整数。
    Task migration
    Figure PCTCN2018093934-appb-100002
    among them
    Figure PCTCN2018093934-appb-100003
    Indicates the probability of successfully accessing the jth spectrum resource,
    Figure PCTCN2018093934-appb-100004
    For the average transmission time obtained in the time slot T for the direct communication between the i-th pair of devices, W and b i,j respectively represent the modulation mode of the bandwidth and the transmission, and i and j are positive integers.
  6. 如权利要求4所述的节点计算任务调度方法,其特征在于:The node computing task scheduling method according to claim 4, wherein:
    所述任务迁移的能量消耗
    Figure PCTCN2018093934-appb-100005
    其中
    Figure PCTCN2018093934-appb-100006
    表示成功接入第j个频谱资源的概率,
    Figure PCTCN2018093934-appb-100007
    为第i对设备间直接通信在时隙T内获得的平均传输时间,f(b i,j)为任务迁移的功率表达式,i、j均为正整数。
    Energy consumption of the task migration
    Figure PCTCN2018093934-appb-100005
    among them
    Figure PCTCN2018093934-appb-100006
    Indicates the probability of successfully accessing the jth spectrum resource,
    Figure PCTCN2018093934-appb-100007
    The average transmission time obtained in the time slot T for the direct communication between the i-th pair of devices, f(b i,j ) is the power expression of the task migration, and i and j are positive integers.
  7. 如权利要求6所述的节点计算任务调度方法,其特征在于:The node computing task scheduling method according to claim 6, wherein:
    Figure PCTCN2018093934-appb-100008
    其中σ 2为噪声功率,ε任务迁移采用调制方式为b i,j时的符号差错概率,φ(d i,i)表示设备间距离为d i,i时的信道衰落参数。
    Figure PCTCN2018093934-appb-100008
    Where σ 2 is the noise power, ε task migration uses the symbol error probability when the modulation mode is b i,j , and φ(d i,i ) represents the channel fading parameter when the distance between devices is d i,i .
  8. 一种雾计算设备,其特征在于包括处理器和存储器,所述处理器读取所述存储器中的计算机程序,用于执行以下操作:A fog computing device is characterized by comprising a processor and a memory, the processor reading a computer program in the memory for performing the following operations:
    计算本雾计算设备与临近的雾计算设备之间进行任务计算和任务迁移时的能效;Calculating energy efficiency when task calculation and task migration are performed between the fog computing device and the adjacent fog computing device;
    通过数学优化方法,求得本雾计算设备与临近的雾计算设备进行任务迁移的最优能效通信时间以及相应的任务迁移量;Through the mathematical optimization method, the optimal energy-efficient communication time and the corresponding task migration amount of the task migration of the fog computing device and the adjacent fog computing device are obtained;
    承担计算任务的雾计算设备根据所述最优能效通信时间以及相应的任务迁移量,将计算任务迁移给临近的空闲雾计算设备进行计算。The fog computing device undertaking the computing task migrates the computing task to the adjacent idle fog computing device for calculation according to the optimal energy efficiency communication time and the corresponding task migration amount.
  9. 如权利要求8所述的雾计算设备,其特征在于:The fog computing device of claim 8 wherein:
    本雾计算设备与临近的雾计算设备之间通过机会式频谱共享机制复用蜂窝网络的频谱,实现设备间直接通信。The fog computing device and the adjacent fog computing device multiplex the spectrum of the cellular network through an opportunistic spectrum sharing mechanism to implement direct communication between devices.
  10. 如权利要求8所述的雾计算设备,其特征在于:The fog computing device of claim 8 wherein:
    本雾计算设备通过时分复用方式或者正交频分多址接入方式将计算任务迁移给临近的雾计算设备。The fog computing device migrates the computing task to the adjacent fog computing device by means of time division multiplexing or orthogonal frequency division multiple access.
PCT/CN2018/093934 2018-04-20 2018-06-30 Fog computing-oriented node computing task scheduling method and device thereof WO2019200716A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810360061.7A CN110392079B (en) 2018-04-20 2018-04-20 Node computing task scheduling method and device for fog computing
CN201810360061.7 2018-04-20

Publications (1)

Publication Number Publication Date
WO2019200716A1 true WO2019200716A1 (en) 2019-10-24

Family

ID=68240443

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/093934 WO2019200716A1 (en) 2018-04-20 2018-06-30 Fog computing-oriented node computing task scheduling method and device thereof

Country Status (2)

Country Link
CN (1) CN110392079B (en)
WO (1) WO2019200716A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111010295A (en) * 2019-11-28 2020-04-14 国网甘肃省电力公司电力科学研究院 SDN-MEC-based power distribution and utilization communication network task migration method
CN111970154A (en) * 2020-08-24 2020-11-20 浙江工商大学 Unloading decision and resource allocation method based on deep reinforcement learning and convex optimization
CN112231085A (en) * 2020-10-21 2021-01-15 中国电子科技集团公司第二十八研究所 Mobile terminal task migration method based on time perception in collaborative environment
CN112272198A (en) * 2020-09-03 2021-01-26 中国空间技术研究院 Satellite network-oriented collaborative computing task migration method and device
CN112416554A (en) * 2020-11-20 2021-02-26 北京邮电大学 Task migration method and device, electronic equipment and storage medium
CN112787920A (en) * 2021-03-03 2021-05-11 厦门大学 Underwater acoustic communication edge calculation time delay and energy consumption optimization method for ocean Internet of things
CN112867066A (en) * 2021-01-26 2021-05-28 南京邮电大学 Edge calculation migration method based on 5G multi-cell deep reinforcement learning
CN113037805A (en) * 2021-05-11 2021-06-25 福州大学 Multi-instance micro-service migration method facing mobile edge calculation
CN114077491A (en) * 2020-08-18 2022-02-22 中国科学院沈阳自动化研究所 Industrial intelligent manufacturing edge calculation task scheduling method

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111614735B (en) * 2020-04-30 2022-03-22 河南大学 Novel fog computing architecture based on weighted round robin algorithm and task scheduling method thereof
CN111773662B (en) * 2020-06-29 2024-08-06 山东浪潮科学研究院有限公司 Cloud game acceleration method, system, device and medium based on fog calculation
CN111866181B (en) * 2020-08-10 2022-05-13 重庆邮电大学 Block chain-based task unloading optimization method in fog network
CN113010320B (en) * 2021-04-02 2022-08-02 曲阜师范大学 Network data unloading method and device and computer storage medium
CN114189521B (en) * 2021-12-15 2024-01-26 福州大学 Method for collaborative computing offloading in F-RAN architecture

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016018332A1 (en) * 2014-07-31 2016-02-04 Hewlett-Packard Development Company, L.P. Data storage in fog computing
CN105610944A (en) * 2015-12-29 2016-05-25 北京物联远信息技术有限公司 IOT-oriented fog computing architecture
CN106909449A (en) * 2017-01-11 2017-06-30 西可通信技术设备(河源)有限公司 A kind of computation migration method and apparatus of program of mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9083709B2 (en) * 2012-05-11 2015-07-14 Cisco Technology, Inc. Virtual internet protocol migration and load balancing
CN104202373B (en) * 2014-08-21 2017-12-12 清华大学深圳研究生院 Mobile cloud computing moving method and system
CN105227645A (en) * 2015-09-15 2016-01-06 齐鲁工业大学 A kind of cloud data migration method
CN106572185A (en) * 2016-11-10 2017-04-19 北京邮电大学 Method and apparatus for cooperative work of nodes in mobile Internet system
CN107819662B (en) * 2017-11-23 2019-10-18 电子科技大学 A kind of service function chain real-time migration method calculating network applied to cloud and mist

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016018332A1 (en) * 2014-07-31 2016-02-04 Hewlett-Packard Development Company, L.P. Data storage in fog computing
CN105610944A (en) * 2015-12-29 2016-05-25 北京物联远信息技术有限公司 IOT-oriented fog computing architecture
CN106909449A (en) * 2017-01-11 2017-06-30 西可通信技术设备(河源)有限公司 A kind of computation migration method and apparatus of program of mobile terminal

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111010295A (en) * 2019-11-28 2020-04-14 国网甘肃省电力公司电力科学研究院 SDN-MEC-based power distribution and utilization communication network task migration method
CN111010295B (en) * 2019-11-28 2022-09-16 国网甘肃省电力公司电力科学研究院 SDN-MEC-based power distribution and utilization communication network task migration method
CN114077491B (en) * 2020-08-18 2024-05-24 中国科学院沈阳自动化研究所 Industrial intelligent manufacturing edge computing task scheduling method
CN114077491A (en) * 2020-08-18 2022-02-22 中国科学院沈阳自动化研究所 Industrial intelligent manufacturing edge calculation task scheduling method
CN111970154A (en) * 2020-08-24 2020-11-20 浙江工商大学 Unloading decision and resource allocation method based on deep reinforcement learning and convex optimization
CN111970154B (en) * 2020-08-24 2022-06-10 浙江工商大学 Unloading decision and resource allocation method based on deep reinforcement learning and convex optimization
CN112272198A (en) * 2020-09-03 2021-01-26 中国空间技术研究院 Satellite network-oriented collaborative computing task migration method and device
CN112272198B (en) * 2020-09-03 2024-04-09 中国空间技术研究院 Collaborative computing task migration method and device for satellite network
CN112231085A (en) * 2020-10-21 2021-01-15 中国电子科技集团公司第二十八研究所 Mobile terminal task migration method based on time perception in collaborative environment
CN112416554A (en) * 2020-11-20 2021-02-26 北京邮电大学 Task migration method and device, electronic equipment and storage medium
CN112416554B (en) * 2020-11-20 2022-12-02 北京邮电大学 Task migration method and device, electronic equipment and storage medium
CN112867066B (en) * 2021-01-26 2022-07-29 南京邮电大学 Edge calculation migration method based on 5G multi-cell deep reinforcement learning
CN112867066A (en) * 2021-01-26 2021-05-28 南京邮电大学 Edge calculation migration method based on 5G multi-cell deep reinforcement learning
CN112787920B (en) * 2021-03-03 2021-11-19 厦门大学 Underwater acoustic communication edge calculation time delay and energy consumption optimization method for ocean Internet of things
CN112787920A (en) * 2021-03-03 2021-05-11 厦门大学 Underwater acoustic communication edge calculation time delay and energy consumption optimization method for ocean Internet of things
CN113037805B (en) * 2021-05-11 2022-07-08 福州大学 Multi-instance micro-service migration method facing mobile edge calculation
CN113037805A (en) * 2021-05-11 2021-06-25 福州大学 Multi-instance micro-service migration method facing mobile edge calculation

Also Published As

Publication number Publication date
CN110392079A (en) 2019-10-29
CN110392079B (en) 2021-10-26

Similar Documents

Publication Publication Date Title
WO2019200716A1 (en) Fog computing-oriented node computing task scheduling method and device thereof
Hu et al. Wireless powered cooperation-assisted mobile edge computing
Liang et al. Multi-cell mobile edge computing: Joint service migration and resource allocation
Zhao et al. Energy-saving offloading by jointly allocating radio and computational resources for mobile edge computing
CN109814951B (en) Joint optimization method for task unloading and resource allocation in mobile edge computing network
Pham et al. Decentralized computation offloading and resource allocation for mobile-edge computing: A matching game approach
You et al. Asynchronous mobile-edge computation offloading: Energy-efficient resource management
Dinh et al. Offloading in mobile edge computing: Task allocation and computational frequency scaling
Ti et al. Computation offloading leveraging computing resources from edge cloud and mobile peers
CN113574842B (en) Method and system for optimizing processing of application requests
CN107241767A (en) The method and device that a kind of mobile collaboration is calculated
Deng et al. Throughput maximization for multiedge multiuser edge computing systems
Jian et al. Joint computation offloading and resource allocation in C-RAN with MEC based on spectrum efficiency
Kim et al. Task popularity-based energy minimized computation offloading for fog computing wireless networks
CN111511028B (en) Multi-user resource allocation method, device, system and storage medium
Feng et al. Energy-efficient user selection and resource allocation in mobile edge computing
CN112788698B (en) Data processing method and device and terminal equipment
Paymard et al. Resource allocation in PD‐NOMA–based mobile edge computing system: multiuser and multitask priority
WO2019051798A1 (en) Resource allocation method and apparatus, and computer storage medium
Huang et al. Distributed resource allocation for network slicing of bandwidth and computational resource
Nguyen et al. Joint computation offloading and resource allocation in cloud based wireless HetNets
Nguyen et al. Joint computation offloading, SFC placement, and resource allocation for multi-site MEC systems
Jing et al. Long-term max-min fairness guarantee mechanism for integrated multi-RAT and MEC networks
Ren et al. Multi-Slice Joint Task Offloading and Resource Allocation Scheme for Massive MIMO Enabled Network.
Mahbub et al. Joint energy and latency-sensitive computation and communication resource allocation for multi-access edge computing in a two-tier 5G HetNet

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18915298

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18915298

Country of ref document: EP

Kind code of ref document: A1