[go: up one dir, main page]

WO2024230352A1 - Task unloading method and apparatus for mobile edge computing, device, and medium - Google Patents

Task unloading method and apparatus for mobile edge computing, device, and medium Download PDF

Info

Publication number
WO2024230352A1
WO2024230352A1 PCT/CN2024/084530 CN2024084530W WO2024230352A1 WO 2024230352 A1 WO2024230352 A1 WO 2024230352A1 CN 2024084530 W CN2024084530 W CN 2024084530W WO 2024230352 A1 WO2024230352 A1 WO 2024230352A1
Authority
WO
WIPO (PCT)
Prior art keywords
overhead
target
cost
task
energy consumption
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
PCT/CN2024/084530
Other languages
French (fr)
Chinese (zh)
Inventor
杨乐
阚宏伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain Intelligent Technology Co Ltd
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 Suzhou Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Publication of WO2024230352A1 publication Critical patent/WO2024230352A1/en
Anticipated expiration legal-status Critical
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • 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
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application belongs to the field of edge computing technology, and in particular, relates to a task offloading method, device, equipment and medium for mobile edge computing.
  • Mobile edge computing provides cloud services and IT (Information Technology) environment services for application developers and service providers at the edge of the network.
  • IT Information Technology
  • the goal is to provide computing, storage and network bandwidth close to data input or users.
  • users' computing and data demands for mobile terminal devices are gradually increasing, and accordingly, there are higher requirements for storage capacity and processor processing power.
  • the early offloading decision method for the pending computing tasks of the mobile terminal device is not perfect, and the offloading decision effect is poor.
  • the present application provides a task offloading method, apparatus, device and medium for mobile edge computing, so as to solve the problem that the early offloading decision method for the tasks to be calculated of the mobile terminal device is imperfect and the offloading decision effect is poor.
  • the present application provides a task offloading method for mobile edge computing, the method comprising:
  • the mobile edge computing system For any server among the multiple servers included in the mobile edge computing system, obtain a second delay overhead required for the server to process the task to be calculated, and obtain a second energy consumption overhead and a second cost overhead required for the server to process the task to be calculated, and determine a second target overhead based on the second delay overhead, the second energy consumption overhead and the second cost overhead; the second target overhead is used to characterize the estimated overhead of offloading the task to be calculated to the server;
  • an offloading strategy for the task to be calculated is determined; the offloading strategy includes offloading the task to be calculated to a mobile terminal or offloading the task to be calculated to a target server; the target server belongs to multiple servers.
  • obtaining a first delay overhead and a first energy consumption overhead required for a mobile terminal in a mobile edge computing system to process a task to be calculated includes:
  • the first preset formula is: c u d u represents the number of operating cycles, fu represents the processor frequency, represents the first delay overhead;
  • the second preset formula is: ⁇ represents the effective capacitance coefficient, Represents the first energy consumption cost.
  • obtaining the second delay overhead, the second energy consumption overhead, and the second cost overhead required by the server to process the task to be calculated includes:
  • the third preset formula is: represents the target processing time, Indicates the target upload time. Indicates the second delay overhead.
  • obtaining the second energy consumption and the second cost required by the server to process the task to be calculated includes:
  • the fourth preset formula is: Indicates the target upload energy consumption, represents the target idle energy consumption, represents the second energy consumption overhead;
  • the target upload energy consumption is the estimated energy consumption of uploading the task to be calculated to the server, and the target idle energy consumption is the estimated idle energy consumption when the mobile terminal is waiting for the server to process the task to be calculated;
  • the method after determining the first latency overhead based on the first preset formula, the number of operating cycles, and the processor frequency, the method includes:
  • the offloading strategy of the task to be calculated is directly determined to offload the task to be calculated to the target server.
  • determining the first energy consumption cost based on the second preset formula, the number of operating cycles, the processor frequency, and the effective capacitance coefficient includes:
  • the first energy consumption overhead is determined based on a second preset formula, the number of operating cycles, the processor frequency, and the effective capacitance coefficient.
  • the second energy consumption overhead is determined based on the fourth preset formula, the target upload energy consumption, and the target idle energy consumption, including:
  • the second energy consumption overhead is determined based on a fourth preset formula, the target upload energy consumption, and the target idle energy consumption.
  • the method further comprises:
  • the offloading strategy of the task to be calculated is directly determined to offload the task to be calculated to the mobile terminal.
  • the method further comprises:
  • the delay weight coefficient and energy consumption weight coefficient are preset.
  • Determining a first target cost based on the first delay cost and the first energy consumption cost includes:
  • the sixth preset formula is: ⁇ 1 represents the delay weight coefficient, represents the first delay overhead, ⁇ 2 represents the energy consumption weight coefficient, represents the first energy consumption, Indicates the first target cost.
  • the method further comprises:
  • Determining a second target overhead based on the second delay overhead, the second energy consumption overhead, and the second cost overhead includes:
  • the seventh preset formula is: ⁇ 1 represents the delay weight coefficient, represents the second delay overhead, ⁇ 2 represents the energy consumption weight coefficient, represents the second energy consumption cost, ⁇ 3 represents the cost weight coefficient, b uv represents the second cost cost, Indicates the secondary target cost.
  • determining the second target cost includes:
  • the second target overhead is determined based on the seventh preset formula, the product of the delay weight coefficient and the second delay overhead, the product of the energy consumption weight coefficient and the second energy consumption overhead, and the product of the cost weight coefficient and the second cost overhead.
  • determining an offloading strategy for a task to be calculated based on a first target cost and a plurality of second target costs corresponding to a plurality of servers includes:
  • an offloading strategy for the task to be calculated is determined.
  • the method includes:
  • Determining, based on multiple second target costs corresponding to multiple servers, a second target cost with the smallest value among the multiple second target costs as the minimum target cost includes:
  • the second target cost with the smallest value in the target decision list is obtained as the minimum target cost.
  • determining an offloading strategy for a task to be calculated based on a minimum target overhead and a first target overhead includes:
  • determining the offloading strategy of the task to be calculated is to offload the task to be calculated to the target server;
  • the offloading strategy of the task to be calculated is determined to be offloading the task to be calculated to the mobile terminal.
  • determining the offloading strategy of the task to be calculated based on the minimum target cost and the first target cost further includes:
  • the value of the delay weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is the largest, then based on the relationship between the first delay overhead and the second delay overhead corresponding to the minimum target overhead, determine the offloading strategy of the task to be calculated;
  • the value of the energy consumption weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is the largest, then based on the relationship between the first energy consumption overhead and the second energy consumption overhead corresponding to the minimum target overhead, determine the offloading strategy of the task to be calculated;
  • the offloading strategy of the task to be calculated is directly determined to be offloading the task to be calculated to the mobile terminal.
  • determining the offloading strategy of the task to be calculated includes:
  • determining the offloading strategy of the task to be calculated is to offload the task to be calculated to the target server;
  • determining the offloading strategy of the task to be calculated is to offload the task to be calculated to the mobile terminal;
  • the offloading strategy of the task to be calculated is determined based on the second energy consumption overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead.
  • determining the offloading strategy of the task to be calculated includes:
  • determining the offloading strategy of the task to be calculated is to offload the task to be calculated to the target server;
  • determining the offloading strategy of the task to be calculated is to offload the task to be calculated to the mobile terminal;
  • the offloading strategy of the task to be calculated is determined based on the second delay overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead.
  • the present application provides a task offloading device for mobile edge computing, the device comprising:
  • a first acquisition module is used to acquire a first delay overhead and a first energy consumption overhead required by a mobile terminal in a mobile edge computing system to process a task to be calculated, and determine a first target overhead based on the first delay overhead and the first energy consumption overhead; the first target overhead is used to characterize an estimated overhead of offloading the task to be calculated to the mobile terminal;
  • a second acquisition module is used to obtain, for any server among the multiple servers included in the mobile edge computing system, a second delay overhead required for the server to process the task to be calculated, as well as a second energy consumption overhead and a second cost overhead required for the server to process the task to be calculated, and determine a second target overhead based on the second delay overhead, the second energy consumption overhead and the second cost overhead; the second target overhead is used to characterize the estimated overhead of offloading the task to be calculated to the server;
  • the first determination module is used to determine the unloading strategy of the task to be calculated based on the first target overhead and multiple second target overheads corresponding to multiple servers; the unloading strategy includes unloading the task to be calculated to a mobile terminal or unloading the task to be calculated to a target server; the target server belongs to multiple servers.
  • the first acquisition module includes:
  • a first acquisition submodule is used to acquire the number of operation cycles of the local processor, the processor frequency of the local processor, and the effective capacitance coefficient of the local processor required for the mobile terminal to execute the task to be calculated;
  • a second determination module configured to determine a first delay overhead based on a first preset formula, a number of operating cycles, and a processor frequency
  • the first preset formula is: c u d u represents the number of operating cycles, fu represents the processor frequency, represents the first delay overhead;
  • a third determination module configured to determine a first energy consumption cost based on a second preset formula, a number of operation cycles, a processor frequency, and an effective capacitance coefficient
  • the second preset formula is: ⁇ is the effective capacitance coefficient, Represents the first energy consumption cost.
  • the second acquisition module includes:
  • the first estimation module is used to estimate the processing time required by the server to process the task to be calculated as the target processing time, and to estimate the upload time of uploading the task to be calculated to the server as the target upload time;
  • a fourth determination module configured to determine a second delay overhead based on a third preset formula, a target processing time, and a target upload time;
  • the third preset formula is: represents the target processing time, Indicates the target upload time. Indicates the second delay overhead.
  • the second acquisition module includes:
  • a fifth determining module configured to determine a second energy consumption cost based on a fourth preset formula, a target upload energy consumption, and a target idle energy consumption;
  • the fourth preset formula is: Indicates the target upload energy consumption, represents the target idle energy consumption, represents the second energy consumption overhead; the target upload energy consumption is the estimated energy consumption of uploading the task to be calculated to the server, and the target idle energy consumption is the estimated idle energy consumption when the mobile terminal waits for the server to process the task to be calculated;
  • a sixth determining module configured to determine a second cost based on the fifth preset formula, the number of operating cycles, and the usage fee corresponding to the number of unit operating cycles;
  • the device further comprises:
  • the seventh determination module is used to directly determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the target server when the first delay overhead is greater than a preset delay threshold.
  • the third determination module includes:
  • the third determination submodule is used to determine the first energy consumption overhead based on a second preset formula, the number of operating cycles, the processor frequency and the effective capacitance coefficient when the first delay overhead is not greater than a preset delay threshold.
  • the fifth determining module includes:
  • the fourth determination submodule is used to determine the second energy consumption overhead based on a fourth preset formula, the target upload energy consumption and the target idle energy consumption when the second delay overhead is not greater than the preset delay threshold.
  • the device further comprises:
  • the fifth determination submodule is used to directly determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the mobile terminal when the second delay overhead is greater than a preset delay threshold or the second cost overhead is greater than a preset cost threshold.
  • the device further comprises:
  • the first setting module is used to pre-set the delay weight coefficient and the energy consumption weight coefficient.
  • the first acquisition module includes:
  • a sixth determination submodule configured to determine a first target cost based on a sixth preset formula, a product of a delay weight coefficient and a first delay cost, and a product of an energy consumption weight coefficient and a first energy consumption cost;
  • the sixth preset formula is: ⁇ 1 represents the delay weight coefficient, represents the first delay overhead, ⁇ 2 represents the energy consumption weight coefficient, represents the first energy consumption, Indicates the first target cost.
  • the device further comprises:
  • the second setting module is used to pre-set the cost weight coefficient
  • the second acquisition module includes:
  • a seventh determination submodule configured to determine the second target cost based on a seventh preset formula, a product of a delay weight coefficient and a second delay cost, a product of an energy consumption weight coefficient and a second energy consumption cost, and a product of a cost weight coefficient and a second cost cost;
  • the seventh preset formula is: ⁇ 1 represents the delay weight coefficient, represents the second delay overhead, ⁇ 2 represents the energy consumption weight coefficient, represents the second energy consumption cost, ⁇ 3 represents the cost weight coefficient, b uv represents the second cost cost, Indicates the secondary target cost.
  • the seventh determining submodule includes:
  • the eighth determination submodule is used to determine the second target overhead based on the seventh preset formula, the product of the delay weight coefficient and the second delay overhead, the product of the energy consumption weight coefficient and the second energy consumption overhead, and the product of the cost weight coefficient and the second cost overhead when the second cost overhead is not greater than the preset cost threshold.
  • the first determining module includes:
  • a ninth determination submodule configured to determine, based on the plurality of second target costs corresponding to the plurality of servers, a second target cost having the smallest value among the plurality of second target costs as the minimum target cost;
  • the tenth determination submodule is used to determine the offloading strategy of the task to be calculated based on the minimum target overhead and the first target overhead.
  • the device further comprises:
  • a first recording module configured to record the second target cost into a target decision list corresponding to the mobile terminal
  • the ninth determination submodule includes:
  • the second acquisition submodule is used to obtain the second target cost with the smallest value in the target decision list as the minimum target cost when the second target costs corresponding to multiple servers are recorded.
  • the tenth determining submodule includes:
  • an eleventh determination submodule configured to determine, if the minimum target cost is less than the first target cost, that the offloading strategy of the task to be calculated is to offload the task to be calculated to the target server;
  • the twelfth determination submodule is used to determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the mobile terminal if the minimum target overhead is greater than the first target overhead.
  • the tenth determining submodule when the minimum target cost is equal to the first target cost, includes:
  • a thirteenth determination submodule is used to determine the unloading strategy of the task to be calculated based on the relationship between the first delay overhead and the second delay overhead corresponding to the minimum target overhead if the delay weight coefficient has the largest value among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient;
  • a fourteenth determination submodule is used to determine the unloading strategy of the task to be calculated based on the relationship between the first energy consumption overhead and the second energy consumption overhead corresponding to the minimum target overhead if the energy consumption weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient has the largest value;
  • the fifteenth determination submodule is used to directly determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the mobile terminal if the value of the cost weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is the largest.
  • the thirteenth determining submodule includes:
  • the sixteenth determination submodule is used to determine if the first delay overhead is greater than the second delay overhead corresponding to the minimum target overhead.
  • the offloading strategy of the task to be calculated is to offload the task to be calculated to the target server.
  • the seventeenth determination submodule is used to determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the mobile terminal if the first delay overhead is less than the second delay overhead corresponding to the minimum target overhead.
  • the eighteenth determination submodule is used to determine the unloading strategy of the task to be calculated based on the second energy consumption overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead if the first delay overhead is equal to the second delay overhead corresponding to the minimum target overhead.
  • the fourteenth determining submodule includes:
  • the nineteenth determination submodule is used to determine the unloading strategy of the task to be calculated as unloading the task to be calculated to the target server if the first energy consumption overhead is greater than the second energy consumption overhead corresponding to the minimum target overhead.
  • the twentieth determination submodule is used to determine the unloading strategy of the task to be calculated as unloading the task to be calculated to the mobile terminal if the first energy consumption overhead is less than the second energy consumption overhead corresponding to the minimum target overhead.
  • the twenty-first determination submodule is used to determine the unloading strategy of the task to be calculated based on the second delay overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead if the first energy consumption overhead is equal to the second energy consumption overhead corresponding to the minimum target overhead.
  • the present application provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the above-mentioned task offloading method for mobile edge computing when executing the program.
  • the present application provides a non-volatile readable storage medium.
  • the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can perform the above-mentioned task offloading method for mobile edge computing.
  • the first delay cost and the first energy consumption cost required by the mobile terminal in the mobile edge computing system to process the task to be calculated are obtained, and the first target cost is determined based on the first delay cost and the first energy consumption cost; the first target cost is used to characterize the estimated cost of unloading the task to be calculated to the mobile terminal; for any server among the multiple servers included in the mobile edge computing system, the second delay cost required by the server to process the task to be calculated is obtained, and the second energy consumption cost and the second cost cost required by the server to process the task to be calculated are obtained, and the second target cost is determined based on the second delay cost, the second energy consumption cost and the second cost cost; the second target cost is used to characterize the estimated cost of unloading the task to be calculated to the server; based on the first target cost and the multiple second target costs corresponding to the multiple servers, the unloading strategy of the task to be calculated is determined; the unloading strategy includes unloading the task to be calculated to the mobile terminal or unloading the task to be
  • the decision support of the unloading strategy can be provided to the user, and the unloading strategy with higher efficiency can be obtained by combining the estimated costs corresponding to different unloading strategies.
  • three differentiated indicators of latency, energy consumption and cost are introduced to determine the first target overhead and the second target overhead.
  • the latency overhead, energy consumption overhead and cost overhead of task offloading in the mobile edge computing system are comprehensively considered to optimize the decision-making basis of the offloading strategy, so that the coverage of the first target overhead and the second target overhead is wider and more comprehensive, thereby making the offloading decision method more perfect and improving the decision-making effect of the offloading decision.
  • FIG1 is a flowchart of a method for offloading tasks for mobile edge computing provided by an embodiment of the present application
  • FIG2 is an architecture diagram of a mobile edge computing provided in an embodiment of the present application.
  • FIG3 is a specific flow chart of a task offloading method for mobile edge computing provided in an embodiment of the present application
  • FIG4 is a structural diagram of a task offloading device for mobile edge computing provided in an embodiment of the present application.
  • FIG5 is a structural diagram of an electronic device provided in an embodiment of the present application.
  • FIG. 1 is a flowchart of a method for task offloading for mobile edge computing provided by an embodiment of the present application. As shown in FIG. 1 , the method may include:
  • Step 101 obtain a first delay overhead and a first energy consumption overhead required for a mobile terminal in a mobile edge computing system to process a task to be calculated, and determine a first target overhead based on the first delay overhead and the first energy consumption overhead; the first target overhead is used to characterize the estimated overhead of offloading the task to be calculated to the mobile terminal.
  • the mobile edge computing system may include multiple mobile terminals, multiple base stations, and multiple mobile edge computing (MEC) servers.
  • MEC servers may be deployed in a dispersed manner near mobile terminals. There may be multiple mobile terminals within the physical coverage of one MEC server, and one mobile terminal may be covered by multiple adjacent MEC servers.
  • the user of the mobile terminal is allowed to unload the entire task to be calculated to the MEC server adjacent to the mobile terminal, and the MEC server processes the task to be calculated; the task to be calculated may also be unloaded to the local processor of the mobile terminal, such as the central processing unit (CPU), and the local processor processes the task to be calculated.
  • CPU central processing unit
  • the mobile terminal device may upload the task to be calculated to the MEC server through the base station, wherein the base station is used to provide wireless coverage and is an interface device for the mobile terminal to access the Internet.
  • the mobile terminal device uploads the task to be calculated to the MEC server through the wireless channel provided by the base station.
  • the first delay overhead and the first energy consumption overhead can be determined based on the basic data of the local processor of the mobile terminal and the data size of the task to be calculated, wherein the first delay overhead is the time required for the mobile terminal to process the task to be calculated if the task to be calculated is unloaded to the mobile terminal; the first energy consumption overhead is the energy consumption generated by the mobile terminal processing the task to be calculated if the task to be calculated is unloaded to the mobile terminal.
  • the first target overhead can be determined, and the first target overhead can characterize the overall overhead required for the mobile terminal to process if the task to be calculated is unloaded to the mobile terminal.
  • the first delay overhead, the first energy consumption overhead and the first target overhead can be obtained through the first algorithm model, and the first algorithm model can be deployed inside the mobile terminal.
  • the first algorithm model can be used to calculate the overhead in the mobile terminal.
  • Step 102 For any server among the multiple servers included in the mobile edge computing system, obtain the second delay overhead required for the server to process the task to be calculated, as well as the second energy consumption overhead and the second cost overhead required for the server to process the task to be calculated, and determine the second target overhead based on the second delay overhead, the second energy consumption overhead and the second cost overhead; the second target overhead is used to characterize the estimated overhead of offloading the task to be calculated to the server.
  • the server in the mobile edge computing system may be an MEC server
  • the second latency overhead may include: if the task to be calculated is offloaded to the server, the time it takes to upload the task to be calculated to the server, the time it takes for the server to process the task to be calculated, and the time it takes for the processing result to be transmitted back to the mobile terminal
  • the second energy consumption overhead may include Including: the energy consumption generated by uploading the task to be calculated to the server and the idle energy consumption of the mobile terminal waiting for the server to return the processing result. Since the server in mobile edge computing is paid for use, it is necessary to determine the fee required to process the task to be calculated based on the server's charging price, that is, the second cost overhead.
  • the second delay overhead, second energy consumption overhead and second cost overhead required for the server to process the task to be calculated can be obtained by the second algorithm model.
  • the second algorithm model can be deployed inside the mobile terminal. When there is a task to be calculated in the mobile terminal, the first algorithm model and the second overhead model can be used in the mobile terminal to perform overhead calculations respectively, and evaluate the overhead corresponding to the two offloading strategies.
  • Step 103 based on the first target overhead and multiple second target overheads corresponding to multiple servers, determine the offloading strategy of the task to be calculated; the offloading strategy includes offloading the task to be calculated to the mobile terminal or offloading the task to be calculated to the target server; the target server belongs to multiple servers.
  • the unloading strategy of the task to be calculated can be determined according to the size relationship of the multiple overhead values, that is, the task to be calculated can be unloaded to the mobile terminal or the task to be calculated can be unloaded to the target server, wherein at least one server can be selected from the multiple servers as the target server according to actual needs, and the specific selection method is not limited in the embodiments of the present application.
  • the unloading strategy in some embodiments of the present application is a different unloading strategy corresponding to two different types of unloading objects, that is, unloading the task to be calculated to a mobile terminal or unloading the task to be calculated to a server.
  • the specific unloading method can be further determined based on the preliminary unloading strategy. In the case of determining that the unloading strategy of the task to be calculated is to unload the task to be calculated to the target server, which server among the multiple servers is specifically unloaded to can be selected according to actual needs, and the embodiment of the present application does not limit this.
  • the first target cost is used to characterize the estimated cost of unloading the task to be calculated to the mobile terminal; for any server among the multiple servers included in the mobile edge computing system, the second delay cost required by the server to process the task to be calculated, and the second energy consumption cost and the second cost cost required by the server to process the task to be calculated, and the second target cost is determined based on the second delay cost, the second energy consumption cost and the second cost cost; the second target cost is used to characterize the estimated cost of unloading the task to be calculated to the server; based on the first target cost and the multiple second target costs corresponding to the multiple servers, the unloading strategy of the task to be calculated is determined; the unloading strategy includes unloading the task to be calculated to the mobile terminal or unloading the task to be
  • the decision support of the unloading strategy can be provided to the user, and the unloading strategy with higher efficiency can be obtained by combining the estimated costs corresponding to different unloading strategies.
  • three differentiated indicators of latency, energy consumption and cost are introduced to determine the first target overhead and the second target overhead.
  • the latency overhead, energy consumption overhead and cost overhead of task offloading in the mobile edge computing system are comprehensively considered to optimize the decision-making basis of the offloading strategy, so that the coverage of the first target overhead and the second target overhead is wider and more comprehensive, thereby making the offloading decision method more perfect and improving the decision-making effect of the offloading decision.
  • the embodiment of the present application is to pre-process the uninstall decision strategy in the user-oriented mobile edge computing scenario.
  • a preliminary judgment is made, that is, whether to offload the task to be calculated to the mobile terminal or the server is first determined, so as to provide a more practical decision-making basis for the user of the mobile terminal.
  • the determination process of the offloading method provided in the embodiment of the present application is relatively simple, which improves the efficiency of the determination process of the offloading strategy.
  • step 101 may include the following steps:
  • Step 201 Obtain the number of operation cycles of the local processor, the processor frequency of the local processor, and the effective capacitance coefficient of the local processor required for the mobile terminal to execute the task to be calculated.
  • the number of processor operation cycles required for the task to be calculated can be determined based on the size of the task to be calculated and the computing resources consumed by the task per bit.
  • the size of the task to be calculated can be expressed as du , in bits.
  • the computing resources consumed by the task per bit can be expressed as c u , or as the number of CPU cycles required to complete the task per bit, in cycles/bit, then c u d u can represent the number of processor operation cycles required for the task to be calculated, and when the task to be calculated is offloaded to the mobile terminal for processing, c u d u can also represent the number of local processor operation cycles required for the mobile terminal to execute the task to be calculated.
  • the processor frequency of the local processor can be obtained, which can be represented by f u , and represents the computing power of the processor when the computing task is offloaded to the mobile terminal for processing.
  • the effective capacitance coefficient of the local processor can be obtained, which can be represented by ⁇ . The effective capacitance coefficient depends on the structure of the CPU in the mobile terminal, and different CPUs can correspond to different effective capacitance coefficients.
  • the processor frequency and effective capacitance coefficient of the local processor can be obtained through the calibration parameters of the local processor.
  • Step 202 Determine a first delay overhead based on a first preset formula, the number of operating cycles, and a processor frequency.
  • the first delay overhead may be calculated according to a first preset formula using a first algorithm model based on the number of operating cycles and the processor frequency.
  • in represents the first delay overhead, that is, the processing time of offloading the task to be calculated to the mobile terminal for processing
  • cu is the computing resource required for the task per unit bit
  • du is the size of the task to be calculated
  • fu is the processor frequency of the local processor
  • Step 203 Determine a first energy consumption cost based on a second preset formula, the number of operating cycles, the processor frequency, and the effective capacitance coefficient.
  • the first energy consumption overhead can be calculated according to a second preset formula based on the number of operating cycles, processor frequency, and effective capacitance coefficient using a first algorithm model.
  • the first delay overhead and the first energy consumption overhead are respectively calculated by the number of operating cycles, the processor frequency and the effective capacitance coefficient, so that the delay overhead and the energy consumption overhead of offloading the task to be calculated to the mobile terminal can be obtained conveniently and quickly, thereby improving the decision-making efficiency.
  • step 202 may include the following steps:
  • Step 301 Estimate the processing time required for the server to process the task to be calculated as the target processing time, and estimate the upload time for uploading the task to be calculated to the server as the target upload time.
  • the delay overhead of offloading the task to be calculated to the server can be mainly divided into three parts: task upload time, task processing time, and processing result return time. Since the size of the processing result is much smaller than the size of the task to be calculated, correspondingly, under the condition of a certain data transmission rate, the processing result return time is much smaller than the task upload time. Therefore, the processing result return time can be ignored. Pre-estimate the upload time of uploading the task to be calculated to the server and the processing time of the server processing the task to be calculated. In some embodiments of the present application, the upload time of uploading the task to be calculated to the server can be determined by a second algorithm model based on the data transmission rate and the size of the task to be calculated according to the following formula:
  • r uv is the data transmission rate for offloading the task to be calculated to the server for execution.
  • P uv is the transmission power of task transmission between the mobile terminal and the server
  • h uv is the wireless channel gain
  • s uv is the distance from the mobile terminal to the server
  • is the attenuation factor.
  • ⁇ 2 is the Gaussian white noise during data transmission. It is understandable that the above data can be taken according to the commonly used settings in this field, for example: P uv can obtain the power according to the specific mobile terminal device configuration, such as 1W.
  • B is the wireless channel bandwidth from the mobile terminal to the server, which is determined according to the network speed and the general setting range, such as 2-10MHZ.
  • s uv can be set at a certain distance in the simulation environment, and can be set according to actual needs, such as 0.8km.
  • ⁇ attenuation factor can be taken as -4.
  • ⁇ 2 Gaussian white noise can be taken as 1 ⁇ 10 -13 .
  • the processing time required for the server to process the task to be calculated is determined according to the following formula:
  • cu is the computing resource required for the task per unit bit
  • du is the size of the task to be calculated
  • f uv is the computing resource allocated by the server to the mobile terminal, that is, the computing capacity of the mobile terminal's task to be calculated to be offloaded to the server.
  • Step 302 Determine a second delay overhead based on a third preset formula, a target processing time, and a target upload time.
  • the second delay overhead is determined according to a third preset formula based on the target processing time and the target upload time through the second algorithm model.
  • the second delay overhead is calculated based on the target processing time and the target upload time, so that the delay data represented by the second delay overhead can be more comprehensive, which is conducive to a comprehensive evaluation of the second target overhead to more accurately determine the offloading strategy.
  • step 202 may further include the following steps:
  • Step 303 determine the second energy consumption based on the fourth preset formula, the target upload energy consumption and the target idle energy consumption; the target upload energy consumption is the estimated energy consumption of uploading the task to be calculated to the server, and the target idle energy consumption is the estimated idle energy consumption when the mobile terminal waits for the server to process the task to be calculated.
  • the target upload energy consumption can be determined by the transmission power of the mobile terminal uploading the task to be calculated to the server, the size of the task to be calculated, and the data transmission rate of offloading the task to be calculated to the server for execution.
  • the target idle energy consumption can be determined by the estimated idle power of the mobile terminal when waiting for the server to process the task to be calculated, the number of processor operation cycles required for the task to be calculated, and the data transmission rate of offloading the task to be calculated to the server for execution. In this way, through the second algorithm model, based on the target upload energy consumption and the target idle energy consumption, the second energy consumption overhead is determined according to the fourth preset formula
  • the target upload energy consumption It represents the transmission power of the mobile terminal uploading the task to be calculated to the server
  • du is the size of the task to be calculated
  • ruv is the data transmission rate of offloading the task to be calculated to the server for execution.
  • represents the target idle energy consumption represents the estimated idle power of the mobile terminal when waiting for the server to process the task to be calculated
  • c u d u represents the number of processor cycles required for the task to be calculated
  • f uv is the computing resource allocated by the server to the mobile terminal. It can be understood that as well as The value can be set according to the common settings in this field, such as transmission power Can be set to 1W, idle power Can be set to 1 ⁇ 10 -5 W.
  • Step 304 Determine the second cost based on the fifth preset formula, the number of operating cycles, and the usage fee corresponding to the unit number of operating cycles.
  • the number of processor operating cycles required to complete the task to be calculated is also certain. Therefore, through the second algorithm model, based on the number of processor operating cycles required for the task to be calculated and the usage fee corresponding to the unit number of operating cycles of the server, the second cost overhead b uv is determined according to the fifth preset formula.
  • ⁇ v represents the usage fee corresponding to the number of server operation cycles, which can be determined based on the server rental price.
  • c u d u represents the number of processor operation cycles required to complete the task to be calculated.
  • the second energy consumption overhead is determined based on the target upload energy consumption and the target idle energy consumption.
  • the target idle energy consumption is considered on the basis of the target upload energy consumption, so that the energy consumption data represented by the second energy consumption overhead is more comprehensive, which is conducive to a comprehensive evaluation of the second target overhead, so as to more accurately determine the unloading strategy.
  • the embodiments of the present application may further include the following steps:
  • Step 401 When the first delay overhead is greater than a preset delay threshold, directly determine the offloading strategy of the task to be calculated as offloading the task to be calculated to a target server.
  • the preset delay threshold can be set according to the user's delay requirement.
  • the first delay overhead is greater than the preset delay threshold, it indicates that the first delay overhead has exceeded the maximum tolerable delay that the user can receive.
  • the offloading strategy of the task to be calculated can be directly determined as offloading the target of the task to be calculated to the server.
  • the first delay overhead when the first delay overhead is greater than a preset delay threshold, it indicates that the first delay overhead has exceeded the maximum tolerable delay that the user can receive. Directly determining the unloading strategy can save the time spent on determining the unloading strategy to a certain extent.
  • step 203 may include:
  • Step 402 When the first delay overhead is not greater than a preset delay threshold, determine a first energy consumption overhead based on a second preset formula, the number of operating cycles, the processor frequency, and the effective capacitance coefficient.
  • the first delay overhead when the first delay overhead is not greater than the preset delay threshold, that is, the first delay overhead is less than or equal to the preset delay threshold, it indicates that the first delay overhead has not reached the maximum tolerable delay that the user can receive. Therefore, the first energy consumption overhead can continue to be calculated to determine the subsequent unloading strategy based on the first target overhead.
  • the calculation of the first target cost includes the constraint St. First delay overhead Not greater than the preset delay threshold In the case of, the first target cost is calculated for subsequent judgment, otherwise, the offloading strategy is directly determined to offload the task to be calculated to the target server.
  • the corresponding unloading strategy is determined according to the actual needs of the user, and when the first delay overhead is greater than the preset delay threshold, the unloading strategy is directly determined, which saves the subsequent calculation process and improves the determination efficiency of the unloading strategy to a certain extent.
  • step 303 may include the following steps:
  • Step 501 When the second delay overhead is not greater than a preset delay threshold, determine the second energy consumption overhead based on a fourth preset formula, a target upload energy consumption, and a target idle energy consumption.
  • the second delay overhead when the second delay overhead is not greater than the preset delay threshold, that is, when the second delay overhead is less than or equal to the preset delay threshold, it indicates that the second delay overhead has not reached the maximum tolerable delay that the user can receive, and therefore, the second energy consumption overhead can continue to be calculated to determine the subsequent unloading strategy.
  • the second cost overhead when the second cost overhead is not greater than the preset cost threshold, the second target overhead is determined based on the second delay overhead, the second energy consumption overhead, and the second cost overhead. In this way, by comparing the second delay overhead and the preset delay threshold, the corresponding unloading strategy can be determined according to the actual needs of the user.
  • the present application embodiment may include the following steps:
  • Step 601 When the second delay overhead is greater than a preset delay threshold or the second cost overhead is greater than a preset cost threshold, directly determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the mobile terminal.
  • the second delay overhead when the second delay overhead is greater than the preset delay threshold or the second cost overhead is greater than the preset cost threshold, it is characterized that the second delay overhead of unloading the task to be calculated to the server has exceeded the maximum tolerable delay that the user can accept, or the second cost overhead of unloading the task to be calculated to the server has exceeded the maximum cost threshold that the user can accept.
  • the unloading strategy of the task to be calculated can be directly determined as unloading the task to be calculated to the mobile terminal.
  • the unloading strategy can be directly determined when the second delay overhead is greater than the preset delay threshold or the second cost overhead is greater than the preset cost threshold, which saves the subsequent calculation process and improves the efficiency of determining the unloading strategy to a certain extent.
  • the embodiments of the present application may further include the following steps:
  • Step 701 pre-set a delay weight coefficient and an energy consumption weight coefficient.
  • the user can pre-set the weight coefficients corresponding to the delay cost and the energy consumption cost according to their own task requirements: the delay weight coefficient and the energy consumption weight coefficient.
  • the delay weight coefficient and the energy consumption weight coefficient By setting the delay weight coefficient and the energy consumption weight coefficient, the different emphasis and requirements of the user for each indicator can be represented.
  • the values of the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient can measure the user's emphasis and requirements for different types of indicators.
  • step 101 may further include the following steps:
  • Step 702 Determine a first target overhead based on a sixth preset formula, a product of a delay weight coefficient and a first delay overhead, and a product of an energy consumption weight coefficient and a first energy consumption overhead.
  • the first target cost It can be obtained through the sixth preset formula.
  • ⁇ 1 can represent the delay weight coefficient
  • ⁇ 2 can represent the energy consumption weight coefficient
  • the first target overhead can reflect the user's preference to a certain extent, providing a basis for determining the unloading strategy.
  • the embodiments of the present application may further include the following steps:
  • Step 703 pre-set the cost weight coefficient.
  • step 102 may further include the following steps:
  • Step 704 Determine the second target overhead based on the seventh preset formula, the product of the delay weight coefficient and the second delay overhead, the product of the energy consumption weight coefficient and the second energy consumption overhead, and the product of the cost weight coefficient and the second cost overhead.
  • the second target cost It can be obtained through the seventh preset formula.
  • the values of each weight coefficient when calculated using the sixth preset formula and the seventh preset formula are the same.
  • the corresponding values of each weight coefficient can be set according to the needs of the user of the mobile terminal, that is, the weight coefficients corresponding to different mobile terminals can be different.
  • the delay weight coefficient, energy consumption weight coefficient and cost weight coefficient it is possible to meet the differentiated indicator preferences of different mobile terminal users, and improve the flexibility of setting the weight coefficients, so that the values of the first target overhead and the second target overhead are closer to user preferences, thereby making more favorable unloading decisions.
  • step 704 may include the following steps:
  • Step 801 When the second cost overhead is not greater than the preset cost threshold, determine the second target overhead based on the seventh preset formula, the product of the delay weight coefficient and the second delay overhead, the product of the energy consumption weight coefficient and the second energy consumption overhead, and the product of the cost weight coefficient and the second cost overhead.
  • the second target cost can be determined based on the product of the delay weight coefficient and the second delay cost, the product of the energy consumption weight coefficient and the second energy consumption cost, and the product of the cost weight coefficient and the second cost. In this way, the corresponding unloading strategy can be determined on the basis of satisfying the user's cost threshold to a certain extent.
  • step 103 may include the following steps:
  • Step 901 Based on multiple second target costs corresponding to multiple servers, determine the second target cost with the smallest value among the multiple second target costs as the minimum target cost.
  • the embodiments of the present application further include the following steps:
  • Step 1001 Record the second target cost into the target decision list corresponding to the mobile terminal.
  • the second target cost calculated in step 601 and step 801 is determined as the second target cost corresponding to the server and recorded in the target decision list corresponding to the mobile terminal.
  • the target decision list can represent the uninstall decision preference list of the mobile terminal.
  • the number of second target costs in the target decision list is less than or equal to the number of servers in the mobile edge computing system.
  • step 901 may include the following steps:
  • Step 1002 When the second target costs corresponding to multiple servers are all recorded, obtain the second target cost with the smallest value in the target decision list as the minimum target cost.
  • the data in the target decision list are arranged according to the size of the second target cost.
  • the second target cost with the smallest value is obtained from the target decision list and determined as the minimum target cost.
  • the second target cost by recording the second target cost into the target decision list, it is possible to facilitate determination of the minimum target cost from a plurality of second target costs, thereby improving the efficiency of determining the minimum target cost to a certain extent.
  • the server allocates computing resources to mobile terminals and needs to ensure that the sum of computing resources allocated to different mobile terminals is less than or equal to the maximum computing capacity of the server. Therefore, when the mobile terminal obtains multiple second target costs in the uninstall preference list, a request message is sent to the server corresponding to the second target cost with the smallest value. The request message should carry the size of the computing resources that need to be allocated to the mobile terminal. After receiving the request message, the server can make a judgment based on its own current computing capacity. If it can provide the corresponding computing resources to the mobile terminal, it returns the approval request message to the mobile terminal and adjusts the server's own current computing capacity based on the size of the computing resources that need to be allocated to the mobile terminal.
  • the mobile terminal can determine the second target cost with the smallest value as the minimum target cost; if the current computing capacity of the server cannot meet the need to provide the corresponding computing resources to the mobile terminal, it returns a rejection request message to the mobile terminal. After the mobile terminal receives the rejection request message, it indicates that the server corresponding to the second target cost with the smallest value can no longer undertake the corresponding unloading computing task.
  • the second target cost corresponding to the server in the uninstall preference list can be eliminated, and the above operation is repeated based on the server corresponding to the second target cost with the smallest value in the uninstall preference list after elimination, until the minimum target cost that meets the preset condition is determined (the preset condition is that the server corresponding to the minimum target cost can undertake the unloading computing task of the mobile terminal). That is, there is a constraint in the process of determining the minimum target cost: It indicates that for any server, the computing resources allocated to the mobile terminal cannot exceed the total computing capacity of the server. Indicates the maximum computing capacity of the server.
  • Step 902 Determine an offloading strategy for the task to be calculated based on the minimum target cost and the first target cost.
  • step 902 may include the following steps:
  • Step 9021 If the minimum target cost is less than the first target cost, determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the target server.
  • the offloading strategy of the task to be calculated can be determined as offloading the task to be calculated to the target server.
  • Step 9022 If the minimum target overhead is greater than the first target overhead, determine that the offloading strategy for the task to be calculated is to offload the task to be calculated to the mobile terminal.
  • the offloading strategy of the task to be calculated can be determined as offloading the task to be calculated to the mobile terminal. terminal.
  • the minimum target overhead is determined, and the minimum overhead generated by offloading the task to be calculated to the server can be simulated. Based on the comparison between the minimum target overhead and the first target overhead, an offloading strategy with the lowest overhead and relatively stable processing performance can be further determined, thereby improving the processing efficiency of the task to be calculated to a certain extent.
  • step 902 may further include the following steps:
  • Step 9023 If the value of the delay weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is the largest, then the unloading strategy of the task to be calculated is determined based on the relationship between the first delay overhead and the second delay overhead corresponding to the minimum target overhead.
  • the overhead of offloading the task to be calculated to the server is the same as the overhead of offloading the task to be calculated to the mobile terminal.
  • the unloading strategy can be further determined based on the numerical values of the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient. If the value of the delay weight coefficient is the largest, it indicates that the user attaches more importance to the delay index and is more sensitive to the delay. In this case, the unloading strategy of the task to be calculated can be determined based on the delay index corresponding to the delay weight coefficient, that is, the first delay overhead and the second delay overhead corresponding to the minimum target overhead.
  • each second target overhead will have its corresponding second delay overhead, and since the minimum target overhead is determined from multiple second target overheads, the minimum target overhead also has its corresponding second delay overhead, that is, the second delay overhead corresponding to the minimum target overhead is the second delay overhead used when calculating the minimum target overhead.
  • step 9023 may include the following steps:
  • Step 9023a If the first delay overhead is greater than the second delay overhead corresponding to the minimum target overhead, then determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the target server.
  • Step 9023b If the first delay overhead is less than the second delay overhead corresponding to the minimum target overhead, the offloading strategy of the task to be calculated is determined to be offloading the task to be calculated to the mobile terminal.
  • Step 9023c if the first delay overhead is equal to the second delay overhead corresponding to the minimum target overhead, determine the offloading strategy of the task to be calculated based on the second energy consumption overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead.
  • the unloading strategy of the task to be calculated when the first delay overhead is less than the second delay overhead corresponding to the minimum target overhead, the unloading strategy of the task to be calculated is determined as unloading the task to be calculated to the mobile terminal; when the first delay overhead is greater than the second delay overhead corresponding to the minimum target overhead, the unloading strategy of the task to be calculated is determined as unloading the task to be calculated to the target server; when the first delay overhead is equal to the second delay overhead corresponding to the minimum target overhead, the unloading strategy of the task to be calculated is determined based on the second energy consumption overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead, that is, when the indicator values corresponding to the weight coefficients with the largest values are the same, the unloading strategy can be determined based on the size of the indicator value corresponding to the weight coefficient with the second largest value, until the optimal unloading strategy is determined.
  • the weight coefficient with the largest value among the energy consumption weight coefficient and the cost weight coefficient can be determined. If the energy consumption weight coefficient has the largest value, then the unloading strategy of the task to be calculated is determined based on the relationship between the first energy consumption overhead and the second energy consumption overhead corresponding to the minimum target overhead; if the cost weight coefficient has the largest value, then the unloading strategy of the task to be calculated is directly determined to be to unload the task to be calculated to the mobile terminal.
  • the values of the delay weight coefficient, the energy consumption weight coefficient, and the cost weight coefficient are ranked as follows: delay weight coefficient > energy consumption weight coefficient > cost weight coefficient, then when the first delay overhead is equal to the second delay overhead corresponding to the minimum target overhead, based on the first energy consumption
  • the relationship between the overhead and the second energy consumption overhead corresponding to the minimum target overhead is used to determine the unloading strategy of the task to be calculated.
  • the specific steps can refer to 9024a-9024c; if the numerical values of the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient are ranked as follows: delay weight coefficient > cost weight coefficient > energy consumption weight coefficient, then the unloading strategy of the task to be calculated is directly determined to offload the task to be calculated to the mobile terminal.
  • Step 9024 If the energy consumption weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient has the largest value, then the unloading strategy of the task to be calculated is determined based on the relationship between the first energy consumption overhead and the second energy consumption overhead corresponding to the minimum target overhead.
  • the unloading strategy of the task to be calculated can be determined based on the energy consumption index corresponding to the energy consumption weight coefficient, that is, the first energy consumption cost and the size of the second energy consumption cost corresponding to the minimum target cost.
  • each second target cost Since the second target cost is obtained based on the second delay cost, the second energy consumption cost and the second cost cost, each second target cost will have its corresponding second energy consumption cost, and since the minimum target cost is determined from multiple second target costs, the minimum target cost also has its corresponding second energy consumption cost, that is, the second energy consumption cost corresponding to the minimum target cost is the second energy consumption cost used when calculating the minimum target cost.
  • step 9024 may include the following steps:
  • Step 9024a If the first energy consumption cost is greater than the second energy consumption cost corresponding to the minimum target cost, then determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the target server.
  • Step 9024b If the first energy consumption cost is less than the second energy consumption cost corresponding to the minimum target cost, then determine that the unloading strategy of the task to be calculated is to unload the task to be calculated to the mobile terminal.
  • Step 9024c if the first energy consumption overhead is equal to the second energy consumption overhead corresponding to the minimum target overhead, determine the unloading strategy of the task to be calculated based on the second delay overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead.
  • the unloading strategy of the task to be calculated when the first energy consumption cost is less than the second energy consumption cost corresponding to the minimum target cost, the unloading strategy of the task to be calculated is determined as unloading the task to be calculated to the mobile terminal; when the first energy consumption cost is greater than the second energy consumption cost corresponding to the minimum target cost, the unloading strategy of the task to be calculated is determined as unloading the task to be calculated to the target server.
  • the unloading strategy of the task to be calculated is determined based on the second delay cost corresponding to the minimum target cost or the second cost cost corresponding to the minimum target cost, that is, when the indicator values corresponding to the weight coefficients with the largest values are the same, the unloading strategy can be determined based on the size of the indicator value corresponding to the weight coefficient with the second largest value, until the optimal unloading strategy is determined.
  • the weight coefficient with the largest value among the delay weight coefficient and the cost weight coefficient can be determined. If the delay weight coefficient has the largest value, the unloading strategy of the task to be calculated is determined based on the size relationship between the first delay cost and the second delay cost corresponding to the minimum target cost; if the cost weight coefficient has the largest value, the unloading strategy of the task to be calculated is directly determined to be unloading the task to be calculated to the mobile terminal.
  • the unloading strategy of the task to be calculated is determined based on the size relationship between the first delay cost and the second delay cost corresponding to the minimum target cost. For specific steps, refer to 9023a-9023c; if the numerical values of the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient are ranked as follows: energy consumption weight coefficient>cost weight coefficient>delay weight coefficient, then the unloading strategy of the task to be calculated is directly determined to be unloading the task to be calculated to the mobile terminal.
  • Step 9025 If the value of the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is The maximum value is the largest value, then the offloading strategy of the task to be calculated is directly determined as offloading the task to be calculated to the mobile terminal.
  • the unloading strategy of the task to be calculated can be determined based on the cost index corresponding to the cost weight coefficient. In this case, since the cost overhead of unloading the task to be calculated to the mobile terminal is 0, the unloading strategy of the task to be calculated can be directly determined as unloading the task to be calculated to the mobile terminal.
  • the user preference information is represented by the weight coefficient.
  • the unloading strategy is further determined based on the indicator value corresponding to the weight coefficient with the largest value, so as to provide personalized and flexible judgment basis for users with different needs.
  • FIG3 shows a specific flow chart of a task offloading method for mobile edge computing.
  • the first delay cost and the first energy consumption cost are determined by the first algorithm model.
  • the offloading strategy is determined to offload the task to be calculated to the target server.
  • the first energy consumption cost is determined.
  • the second delay cost is determined by the second algorithm model. When the second delay cost is greater than the preset delay threshold, the offloading strategy is determined to offload the task to be calculated to the mobile terminal.
  • the second delay cost is not greater than the preset delay threshold
  • the second energy consumption cost and the second cost cost are determined.
  • the offloading strategy is determined to offload the task to be calculated to the mobile terminal.
  • the second target cost is determined.
  • the first target cost is determined.
  • the minimum target overhead is determined.
  • the unloading strategy is determined to offload the task to be calculated to the mobile terminal; when the first target overhead is greater than the minimum target overhead, the unloading strategy is determined to offload the task to be calculated to the target server.
  • FIG4 is a structural diagram of a task offloading device for mobile edge computing provided by an embodiment of the present application.
  • the device 110 may include:
  • the first acquisition module 1101 is used to obtain the first delay overhead and the first energy consumption overhead required for the mobile terminal in the mobile edge computing system to process the task to be calculated, and determine the first target overhead based on the first delay overhead and the first energy consumption overhead; the first target overhead is used to characterize the estimated overhead of offloading the task to be calculated to the mobile terminal.
  • the second acquisition module 1102 is used to obtain, for any server among the multiple servers included in the mobile edge computing system, the second delay overhead required for the server to process the task to be calculated, as well as the second energy consumption overhead and the second cost overhead required for the server to process the task to be calculated, and determine the second target overhead based on the second delay overhead, the second energy consumption overhead and the second cost overhead; the second target overhead is used to characterize the estimated overhead of offloading the task to be calculated to the server.
  • the first determination module 1103 is used to determine the unloading strategy of the task to be calculated based on the first target overhead and multiple second target overheads corresponding to multiple servers; the unloading strategy includes unloading the task to be calculated to the mobile terminal or unloading the task to be calculated to the target server; the target server belongs to multiple servers.
  • the first acquisition module 1101 includes:
  • the first acquisition submodule is used to acquire the number of operation cycles of the local processor, the processor frequency of the local processor and the effective capacitance coefficient of the local processor required for the mobile terminal to execute the task to be calculated.
  • a second determination module configured to determine a first delay overhead based on a first preset formula, a number of operating cycles, and a processor frequency
  • the first preset formula is: c u d u represents the number of operating cycles, fu represents the processor frequency, Indicates the first delay overhead.
  • a third determination module configured to determine a first energy consumption cost based on a second preset formula, a number of operation cycles, a processor frequency, and an effective capacitance coefficient
  • the second preset formula is: ⁇ is the effective capacitance coefficient, Represents the first energy consumption cost.
  • the second acquisition module 1102 includes:
  • the first estimation module is used to estimate the processing time required for the server to process the task to be calculated as the target processing time, and to estimate the upload time for uploading the task to be calculated to the server as the target upload time.
  • a fourth determination module configured to determine a second delay overhead based on a third preset formula, a target processing time, and a target upload time;
  • the third preset formula is: represents the target processing time, Indicates the target upload time. Indicates the second delay overhead.
  • the second acquisition module 1102 includes:
  • a fifth determining module configured to determine a second energy consumption cost based on a fourth preset formula, a target upload energy consumption, and a target idle energy consumption;
  • the fourth preset formula is: Indicates the target upload energy consumption, represents the target idle energy consumption, Represents the second energy consumption overhead; the target upload energy consumption is the estimated energy consumption of uploading the task to be calculated to the server, and the target idle energy consumption is the estimated idle energy consumption when the mobile terminal waits for the server to process the task to be calculated.
  • a sixth determining module configured to determine a second cost based on the fifth preset formula, the number of operating cycles, and the usage fee corresponding to the number of unit operating cycles;
  • the device 110 further includes:
  • the seventh determination module is used to directly determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the target server when the first delay overhead is greater than a preset delay threshold.
  • the third determination module includes:
  • the third determination submodule is used to determine the first energy consumption overhead based on a second preset formula, the number of operating cycles, the processor frequency and the effective capacitance coefficient when the first delay overhead is not greater than a preset delay threshold.
  • the fifth determining module includes:
  • the fourth determination submodule is used to determine the second energy consumption overhead based on a fourth preset formula, the target upload energy consumption and the target idle energy consumption when the second delay overhead is not greater than the preset delay threshold.
  • the device 110 further includes:
  • the fifth determination submodule is used to directly determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the mobile terminal when the second delay overhead is greater than a preset delay threshold or the second cost overhead is greater than a preset cost threshold.
  • the device 110 further includes:
  • the first setting module is used to pre-set the delay weight coefficient and the energy consumption weight coefficient.
  • the first acquisition module 1101 includes:
  • a sixth determination submodule configured to determine a first target cost based on a sixth preset formula, a product of a delay weight coefficient and a first delay cost, and a product of an energy consumption weight coefficient and a first energy consumption cost;
  • the sixth preset formula is: ⁇ 1 represents the delay weight coefficient, represents the first delay overhead, ⁇ 2 represents the energy consumption weight coefficient, represents the first energy consumption, Indicates the first target cost.
  • the device 110 further includes:
  • the second setting module is used to pre-set the cost weight coefficient.
  • the second acquisition module 1102 includes:
  • a seventh determination submodule configured to determine the second target cost based on a seventh preset formula, a product of a delay weight coefficient and a second delay cost, a product of an energy consumption weight coefficient and a second energy consumption cost, and a product of a cost weight coefficient and a second cost cost;
  • the seventh preset formula is: ⁇ 1 represents the delay weight coefficient, represents the second delay overhead, ⁇ 2 represents the energy consumption weight coefficient, represents the second energy consumption cost, ⁇ 3 represents the cost weight coefficient, b uv represents the second cost cost, Indicates the secondary target cost.
  • the seventh determining submodule includes:
  • the eighth determination submodule is used to determine the second target overhead based on the seventh preset formula, the product of the delay weight coefficient and the second delay overhead, the product of the energy consumption weight coefficient and the second energy consumption overhead, and the product of the cost weight coefficient and the second cost overhead when the second cost overhead is not greater than the preset cost threshold.
  • the first determining module 1103 includes:
  • the ninth determination submodule is used to determine, based on the multiple second target cost corresponding to the multiple servers, the second target cost with the smallest value among the multiple second target cost as the minimum target cost.
  • the tenth determination submodule is used to determine the offloading strategy of the task to be calculated based on the minimum target overhead and the first target overhead.
  • the device 110 includes:
  • a first recording module configured to record the second target cost into a target decision list corresponding to the mobile terminal
  • the ninth determination submodule includes:
  • the second acquisition submodule is used to obtain the second target cost with the smallest value in the target decision list as the minimum target cost when the second target costs corresponding to multiple servers are recorded.
  • the tenth determining submodule includes:
  • an eleventh determination submodule configured to determine, if the minimum target cost is less than the first target cost, that the offloading strategy of the task to be calculated is to offload the task to be calculated to the target server;
  • the twelfth determination submodule is used to determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the mobile terminal if the minimum target overhead is greater than the first target overhead.
  • the tenth determining submodule when the minimum target cost is equal to the first target cost, the tenth determining submodule further includes:
  • the thirteenth determination submodule is used to determine the unloading strategy of the task to be calculated based on the relationship between the first delay overhead and the second delay overhead corresponding to the minimum target overhead if the value of the delay weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is the largest.
  • the fourteenth determination submodule is used to determine the unloading strategy of the task to be calculated based on the relationship between the first energy consumption overhead and the second energy consumption overhead corresponding to the minimum target overhead if the value of the energy consumption weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is the largest.
  • the fifteenth determination submodule is used to directly determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the mobile terminal if the value of the cost weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is the largest.
  • the thirteenth determining submodule includes:
  • the sixteenth determination submodule is used to determine if the first delay overhead is greater than the second delay overhead corresponding to the minimum target overhead.
  • the offloading strategy of the task to be calculated is to offload the task to be calculated to the target server.
  • the seventeenth determination submodule is used to determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the mobile terminal if the first delay overhead is less than the second delay overhead corresponding to the minimum target overhead.
  • the eighteenth determination submodule is used to determine the unloading strategy of the task to be calculated based on the second energy consumption overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead if the first delay overhead is equal to the second delay overhead corresponding to the minimum target overhead.
  • the fourteenth determining submodule includes:
  • the nineteenth determination submodule is used to determine the unloading strategy of the task to be calculated as unloading the task to be calculated to the target server if the first energy consumption overhead is greater than the second energy consumption overhead corresponding to the minimum target overhead.
  • the twentieth determination submodule is used to determine the unloading strategy of the task to be calculated as unloading the task to be calculated to the mobile terminal if the first energy consumption overhead is less than the second energy consumption overhead corresponding to the minimum target overhead.
  • the twenty-first determination submodule is used to determine the unloading strategy of the task to be calculated based on the second delay overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead if the first energy consumption overhead is equal to the second energy consumption overhead corresponding to the minimum target overhead.
  • the task offloading device for mobile edge computing obtains the first delay cost and the first energy consumption cost required by the mobile terminal in the mobile edge computing system to process the task to be calculated, and determines the first target cost based on the first delay cost and the first energy consumption cost; the first target cost is used to characterize the estimated cost of offloading the task to be calculated to the mobile terminal; for any server among the multiple servers included in the mobile edge computing system, the second delay cost, the second energy consumption cost and the second cost cost required by the server to process the task to be calculated are obtained, and the second target cost is determined based on the second delay cost, and the second energy consumption cost and the second cost cost required by the server to process the task to be calculated; the second target cost is used to characterize the estimated cost of offloading the task to be calculated to the server; based on the first target cost and the multiple second target costs corresponding to the multiple servers, the offloading strategy of the task to be calculated is determined; the offloading strategy includes offloading the task to be calculated to
  • the decision support of the offloading strategy can be provided to the user, and the estimated cost of the edge computing service corresponding to different offloading strategies can be combined to obtain a more efficient offloading strategy.
  • three differentiated indicators of latency, energy consumption and cost are introduced to determine the first target overhead and the second target overhead.
  • the latency overhead, energy consumption overhead and cost overhead of task offloading in the mobile edge computing system are comprehensively considered to optimize the decision-making basis of the offloading strategy, so that the coverage of the first target overhead and the second target overhead is wider and more comprehensive, thereby making the offloading decision method more perfect and improving the decision-making effect of the offloading decision of the task to be calculated.
  • the present application also provides an electronic device, see Figure 5, including: a processor 1201, a memory 1202, and a computer program 12021 stored in the memory and executable on the processor, and when the processor executes the program, the task offloading method for mobile edge computing of the aforementioned embodiment is implemented.
  • the present application also provides a non-volatile readable storage medium.
  • the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the task offloading method for mobile edge computing of the aforementioned embodiment.
  • the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
  • modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments.
  • the modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and/or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
  • the various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the sorting device according to the present application.
  • DSP digital signal processor
  • the present application can also be implemented as a device or apparatus program for executing part or all of the methods described herein.
  • Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiments of the present application relate to the technical field of edge computing. Provided are a task unloading method and apparatus for mobile edge computing, a device, and a medium. The method comprises: acquiring a first time delay overhead and a first energy consumption overhead required by a mobile terminal in a mobile edge computing system for processing a task to be computed, and determining a first target overhead on the basis of the first time delay overhead and the first energy consumption overhead; for any server amongst a plurality of servers contained in the mobile edge computing system, acquiring a second time delay overhead, a second energy consumption overhead and a second cost overhead required by the server for processing said task, and determining second target overheads on the basis of the second time delay overhead, the second energy consumption overhead and the second cost overhead; and determining an unloading policy of said task on the basis of the first target overhead and the plurality of second target overheads. Therefore, the present application allows for more comprehensive coverage of the first target overhead and the second target overheads, and improves unloading decision-making methods, thereby improving the decision-making effect of unloading decision-making.

Description

针对移动边缘计算的任务卸载方法、装置、设备及介质Task offloading method, device, equipment and medium for mobile edge computing

相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS

本申请要求于2023年05月05日提交中国专利局,申请号为202310495140.X,申请名称为“针对移动边缘计算的任务卸载方法、装置、设备及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to a Chinese patent application filed with the China Patent Office on May 5, 2023, with application number 202310495140.X, and entitled “Task offloading method, device, equipment and medium for mobile edge computing”, the entire contents of which are incorporated by reference into this application.

技术领域Technical Field

本申请属于边缘计算技术领域,特别是涉及一种针对移动边缘计算的任务卸载方法、装置、设备及介质。The present application belongs to the field of edge computing technology, and in particular, relates to a task offloading method, device, equipment and medium for mobile edge computing.

背景技术Background Art

移动边缘计算是为应用开发者和服务提供商在网络的边缘侧提供云服务和IT(Information Technology,信息技术)环境服务,目标是在靠近数据输入或用户的地方提供计算、存储和网络带宽。随着互联网技术的高速发展,用户对于移动终端设备的计算和数据需求也逐步增加,相应的,对存储能力以及处理器的处理能力有了更高的要求。Mobile edge computing provides cloud services and IT (Information Technology) environment services for application developers and service providers at the edge of the network. The goal is to provide computing, storage and network bandwidth close to data input or users. With the rapid development of Internet technology, users' computing and data demands for mobile terminal devices are gradually increasing, and accordingly, there are higher requirements for storage capacity and processor processing power.

相关技术中,对于移动终端设备的待计算任务的前期卸载决策方法并不完善,卸载决策效果较差。In the related art, the early offloading decision method for the pending computing tasks of the mobile terminal device is not perfect, and the offloading decision effect is poor.

发明内容Summary of the invention

本申请提供一种针对移动边缘计算的任务卸载方法、装置、设备及介质,以便解决移动终端设备的待计算任务的前期卸载决策方法不完善,且卸载决策效果较差的问题。The present application provides a task offloading method, apparatus, device and medium for mobile edge computing, so as to solve the problem that the early offloading decision method for the tasks to be calculated of the mobile terminal device is imperfect and the offloading decision effect is poor.

为了解决上述技术问题,本申请是这样实现的:In order to solve the above technical problems, this application is implemented as follows:

第一方面,本申请提供一种针对移动边缘计算的任务卸载方法,方法包括:In a first aspect, the present application provides a task offloading method for mobile edge computing, the method comprising:

获取移动边缘计算系统中的移动终端处理待计算任务时所需的第一时延开销以及第一能耗开销,并基于第一时延开销以及第一能耗开销确定第一目标开销;第一目标开销用于表征将待计算任务卸载至移动终端的预估开销;Obtaining a first delay overhead and a first energy consumption overhead required by a mobile terminal in a mobile edge computing system to process a task to be calculated, and determining a first target overhead based on the first delay overhead and the first energy consumption overhead; the first target overhead is used to characterize an estimated overhead of offloading the task to be calculated to the mobile terminal;

针对移动边缘计算系统包含的多个服务器中的任一服务器,获取服务器处理待计算任务时所需的第二时延开销,以及获取服务器处理待计算任务时所需的第二能耗开销以及第二成本开销,并基于第二时延开销、第二能耗开销以及第二成本开销确定第二目标开销;第二目标开销用于表征将待计算任务卸载至服务器的预估开销;For any server among the multiple servers included in the mobile edge computing system, obtain a second delay overhead required for the server to process the task to be calculated, and obtain a second energy consumption overhead and a second cost overhead required for the server to process the task to be calculated, and determine a second target overhead based on the second delay overhead, the second energy consumption overhead and the second cost overhead; the second target overhead is used to characterize the estimated overhead of offloading the task to be calculated to the server;

基于第一目标开销以及多个服务器对应的多个第二目标开销,确定待计算任务的卸载策略;卸载策略包括将待计算任务卸载至移动终端或将待计算任务卸载至目标服务器;目标服务器属于多个服务器。Based on the first target overhead and multiple second target overheads corresponding to multiple servers, an offloading strategy for the task to be calculated is determined; the offloading strategy includes offloading the task to be calculated to a mobile terminal or offloading the task to be calculated to a target server; the target server belongs to multiple servers.

在本申请的一些实施例中,获取移动边缘计算系统中的移动终端处理待计算任务时所需的第一时延开销以及第一能耗开销,包括:In some embodiments of the present application, obtaining a first delay overhead and a first energy consumption overhead required for a mobile terminal in a mobile edge computing system to process a task to be calculated includes:

获取移动终端执行待计算任务所需的本地处理器的运行周期数、本地处理器的处理器频率以及本地处理器的有效电容系数;Obtaining the number of operation cycles of the local processor, the processor frequency of the local processor, and the effective capacitance coefficient of the local processor required for the mobile terminal to execute the task to be calculated;

基于第一预设公式、运行周期数以及处理器频率,确定第一时延开销;Determine a first latency overhead based on a first preset formula, a number of operating cycles, and a processor frequency;

其中,第一预设公式为:cudu表示运行周期数,fu表示处理器频率,表示第一时延开销; Among them, the first preset formula is: c u d u represents the number of operating cycles, fu represents the processor frequency, represents the first delay overhead;

基于第二预设公式、运行周期数、处理器频率以及有效电容系数,确定第一能耗开销;Determining a first energy consumption cost based on a second preset formula, the number of operating cycles, the processor frequency, and the effective capacitance coefficient;

其中,第二预设公式为:ρ表示有效电容系数,表示第一能耗开销。Among them, the second preset formula is: ρ represents the effective capacitance coefficient, Represents the first energy consumption cost.

在本申请的一些实施例中,获取服务器处理待计算任务时所需的第二时延开销、第二能耗开销以及第二成本开销,包括:In some embodiments of the present application, obtaining the second delay overhead, the second energy consumption overhead, and the second cost overhead required by the server to process the task to be calculated includes:

预估服务器处理待计算任务时所需的处理时间,作为目标处理时间,并预估待计算任务上传至服务器的上传时间,作为目标上传时间;Estimate the processing time required by the server to process the task to be calculated as the target processing time, and estimate the upload time required to upload the task to be calculated to the server as the target upload time;

基于第三预设公式、目标处理时间以及目标上传时间,确定第二时延开销;Determine a second latency overhead based on a third preset formula, a target processing time, and a target upload time;

其中,第三预设公式为: 表示目标处理时间,表示目标上传时间,表示第二时延开销。Among them, the third preset formula is: represents the target processing time, Indicates the target upload time. Indicates the second delay overhead.

在本申请的一些实施例中,获取服务器处理待计算任务时所需的第二能耗开销以及第二成本开销,包括:In some embodiments of the present application, obtaining the second energy consumption and the second cost required by the server to process the task to be calculated includes:

基于第四预设公式、目标上传能耗以及目标闲置能耗,确定第二能耗开销;Determine a second energy consumption cost based on a fourth preset formula, the target upload energy consumption, and the target idle energy consumption;

其中,第四预设公式为: 表示目标上传能耗,表示目标闲置能耗,表示第二能耗开销;Among them, the fourth preset formula is: Indicates the target upload energy consumption, represents the target idle energy consumption, represents the second energy consumption overhead;

目标上传能耗为将待计算任务上传至服务器的预估能耗,目标闲置能耗为移动终端等待服务器处理待计算任务时的预估空闲能耗;The target upload energy consumption is the estimated energy consumption of uploading the task to be calculated to the server, and the target idle energy consumption is the estimated idle energy consumption when the mobile terminal is waiting for the server to process the task to be calculated;

基于第五预设公式、运行周期数以及单位运行周期数对应的使用费用,确定第二成本开销;Determine a second cost based on a fifth preset formula, the number of operating cycles, and the usage fee corresponding to the unit number of operating cycles;

其中,第五预设公式为:buv=βvcudu,βv表示单位运行周期数对应的使用费用。The fifth preset formula is: b uvv c u d u , where β v represents the usage fee corresponding to the unit number of operating cycles.

在本申请的一些实施例中,在基于第一预设公式、运行周期数以及处理器频率,确定第一时延开销之后,方法包括:In some embodiments of the present application, after determining the first latency overhead based on the first preset formula, the number of operating cycles, and the processor frequency, the method includes:

在第一时延开销大于预设时延阈值的情况下,直接确定待计算任务的卸载策略为将待计算任务卸载至目标服务器。When the first delay overhead is greater than the preset delay threshold, the offloading strategy of the task to be calculated is directly determined to offload the task to be calculated to the target server.

在本申请的一些实施例中,基于第二预设公式、运行周期数、处理器频率以及有效电容系数,确定第一能耗开销,包括:In some embodiments of the present application, determining the first energy consumption cost based on the second preset formula, the number of operating cycles, the processor frequency, and the effective capacitance coefficient includes:

在第一时延开销不大于预设时延阈值的情况下,基于第二预设公式、运行周期数、处理器频率以及有效电容系数,确定第一能耗开销。When the first delay overhead is not greater than the preset delay threshold, the first energy consumption overhead is determined based on a second preset formula, the number of operating cycles, the processor frequency, and the effective capacitance coefficient.

在本申请的一些实施例中,基于第四预设公式、目标上传能耗以及目标闲置能耗,确定第二能耗开销,包括:In some embodiments of the present application, the second energy consumption overhead is determined based on the fourth preset formula, the target upload energy consumption, and the target idle energy consumption, including:

在第二时延开销不大于预设时延阈值的情况下,基于第四预设公式、目标上传能耗以及目标闲置能耗,确定第二能耗开销。When the second delay overhead is not greater than the preset delay threshold, the second energy consumption overhead is determined based on a fourth preset formula, the target upload energy consumption, and the target idle energy consumption.

在本申请的一些实施例中,方法还包括:In some embodiments of the present application, the method further comprises:

在第二时延开销大于预设时延阈值或第二成本开销大于预设成本阈值的情况下,直接确定待计算任务的卸载策略为将待计算任务卸载至移动终端。When the second delay overhead is greater than the preset delay threshold or the second cost overhead is greater than the preset cost threshold, the offloading strategy of the task to be calculated is directly determined to offload the task to be calculated to the mobile terminal.

在本申请的一些实施例中,方法还包括:In some embodiments of the present application, the method further comprises:

预先设置时延权重系数以及能耗权重系数。The delay weight coefficient and energy consumption weight coefficient are preset.

基于第一时延开销以及第一能耗开销确定第一目标开销,包括:Determining a first target cost based on the first delay cost and the first energy consumption cost includes:

基于第六预设公式、时延权重系数与第一时延开销的乘积,以及能耗权重系数与第一能耗开销的乘积,确定第一目标开销; Determine the first target cost based on the sixth preset formula, the product of the delay weight coefficient and the first delay cost, and the product of the energy consumption weight coefficient and the first energy consumption cost;

其中,第六预设公式为:α1表示时延权重系数,表示第一时延开销,α2表示能耗权重系数,表示第一能耗开销,表示第一目标开销。Among them, the sixth preset formula is: α 1 represents the delay weight coefficient, represents the first delay overhead, α 2 represents the energy consumption weight coefficient, represents the first energy consumption, Indicates the first target cost.

在本申请的一些实施例中,方法还包括:In some embodiments of the present application, the method further comprises:

预先设置成本权重系数;Pre-set cost weight coefficients;

基于第二时延开销、第二能耗开销以及第二成本开销确定第二目标开销,包括:Determining a second target overhead based on the second delay overhead, the second energy consumption overhead, and the second cost overhead includes:

基于第七预设公式、时延权重系数与第二时延开销的乘积、能耗权重系数与第二能耗开销的乘积,以及成本权重系数与第二成本开销的乘积,确定第二目标开销;Determine the second target cost based on the seventh preset formula, the product of the delay weight coefficient and the second delay cost, the product of the energy consumption weight coefficient and the second energy consumption cost, and the product of the cost weight coefficient and the second cost cost;

其中,第七预设公式为:α1表示时延权重系数,表示第二时延开销,α2表示能耗权重系数,表示第二能耗开销,α3表示成本权重系数,buv表示第二成本开销,表示第二目标开销。Among them, the seventh preset formula is: α 1 represents the delay weight coefficient, represents the second delay overhead, α 2 represents the energy consumption weight coefficient, represents the second energy consumption cost, α 3 represents the cost weight coefficient, b uv represents the second cost cost, Indicates the secondary target cost.

在本申请的一些实施例中,基于第七预设公式、时延权重系数与第二时延开销的乘积、能耗权重系数与第二能耗开销的乘积,以及成本权重系数与第二成本开销的乘积,确定第二目标开销,包括:In some embodiments of the present application, based on the seventh preset formula, the product of the delay weight coefficient and the second delay cost, the product of the energy consumption weight coefficient and the second energy consumption cost, and the product of the cost weight coefficient and the second cost cost, determining the second target cost includes:

在第二成本开销不大于预设成本阈值的情况下,基于第七预设公式、时延权重系数与第二时延开销的乘积、能耗权重系数与第二能耗开销的乘积,以及成本权重系数与第二成本开销的乘积,确定第二目标开销。When the second cost overhead is not greater than the preset cost threshold, the second target overhead is determined based on the seventh preset formula, the product of the delay weight coefficient and the second delay overhead, the product of the energy consumption weight coefficient and the second energy consumption overhead, and the product of the cost weight coefficient and the second cost overhead.

在本申请的一些实施例中,基于第一目标开销以及多个服务器对应的多个第二目标开销,确定待计算任务的卸载策略,包括:In some embodiments of the present application, determining an offloading strategy for a task to be calculated based on a first target cost and a plurality of second target costs corresponding to a plurality of servers includes:

基于多个服务器对应的多个第二目标开销,确定多个第二目标开销中数值最小的第二目标开销,作为最小目标开销;Based on multiple second target costs corresponding to the multiple servers, determine the second target cost with the smallest value among the multiple second target costs as the minimum target cost;

基于最小目标开销以及第一目标开销,确定待计算任务的卸载策略。Based on the minimum target cost and the first target cost, an offloading strategy for the task to be calculated is determined.

在本申请的一些实施例中,在基于第二时延开销、第二能耗开销以及第二成本开销确定第二目标开销之后,方法包括:In some embodiments of the present application, after determining the second target overhead based on the second delay overhead, the second energy consumption overhead, and the second cost overhead, the method includes:

将第二目标开销记录至移动终端对应的目标决策列表;Recording the second target cost into a target decision list corresponding to the mobile terminal;

基于多个服务器对应的多个第二目标开销,确定多个第二目标开销中数值最小的第二目标开销,作为最小目标开销,包括:Determining, based on multiple second target costs corresponding to multiple servers, a second target cost with the smallest value among the multiple second target costs as the minimum target cost, includes:

在多个服务器对应的第二目标开销均记录完毕的情况下,获取目标决策列表中数值最小的第二目标开销,作为最小目标开销。When the second target costs corresponding to multiple servers are all recorded, the second target cost with the smallest value in the target decision list is obtained as the minimum target cost.

在本申请的一些实施例中,基于最小目标开销以及第一目标开销,确定待计算任务的卸载策略,包括:In some embodiments of the present application, determining an offloading strategy for a task to be calculated based on a minimum target overhead and a first target overhead includes:

若最小目标开销小于第一目标开销,则确定待计算任务的卸载策略为将待计算任务卸载至目标服务器;If the minimum target cost is less than the first target cost, determining the offloading strategy of the task to be calculated is to offload the task to be calculated to the target server;

若最小目标开销大于第一目标开销,则确定待计算任务的卸载策略为将待计算任务卸载至移动终端。If the minimum target cost is greater than the first target cost, the offloading strategy of the task to be calculated is determined to be offloading the task to be calculated to the mobile terminal.

在本申请的一些实施例中,在最小目标开销等于第一目标开销的情况下,基于最小目标开销以及第一目标开销,确定待计算任务的卸载策略,还包括:In some embodiments of the present application, when the minimum target cost is equal to the first target cost, determining the offloading strategy of the task to be calculated based on the minimum target cost and the first target cost further includes:

若时延权重系数、能耗权重系数以及成本权重系数中时延权重系数的数值最大,则基于第一时延开销以及最小目标开销对应的第二时延开销之间的大小关系,确定待计算任务的卸载策略; If the value of the delay weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is the largest, then based on the relationship between the first delay overhead and the second delay overhead corresponding to the minimum target overhead, determine the offloading strategy of the task to be calculated;

若时延权重系数、能耗权重系数以及成本权重系数中能耗权重系数的数值最大,则基于第一能耗开销以及最小目标开销对应的第二能耗开销之间的大小关系,确定待计算任务的卸载策略;If the value of the energy consumption weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is the largest, then based on the relationship between the first energy consumption overhead and the second energy consumption overhead corresponding to the minimum target overhead, determine the offloading strategy of the task to be calculated;

若时延权重系数、能耗权重系数以及成本权重系数中成本权重系数的数值最大,则直接确定待计算任务的卸载策略为将待计算任务卸载至移动终端。If the value of the cost weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is the largest, then the offloading strategy of the task to be calculated is directly determined to be offloading the task to be calculated to the mobile terminal.

在本申请的一些实施例中,基于第一时延开销以及最小目标开销对应的第二时延开销之间的大小关系,确定待计算任务的卸载策略,包括:In some embodiments of the present application, based on the size relationship between the first delay overhead and the second delay overhead corresponding to the minimum target overhead, determining the offloading strategy of the task to be calculated includes:

若第一时延开销大于最小目标开销对应的第二时延开销,则确定待计算任务的卸载策略为将待计算任务卸载至目标服务器;If the first delay overhead is greater than the second delay overhead corresponding to the minimum target overhead, determining the offloading strategy of the task to be calculated is to offload the task to be calculated to the target server;

若第一时延开销小于最小目标开销对应的第二时延开销,则确定待计算任务的卸载策略为将待计算任务卸载至移动终端;If the first delay overhead is less than the second delay overhead corresponding to the minimum target overhead, determining the offloading strategy of the task to be calculated is to offload the task to be calculated to the mobile terminal;

若第一时延开销等于最小目标开销对应的第二时延开销,则基于最小目标开销对应的第二能耗开销或最小目标开销对应的第二成本开销,确定待计算任务的卸载策略。If the first delay overhead is equal to the second delay overhead corresponding to the minimum target overhead, the offloading strategy of the task to be calculated is determined based on the second energy consumption overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead.

在本申请的一些实施例中,基于第一能耗开销以及最小目标开销对应的第二能耗开销之间的大小关系,确定待计算任务的卸载策略,包括:In some embodiments of the present application, based on the relationship between the first energy consumption overhead and the second energy consumption overhead corresponding to the minimum target overhead, determining the offloading strategy of the task to be calculated includes:

若第一能耗开销大于最小目标开销对应的第二能耗开销,则确定待计算任务的卸载策略为将待计算任务卸载至目标服务器;If the first energy consumption cost is greater than the second energy consumption cost corresponding to the minimum target cost, determining the offloading strategy of the task to be calculated is to offload the task to be calculated to the target server;

若第一能耗开销小于最小目标开销对应的第二能耗开销,则确定待计算任务的卸载策略为将待计算任务卸载至移动终端;If the first energy consumption cost is less than the second energy consumption cost corresponding to the minimum target cost, determining the offloading strategy of the task to be calculated is to offload the task to be calculated to the mobile terminal;

若第一能耗开销等于最小目标开销对应的第二能耗开销,则基于最小目标开销对应的第二时延开销或最小目标开销对应的第二成本开销,确定待计算任务的卸载策略。If the first energy consumption overhead is equal to the second energy consumption overhead corresponding to the minimum target overhead, the offloading strategy of the task to be calculated is determined based on the second delay overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead.

第二方面,本申请提供一种针对移动边缘计算的任务卸载装置,装置包括:In a second aspect, the present application provides a task offloading device for mobile edge computing, the device comprising:

第一获取模块,用于获取移动边缘计算系统中的移动终端处理待计算任务时所需的第一时延开销以及第一能耗开销,并基于第一时延开销以及第一能耗开销确定第一目标开销;第一目标开销用于表征将待计算任务卸载至移动终端的预估开销;A first acquisition module is used to acquire a first delay overhead and a first energy consumption overhead required by a mobile terminal in a mobile edge computing system to process a task to be calculated, and determine a first target overhead based on the first delay overhead and the first energy consumption overhead; the first target overhead is used to characterize an estimated overhead of offloading the task to be calculated to the mobile terminal;

第二获取模块,用于针对移动边缘计算系统包含的多个服务器中的任一服务器,获取服务器处理待计算任务时所需的第二时延开销,以及获取服务器处理待计算任务时所需的第二能耗开销以及第二成本开销,并基于第二时延开销、第二能耗开销以及第二成本开销确定第二目标开销;第二目标开销用于表征将待计算任务卸载至服务器的预估开销;A second acquisition module is used to obtain, for any server among the multiple servers included in the mobile edge computing system, a second delay overhead required for the server to process the task to be calculated, as well as a second energy consumption overhead and a second cost overhead required for the server to process the task to be calculated, and determine a second target overhead based on the second delay overhead, the second energy consumption overhead and the second cost overhead; the second target overhead is used to characterize the estimated overhead of offloading the task to be calculated to the server;

第一确定模块,用于基于第一目标开销以及多个服务器对应的多个第二目标开销,确定待计算任务的卸载策略;卸载策略包括将待计算任务卸载至移动终端或将待计算任务卸载至目标服务器;目标服务器属于多个服务器。The first determination module is used to determine the unloading strategy of the task to be calculated based on the first target overhead and multiple second target overheads corresponding to multiple servers; the unloading strategy includes unloading the task to be calculated to a mobile terminal or unloading the task to be calculated to a target server; the target server belongs to multiple servers.

在本申请的一些实施例中,第一获取模块包括:In some embodiments of the present application, the first acquisition module includes:

第一获取子模块,用于获取移动终端执行待计算任务所需的本地处理器的运行周期数、本地处理器的处理器频率以及本地处理器的有效电容系数;A first acquisition submodule is used to acquire the number of operation cycles of the local processor, the processor frequency of the local processor, and the effective capacitance coefficient of the local processor required for the mobile terminal to execute the task to be calculated;

第二确定模块,用于基于第一预设公式、运行周期数以及处理器频率,确定第一时延开销;A second determination module, configured to determine a first delay overhead based on a first preset formula, a number of operating cycles, and a processor frequency;

其中,第一预设公式为:cudu表示运行周期数,fu表示处理器频率,表示第一时延开销; Among them, the first preset formula is: c u d u represents the number of operating cycles, fu represents the processor frequency, represents the first delay overhead;

第三确定模块,用于基于第二预设公式、运行周期数、处理器频率以及有效电容系数,确定第一能耗开销;A third determination module, configured to determine a first energy consumption cost based on a second preset formula, a number of operation cycles, a processor frequency, and an effective capacitance coefficient;

其中,第二预设公式为:ρ表示有效电容系数,表示第一能耗开销。Among them, the second preset formula is: ρ is the effective capacitance coefficient, Represents the first energy consumption cost.

在本申请的一些实施例中,第二获取模块包括:In some embodiments of the present application, the second acquisition module includes:

第一预估模块,用于预估服务器处理待计算任务时所需的处理时间,作为目标处理时间,并预估待计算任务上传至服务器的上传时间,作为目标上传时间;The first estimation module is used to estimate the processing time required by the server to process the task to be calculated as the target processing time, and to estimate the upload time of uploading the task to be calculated to the server as the target upload time;

第四确定模块,用于基于第三预设公式、目标处理时间以及目标上传时间,确定第二时延开销;A fourth determination module, configured to determine a second delay overhead based on a third preset formula, a target processing time, and a target upload time;

其中,第三预设公式为: 表示目标处理时间,表示目标上传时间,表示第二时延开销。Among them, the third preset formula is: represents the target processing time, Indicates the target upload time. Indicates the second delay overhead.

在本申请的一些实施例中,第二获取模块包括:In some embodiments of the present application, the second acquisition module includes:

第五确定模块,用于基于第四预设公式、目标上传能耗以及目标闲置能耗,确定第二能耗开销;a fifth determining module, configured to determine a second energy consumption cost based on a fourth preset formula, a target upload energy consumption, and a target idle energy consumption;

其中,第四预设公式为: 表示目标上传能耗,表示目标闲置能耗,表示第二能耗开销;目标上传能耗为将待计算任务上传至服务器的预估能耗,目标闲置能耗为移动终端等待服务器处理待计算任务时的预估空闲能耗;Among them, the fourth preset formula is: Indicates the target upload energy consumption, represents the target idle energy consumption, represents the second energy consumption overhead; the target upload energy consumption is the estimated energy consumption of uploading the task to be calculated to the server, and the target idle energy consumption is the estimated idle energy consumption when the mobile terminal waits for the server to process the task to be calculated;

第六确定模块,用于基于第五预设公式、运行周期数以及单位运行周期数对应的使用费用,确定第二成本开销;A sixth determining module, configured to determine a second cost based on the fifth preset formula, the number of operating cycles, and the usage fee corresponding to the number of unit operating cycles;

其中,第五预设公式为:buv=βvcudu,βv表示单位运行周期数对应的使用费用。The fifth preset formula is: b uvv c u d u , where β v represents the usage fee corresponding to the unit number of operating cycles.

在本申请的一些实施例中,装置还包括:In some embodiments of the present application, the device further comprises:

第七确定模块,用于在第一时延开销大于预设时延阈值的情况下,直接确定待计算任务的卸载策略为将待计算任务卸载至目标服务器。The seventh determination module is used to directly determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the target server when the first delay overhead is greater than a preset delay threshold.

在本申请的一些实施例中,第三确定模块,包括:In some embodiments of the present application, the third determination module includes:

第三确定子模块,用于在第一时延开销不大于预设时延阈值的情况下,基于第二预设公式、运行周期数、处理器频率以及有效电容系数,确定第一能耗开销。The third determination submodule is used to determine the first energy consumption overhead based on a second preset formula, the number of operating cycles, the processor frequency and the effective capacitance coefficient when the first delay overhead is not greater than a preset delay threshold.

在本申请的一些实施例中,第五确定模块,包括:In some embodiments of the present application, the fifth determining module includes:

第四确定子模块,用于在第二时延开销不大于预设时延阈值的情况下,基于第四预设公式、目标上传能耗以及目标闲置能耗,确定第二能耗开销。The fourth determination submodule is used to determine the second energy consumption overhead based on a fourth preset formula, the target upload energy consumption and the target idle energy consumption when the second delay overhead is not greater than the preset delay threshold.

在本申请的一些实施例中,装置还包括:In some embodiments of the present application, the device further comprises:

第五确定子模块,用于在第二时延开销大于预设时延阈值或第二成本开销大于预设成本阈值的情况下,直接确定待计算任务的卸载策略为将待计算任务卸载至移动终端。The fifth determination submodule is used to directly determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the mobile terminal when the second delay overhead is greater than a preset delay threshold or the second cost overhead is greater than a preset cost threshold.

在本申请的一些实施例中,装置还包括:In some embodiments of the present application, the device further comprises:

第一设置模块,用于预先设置时延权重系数以及能耗权重系数。The first setting module is used to pre-set the delay weight coefficient and the energy consumption weight coefficient.

第一获取模块,包括:The first acquisition module includes:

第六确定子模块,用于基于第六预设公式、时延权重系数与第一时延开销的乘积,以及能耗权重系数与第一能耗开销的乘积,确定第一目标开销;A sixth determination submodule, configured to determine a first target cost based on a sixth preset formula, a product of a delay weight coefficient and a first delay cost, and a product of an energy consumption weight coefficient and a first energy consumption cost;

其中,第六预设公式为:α1表示时延权重系数,表示第一时延开销,α2表示能耗权重系数,表示第一能耗开销,表示第一目标开销。Among them, the sixth preset formula is: α 1 represents the delay weight coefficient, represents the first delay overhead, α 2 represents the energy consumption weight coefficient, represents the first energy consumption, Indicates the first target cost.

在本申请的一些实施例中,装置还包括: In some embodiments of the present application, the device further comprises:

第二设置模块,用于预先设置成本权重系数;The second setting module is used to pre-set the cost weight coefficient;

第二获取模块,包括:The second acquisition module includes:

第七确定子模块,用于基于第七预设公式、时延权重系数与第二时延开销的乘积、能耗权重系数与第二能耗开销的乘积,以及成本权重系数与第二成本开销的乘积,确定第二目标开销;a seventh determination submodule, configured to determine the second target cost based on a seventh preset formula, a product of a delay weight coefficient and a second delay cost, a product of an energy consumption weight coefficient and a second energy consumption cost, and a product of a cost weight coefficient and a second cost cost;

其中,第七预设公式为:α1表示时延权重系数,表示第二时延开销,α2表示能耗权重系数,表示第二能耗开销,α3表示成本权重系数,buv表示第二成本开销,表示第二目标开销。Among them, the seventh preset formula is: α 1 represents the delay weight coefficient, represents the second delay overhead, α 2 represents the energy consumption weight coefficient, represents the second energy consumption cost, α 3 represents the cost weight coefficient, b uv represents the second cost cost, Indicates the secondary target cost.

在本申请的一些实施例中,第七确定子模块,包括:In some embodiments of the present application, the seventh determining submodule includes:

第八确定子模块,用于在第二成本开销不大于预设成本阈值的情况下,基于第七预设公式、时延权重系数与第二时延开销的乘积、能耗权重系数与第二能耗开销的乘积,以及成本权重系数与第二成本开销的乘积,确定第二目标开销。The eighth determination submodule is used to determine the second target overhead based on the seventh preset formula, the product of the delay weight coefficient and the second delay overhead, the product of the energy consumption weight coefficient and the second energy consumption overhead, and the product of the cost weight coefficient and the second cost overhead when the second cost overhead is not greater than the preset cost threshold.

在本申请的一些实施例中,第一确定模块,包括:In some embodiments of the present application, the first determining module includes:

第九确定子模块,用于基于多个服务器对应的多个第二目标开销,确定多个第二目标开销中数值最小的第二目标开销,作为最小目标开销;A ninth determination submodule, configured to determine, based on the plurality of second target costs corresponding to the plurality of servers, a second target cost having the smallest value among the plurality of second target costs as the minimum target cost;

第十确定子模块,用于基于最小目标开销以及第一目标开销,确定待计算任务的卸载策略。The tenth determination submodule is used to determine the offloading strategy of the task to be calculated based on the minimum target overhead and the first target overhead.

在本申请的一些实施例中,装置还包括:In some embodiments of the present application, the device further comprises:

第一记录模块,用于将第二目标开销记录至移动终端对应的目标决策列表;A first recording module, configured to record the second target cost into a target decision list corresponding to the mobile terminal;

第九确定子模块,包括:The ninth determination submodule includes:

第二获取子模块,用于在多个服务器对应的第二目标开销均记录完毕的情况下,获取目标决策列表中数值最小的第二目标开销,作为最小目标开销。The second acquisition submodule is used to obtain the second target cost with the smallest value in the target decision list as the minimum target cost when the second target costs corresponding to multiple servers are recorded.

在本申请的一些实施例中,第十确定子模块,包括:In some embodiments of the present application, the tenth determining submodule includes:

第十一确定子模块,用于若最小目标开销小于第一目标开销,则确定待计算任务的卸载策略为将待计算任务卸载至目标服务器;an eleventh determination submodule, configured to determine, if the minimum target cost is less than the first target cost, that the offloading strategy of the task to be calculated is to offload the task to be calculated to the target server;

第十二确定子模块,用于若最小目标开销大于第一目标开销,则确定待计算任务的卸载策略为将待计算任务卸载至移动终端。The twelfth determination submodule is used to determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the mobile terminal if the minimum target overhead is greater than the first target overhead.

在本申请的一些实施例中,在最小目标开销等于第一目标开销的情况下,第十确定子模块,包括:In some embodiments of the present application, when the minimum target cost is equal to the first target cost, the tenth determining submodule includes:

第十三确定子模块,用于若时延权重系数、能耗权重系数以及成本权重系数中时延权重系数的数值最大,则基于第一时延开销以及最小目标开销对应的第二时延开销之间的大小关系,确定待计算任务的卸载策略;A thirteenth determination submodule is used to determine the unloading strategy of the task to be calculated based on the relationship between the first delay overhead and the second delay overhead corresponding to the minimum target overhead if the delay weight coefficient has the largest value among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient;

第十四确定子模块,用于若时延权重系数、能耗权重系数以及成本权重系数中能耗权重系数的数值最大,则基于第一能耗开销以及最小目标开销对应的第二能耗开销之间的大小关系,确定待计算任务的卸载策略;A fourteenth determination submodule is used to determine the unloading strategy of the task to be calculated based on the relationship between the first energy consumption overhead and the second energy consumption overhead corresponding to the minimum target overhead if the energy consumption weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient has the largest value;

第十五确定子模块,用于若时延权重系数、能耗权重系数以及成本权重系数中成本权重系数的数值最大,则直接确定待计算任务的卸载策略为将待计算任务卸载至移动终端。The fifteenth determination submodule is used to directly determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the mobile terminal if the value of the cost weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is the largest.

在本申请的一些实施例中,第十三确定子模块,包括:In some embodiments of the present application, the thirteenth determining submodule includes:

第十六确定子模块,用于若第一时延开销大于最小目标开销对应的第二时延开销,则确 定待计算任务的卸载策略为将待计算任务卸载至目标服务器。The sixteenth determination submodule is used to determine if the first delay overhead is greater than the second delay overhead corresponding to the minimum target overhead. The offloading strategy of the task to be calculated is to offload the task to be calculated to the target server.

第十七确定子模块,用于若第一时延开销小于最小目标开销对应的第二时延开销,则确定待计算任务的卸载策略为将待计算任务卸载至移动终端。The seventeenth determination submodule is used to determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the mobile terminal if the first delay overhead is less than the second delay overhead corresponding to the minimum target overhead.

第十八确定子模块,用于若第一时延开销等于最小目标开销对应的第二时延开销,则基于最小目标开销对应的第二能耗开销或最小目标开销对应的第二成本开销,确定待计算任务的卸载策略。The eighteenth determination submodule is used to determine the unloading strategy of the task to be calculated based on the second energy consumption overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead if the first delay overhead is equal to the second delay overhead corresponding to the minimum target overhead.

在本申请的一些实施例中,第十四确定子模块,包括:In some embodiments of the present application, the fourteenth determining submodule includes:

第十九确定子模块,用于若第一能耗开销大于最小目标开销对应的第二能耗开销,则确定待计算任务的卸载策略为将待计算任务卸载至目标服务器。The nineteenth determination submodule is used to determine the unloading strategy of the task to be calculated as unloading the task to be calculated to the target server if the first energy consumption overhead is greater than the second energy consumption overhead corresponding to the minimum target overhead.

第二十确定子模块,用于若第一能耗开销小于最小目标开销对应的第二能耗开销,则确定待计算任务的卸载策略为将待计算任务卸载至移动终端。The twentieth determination submodule is used to determine the unloading strategy of the task to be calculated as unloading the task to be calculated to the mobile terminal if the first energy consumption overhead is less than the second energy consumption overhead corresponding to the minimum target overhead.

第二十一确定子模块,用于若第一能耗开销等于最小目标开销对应的第二能耗开销,则基于最小目标开销对应的第二时延开销或最小目标开销对应的第二成本开销,确定待计算任务的卸载策略。The twenty-first determination submodule is used to determine the unloading strategy of the task to be calculated based on the second delay overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead if the first energy consumption overhead is equal to the second energy consumption overhead corresponding to the minimum target overhead.

第三方面,本申请提供一种电子设备,包括:处理器、存储器以及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,处理器执行程序时实现上述针对移动边缘计算的任务卸载方法。In a third aspect, the present application provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the above-mentioned task offloading method for mobile edge computing when executing the program.

第四方面,本申请提供一种非易失性可读存储介质,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行上述针对移动边缘计算的任务卸载方法。In a fourth aspect, the present application provides a non-volatile readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can perform the above-mentioned task offloading method for mobile edge computing.

在本申请实施例中,通过获取移动边缘计算系统中的移动终端处理待计算任务时所需的第一时延开销以及第一能耗开销,并基于第一时延开销以及第一能耗开销确定第一目标开销;第一目标开销用于表征将待计算任务卸载至移动终端的预估开销;针对移动边缘计算系统包含的多个服务器中的任一服务器,获取服务器处理待计算任务时所需的第二时延开销,以及获取服务器处理待计算任务时所需的第二能耗开销以及第二成本开销,并基于第二时延开销、第二能耗开销以及第二成本开销确定第二目标开销;第二目标开销用于表征将待计算任务卸载至服务器的预估开销;基于第一目标开销以及多个服务器对应的多个第二目标开销,确定待计算任务的卸载策略;卸载策略包括将待计算任务卸载至移动终端或将待计算任务卸载至目标服务器;目标服务器属于多个服务器。这样,通过确定第一目标开销以及多个第二目标开销,可以为用户提供卸载策略的决策支撑,并且结合不同卸载策略对应的预估开销,能够得到效益较高的卸载策略。同时,引入时延、能耗以及成本三种差异化的指标,确定第一目标开销以及第二目标开销,综合考虑移动边缘计算系统中任务卸载的时延开销、能耗开销和成本开销,优化卸载策略的决策依据,以使得第一目标开销以及第二目标开销的覆盖性更广泛且全面,进而使得卸载决策方法更加完善,提高了卸载决策的决策效果。In an embodiment of the present application, the first delay cost and the first energy consumption cost required by the mobile terminal in the mobile edge computing system to process the task to be calculated are obtained, and the first target cost is determined based on the first delay cost and the first energy consumption cost; the first target cost is used to characterize the estimated cost of unloading the task to be calculated to the mobile terminal; for any server among the multiple servers included in the mobile edge computing system, the second delay cost required by the server to process the task to be calculated is obtained, and the second energy consumption cost and the second cost cost required by the server to process the task to be calculated are obtained, and the second target cost is determined based on the second delay cost, the second energy consumption cost and the second cost cost; the second target cost is used to characterize the estimated cost of unloading the task to be calculated to the server; based on the first target cost and the multiple second target costs corresponding to the multiple servers, the unloading strategy of the task to be calculated is determined; the unloading strategy includes unloading the task to be calculated to the mobile terminal or unloading the task to be calculated to the target server; the target server belongs to multiple servers. In this way, by determining the first target cost and the multiple second target costs, the decision support of the unloading strategy can be provided to the user, and the unloading strategy with higher efficiency can be obtained by combining the estimated costs corresponding to different unloading strategies. At the same time, three differentiated indicators of latency, energy consumption and cost are introduced to determine the first target overhead and the second target overhead. The latency overhead, energy consumption overhead and cost overhead of task offloading in the mobile edge computing system are comprehensively considered to optimize the decision-making basis of the offloading strategy, so that the coverage of the first target overhead and the second target overhead is wider and more comprehensive, thereby making the offloading decision method more perfect and improving the decision-making effect of the offloading decision.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

图1是本申请实施例提供的一种针对移动边缘计算的任务卸载方法的步骤流程图; FIG1 is a flowchart of a method for offloading tasks for mobile edge computing provided by an embodiment of the present application;

图2是本申请实施例提供的一种移动边缘计算的架构图;FIG2 is an architecture diagram of a mobile edge computing provided in an embodiment of the present application;

图3是本申请实施例提供的一种针对移动边缘计算的任务卸载方法的具体流程图;FIG3 is a specific flow chart of a task offloading method for mobile edge computing provided in an embodiment of the present application;

图4是本申请实施例提供的一种针对移动边缘计算的任务卸载装置的结构图;FIG4 is a structural diagram of a task offloading device for mobile edge computing provided in an embodiment of the present application;

图5是本申请实施例提供的一种电子设备的结构图。FIG5 is a structural diagram of an electronic device provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. The described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

图1是本申请实施例提供的一种针对移动边缘计算的任务卸载方法的步骤流程图,如图1所示,该方法可以包括:FIG. 1 is a flowchart of a method for task offloading for mobile edge computing provided by an embodiment of the present application. As shown in FIG. 1 , the method may include:

步骤101、获取移动边缘计算系统中的移动终端处理待计算任务时所需的第一时延开销以及第一能耗开销,并基于第一时延开销以及第一能耗开销确定第一目标开销;第一目标开销用于表征将待计算任务卸载至移动终端的预估开销。Step 101: obtain a first delay overhead and a first energy consumption overhead required for a mobile terminal in a mobile edge computing system to process a task to be calculated, and determine a first target overhead based on the first delay overhead and the first energy consumption overhead; the first target overhead is used to characterize the estimated overhead of offloading the task to be calculated to the mobile terminal.

在本申请的一些实施例中,移动边缘计算系统可以包括多个移动终端、多个基站以及多个移动边缘计算(Mobile Edge Computing,MEC)服务器。MEC服务器可以分散部署在移动终端附近,1台MEC服务器的物理覆盖范围内可以有多个移动终端,1个移动终端可以被多个邻近的MEC服务器覆盖。在移动边缘计算中,允许移动终端的用户将待计算任务整体卸载到与该移动终端邻近的MEC服务器,并由MEC服务器对待计算任务进行处理;也可以将待计算任务整体卸载到移动终端的本地处理器,如中央处理器(Central Processing Unit,CPU),并由本地处理器对待计算任务进行处理。如图2所示,若选择将待计算任务卸载到MEC服务器,则移动终端设备可以通过基站将待计算任务上传至MEC服务器,其中,基站用于提供无线覆盖,是移动终端接入互联网的接口设备,移动终端设备通过基站提供的无线信道,以将待计算任务上传至MEC服务器。In some embodiments of the present application, the mobile edge computing system may include multiple mobile terminals, multiple base stations, and multiple mobile edge computing (MEC) servers. MEC servers may be deployed in a dispersed manner near mobile terminals. There may be multiple mobile terminals within the physical coverage of one MEC server, and one mobile terminal may be covered by multiple adjacent MEC servers. In mobile edge computing, the user of the mobile terminal is allowed to unload the entire task to be calculated to the MEC server adjacent to the mobile terminal, and the MEC server processes the task to be calculated; the task to be calculated may also be unloaded to the local processor of the mobile terminal, such as the central processing unit (CPU), and the local processor processes the task to be calculated. As shown in FIG2, if the task to be calculated is selected to be unloaded to the MEC server, the mobile terminal device may upload the task to be calculated to the MEC server through the base station, wherein the base station is used to provide wireless coverage and is an interface device for the mobile terminal to access the Internet. The mobile terminal device uploads the task to be calculated to the MEC server through the wireless channel provided by the base station.

针对移动边缘计算系统中的任一移动终端,可以基于移动终端的本地处理器的基础数据以及待计算任务的数据大小确定第一时延开销以及第一能耗开销,其中,第一时延开销为若将待计算任务卸载至移动终端,移动终端处理待计算任务所需花费的时间;第一能耗开销为若将待计算任务卸载至移动终端,移动终端处理待计算任务产生的能耗。基于第一时延开销以及第一能耗开销,可以确定第一目标开销,第一目标开销可以表征若将待计算任务卸载至移动终端,移动终端进行处理所需的总体开销。示例性的,第一时延开销、第一能耗开销以及第一目标开销可以通过第一算法模型得到,第一算法模型可以部署在移动终端内部,在移动终端存在待计算任务的情况下,可以在移动终端利用第一算法模型进行开销计算。For any mobile terminal in the mobile edge computing system, the first delay overhead and the first energy consumption overhead can be determined based on the basic data of the local processor of the mobile terminal and the data size of the task to be calculated, wherein the first delay overhead is the time required for the mobile terminal to process the task to be calculated if the task to be calculated is unloaded to the mobile terminal; the first energy consumption overhead is the energy consumption generated by the mobile terminal processing the task to be calculated if the task to be calculated is unloaded to the mobile terminal. Based on the first delay overhead and the first energy consumption overhead, the first target overhead can be determined, and the first target overhead can characterize the overall overhead required for the mobile terminal to process if the task to be calculated is unloaded to the mobile terminal. Exemplarily, the first delay overhead, the first energy consumption overhead and the first target overhead can be obtained through the first algorithm model, and the first algorithm model can be deployed inside the mobile terminal. When there is a task to be calculated in the mobile terminal, the first algorithm model can be used to calculate the overhead in the mobile terminal.

步骤102、针对移动边缘计算系统包含的多个服务器中的任一服务器,获取服务器处理待计算任务时所需的第二时延开销,以及获取服务器处理待计算任务时所需的第二能耗开销以及第二成本开销,并基于第二时延开销、第二能耗开销以及第二成本开销确定第二目标开销;第二目标开销用于表征将待计算任务卸载至服务器的预估开销。Step 102: For any server among the multiple servers included in the mobile edge computing system, obtain the second delay overhead required for the server to process the task to be calculated, as well as the second energy consumption overhead and the second cost overhead required for the server to process the task to be calculated, and determine the second target overhead based on the second delay overhead, the second energy consumption overhead and the second cost overhead; the second target overhead is used to characterize the estimated overhead of offloading the task to be calculated to the server.

在本申请的一些实施例中,移动边缘计算系统中的服务器可以是MEC服务器,第二时延开销可以包括:若将待计算任务卸载至服务器,待计算任务上传至服务器的时间、服务器处理待计算任务所需花费的时间以及处理结果回传至移动终端的时间;第二能耗开销可以包 括:将待计算任务上传至服务器所产生的能耗以及移动终端等待服务器返回处理结果的闲置能耗。由于移动边缘计算中的服务器是付费使用的,因此需要基于服务器的收费价格,确定处理待计算任务所需要支付的费用,即第二成本开销。针对多个服务器中的任一服务器,获取该服务器处理待计算任务时所需的第二时延开销、第二能耗开销以及第二成本开销,并确定第二目标开销。第二目标开销可以表征若将待计算任务卸载至该服务器所需的总体开销。示例性的,第二时延开销、第二能耗开销、第二成本开销以及第二目标开销可以通过第二算法模型得到,第二算法模型可以部署在移动终端内部,在移动终端存在待计算任务的情况下,可以在移动终端利用第一算法模型以及第二开销模型分别进行开销计算,评估两种卸载策略对应的开销情况。In some embodiments of the present application, the server in the mobile edge computing system may be an MEC server, and the second latency overhead may include: if the task to be calculated is offloaded to the server, the time it takes to upload the task to be calculated to the server, the time it takes for the server to process the task to be calculated, and the time it takes for the processing result to be transmitted back to the mobile terminal; the second energy consumption overhead may include Including: the energy consumption generated by uploading the task to be calculated to the server and the idle energy consumption of the mobile terminal waiting for the server to return the processing result. Since the server in mobile edge computing is paid for use, it is necessary to determine the fee required to process the task to be calculated based on the server's charging price, that is, the second cost overhead. For any server among multiple servers, obtain the second delay overhead, second energy consumption overhead and second cost overhead required for the server to process the task to be calculated, and determine the second target overhead. The second target overhead can represent the overall overhead required to offload the task to be calculated to the server. Exemplarily, the second delay overhead, the second energy consumption overhead, the second cost overhead and the second target overhead can be obtained by the second algorithm model. The second algorithm model can be deployed inside the mobile terminal. When there is a task to be calculated in the mobile terminal, the first algorithm model and the second overhead model can be used in the mobile terminal to perform overhead calculations respectively, and evaluate the overhead corresponding to the two offloading strategies.

步骤103、基于第一目标开销以及多个服务器对应的多个第二目标开销,确定待计算任务的卸载策略;卸载策略包括将待计算任务卸载至移动终端或将待计算任务卸载至目标服务器;目标服务器属于多个服务器。Step 103, based on the first target overhead and multiple second target overheads corresponding to multiple servers, determine the offloading strategy of the task to be calculated; the offloading strategy includes offloading the task to be calculated to the mobile terminal or offloading the task to be calculated to the target server; the target server belongs to multiple servers.

在本申请的一些实施例中,基于第一目标开销以及多个服务器对应的多个第二目标开销,可以根据多个开销值的大小关系,确定待计算任务的卸载策略,即将待计算任务卸载至移动终端或将待计算任务卸载至目标服务器,其中,可以根据实际需求从多个服务器中选择至少一个服务器作为目标服务器,具体选择方式本申请实施例对此不作限制。In some embodiments of the present application, based on the first target overhead and multiple second target overheads corresponding to multiple servers, the unloading strategy of the task to be calculated can be determined according to the size relationship of the multiple overhead values, that is, the task to be calculated can be unloaded to the mobile terminal or the task to be calculated can be unloaded to the target server, wherein at least one server can be selected from the multiple servers as the target server according to actual needs, and the specific selection method is not limited in the embodiments of the present application.

可以理解的是,在本申请的一些实施例中的待计算任务为一个完整的计算任务,不可分割,因此,在本申请的一些实施例中的卸载策略是两种不同的卸载对象类型对应的不同卸载策略,即将待计算任务卸载至移动终端或将待计算任务卸载至服务器。这样,在前期判断过程中,对卸载对象的类型做出选择,不考虑具体卸载到哪个服务器,快速且简便的通过本申请实施例提供的方法进行初期判断,得到效益较高的初步卸载策略,后续可以基于该初步卸载策略进一步确定具体卸载方式。在确定待计算任务的卸载策略为将待计算任务卸载至目标服务器的情况下,具体卸载至多个服务器中的哪个服务器,可以根据实际需求进行选择,本申请实施例对此不作限制。It is understandable that the task to be calculated in some embodiments of the present application is a complete computing task and is indivisible. Therefore, the unloading strategy in some embodiments of the present application is a different unloading strategy corresponding to two different types of unloading objects, that is, unloading the task to be calculated to a mobile terminal or unloading the task to be calculated to a server. In this way, in the preliminary judgment process, a selection is made for the type of unloading object, without considering which server to be specifically unloaded to, and an initial judgment is made quickly and easily through the method provided in the embodiment of the present application to obtain a preliminary unloading strategy with higher efficiency. The specific unloading method can be further determined based on the preliminary unloading strategy. In the case of determining that the unloading strategy of the task to be calculated is to unload the task to be calculated to the target server, which server among the multiple servers is specifically unloaded to can be selected according to actual needs, and the embodiment of the present application does not limit this.

综上,本发明实施例中,通过获取移动边缘计算系统中的移动终端处理待计算任务时所需的第一时延开销以及第一能耗开销,并基于第一时延开销以及第一能耗开销确定第一目标开销;第一目标开销用于表征将待计算任务卸载至移动终端的预估开销;针对移动边缘计算系统包含的多个服务器中的任一服务器,获取服务器处理待计算任务时所需的第二时延开销,以及获取服务器处理待计算任务时所需的第二能耗开销以及第二成本开销,并基于第二时延开销、第二能耗开销以及第二成本开销确定第二目标开销;第二目标开销用于表征将待计算任务卸载至服务器的预估开销;基于第一目标开销以及多个服务器对应的多个第二目标开销,确定待计算任务的卸载策略;卸载策略包括将待计算任务卸载至移动终端或将待计算任务卸载至目标服务器;目标服务器属于多个服务器。这样,通过确定第一目标开销以及多个第二目标开销,可以为用户提供卸载策略的决策支撑,并且结合不同卸载策略对应的预估开销,能够得到效益较高的卸载策略。同时,引入时延、能耗以及成本三种差异化的指标,确定第一目标开销以及第二目标开销,综合考虑移动边缘计算系统中任务卸载的时延开销、能耗开销和成本开销,优化卸载策略的决策依据,以使得第一目标开销以及第二目标开销的覆盖性更广泛且全面,进而使得卸载决策方法更加完善,提高了卸载决策的决策效果。In summary, in an embodiment of the present invention, by obtaining the first delay cost and the first energy consumption cost required by the mobile terminal in the mobile edge computing system to process the task to be calculated, and determining the first target cost based on the first delay cost and the first energy consumption cost; the first target cost is used to characterize the estimated cost of unloading the task to be calculated to the mobile terminal; for any server among the multiple servers included in the mobile edge computing system, the second delay cost required by the server to process the task to be calculated, and the second energy consumption cost and the second cost cost required by the server to process the task to be calculated, and the second target cost is determined based on the second delay cost, the second energy consumption cost and the second cost cost; the second target cost is used to characterize the estimated cost of unloading the task to be calculated to the server; based on the first target cost and the multiple second target costs corresponding to the multiple servers, the unloading strategy of the task to be calculated is determined; the unloading strategy includes unloading the task to be calculated to the mobile terminal or unloading the task to be calculated to the target server; the target server belongs to multiple servers. In this way, by determining the first target cost and the multiple second target costs, the decision support of the unloading strategy can be provided to the user, and the unloading strategy with higher efficiency can be obtained by combining the estimated costs corresponding to different unloading strategies. At the same time, three differentiated indicators of latency, energy consumption and cost are introduced to determine the first target overhead and the second target overhead. The latency overhead, energy consumption overhead and cost overhead of task offloading in the mobile edge computing system are comprehensively considered to optimize the decision-making basis of the offloading strategy, so that the coverage of the first target overhead and the second target overhead is wider and more comprehensive, thereby making the offloading decision method more perfect and improving the decision-making effect of the offloading decision.

进一步地,本申请实施例是在面向用户的移动边缘计算场景中,对卸载决策策略预先进 行初步判断,即先确定是将待计算任务卸载到移动终端还是服务器,为移动终端的用户提供更实用的决策依据,相较于判断将待计算任务卸载到移动终端还是具体卸载到某一确定的服务器,本申请实施例提供的卸载方法确定过程相对简单,提高了卸载策略的确定过程的效率。Furthermore, the embodiment of the present application is to pre-process the uninstall decision strategy in the user-oriented mobile edge computing scenario. A preliminary judgment is made, that is, whether to offload the task to be calculated to the mobile terminal or the server is first determined, so as to provide a more practical decision-making basis for the user of the mobile terminal. Compared with judging whether to offload the task to be calculated to the mobile terminal or to a specific server, the determination process of the offloading method provided in the embodiment of the present application is relatively simple, which improves the efficiency of the determination process of the offloading strategy.

在本申请的一些实施例中,步骤101可以包括以下步骤:In some embodiments of the present application, step 101 may include the following steps:

步骤201、获取移动终端执行待计算任务所需的本地处理器的运行周期数、本地处理器的处理器频率以及本地处理器的有效电容系数。Step 201: Obtain the number of operation cycles of the local processor, the processor frequency of the local processor, and the effective capacitance coefficient of the local processor required for the mobile terminal to execute the task to be calculated.

在本申请的一些实施例中,可以基于待计算任务的大小,以及单位比特的任务所需消耗的计算资源,确定待计算任务所需的处理器的运行周期数。示例性的,假设在一个多移动终端、多服务器的应用场景下,有U个移动终端,集合为U={1,2,…,u,…,U},和V个服务器集合为V={1,2,…,v,…,V},假设每个移动终端u都存在待计算任务,且每个待计算任务不可分割。待计算任务的大小可以表示为du,单位为比特(bits)。单位比特的任务所需消耗的计算资源可以表示为cu,也可表示为完成单位比特的任务所需要的CPU周期数,单位为cycles/bit,则cudu可以表示待计算任务所需的处理器的运行周期数,在将待计算任务卸载到移动终端进行处理的情况下,cudu也可以表示移动终端执行待计算任务所需的本地处理器的运行周期数。获取本地处理器的处理器频率,可以用fu表示,表征将待计算任务卸载到移动终端进行处理时处理器的计算能力。获取本地处理器的有效电容系数,可以用ρ表示,有效电容系数取决于移动终端中的CPU的结构,不同CPU可以对应不同的有效电容系数。本地处理器的处理器频率以及有效电容系数可以通过本地处理器的标定参数获取。In some embodiments of the present application, the number of processor operation cycles required for the task to be calculated can be determined based on the size of the task to be calculated and the computing resources consumed by the task per bit. Exemplarily, assuming that in an application scenario with multiple mobile terminals and multiple servers, there are U mobile terminals, the set is U = {1, 2, ..., u, ..., U}, and the set of V servers is V = {1, 2, ..., v, ..., V}, assuming that each mobile terminal u has a task to be calculated, and each task to be calculated is indivisible. The size of the task to be calculated can be expressed as du , in bits. The computing resources consumed by the task per bit can be expressed as c u , or as the number of CPU cycles required to complete the task per bit, in cycles/bit, then c u d u can represent the number of processor operation cycles required for the task to be calculated, and when the task to be calculated is offloaded to the mobile terminal for processing, c u d u can also represent the number of local processor operation cycles required for the mobile terminal to execute the task to be calculated. The processor frequency of the local processor can be obtained, which can be represented by f u , and represents the computing power of the processor when the computing task is offloaded to the mobile terminal for processing. The effective capacitance coefficient of the local processor can be obtained, which can be represented by ρ. The effective capacitance coefficient depends on the structure of the CPU in the mobile terminal, and different CPUs can correspond to different effective capacitance coefficients. The processor frequency and effective capacitance coefficient of the local processor can be obtained through the calibration parameters of the local processor.

步骤202、基于第一预设公式、运行周期数以及处理器频率,确定第一时延开销。Step 202: Determine a first delay overhead based on a first preset formula, the number of operating cycles, and a processor frequency.

在本申请的一些实施例中,可以通过第一算法模型基于运行周期数以及处理器频率,根据第一预设公式计算第一时延开销。In some embodiments of the present application, the first delay overhead may be calculated according to a first preset formula using a first algorithm model based on the number of operating cycles and the processor frequency.

(第一预设公式); (First preset formula);

其中,表示第一时延开销,即将待计算任务卸载至移动终端进行处理的处理时间,cu为单位比特的任务所需消耗的计算资源,du为待计算任务的大小,fu为本地处理器的处理器频率。in, represents the first delay overhead, that is, the processing time of offloading the task to be calculated to the mobile terminal for processing, cu is the computing resource required for the task per unit bit, du is the size of the task to be calculated, and fu is the processor frequency of the local processor.

步骤203、基于第二预设公式、运行周期数、处理器频率以及有效电容系数,确定第一能耗开销。Step 203: Determine a first energy consumption cost based on a second preset formula, the number of operating cycles, the processor frequency, and the effective capacitance coefficient.

在本申请的一些实施例中,可以通过第一算法模型基于运行周期数、处理器频率以及有效电容系数,根据第二预设公式计算第一能耗开销。In some embodiments of the present application, the first energy consumption overhead can be calculated according to a second preset formula based on the number of operating cycles, processor frequency, and effective capacitance coefficient using a first algorithm model.

(第二预设公式); (Second preset formula);

其中,表示第一能耗开销,即将待计算任务卸载至移动终端进行处理所产生的能耗,cu为单位比特的任务所需消耗的计算资源,du为待计算任务的大小,ρ为本地处理器的有效电容系数,ρ(fu)2表示将待计算任务卸载到移动终端执行时单位运行周期数产生的能耗。in, represents the first energy consumption overhead, that is, the energy consumption generated by offloading the task to be calculated to the mobile terminal for processing, cu is the computing resource required for the task per unit bit, du is the size of the task to be calculated, ρ is the effective capacitance coefficient of the local processor, and ρ( fu ) 2 represents the energy consumption per unit number of operating cycles when the task to be calculated is offloaded to the mobile terminal for execution.

本发明实施例中,通过运行周期数、处理器频率以及有效电容系数分别计算第一时延开销以及第一能耗开销,可以方便且快速的得到将待计算任务卸载到移动终端的时延开销以及能耗开销,提高了决策效率。In an embodiment of the present invention, the first delay overhead and the first energy consumption overhead are respectively calculated by the number of operating cycles, the processor frequency and the effective capacitance coefficient, so that the delay overhead and the energy consumption overhead of offloading the task to be calculated to the mobile terminal can be obtained conveniently and quickly, thereby improving the decision-making efficiency.

在本申请的一些实施例中,步骤202可以包括以下步骤:In some embodiments of the present application, step 202 may include the following steps:

步骤301、预估服务器处理待计算任务时所需的处理时间,作为目标处理时间,并预估待计算任务上传至服务器的上传时间,作为目标上传时间。 Step 301: Estimate the processing time required for the server to process the task to be calculated as the target processing time, and estimate the upload time for uploading the task to be calculated to the server as the target upload time.

在本申请的一些实施例中,将待计算任务卸载至服务器的时延开销主要可以分为三部分:任务上传时间,任务处理时间、处理结果回传时间,由于处理结果的大小远小于待计算任务的大小,相应的,在数据传输速率一定的情况下,处理结果回传时间远小于任务上传时间,因此,可以忽略处理结果回传时间。预先估算将待计算任务上传至服务器的上传时间以及服务器处理待计算任务的处理时间。在本申请的一些,可以通过第二算法模型基于数据传输速率以及待计算任务的大小,根据下述公式确定待计算任务上传至服务器的上传时间
In some embodiments of the present application, the delay overhead of offloading the task to be calculated to the server can be mainly divided into three parts: task upload time, task processing time, and processing result return time. Since the size of the processing result is much smaller than the size of the task to be calculated, correspondingly, under the condition of a certain data transmission rate, the processing result return time is much smaller than the task upload time. Therefore, the processing result return time can be ignored. Pre-estimate the upload time of uploading the task to be calculated to the server and the processing time of the server processing the task to be calculated. In some embodiments of the present application, the upload time of uploading the task to be calculated to the server can be determined by a second algorithm model based on the data transmission rate and the size of the task to be calculated according to the following formula:

其中,表示待计算任务上传至服务器的上传时间,du为待计算任务的大小,ruv为将待计算任务卸载到服务器上执行的数据传输速率,ruv可以通过下述公式得到:
in, represents the upload time of the task to be calculated to the server, du is the size of the task to be calculated, and r uv is the data transmission rate for offloading the task to be calculated to the server for execution. r uv can be obtained by the following formula:

其中,Puv是移动终端与服务器进行任务传输的传输功率,huv为无线信道增益,suv是移动终端到服务器的距离,τ为衰落因子。σ2是数据传输时的高斯白噪声。可以理解的是,上述数据可以根据本领域的常用设定进行取值,例如:Puv可以根据具体移动终端设备配置得到功率,如1W。B是移动终端到服务器的无线信道带宽,根据网络速度以及普遍设定范围而确定,比如2-10MHZ。suv可以在仿真环境中进行一定的距离设置,具体根据实际需要设置即可,比如0.8km。τ衰落因子可以取值-4。σ2高斯白噪声可以取值1×10-13Wherein, P uv is the transmission power of task transmission between the mobile terminal and the server, h uv is the wireless channel gain, s uv is the distance from the mobile terminal to the server, and τ is the attenuation factor. σ 2 is the Gaussian white noise during data transmission. It is understandable that the above data can be taken according to the commonly used settings in this field, for example: P uv can obtain the power according to the specific mobile terminal device configuration, such as 1W. B is the wireless channel bandwidth from the mobile terminal to the server, which is determined according to the network speed and the general setting range, such as 2-10MHZ. s uv can be set at a certain distance in the simulation environment, and can be set according to actual needs, such as 0.8km. τ attenuation factor can be taken as -4. σ 2 Gaussian white noise can be taken as 1×10 -13 .

基于第二算法模型,根据待计算任务所需的处理器的运行周期数以及服务器分配给移动终端的计算资源,根据下述公式确定服务器处理待计算任务时所需的处理时间
Based on the second algorithm model, according to the number of processor cycles required for the task to be calculated and the computing resources allocated by the server to the mobile terminal, the processing time required for the server to process the task to be calculated is determined according to the following formula:

其中,cu为单位比特的任务所需消耗的计算资源,du为待计算任务的大小,fuv为服务器分配给移动终端的计算资源,即移动终端的待计算任务卸载至服务器的计算能力。Among them, cu is the computing resource required for the task per unit bit, du is the size of the task to be calculated, and f uv is the computing resource allocated by the server to the mobile terminal, that is, the computing capacity of the mobile terminal's task to be calculated to be offloaded to the server.

步骤302、基于第三预设公式、目标处理时间以及目标上传时间,确定第二时延开销。Step 302: Determine a second delay overhead based on a third preset formula, a target processing time, and a target upload time.

在本申请的一些实施例中,通过第二算法模型,基于目标处理时间以及目标上传时间,根据第三预设公式确定第二时延开销 In some embodiments of the present application, the second delay overhead is determined according to a third preset formula based on the target processing time and the target upload time through the second algorithm model.

(第三预设公式); (Third preset formula);

在本申请的一些实施例中,基于目标处理时间以及目标上传时间,计算第二时延开销,可以使得第二时延开销表征的时延数据更加全面,有利于全面化的评估第二目标开销,以更加准确的确定卸载策略。In some embodiments of the present application, the second delay overhead is calculated based on the target processing time and the target upload time, so that the delay data represented by the second delay overhead can be more comprehensive, which is conducive to a comprehensive evaluation of the second target overhead to more accurately determine the offloading strategy.

在本申请的一些实施例中,步骤202还可以包括以下步骤:In some embodiments of the present application, step 202 may further include the following steps:

步骤303、基于第四预设公式、目标上传能耗以及目标闲置能耗,确定第二能耗开销;目标上传能耗为将待计算任务上传至服务器的预估能耗,目标闲置能耗为移动终端等待服务器处理待计算任务时的预估空闲能耗。Step 303, determine the second energy consumption based on the fourth preset formula, the target upload energy consumption and the target idle energy consumption; the target upload energy consumption is the estimated energy consumption of uploading the task to be calculated to the server, and the target idle energy consumption is the estimated idle energy consumption when the mobile terminal waits for the server to process the task to be calculated.

在本申请的一些实施例中,目标上传能耗可以通过移动终端将待计算任务上传给服务器的发射功率、待计算任务的大小以及将待计算任务卸载到服务器上执行的数据传输速率确定得到。目标闲置能耗可以通过移动终端等待服务器处理待计算任务时的预估闲置功率、待计算任务所需的处理器的运行周期数以及将待计算任务卸载到服务器上执行的数据传输速率确定得到。这样,通过第二算法模型,基于目标上传能耗以及目标闲置能耗,根据第四预设公式确定第二能耗开销 In some embodiments of the present application, the target upload energy consumption can be determined by the transmission power of the mobile terminal uploading the task to be calculated to the server, the size of the task to be calculated, and the data transmission rate of offloading the task to be calculated to the server for execution. The target idle energy consumption can be determined by the estimated idle power of the mobile terminal when waiting for the server to process the task to be calculated, the number of processor operation cycles required for the task to be calculated, and the data transmission rate of offloading the task to be calculated to the server for execution. In this way, through the second algorithm model, based on the target upload energy consumption and the target idle energy consumption, the second energy consumption overhead is determined according to the fourth preset formula

(第四预设公式); (Fourth preset formula);

其中,表示目标上传能耗,表示移动终端将待计算任务上传给服务器的发射功率,du为待计算任务的大小,ruv为将待计算任务卸载到服务器上执行的数据传输速率。表示目标闲置能耗,表示移动终端等待服务器处理待计算任务时的预估闲置功率,cudu表示待计算任务所需的处理器的运行周期数,fuv为服务器分配给移动终端的计算资源。可以理解的是,以及可以根据本领域的常用设定进行取值,比如传输功率可以设置为1W,闲置功率可以设置为1×10-5W。in, Indicates the target upload energy consumption, It represents the transmission power of the mobile terminal uploading the task to be calculated to the server, du is the size of the task to be calculated, and ruv is the data transmission rate of offloading the task to be calculated to the server for execution. represents the target idle energy consumption, represents the estimated idle power of the mobile terminal when waiting for the server to process the task to be calculated, c u d u represents the number of processor cycles required for the task to be calculated, and f uv is the computing resource allocated by the server to the mobile terminal. It can be understood that as well as The value can be set according to the common settings in this field, such as transmission power Can be set to 1W, idle power Can be set to 1×10 -5 W.

步骤304、基于第五预设公式、运行周期数以及单位运行周期数对应的使用费用,确定第二成本开销。Step 304: Determine the second cost based on the fifth preset formula, the number of operating cycles, and the usage fee corresponding to the unit number of operating cycles.

在本申请的一些实施例中,由于待计算任务大小一定,因此,完成待计算任务所需的处理器的运行周期数也是一定的,因此,通过第二算法模型,基于待计算任务所需的处理器的运行周期数以及服务器单位运行周期数对应的使用费用,根据第五预设公式确定第二成本开销buvIn some embodiments of the present application, since the size of the task to be calculated is certain, the number of processor operating cycles required to complete the task to be calculated is also certain. Therefore, through the second algorithm model, based on the number of processor operating cycles required for the task to be calculated and the usage fee corresponding to the unit number of operating cycles of the server, the second cost overhead b uv is determined according to the fifth preset formula.

buv=βvcudu(第五预设公式);b uvv c u d u (fifth preset formula);

其中,βv表示服务器单位运行周期数对应的使用费用,可以根据服务器的租用价格进行确定。cudu表示完成待计算任务所需的处理器的运行周期数。Where β v represents the usage fee corresponding to the number of server operation cycles, which can be determined based on the server rental price. c u d u represents the number of processor operation cycles required to complete the task to be calculated.

在本申请的一些实施例中,基于目标上传能耗以及目标闲置能耗,确定第二能耗开销,在目标上传能耗的基础上考虑了目标闲置能耗,使得第二能耗开销表征的能耗数据更加全面,有利于全面化的评估第二目标开销,以更加准确的确定卸载策略。In some embodiments of the present application, the second energy consumption overhead is determined based on the target upload energy consumption and the target idle energy consumption. The target idle energy consumption is considered on the basis of the target upload energy consumption, so that the energy consumption data represented by the second energy consumption overhead is more comprehensive, which is conducive to a comprehensive evaluation of the second target overhead, so as to more accurately determine the unloading strategy.

在本申请的一些实施例中,在步骤202之后,本申请实施例还可以包括以下步骤:In some embodiments of the present application, after step 202, the embodiments of the present application may further include the following steps:

步骤401、在第一时延开销大于预设时延阈值的情况下,直接确定待计算任务的卸载策略为将待计算任务卸载至目标服务器。Step 401: When the first delay overhead is greater than a preset delay threshold, directly determine the offloading strategy of the task to be calculated as offloading the task to be calculated to a target server.

在本申请的一些实施例中,预设时延阈值可以是根据用户的时延需求进行设定,在第一时延开销大于预设时延阈值的情况下,表征第一时延开销已经超过用户所能接收的最大容忍时延,此时可以确定若将待计算任务卸载至移动终端,移动终端的处理时间不满足用户需求,因此,可以直接确定待计算任务的卸载策略为将待计算任务卸载目标至服务器。In some embodiments of the present application, the preset delay threshold can be set according to the user's delay requirement. When the first delay overhead is greater than the preset delay threshold, it indicates that the first delay overhead has exceeded the maximum tolerable delay that the user can receive. At this time, it can be determined that if the task to be calculated is offloaded to the mobile terminal, the processing time of the mobile terminal does not meet the user's requirements. Therefore, the offloading strategy of the task to be calculated can be directly determined as offloading the target of the task to be calculated to the server.

在本申请的一些实施例中,在第一时延开销大于预设时延阈值的情况下,表征第一时延开销已经超过用户所能接收的最大容忍时延,直接确定卸载策略可以一定程度上节省确定卸载策略所花费的时间。In some embodiments of the present application, when the first delay overhead is greater than a preset delay threshold, it indicates that the first delay overhead has exceeded the maximum tolerable delay that the user can receive. Directly determining the unloading strategy can save the time spent on determining the unloading strategy to a certain extent.

在本申请的一些实施例中,步骤203可以包括:In some embodiments of the present application, step 203 may include:

步骤402、在第一时延开销不大于预设时延阈值的情况下,基于第二预设公式、运行周期数、处理器频率以及有效电容系数,确定第一能耗开销。Step 402: When the first delay overhead is not greater than a preset delay threshold, determine a first energy consumption overhead based on a second preset formula, the number of operating cycles, the processor frequency, and the effective capacitance coefficient.

在本申请的一些实施例中,在第一时延开销不大于预设时延阈值,即第一时延开销小于等于预设时延阈值的情况下,表征第一时延开销并未达到用户所能接收的最大容忍时延,因此,可以继续计算第一能耗开销,以基于第一目标开销进行后续卸载策略的确定。In some embodiments of the present application, when the first delay overhead is not greater than the preset delay threshold, that is, the first delay overhead is less than or equal to the preset delay threshold, it indicates that the first delay overhead has not reached the maximum tolerable delay that the user can receive. Therefore, the first energy consumption overhead can continue to be calculated to determine the subsequent unloading strategy based on the first target overhead.

也就是说,第一目标开销的计算包括约束条件St.即第一时延开销不大于预设时延阈值的情况下,计算第一目标开销以进行后续判断,否则,直接将卸载策略确定为将待计算任务卸载至目标服务器。That is, the calculation of the first target cost includes the constraint St. First delay overhead Not greater than the preset delay threshold In the case of, the first target cost is calculated for subsequent judgment, otherwise, the offloading strategy is directly determined to offload the task to be calculated to the target server.

在本申请的一些实施例中,通过对第一时延开销以及预设时延阈值进行比较,可以根据 用户的实际需求,确定相应的卸载策略,并且在第一时延开销大于预设时延阈值的情况下,直接确定卸载策略,节省了后续的计算过程,一定程度上提高了卸载策略的确定效率。In some embodiments of the present application, by comparing the first delay overhead with the preset delay threshold, The corresponding unloading strategy is determined according to the actual needs of the user, and when the first delay overhead is greater than the preset delay threshold, the unloading strategy is directly determined, which saves the subsequent calculation process and improves the determination efficiency of the unloading strategy to a certain extent.

在本申请的一些实施例中,步骤303可以包括以下步骤:In some embodiments of the present application, step 303 may include the following steps:

步骤501、在第二时延开销不大于预设时延阈值的情况下,基于第四预设公式、目标上传能耗以及目标闲置能耗,确定第二能耗开销。Step 501: When the second delay overhead is not greater than a preset delay threshold, determine the second energy consumption overhead based on a fourth preset formula, a target upload energy consumption, and a target idle energy consumption.

在本申请的一些实施例中,在第二时延开销不大于预设时延阈值,即第二时延开销小于等于预设时延阈值的情况下,表征第二时延开销并未达到用户所能接收的最大容忍时延,因此,可以继续计算第二能耗开销,以进行后续卸载策略的确定。相应的,在第二成本开销不大于预设成本阈值的情况下,基于第二时延开销、第二能耗开销以及第二成本开销确定第二目标开销。这样,通过对第二时延开销以及预设时延阈值进行比较,可以根据用户的实际需求,确定相应的卸载策略。In some embodiments of the present application, when the second delay overhead is not greater than the preset delay threshold, that is, when the second delay overhead is less than or equal to the preset delay threshold, it indicates that the second delay overhead has not reached the maximum tolerable delay that the user can receive, and therefore, the second energy consumption overhead can continue to be calculated to determine the subsequent unloading strategy. Correspondingly, when the second cost overhead is not greater than the preset cost threshold, the second target overhead is determined based on the second delay overhead, the second energy consumption overhead, and the second cost overhead. In this way, by comparing the second delay overhead and the preset delay threshold, the corresponding unloading strategy can be determined according to the actual needs of the user.

在本申请的一些实施例中,本申请实施例可以包括以下步骤:In some embodiments of the present application, the present application embodiment may include the following steps:

步骤601、在第二时延开销大于预设时延阈值或第二成本开销大于预设成本阈值的情况下,直接确定待计算任务的卸载策略为将待计算任务卸载至移动终端。Step 601: When the second delay overhead is greater than a preset delay threshold or the second cost overhead is greater than a preset cost threshold, directly determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the mobile terminal.

在本申请的一些实施例中,在第二时延开销大于预设时延阈值或第二成本开销大于预设成本阈值的情况下,表征将待计算任务卸载至服务器的第二时延开销已经超过用户所能接收的最大容忍时延,或将待计算任务卸载至服务器的第二成本开销已经超过用户所能接收的最大成本阈值,此时可以确定若将待计算任务卸载至服务器,不能满足用户需求,因此,可以直接确定待计算任务的卸载策略为将待计算任务卸载至移动终端。这样,通过比较第二时延开销以及预设时延阈值、第二成本开销以及预设成本阈值,可以在第二时延开销大于预设时延阈值或第二成本开销大于预设成本阈值的情况下,直接确定卸载策略,节省了后续的计算过程,一定程度上提高了卸载策略的确定效率。In some embodiments of the present application, when the second delay overhead is greater than the preset delay threshold or the second cost overhead is greater than the preset cost threshold, it is characterized that the second delay overhead of unloading the task to be calculated to the server has exceeded the maximum tolerable delay that the user can accept, or the second cost overhead of unloading the task to be calculated to the server has exceeded the maximum cost threshold that the user can accept. At this time, it can be determined that if the task to be calculated is unloaded to the server, it cannot meet the user's needs. Therefore, the unloading strategy of the task to be calculated can be directly determined as unloading the task to be calculated to the mobile terminal. In this way, by comparing the second delay overhead and the preset delay threshold, the second cost overhead and the preset cost threshold, the unloading strategy can be directly determined when the second delay overhead is greater than the preset delay threshold or the second cost overhead is greater than the preset cost threshold, which saves the subsequent calculation process and improves the efficiency of determining the unloading strategy to a certain extent.

在本申请的一些实施例中,本申请实施例还可以包括以下步骤:In some embodiments of the present application, the embodiments of the present application may further include the following steps:

步骤701、预先设置时延权重系数以及能耗权重系数。Step 701: pre-set a delay weight coefficient and an energy consumption weight coefficient.

在本申请的一些实施例中,用户可以根据自身任务需求,自行预先设置时延开销以及能耗开销各自对应的权重系数:时延权重系数以及能耗权重系数,通过对时延权重系数以及能耗权重系数的设定,可以表征用户对于各项指标的不同重视程度和要求。相应的,时延权重系数以及能耗权重系数以及成本权重系数数值可以衡量用户对于不同类型的指标的重视程度以及要求。In some embodiments of the present application, the user can pre-set the weight coefficients corresponding to the delay cost and the energy consumption cost according to their own task requirements: the delay weight coefficient and the energy consumption weight coefficient. By setting the delay weight coefficient and the energy consumption weight coefficient, the different emphasis and requirements of the user for each indicator can be represented. Correspondingly, the values of the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient can measure the user's emphasis and requirements for different types of indicators.

相应的,步骤101还可以包括以下步骤:Accordingly, step 101 may further include the following steps:

步骤702、基于第六预设公式、时延权重系数与第一时延开销的乘积,以及能耗权重系数与第一能耗开销的乘积,确定第一目标开销。Step 702: Determine a first target overhead based on a sixth preset formula, a product of a delay weight coefficient and a first delay overhead, and a product of an energy consumption weight coefficient and a first energy consumption overhead.

在本申请的一些实施例中,基于时延权重系数与第一时延开销的乘积以及能耗权重系数与第一能耗开销的乘积,第一目标开销可以通过第六预设公式得到。In some embodiments of the present application, based on the product of the delay weight coefficient and the first delay cost and the product of the energy consumption weight coefficient and the first energy consumption cost, the first target cost It can be obtained through the sixth preset formula.

(第六预设公式); (Sixth preset formula);

其中,α1可以表示时延权重系数,α2可以表示能耗权重系数。Among them, α1 can represent the delay weight coefficient, and α2 can represent the energy consumption weight coefficient.

在本申请的一些实施例中,通过时延权重系数与第一时延开销的乘积以及能耗权重系数与第一能耗开销的乘积,可以使得第一目标开销一定程度上能够体现用户的偏好,为确定卸载策略提供了基础。 In some embodiments of the present application, by multiplying the delay weight coefficient by the first delay overhead and the energy consumption weight coefficient by the first energy consumption overhead, the first target overhead can reflect the user's preference to a certain extent, providing a basis for determining the unloading strategy.

在本申请的一些实施例中,本申请实施例还可以包括以下步骤:In some embodiments of the present application, the embodiments of the present application may further include the following steps:

步骤703、预先设置成本权重系数。Step 703: pre-set the cost weight coefficient.

在本申请的一些实施例中,用户可以根据自身任务需求,自行预先设置成本开销对应的成本权重系数,其中,时延权重系数、能耗权重系数以及成本权重系数之和应为1。即,用α1,α2和α3分别表示时延权重系数、能耗权重系数以及成本权重系数,则α123=1。通过调整时延权重系数、能耗权重系数以及成本权重系数数值的大小,相当于调整时延、能耗、成本三项指标的优先级以及重要程度,具体可以取决于用户对时延敏感程度、能耗约束以及期望成本的偏好。In some embodiments of the present application, the user can pre-set the cost weight coefficient corresponding to the cost expenditure according to his own task requirements, wherein the sum of the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient should be 1. That is, α 1 , α 2 and α 3 represent the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient respectively, then α 123 = 1. By adjusting the values of the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient, it is equivalent to adjusting the priority and importance of the three indicators of delay, energy consumption and cost, which can specifically depend on the user's preference for delay sensitivity, energy consumption constraints and expected cost.

相应的,步骤102还可以包括以下步骤:Accordingly, step 102 may further include the following steps:

步骤704、基于第七预设公式、时延权重系数与第二时延开销的乘积、能耗权重系数与第二能耗开销的乘积,以及成本权重系数与第二成本开销的乘积,确定第二目标开销。Step 704: Determine the second target overhead based on the seventh preset formula, the product of the delay weight coefficient and the second delay overhead, the product of the energy consumption weight coefficient and the second energy consumption overhead, and the product of the cost weight coefficient and the second cost overhead.

在本申请的一些实施例中,基于时延权重系数与第二时延开销的乘积、能耗权重系数与第二能耗开销的乘积,以及成本权重系数与第二成本开销的乘积,第二目标开销可以通过第七预设公式得到。
In some embodiments of the present application, based on the product of the delay weight coefficient and the second delay cost, the product of the energy consumption weight coefficient and the second energy consumption cost, and the product of the cost weight coefficient and the second cost cost, the second target cost It can be obtained through the seventh preset formula.

(第七预设公式); (Seventh preset formula);

其中,针对移动边缘计算系统中的任一移动终端,利用第六预设公式与第七预设公式计算时各权重系数的取值是相同的,针对移动边缘计算系统中的不同移动终端,其对应的各权重系数的取值可以根据移动终端的用户的需求自行设定,即不同移动终端对应的各权重系数可以是不同的。Among them, for any mobile terminal in the mobile edge computing system, the values of each weight coefficient when calculated using the sixth preset formula and the seventh preset formula are the same. For different mobile terminals in the mobile edge computing system, the corresponding values of each weight coefficient can be set according to the needs of the user of the mobile terminal, that is, the weight coefficients corresponding to different mobile terminals can be different.

在本申请的一些实施例中,针对用户对不同指标的重视程度,通过设置时延权重系数、能耗权重系数以及成本权重系数,可以满足不同移动终端用户的差异化指标偏好,并且提高了权重系数设置的灵活性,使得第一目标开销以及第二目标开销的数值更贴近用户偏好,进而做出更有利的卸载决策。In some embodiments of the present application, based on the degree of importance users place on different indicators, by setting the delay weight coefficient, energy consumption weight coefficient and cost weight coefficient, it is possible to meet the differentiated indicator preferences of different mobile terminal users, and improve the flexibility of setting the weight coefficients, so that the values of the first target overhead and the second target overhead are closer to user preferences, thereby making more favorable unloading decisions.

在本申请的一些实施例中,步骤704可以包括以下步骤:In some embodiments of the present application, step 704 may include the following steps:

步骤801、在第二成本开销不大于预设成本阈值的情况下,基于第七预设公式、时延权重系数与第二时延开销的乘积、能耗权重系数与第二能耗开销的乘积,以及成本权重系数与第二成本开销的乘积,确定第二目标开销。Step 801: When the second cost overhead is not greater than the preset cost threshold, determine the second target overhead based on the seventh preset formula, the product of the delay weight coefficient and the second delay overhead, the product of the energy consumption weight coefficient and the second energy consumption overhead, and the product of the cost weight coefficient and the second cost overhead.

在本申请的一些实施例中,在第二成本开销不大于预设成本阈值的情况下,表征第二成本开销并未达到用户所能接收的预设成本阈值,则可以基于时延权重系数与第二时延开销的乘积、能耗权重系数与第二能耗开销的乘积,以及成本权重系数与第二成本开销的乘积,确定第二目标开销。这样,一定程度上可以在满足用户的成本阈值的基础上,确定相应的卸载策略。In some embodiments of the present application, when the second cost is not greater than the preset cost threshold, it indicates that the second cost has not reached the preset cost threshold acceptable to the user, and the second target cost can be determined based on the product of the delay weight coefficient and the second delay cost, the product of the energy consumption weight coefficient and the second energy consumption cost, and the product of the cost weight coefficient and the second cost. In this way, the corresponding unloading strategy can be determined on the basis of satisfying the user's cost threshold to a certain extent.

在本申请的一些实施例中,步骤103可以包括以下步骤:In some embodiments of the present application, step 103 may include the following steps:

步骤901、基于多个服务器对应的多个第二目标开销,确定多个第二目标开销中数值最小的第二目标开销,作为最小目标开销。Step 901: Based on multiple second target costs corresponding to multiple servers, determine the second target cost with the smallest value among the multiple second target costs as the minimum target cost.

在本申请的一些实施例中,本申请实施例还包括以下步骤:In some embodiments of the present application, the embodiments of the present application further include the following steps:

步骤1001、将第二目标开销记录至移动终端对应的目标决策列表。Step 1001: Record the second target cost into the target decision list corresponding to the mobile terminal.

在本申请的一些实施例中,针对多个服务器中的任一服务器,将通过步骤301-304、501、 601以及步骤801计算得到的第二目标开销,确定为该服务器对应的第二目标开销并记录到该移动终端对应的目标决策列表中。其中,目标决策列表可以表征移动终端的卸载决策偏好列表。目标决策列表中第二目标开销的数量小于等于移动边缘计算系统中服务器的数量。In some embodiments of the present application, for any server among the multiple servers, steps 301-304, 501, The second target cost calculated in step 601 and step 801 is determined as the second target cost corresponding to the server and recorded in the target decision list corresponding to the mobile terminal. The target decision list can represent the uninstall decision preference list of the mobile terminal. The number of second target costs in the target decision list is less than or equal to the number of servers in the mobile edge computing system.

相应的,步骤901可以包括以下步骤:Accordingly, step 901 may include the following steps:

步骤1002、在多个服务器对应的第二目标开销均记录完毕的情况下,获取目标决策列表中数值最小的第二目标开销,作为最小目标开销。Step 1002: When the second target costs corresponding to multiple servers are all recorded, obtain the second target cost with the smallest value in the target decision list as the minimum target cost.

在本申请的一些实施例中,在多个服务器中的任一服务器均已执行步骤301-304、501、601以及步骤801后,将目标决策列表中的数据按照第二目标开销的大小进行排列。从目标决策列表中获取数值最小的第二目标开销,并将其确定为最小目标开销。In some embodiments of the present application, after any server among the multiple servers has executed steps 301-304, 501, 601 and step 801, the data in the target decision list are arranged according to the size of the second target cost. The second target cost with the smallest value is obtained from the target decision list and determined as the minimum target cost.

在本申请的一些实施例中,通过将第二目标开销记录至目标决策列表,可以便于从多个第二目标开销中确定最小目标开销,一定程度上提高了确定最小目标开销的效率。In some embodiments of the present application, by recording the second target cost into the target decision list, it is possible to facilitate determination of the minimum target cost from a plurality of second target costs, thereby improving the efficiency of determining the minimum target cost to a certain extent.

在在本申请的一些实施例中,服务器向移动终端分配计算资源需要保证分配给不同移动终端的计算资源之和小于等于服务器的最大计算能力。因此,在移动终端得到卸载偏好列表中的多个第二目标开销的情况下,向数值最小的第二目标开销对应的服务器发送一个请求信息,该请求信息应携带需要向该移动终端分配的计算资源大小,服务器接收请求信息后,可以根据自身服务器当前计算能力进行判断,若能够向移动终端提供相应的计算资源,则向移动终端返回同意请求信息并基于需要向该移动终端分配的计算资源大小调整服务器自身的当前计算能力,则此时移动终端可以将该数值最小的第二目标开销确定为最小目标开销;若服务器的当前计算能力不能满足需要向移动终端提供相应的计算资源,则向移动终端返回拒绝请求信息,移动终端接收到该拒绝请求信息后,表征数值最小的第二目标开销对应的服务器已经无法承担相应的卸载计算任务,因此可以将卸载偏好列表中该服务器对应的第二目标开销剔除,并基于剔除后的卸载偏好列表中数值最小的第二目标开销对应的服务器重复上述操作,直至确定出符合预设条件的最小目标开销(预设条件为最小目标开销对应的服务器可以承担该移动终端的卸载计算任务)。也即,在确定最小目标开销的过程中存在一约束条件:表征针对任一服务器,向移动终端分配的计算资源不可超过服务器的全部计算能力。其中,表示服务器的最大计算能力。In some embodiments of the present application, the server allocates computing resources to mobile terminals and needs to ensure that the sum of computing resources allocated to different mobile terminals is less than or equal to the maximum computing capacity of the server. Therefore, when the mobile terminal obtains multiple second target costs in the uninstall preference list, a request message is sent to the server corresponding to the second target cost with the smallest value. The request message should carry the size of the computing resources that need to be allocated to the mobile terminal. After receiving the request message, the server can make a judgment based on its own current computing capacity. If it can provide the corresponding computing resources to the mobile terminal, it returns the approval request message to the mobile terminal and adjusts the server's own current computing capacity based on the size of the computing resources that need to be allocated to the mobile terminal. At this time, the mobile terminal can determine the second target cost with the smallest value as the minimum target cost; if the current computing capacity of the server cannot meet the need to provide the corresponding computing resources to the mobile terminal, it returns a rejection request message to the mobile terminal. After the mobile terminal receives the rejection request message, it indicates that the server corresponding to the second target cost with the smallest value can no longer undertake the corresponding unloading computing task. Therefore, the second target cost corresponding to the server in the uninstall preference list can be eliminated, and the above operation is repeated based on the server corresponding to the second target cost with the smallest value in the uninstall preference list after elimination, until the minimum target cost that meets the preset condition is determined (the preset condition is that the server corresponding to the minimum target cost can undertake the unloading computing task of the mobile terminal). That is, there is a constraint in the process of determining the minimum target cost: It indicates that for any server, the computing resources allocated to the mobile terminal cannot exceed the total computing capacity of the server. Indicates the maximum computing capacity of the server.

步骤902、基于最小目标开销以及第一目标开销,确定待计算任务的卸载策略。Step 902: Determine an offloading strategy for the task to be calculated based on the minimum target cost and the first target cost.

在本申请的一些实施例中,步骤902可以包括以下步骤:In some embodiments of the present application, step 902 may include the following steps:

步骤9021、若最小目标开销小于第一目标开销,则确定待计算任务的卸载策略为将待计算任务卸载至目标服务器。Step 9021: If the minimum target cost is less than the first target cost, determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the target server.

在本申请的一些实施例中,若最小目标开销小于第一目标开销,表征将待计算任务卸载至服务器的开销小于将待计算任务卸载至移动终端的开销,即将待计算任务卸载至服务器的开销最小,系统效益最大,则可以确定待计算任务的卸载策略为将待计算任务卸载至目标服务器。In some embodiments of the present application, if the minimum target overhead is less than the first target overhead, it indicates that the overhead of offloading the task to be calculated to the server is less than the overhead of offloading the task to be calculated to the mobile terminal, that is, the overhead of offloading the task to be calculated to the server is minimized and the system benefit is maximized. Then, the offloading strategy of the task to be calculated can be determined as offloading the task to be calculated to the target server.

步骤9022、若最小目标开销大于第一目标开销,则确定待计算任务的卸载策略为将待计算任务卸载至移动终端。Step 9022: If the minimum target overhead is greater than the first target overhead, determine that the offloading strategy for the task to be calculated is to offload the task to be calculated to the mobile terminal.

在本申请的一些实施例中,若最小目标开销大于第一目标开销,表征将待计算任务卸载至服务器的开销大于将待计算任务卸载至移动终端的开销,即将待计算任务卸载至移动终端的开销最小,系统效益最大,则可以确定待计算任务的卸载策略为将待计算任务卸载至移动 终端。In some embodiments of the present application, if the minimum target cost is greater than the first target cost, it indicates that the cost of offloading the task to be calculated to the server is greater than the cost of offloading the task to be calculated to the mobile terminal, that is, the cost of offloading the task to be calculated to the mobile terminal is the smallest and the system benefit is the largest, then the offloading strategy of the task to be calculated can be determined as offloading the task to be calculated to the mobile terminal. terminal.

在本申请的一些实施例中,确定最小目标开销,可以模拟得到若将待计算任务卸载至服务器所产生的最小开销,进而基于最小目标开销以及第一目标开销的比较,可以进一步确定开销最小且处理性能相对稳定的卸载策略,一定程度上提高了待计算任务的处理效率。In some embodiments of the present application, the minimum target overhead is determined, and the minimum overhead generated by offloading the task to be calculated to the server can be simulated. Based on the comparison between the minimum target overhead and the first target overhead, an offloading strategy with the lowest overhead and relatively stable processing performance can be further determined, thereby improving the processing efficiency of the task to be calculated to a certain extent.

在本申请的一些实施例中,在最小目标开销等于第一目标开销的情况下,步骤902还可以包括以下步骤:In some embodiments of the present application, when the minimum target cost is equal to the first target cost, step 902 may further include the following steps:

步骤9023、若时延权重系数、能耗权重系数以及成本权重系数中时延权重系数的数值最大,则基于第一时延开销以及最小目标开销对应的第二时延开销之间的大小关系,确定待计算任务的卸载策略。Step 9023: If the value of the delay weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is the largest, then the unloading strategy of the task to be calculated is determined based on the relationship between the first delay overhead and the second delay overhead corresponding to the minimum target overhead.

在本申请的一些实施例中,在最小目标开销等于第一目标开销的情况下,表征将待计算任务卸载至服务器的开销与将待计算任务卸载至移动终端的开销相同,可以基于时延权重系数、能耗权重系数以及成本权重系数的数值大小进一步确定卸载策略,若时延权重系数的数值最大,表征用户对时延指标更为重视且对时延的敏感程度更高,在这种情况下,可以基于时延权重系数对应的时延指标,即第一时延开销以及最小目标开销对应的第二时延开销的大小,确定待计算任务的卸载策略。由于第二目标开销是基于第二时延开销、第二能耗开销以及第二成本开销得到的,因此,每个第二目标开销都会存在其对应的第二时延开销,并且,由于最小目标开销是从多个第二目标开销中确定的,相应的,最小目标开销也存在其对应的第二时延开销,也即,最小目标开销对应的第二时延开销为计算最小目标开销时所使用的第二时延开销。In some embodiments of the present application, when the minimum target overhead is equal to the first target overhead, the overhead of offloading the task to be calculated to the server is the same as the overhead of offloading the task to be calculated to the mobile terminal. The unloading strategy can be further determined based on the numerical values of the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient. If the value of the delay weight coefficient is the largest, it indicates that the user attaches more importance to the delay index and is more sensitive to the delay. In this case, the unloading strategy of the task to be calculated can be determined based on the delay index corresponding to the delay weight coefficient, that is, the first delay overhead and the second delay overhead corresponding to the minimum target overhead. Since the second target overhead is obtained based on the second delay overhead, the second energy consumption overhead and the second cost overhead, each second target overhead will have its corresponding second delay overhead, and since the minimum target overhead is determined from multiple second target overheads, the minimum target overhead also has its corresponding second delay overhead, that is, the second delay overhead corresponding to the minimum target overhead is the second delay overhead used when calculating the minimum target overhead.

在本申请的一些实施例中,步骤9023可以包括以下步骤:In some embodiments of the present application, step 9023 may include the following steps:

步骤9023a、若第一时延开销大于最小目标开销对应的第二时延开销,则确定待计算任务的卸载策略为将待计算任务卸载至目标服务器。Step 9023a: If the first delay overhead is greater than the second delay overhead corresponding to the minimum target overhead, then determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the target server.

步骤9023b、若第一时延开销小于最小目标开销对应的第二时延开销,则确定待计算任务的卸载策略为将待计算任务卸载至移动终端。Step 9023b: If the first delay overhead is less than the second delay overhead corresponding to the minimum target overhead, the offloading strategy of the task to be calculated is determined to be offloading the task to be calculated to the mobile terminal.

步骤9023c、若第一时延开销等于最小目标开销对应的第二时延开销,则基于最小目标开销对应的第二能耗开销或最小目标开销对应的第二成本开销,确定待计算任务的卸载策略。Step 9023c: if the first delay overhead is equal to the second delay overhead corresponding to the minimum target overhead, determine the offloading strategy of the task to be calculated based on the second energy consumption overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead.

在本申请的一些实施例中,在第一时延开销小于最小目标开销对应的第二时延开销的情况下,将待计算任务的卸载策略确定为将待计算任务卸载至移动终端;在第一时延开销大于最小目标开销对应的第二时延开销的情况下,将待计算任务的卸载策略确定为将待计算任务卸载至目标服务器;在第一时延开销等于最小目标开销对应的第二时延开销的情况下,基于最小目标开销对应的第二能耗开销或最小目标开销对应的第二成本开销,确定待计算任务的卸载策略,即在数值最大的权重系数对应的指标数值相同的情况下,可以基于数值第二大的权重系数对应的指标数值的大小进行卸载策略的确定,直至确定出最优卸载策略。In some embodiments of the present application, when the first delay overhead is less than the second delay overhead corresponding to the minimum target overhead, the unloading strategy of the task to be calculated is determined as unloading the task to be calculated to the mobile terminal; when the first delay overhead is greater than the second delay overhead corresponding to the minimum target overhead, the unloading strategy of the task to be calculated is determined as unloading the task to be calculated to the target server; when the first delay overhead is equal to the second delay overhead corresponding to the minimum target overhead, the unloading strategy of the task to be calculated is determined based on the second energy consumption overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead, that is, when the indicator values corresponding to the weight coefficients with the largest values are the same, the unloading strategy can be determined based on the size of the indicator value corresponding to the weight coefficient with the second largest value, until the optimal unloading strategy is determined.

在在本申请的一些实施例中,可以确定能耗权重系数以及成本权重系数中数值最大的权重系数,若能耗权重系数的数值最大,则基于第一能耗开销以及最小目标开销对应的第二能耗开销之间的大小关系,确定待计算任务的卸载策略;若成本权重系数的数值最大,则直接确定待计算任务的卸载策略为将待计算任务卸载至移动终端。示例性的,若时延权重系数、能耗权重系数以及成本权重系数的数值大小排序为:时延权重系数>能耗权重系数>成本权重系数,则在第一时延开销等于最小目标开销对应的第二时延开销的情况下,基于第一能耗 开销以及最小目标开销对应的第二能耗开销之间的大小关系,确定待计算任务的卸载策略,具体步骤可以参考9024a-9024c;若时延权重系数、能耗权重系数以及成本权重系数的数值大小排序为:时延权重系数>成本权重系数>能耗权重系数,则直接确定待计算任务的卸载策略为将待计算任务卸载至移动终端。In some embodiments of the present application, the weight coefficient with the largest value among the energy consumption weight coefficient and the cost weight coefficient can be determined. If the energy consumption weight coefficient has the largest value, then the unloading strategy of the task to be calculated is determined based on the relationship between the first energy consumption overhead and the second energy consumption overhead corresponding to the minimum target overhead; if the cost weight coefficient has the largest value, then the unloading strategy of the task to be calculated is directly determined to be to unload the task to be calculated to the mobile terminal. Exemplarily, if the values of the delay weight coefficient, the energy consumption weight coefficient, and the cost weight coefficient are ranked as follows: delay weight coefficient > energy consumption weight coefficient > cost weight coefficient, then when the first delay overhead is equal to the second delay overhead corresponding to the minimum target overhead, based on the first energy consumption The relationship between the overhead and the second energy consumption overhead corresponding to the minimum target overhead is used to determine the unloading strategy of the task to be calculated. The specific steps can refer to 9024a-9024c; if the numerical values of the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient are ranked as follows: delay weight coefficient > cost weight coefficient > energy consumption weight coefficient, then the unloading strategy of the task to be calculated is directly determined to offload the task to be calculated to the mobile terminal.

步骤9024、若时延权重系数、能耗权重系数以及成本权重系数中能耗权重系数的数值最大,则基于第一能耗开销以及最小目标开销对应的第二能耗开销之间的大小关系,确定待计算任务的卸载策略。Step 9024: If the energy consumption weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient has the largest value, then the unloading strategy of the task to be calculated is determined based on the relationship between the first energy consumption overhead and the second energy consumption overhead corresponding to the minimum target overhead.

在本申请的一些实施例中,若能耗权重系数的数值最大,表征用户对能耗指标更为重视且对能耗的敏感程度更高,在这种情况下,可以基于能耗权重系数对应的能耗指标,即第一能耗开销以及最小目标开销对应的第二能耗开销的大小,确定待计算任务的卸载策略。由于第二目标开销是基于第二时延开销、第二能耗开销以及第二成本开销得到的,因此,每个第二目标开销都会存在其对应的第二能耗开销,并且,由于最小目标开销是从多个第二目标开销中确定的,相应的,最小目标开销也存在其对应的第二能耗开销,也即,最小目标开销对应的第二能耗开销为计算最小目标开销时所使用的第二能耗开销。In some embodiments of the present application, if the value of the energy consumption weight coefficient is the largest, it indicates that the user attaches more importance to the energy consumption index and is more sensitive to energy consumption. In this case, the unloading strategy of the task to be calculated can be determined based on the energy consumption index corresponding to the energy consumption weight coefficient, that is, the first energy consumption cost and the size of the second energy consumption cost corresponding to the minimum target cost. Since the second target cost is obtained based on the second delay cost, the second energy consumption cost and the second cost cost, each second target cost will have its corresponding second energy consumption cost, and since the minimum target cost is determined from multiple second target costs, the minimum target cost also has its corresponding second energy consumption cost, that is, the second energy consumption cost corresponding to the minimum target cost is the second energy consumption cost used when calculating the minimum target cost.

在本申请的一些实施例中,步骤9024可以包括以下步骤:In some embodiments of the present application, step 9024 may include the following steps:

步骤9024a、若第一能耗开销大于最小目标开销对应的第二能耗开销,则确定待计算任务的卸载策略为将待计算任务卸载至目标服务器。Step 9024a: If the first energy consumption cost is greater than the second energy consumption cost corresponding to the minimum target cost, then determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the target server.

步骤9024b、若第一能耗开销小于最小目标开销对应的第二能耗开销,则确定待计算任务的卸载策略为将待计算任务卸载至移动终端。Step 9024b: If the first energy consumption cost is less than the second energy consumption cost corresponding to the minimum target cost, then determine that the unloading strategy of the task to be calculated is to unload the task to be calculated to the mobile terminal.

步骤9024c、若第一能耗开销等于最小目标开销对应的第二能耗开销,则基于最小目标开销对应的第二时延开销或最小目标开销对应的第二成本开销,确定待计算任务的卸载策略。Step 9024c: if the first energy consumption overhead is equal to the second energy consumption overhead corresponding to the minimum target overhead, determine the unloading strategy of the task to be calculated based on the second delay overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead.

在本申请的一些实施例中,在第一能耗开销小于最小目标开销对应的第二能耗开销的情况下,将待计算任务的卸载策略确定为将待计算任务卸载至移动终端;在第一能耗开销大于最小目标开销对应的第二能耗开销的情况下,将待计算任务的卸载策略确定为将待计算任务卸载至目标服务器。在第一能耗开销等于最小目标开销对应的第二能耗开销的情况下,基于最小目标开销对应的第二时延开销或最小目标开销对应的第二成本开销,确定待计算任务的卸载策略,即在数值最大的权重系数对应的指标数值相同的情况下,可以基于数值第二大的权重系数对应的指标数值的大小进行卸载策略的确定,直至确定出最优卸载策略。In some embodiments of the present application, when the first energy consumption cost is less than the second energy consumption cost corresponding to the minimum target cost, the unloading strategy of the task to be calculated is determined as unloading the task to be calculated to the mobile terminal; when the first energy consumption cost is greater than the second energy consumption cost corresponding to the minimum target cost, the unloading strategy of the task to be calculated is determined as unloading the task to be calculated to the target server. When the first energy consumption cost is equal to the second energy consumption cost corresponding to the minimum target cost, the unloading strategy of the task to be calculated is determined based on the second delay cost corresponding to the minimum target cost or the second cost cost corresponding to the minimum target cost, that is, when the indicator values corresponding to the weight coefficients with the largest values are the same, the unloading strategy can be determined based on the size of the indicator value corresponding to the weight coefficient with the second largest value, until the optimal unloading strategy is determined.

在在本申请的一些实施例中,可以确定时延权重系数以及成本权重系数中数值最大的权重系数,若时延权重系数的数值最大,则基于第一时延开销以及最小目标开销对应的第二时延开销之间的大小关系,确定待计算任务的卸载策略;若成本权重系数的数值最大,则直接确定待计算任务的卸载策略为将待计算任务卸载至移动终端。示例性的,若时延权重系数、能耗权重系数以及成本权重系数的数值大小排序为:能耗权重系数>时延权重系数>成本权重系数,则在第一能耗开销等于最小目标开销对应的第二能耗开销的情况下,基于第一时延开销以及最小目标开销对应的第二时延开销之间的大小关系,确定待计算任务的卸载策略,具体步骤可以参考9023a-9023c;若时延权重系数、能耗权重系数以及成本权重系数的数值大小排序为:能耗权重系数>成本权重系数>时延权重系数,则直接确定待计算任务的卸载策略为将待计算任务卸载至移动终端。In some embodiments of the present application, the weight coefficient with the largest value among the delay weight coefficient and the cost weight coefficient can be determined. If the delay weight coefficient has the largest value, the unloading strategy of the task to be calculated is determined based on the size relationship between the first delay cost and the second delay cost corresponding to the minimum target cost; if the cost weight coefficient has the largest value, the unloading strategy of the task to be calculated is directly determined to be unloading the task to be calculated to the mobile terminal. Exemplarily, if the numerical values of the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient are ranked as follows: energy consumption weight coefficient>delay weight coefficient>cost weight coefficient, then when the first energy consumption cost is equal to the second energy consumption cost corresponding to the minimum target cost, the unloading strategy of the task to be calculated is determined based on the size relationship between the first delay cost and the second delay cost corresponding to the minimum target cost. For specific steps, refer to 9023a-9023c; if the numerical values of the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient are ranked as follows: energy consumption weight coefficient>cost weight coefficient>delay weight coefficient, then the unloading strategy of the task to be calculated is directly determined to be unloading the task to be calculated to the mobile terminal.

步骤9025、若时延权重系数、能耗权重系数以及成本权重系数中成本权重系数的数值 最大,则直接确定待计算任务的卸载策略为将待计算任务卸载至移动终端。Step 9025: If the value of the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is The maximum value is the largest value, then the offloading strategy of the task to be calculated is directly determined as offloading the task to be calculated to the mobile terminal.

在本申请的一些实施例中,若成本权重系数的数值最大,表征用户对成本指标更为重视且对成本的敏感程度更高,在这种情况下,可以基于成本权重系数对应的成本指标,确定待计算任务的卸载策略。在这种情况下,由于将待计算任务卸载至移动终端的成本开销为0,则可以直接确定待计算任务的卸载策略为将待计算任务卸载至移动终端。In some embodiments of the present application, if the value of the cost weight coefficient is the largest, it indicates that the user attaches more importance to the cost index and is more sensitive to the cost. In this case, the unloading strategy of the task to be calculated can be determined based on the cost index corresponding to the cost weight coefficient. In this case, since the cost overhead of unloading the task to be calculated to the mobile terminal is 0, the unloading strategy of the task to be calculated can be directly determined as unloading the task to be calculated to the mobile terminal.

在本申请的一些实施例中,通过权重系数所表征的用户偏好信息,在最小目标开销等于第一目标开销的情况下,基于数值最大的权重系数对应的指标值,进一步判断卸载策略,以为不同需求的用户提供个性化且灵活化的判断依据。In some embodiments of the present application, the user preference information is represented by the weight coefficient. When the minimum target overhead is equal to the first target overhead, the unloading strategy is further determined based on the indicator value corresponding to the weight coefficient with the largest value, so as to provide personalized and flexible judgment basis for users with different needs.

如图3所示,图3示出了一种针对移动边缘计算的任务卸载方法的具体流程图,针对n个移动终端1、2……、n中的任一移动终端,均通过第一算法模型确定第一时延开销以及第一能耗开销,在第一时延开销大于预设时延阈值的情况下,确定卸载策略为将待计算任务卸载到目标服务器。在第一时延开销不大于预设时延阈值的情况下,确定第一能耗开销。通过第二算法模型确定第二时延开销,在第二时延开销大于预设时延阈值的情况下,确定卸载策略为将待计算任务卸载到移动终端,在第二时延开销不大于预设时延阈值的情况下,确定第二能耗开销以及第二成本开销,并在第二成本开销大于预设成本阈值的情况下,确定卸载策略为将待计算任务卸载到移动终端,在第二成本开销不大于预设成本阈值的情况下,确定第二目标开销。基于第一时延开销以及第一能耗开销,确定第一目标开销。针对多个服务器对应的第二目标开销,从中确定出最小目标开销,在第一目标开销小于最小目标开销的情况下,将卸载策略确定为将待计算任务卸载至移动终端;在第一目标开销大于最小目标开销的情况下,将卸载策略确定为将待计算任务卸载至目标服务器。As shown in FIG3 , FIG3 shows a specific flow chart of a task offloading method for mobile edge computing. For any mobile terminal among the n mobile terminals 1, 2, ..., n, the first delay cost and the first energy consumption cost are determined by the first algorithm model. When the first delay cost is greater than the preset delay threshold, the offloading strategy is determined to offload the task to be calculated to the target server. When the first delay cost is not greater than the preset delay threshold, the first energy consumption cost is determined. The second delay cost is determined by the second algorithm model. When the second delay cost is greater than the preset delay threshold, the offloading strategy is determined to offload the task to be calculated to the mobile terminal. When the second delay cost is not greater than the preset delay threshold, the second energy consumption cost and the second cost cost are determined. When the second cost cost is greater than the preset cost threshold, the offloading strategy is determined to offload the task to be calculated to the mobile terminal. When the second cost cost is not greater than the preset cost threshold, the second target cost is determined. Based on the first delay cost and the first energy consumption cost, the first target cost is determined. For the second target overheads corresponding to multiple servers, the minimum target overhead is determined. When the first target overhead is less than the minimum target overhead, the unloading strategy is determined to offload the task to be calculated to the mobile terminal; when the first target overhead is greater than the minimum target overhead, the unloading strategy is determined to offload the task to be calculated to the target server.

图4是本申请实施例提供的一种针对移动边缘计算的任务卸载装置的结构图,该装置110可以包括:FIG4 is a structural diagram of a task offloading device for mobile edge computing provided by an embodiment of the present application. The device 110 may include:

第一获取模块1101,用于获取移动边缘计算系统中的移动终端处理待计算任务时所需的第一时延开销以及第一能耗开销,并基于第一时延开销以及第一能耗开销确定第一目标开销;第一目标开销用于表征将待计算任务卸载至移动终端的预估开销。The first acquisition module 1101 is used to obtain the first delay overhead and the first energy consumption overhead required for the mobile terminal in the mobile edge computing system to process the task to be calculated, and determine the first target overhead based on the first delay overhead and the first energy consumption overhead; the first target overhead is used to characterize the estimated overhead of offloading the task to be calculated to the mobile terminal.

第二获取模块1102,用于针对移动边缘计算系统包含的多个服务器中的任一服务器,获取服务器处理待计算任务时所需的第二时延开销,以及获取服务器处理待计算任务时所需的第二能耗开销以及第二成本开销,并基于第二时延开销、第二能耗开销以及第二成本开销确定第二目标开销;第二目标开销用于表征将待计算任务卸载至服务器的预估开销。The second acquisition module 1102 is used to obtain, for any server among the multiple servers included in the mobile edge computing system, the second delay overhead required for the server to process the task to be calculated, as well as the second energy consumption overhead and the second cost overhead required for the server to process the task to be calculated, and determine the second target overhead based on the second delay overhead, the second energy consumption overhead and the second cost overhead; the second target overhead is used to characterize the estimated overhead of offloading the task to be calculated to the server.

第一确定模块1103,用于基于第一目标开销以及多个服务器对应的多个第二目标开销,确定待计算任务的卸载策略;卸载策略包括将待计算任务卸载至移动终端或将待计算任务卸载至目标服务器;目标服务器属于多个服务器。The first determination module 1103 is used to determine the unloading strategy of the task to be calculated based on the first target overhead and multiple second target overheads corresponding to multiple servers; the unloading strategy includes unloading the task to be calculated to the mobile terminal or unloading the task to be calculated to the target server; the target server belongs to multiple servers.

在本申请的一些实施例中,第一获取模块1101包括:In some embodiments of the present application, the first acquisition module 1101 includes:

第一获取子模块,用于获取移动终端执行待计算任务所需的本地处理器的运行周期数、本地处理器的处理器频率以及本地处理器的有效电容系数。The first acquisition submodule is used to acquire the number of operation cycles of the local processor, the processor frequency of the local processor and the effective capacitance coefficient of the local processor required for the mobile terminal to execute the task to be calculated.

第二确定模块,用于基于第一预设公式、运行周期数以及处理器频率,确定第一时延开销;A second determination module, configured to determine a first delay overhead based on a first preset formula, a number of operating cycles, and a processor frequency;

其中,第一预设公式为:cudu表示运行周期数,fu表示处理器频率,表示第一时延开销。 Among them, the first preset formula is: c u d u represents the number of operating cycles, fu represents the processor frequency, Indicates the first delay overhead.

第三确定模块,用于基于第二预设公式、运行周期数、处理器频率以及有效电容系数,确定第一能耗开销;A third determination module, configured to determine a first energy consumption cost based on a second preset formula, a number of operation cycles, a processor frequency, and an effective capacitance coefficient;

其中,第二预设公式为:ρ表示有效电容系数,表示第一能耗开销。Among them, the second preset formula is: ρ is the effective capacitance coefficient, Represents the first energy consumption cost.

在本申请的一些实施例中,第二获取模块1102包括:In some embodiments of the present application, the second acquisition module 1102 includes:

第一预估模块,用于预估服务器处理待计算任务时所需的处理时间,作为目标处理时间,并预估待计算任务上传至服务器的上传时间,作为目标上传时间。The first estimation module is used to estimate the processing time required for the server to process the task to be calculated as the target processing time, and to estimate the upload time for uploading the task to be calculated to the server as the target upload time.

第四确定模块,用于基于第三预设公式、目标处理时间以及目标上传时间,确定第二时延开销;A fourth determination module, configured to determine a second delay overhead based on a third preset formula, a target processing time, and a target upload time;

其中,第三预设公式为: 表示目标处理时间,表示目标上传时间,表示第二时延开销。Among them, the third preset formula is: represents the target processing time, Indicates the target upload time. Indicates the second delay overhead.

在本申请的一些实施例中,第二获取模块1102包括:In some embodiments of the present application, the second acquisition module 1102 includes:

第五确定模块,用于基于第四预设公式、目标上传能耗以及目标闲置能耗,确定第二能耗开销;a fifth determining module, configured to determine a second energy consumption cost based on a fourth preset formula, a target upload energy consumption, and a target idle energy consumption;

其中,第四预设公式为: 表示目标上传能耗,表示目标闲置能耗,表示第二能耗开销;目标上传能耗为将待计算任务上传至服务器的预估能耗,目标闲置能耗为移动终端等待服务器处理待计算任务时的预估空闲能耗。Among them, the fourth preset formula is: Indicates the target upload energy consumption, represents the target idle energy consumption, Represents the second energy consumption overhead; the target upload energy consumption is the estimated energy consumption of uploading the task to be calculated to the server, and the target idle energy consumption is the estimated idle energy consumption when the mobile terminal waits for the server to process the task to be calculated.

第六确定模块,用于基于第五预设公式、运行周期数以及单位运行周期数对应的使用费用,确定第二成本开销;A sixth determining module, configured to determine a second cost based on the fifth preset formula, the number of operating cycles, and the usage fee corresponding to the number of unit operating cycles;

其中,第五预设公式为:buv=βvcudu,βv表示单位运行周期数对应的使用费用。The fifth preset formula is: b uvv c u d u , where β v represents the usage fee corresponding to the unit number of operating cycles.

在本申请的一些实施例中,装置110还包括:In some embodiments of the present application, the device 110 further includes:

第七确定模块,用于在第一时延开销大于预设时延阈值的情况下,直接确定待计算任务的卸载策略为将待计算任务卸载至目标服务器。The seventh determination module is used to directly determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the target server when the first delay overhead is greater than a preset delay threshold.

在本申请的一些实施例中,第三确定模块,包括:In some embodiments of the present application, the third determination module includes:

第三确定子模块,用于在第一时延开销不大于预设时延阈值的情况下,基于第二预设公式、运行周期数、处理器频率以及有效电容系数,确定第一能耗开销。The third determination submodule is used to determine the first energy consumption overhead based on a second preset formula, the number of operating cycles, the processor frequency and the effective capacitance coefficient when the first delay overhead is not greater than a preset delay threshold.

在本申请的一些实施例中,第五确定模块,包括:In some embodiments of the present application, the fifth determining module includes:

第四确定子模块,用于在第二时延开销不大于预设时延阈值的情况下,基于第四预设公式、目标上传能耗以及目标闲置能耗,确定第二能耗开销。The fourth determination submodule is used to determine the second energy consumption overhead based on a fourth preset formula, the target upload energy consumption and the target idle energy consumption when the second delay overhead is not greater than the preset delay threshold.

在本申请的一些实施例中,装置110还包括:In some embodiments of the present application, the device 110 further includes:

第五确定子模块,用于在第二时延开销大于预设时延阈值或第二成本开销大于预设成本阈值的情况下,直接确定待计算任务的卸载策略为将待计算任务卸载至移动终端。The fifth determination submodule is used to directly determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the mobile terminal when the second delay overhead is greater than a preset delay threshold or the second cost overhead is greater than a preset cost threshold.

在本申请的一些实施例中,装置110还包括:In some embodiments of the present application, the device 110 further includes:

第一设置模块,用于预先设置时延权重系数以及能耗权重系数。The first setting module is used to pre-set the delay weight coefficient and the energy consumption weight coefficient.

第一获取模块1101,包括:The first acquisition module 1101 includes:

第六确定子模块,用于基于第六预设公式、时延权重系数与第一时延开销的乘积,以及能耗权重系数与第一能耗开销的乘积,确定第一目标开销;A sixth determination submodule, configured to determine a first target cost based on a sixth preset formula, a product of a delay weight coefficient and a first delay cost, and a product of an energy consumption weight coefficient and a first energy consumption cost;

其中,第六预设公式为:α1表示时延权重系数,表示第一时延开销,α2表示能耗权重系数,表示第一能耗开销,表示第一目标开销。Among them, the sixth preset formula is: α 1 represents the delay weight coefficient, represents the first delay overhead, α 2 represents the energy consumption weight coefficient, represents the first energy consumption, Indicates the first target cost.

在本申请的一些实施例中,装置110还包括: In some embodiments of the present application, the device 110 further includes:

第二设置模块,用于预先设置成本权重系数。The second setting module is used to pre-set the cost weight coefficient.

第二获取模块1102,包括:The second acquisition module 1102 includes:

第七确定子模块,用于基于第七预设公式、时延权重系数与第二时延开销的乘积、能耗权重系数与第二能耗开销的乘积,以及成本权重系数与第二成本开销的乘积,确定第二目标开销;a seventh determination submodule, configured to determine the second target cost based on a seventh preset formula, a product of a delay weight coefficient and a second delay cost, a product of an energy consumption weight coefficient and a second energy consumption cost, and a product of a cost weight coefficient and a second cost cost;

其中,第七预设公式为:α1表示时延权重系数,表示第二时延开销,α2表示能耗权重系数,表示第二能耗开销,α3表示成本权重系数,buv表示第二成本开销,表示第二目标开销。Among them, the seventh preset formula is: α 1 represents the delay weight coefficient, represents the second delay overhead, α 2 represents the energy consumption weight coefficient, represents the second energy consumption cost, α 3 represents the cost weight coefficient, b uv represents the second cost cost, Indicates the secondary target cost.

在本申请的一些实施例中,第七确定子模块,包括:In some embodiments of the present application, the seventh determining submodule includes:

第八确定子模块,用于在第二成本开销不大于预设成本阈值的情况下,基于第七预设公式、时延权重系数与第二时延开销的乘积、能耗权重系数与第二能耗开销的乘积,以及成本权重系数与第二成本开销的乘积,确定第二目标开销。The eighth determination submodule is used to determine the second target overhead based on the seventh preset formula, the product of the delay weight coefficient and the second delay overhead, the product of the energy consumption weight coefficient and the second energy consumption overhead, and the product of the cost weight coefficient and the second cost overhead when the second cost overhead is not greater than the preset cost threshold.

在本申请的一些实施例中,第一确定模块1103,包括:In some embodiments of the present application, the first determining module 1103 includes:

第九确定子模块,用于基于多个服务器对应的多个第二目标开销,确定多个第二目标开销中数值最小的第二目标开销,作为最小目标开销。The ninth determination submodule is used to determine, based on the multiple second target cost corresponding to the multiple servers, the second target cost with the smallest value among the multiple second target cost as the minimum target cost.

第十确定子模块,用于基于最小目标开销以及第一目标开销,确定待计算任务的卸载策略。The tenth determination submodule is used to determine the offloading strategy of the task to be calculated based on the minimum target overhead and the first target overhead.

在本申请的一些实施例中,装置110包括:In some embodiments of the present application, the device 110 includes:

第一记录模块,用于将第二目标开销记录至移动终端对应的目标决策列表;A first recording module, configured to record the second target cost into a target decision list corresponding to the mobile terminal;

第九确定子模块,包括:The ninth determination submodule includes:

第二获取子模块,用于在多个服务器对应的第二目标开销均记录完毕的情况下,获取目标决策列表中数值最小的第二目标开销,作为最小目标开销。The second acquisition submodule is used to obtain the second target cost with the smallest value in the target decision list as the minimum target cost when the second target costs corresponding to multiple servers are recorded.

在本申请的一些实施例中,第十确定子模块,包括:In some embodiments of the present application, the tenth determining submodule includes:

第十一确定子模块,用于若最小目标开销小于第一目标开销,则确定待计算任务的卸载策略为将待计算任务卸载至目标服务器;an eleventh determination submodule, configured to determine, if the minimum target cost is less than the first target cost, that the offloading strategy of the task to be calculated is to offload the task to be calculated to the target server;

第十二确定子模块,用于若最小目标开销大于第一目标开销,则确定待计算任务的卸载策略为将待计算任务卸载至移动终端。The twelfth determination submodule is used to determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the mobile terminal if the minimum target overhead is greater than the first target overhead.

在本申请的一些实施例中,在最小目标开销等于第一目标开销的情况下,第十确定子模块,还包括:In some embodiments of the present application, when the minimum target cost is equal to the first target cost, the tenth determining submodule further includes:

第十三确定子模块,用于若时延权重系数、能耗权重系数以及成本权重系数中时延权重系数的数值最大,则基于第一时延开销以及最小目标开销对应的第二时延开销之间的大小关系,确定待计算任务的卸载策略。The thirteenth determination submodule is used to determine the unloading strategy of the task to be calculated based on the relationship between the first delay overhead and the second delay overhead corresponding to the minimum target overhead if the value of the delay weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is the largest.

第十四确定子模块,用于若时延权重系数、能耗权重系数以及成本权重系数中能耗权重系数的数值最大,则基于第一能耗开销以及最小目标开销对应的第二能耗开销之间的大小关系,确定待计算任务的卸载策略。The fourteenth determination submodule is used to determine the unloading strategy of the task to be calculated based on the relationship between the first energy consumption overhead and the second energy consumption overhead corresponding to the minimum target overhead if the value of the energy consumption weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is the largest.

第十五确定子模块,用于若时延权重系数、能耗权重系数以及成本权重系数中成本权重系数的数值最大,则直接确定待计算任务的卸载策略为将待计算任务卸载至移动终端。The fifteenth determination submodule is used to directly determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the mobile terminal if the value of the cost weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is the largest.

在本申请的一些实施例中,第十三确定子模块,包括:In some embodiments of the present application, the thirteenth determining submodule includes:

第十六确定子模块,用于若第一时延开销大于最小目标开销对应的第二时延开销,则确 定待计算任务的卸载策略为将待计算任务卸载至目标服务器。The sixteenth determination submodule is used to determine if the first delay overhead is greater than the second delay overhead corresponding to the minimum target overhead. The offloading strategy of the task to be calculated is to offload the task to be calculated to the target server.

第十七确定子模块,用于若第一时延开销小于最小目标开销对应的第二时延开销,则确定待计算任务的卸载策略为将待计算任务卸载至移动终端。The seventeenth determination submodule is used to determine the offloading strategy of the task to be calculated as offloading the task to be calculated to the mobile terminal if the first delay overhead is less than the second delay overhead corresponding to the minimum target overhead.

第十八确定子模块,用于若第一时延开销等于最小目标开销对应的第二时延开销,则基于最小目标开销对应的第二能耗开销或最小目标开销对应的第二成本开销,确定待计算任务的卸载策略。The eighteenth determination submodule is used to determine the unloading strategy of the task to be calculated based on the second energy consumption overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead if the first delay overhead is equal to the second delay overhead corresponding to the minimum target overhead.

在本申请的一些实施例中,第十四确定子模块,包括:In some embodiments of the present application, the fourteenth determining submodule includes:

第十九确定子模块,用于若第一能耗开销大于最小目标开销对应的第二能耗开销,则确定待计算任务的卸载策略为将待计算任务卸载至目标服务器。The nineteenth determination submodule is used to determine the unloading strategy of the task to be calculated as unloading the task to be calculated to the target server if the first energy consumption overhead is greater than the second energy consumption overhead corresponding to the minimum target overhead.

第二十确定子模块,用于若第一能耗开销小于最小目标开销对应的第二能耗开销,则确定待计算任务的卸载策略为将待计算任务卸载至移动终端。The twentieth determination submodule is used to determine the unloading strategy of the task to be calculated as unloading the task to be calculated to the mobile terminal if the first energy consumption overhead is less than the second energy consumption overhead corresponding to the minimum target overhead.

第二十一确定子模块,用于若第一能耗开销等于最小目标开销对应的第二能耗开销,则基于最小目标开销对应的第二时延开销或最小目标开销对应的第二成本开销,确定待计算任务的卸载策略。The twenty-first determination submodule is used to determine the unloading strategy of the task to be calculated based on the second delay overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead if the first energy consumption overhead is equal to the second energy consumption overhead corresponding to the minimum target overhead.

综上,本申请实施例提供的针对移动边缘计算的任务卸载装置,通过获取移动边缘计算系统中的移动终端处理待计算任务时所需的第一时延开销以及第一能耗开销,并基于第一时延开销以及第一能耗开销确定第一目标开销;第一目标开销用于表征将待计算任务卸载至移动终端的预估开销;针对移动边缘计算系统包含的多个服务器中的任一服务器,获取服务器处理待计算任务时所需的第二时延开销、第二能耗开销以及第二成本开销,并基于第二时延开销,以及获取服务器处理待计算任务时所需的第二能耗开销以及第二成本开销确定第二目标开销;第二目标开销用于表征将待计算任务卸载至服务器的预估开销;基于第一目标开销以及多个服务器对应的多个第二目标开销,确定待计算任务的卸载策略;卸载策略包括将待计算任务卸载至移动终端或将待计算任务卸载至目标服务器;目标服务器属于服务器。这样,通过确定第一目标开销以及多个第二目标开销,可以为用户提供卸载策略的决策支撑,并且结合不同卸载策略对应的边缘计算服务的预估开销,能够得到效益较高的卸载策略。同时,引入时延、能耗以及成本三种差异化的指标,确定第一目标开销以及第二目标开销,综合考虑移动边缘计算系统中任务卸载的时延开销、能耗开销和成本开销,优化卸载策略的决策依据,以使得第一目标开销以及第二目标开销的覆盖性更广泛且全面,进而使得卸载决策方法更加完善,提高了待计算任务的卸载决策的决策效果。In summary, the task offloading device for mobile edge computing provided in the embodiment of the present application obtains the first delay cost and the first energy consumption cost required by the mobile terminal in the mobile edge computing system to process the task to be calculated, and determines the first target cost based on the first delay cost and the first energy consumption cost; the first target cost is used to characterize the estimated cost of offloading the task to be calculated to the mobile terminal; for any server among the multiple servers included in the mobile edge computing system, the second delay cost, the second energy consumption cost and the second cost cost required by the server to process the task to be calculated are obtained, and the second target cost is determined based on the second delay cost, and the second energy consumption cost and the second cost cost required by the server to process the task to be calculated; the second target cost is used to characterize the estimated cost of offloading the task to be calculated to the server; based on the first target cost and the multiple second target costs corresponding to the multiple servers, the offloading strategy of the task to be calculated is determined; the offloading strategy includes offloading the task to be calculated to the mobile terminal or offloading the task to be calculated to the target server; the target server belongs to the server. In this way, by determining the first target cost and the multiple second target costs, the decision support of the offloading strategy can be provided to the user, and the estimated cost of the edge computing service corresponding to different offloading strategies can be combined to obtain a more efficient offloading strategy. At the same time, three differentiated indicators of latency, energy consumption and cost are introduced to determine the first target overhead and the second target overhead. The latency overhead, energy consumption overhead and cost overhead of task offloading in the mobile edge computing system are comprehensively considered to optimize the decision-making basis of the offloading strategy, so that the coverage of the first target overhead and the second target overhead is wider and more comprehensive, thereby making the offloading decision method more perfect and improving the decision-making effect of the offloading decision of the task to be calculated.

本申请还提供了一种电子设备,参见图5,包括:处理器1201、存储器1202以及存储在存储器上并可在处理器上运行的计算机程序12021,处理器执行程序时实现前述实施例的针对移动边缘计算的任务卸载方法。The present application also provides an electronic device, see Figure 5, including: a processor 1201, a memory 1202, and a computer program 12021 stored in the memory and executable on the processor, and when the processor executes the program, the task offloading method for mobile edge computing of the aforementioned embodiment is implemented.

本申请还提供了一种非易失性可读存储介质,当存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行前述实施例的针对移动边缘计算的任务卸载方法。The present application also provides a non-volatile readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the task offloading method for mobile edge computing of the aforementioned embodiment.

对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

在此提供的算法和显示不与任何特定计算机、虚拟系统或者其它设备固有相关。各种通用系统也可以与基于在此的示教一起使用。根据上面的描述,构造这类系统所要求的结构是显而易见的。此外,本申请也不针对任何特定编程语言。应当明白,可以利用各种编程语言 实现在此描述的本申请的内容,并且上面对特定语言所做的描述是为了披露本申请的最佳实施方式。The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general purpose systems may also be used with the teachings based on this. Based on the above description, the structure required to construct such a system is obvious. In addition, this application is not directed to any particular programming language. It should be understood that various programming languages can be used. The content of the application described herein is implemented, and the above description with specific language is made for the purpose of disclosing the best mode of carrying out the application.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本申请的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

类似地,应当理解,为了精简本申请并帮助理解各个发明方面中的一个或多个,在上面对本申请的示例性实施例的描述中,本申请的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本申请要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本申请的单独实施例。Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following intention: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the claims below, the inventive aspects are less than all the features of the single embodiment disclosed above. Therefore, the claims following the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and/or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

本申请的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本申请的排序设备中的一些或者全部部件的一些或者全部功能。本申请还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序。这样的实现本申请的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the sorting device according to the present application. The present application can also be implemented as a device or apparatus program for executing part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

应该注意的是上述实施例对本申请进行说明而不是对本申请进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本申请可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

以上仅为本申请的一些实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本申请的保护范围之内。The above are only some embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the protection scope of the present application.

以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请 的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。 The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered in the present application. Therefore, the protection scope of this application shall be based on the protection scope of the claims.

Claims (20)

一种针对移动边缘计算的任务卸载方法,其特征在于,所述方法包括:A task offloading method for mobile edge computing, characterized in that the method comprises: 获取移动边缘计算系统中的移动终端处理待计算任务时所需的第一时延开销以及第一能耗开销,并基于所述第一时延开销以及所述第一能耗开销确定第一目标开销;所述第一目标开销用于表征将所述待计算任务卸载至所述移动终端的预估开销;Obtaining a first delay overhead and a first energy consumption overhead required by a mobile terminal in a mobile edge computing system to process a task to be calculated, and determining a first target overhead based on the first delay overhead and the first energy consumption overhead; the first target overhead is used to characterize an estimated overhead of offloading the task to be calculated to the mobile terminal; 针对所述移动边缘计算系统包含的多个服务器中的任一服务器,获取所述服务器处理所述待计算任务时所需的第二时延开销,以及获取所述服务器处理所述待计算任务时所需的第二能耗开销以及第二成本开销,并基于所述第二时延开销、所述第二能耗开销以及所述第二成本开销确定第二目标开销;所述第二目标开销用于表征将所述待计算任务卸载至所述服务器的预估开销;For any server among the multiple servers included in the mobile edge computing system, obtain a second delay overhead required by the server to process the task to be calculated, and obtain a second energy consumption overhead and a second cost overhead required by the server to process the task to be calculated, and determine a second target overhead based on the second delay overhead, the second energy consumption overhead and the second cost overhead; the second target overhead is used to characterize the estimated overhead of offloading the task to be calculated to the server; 基于所述第一目标开销以及所述多个服务器对应的多个所述第二目标开销,确定所述待计算任务的卸载策略;所述卸载策略包括将所述待计算任务卸载至所述移动终端或将所述待计算任务卸载至目标服务器;所述目标服务器属于所述多个服务器。Based on the first target overhead and the multiple second target overheads corresponding to the multiple servers, determine the unloading strategy of the task to be calculated; the unloading strategy includes unloading the task to be calculated to the mobile terminal or unloading the task to be calculated to a target server; the target server belongs to the multiple servers. 根据权利要求1所述的方法,其特征在于,所述获取移动边缘计算系统中的移动终端处理待计算任务时所需的第一时延开销以及第一能耗开销,包括:The method according to claim 1 is characterized in that the obtaining of the first delay overhead and the first energy consumption overhead required for the mobile terminal in the mobile edge computing system to process the task to be calculated comprises: 获取所述移动终端执行所述待计算任务所需的本地处理器的运行周期数、所述本地处理器的处理器频率以及所述本地处理器的有效电容系数;Acquire the number of operation cycles of the local processor required by the mobile terminal to execute the task to be calculated, the processor frequency of the local processor, and the effective capacitance coefficient of the local processor; 基于第一预设公式、所述运行周期数以及所述处理器频率,确定所述第一时延开销;Determining the first latency overhead based on a first preset formula, the number of operating cycles, and the processor frequency; 其中,所述第一预设公式为:cudu表示所述运行周期数,fu表示所述处理器频率,表示所述第一时延开销;Wherein, the first preset formula is: c u d u represents the number of operating cycles, fu represents the processor frequency, represents the first delay overhead; 基于第二预设公式、所述运行周期数、所述处理器频率以及所述有效电容系数,确定所述第一能耗开销;Determining the first energy consumption cost based on a second preset formula, the number of operating cycles, the processor frequency, and the effective capacitance coefficient; 其中,所述第二预设公式为:ρ表示所述有效电容系数,表示所述第一能耗开销。Wherein, the second preset formula is: ρ represents the effective capacitance coefficient, Represents the first energy consumption overhead. 根据权利要求2所述的方法,其特征在于,所述获取所述服务器处理所述待计算任务时所需的第二时延开销,包括:The method according to claim 2, characterized in that the obtaining of the second delay overhead required by the server to process the task to be calculated comprises: 预估所述服务器处理所述待计算任务时所需的处理时间,作为目标处理时间,并预估所述待计算任务上传至所述服务器的上传时间,作为目标上传时间;estimating the processing time required by the server to process the task to be calculated as the target processing time, and estimating the upload time required for uploading the task to be calculated to the server as the target upload time; 基于第三预设公式、所述目标处理时间以及所述目标上传时间,确定所述第二时延开销;Determine the second delay overhead based on a third preset formula, the target processing time, and the target upload time; 其中,所述第三预设公式为: 表示所述目标处理时间,表示所述目标上传时间,表示所述第二时延开销。Wherein, the third preset formula is: represents the target processing time, Indicates the target upload time, Indicates the second delay overhead. 根据权利要求2所述的方法,其特征在于,所述获取所述服务器处理所述待计算任务时所需的第二能耗开销以及第二成本开销,包括:The method according to claim 2, characterized in that the obtaining of the second energy consumption overhead and the second cost overhead required by the server to process the task to be calculated comprises: 基于第四预设公式、目标上传能耗以及目标闲置能耗,确定所述第二能耗开销;Determine the second energy consumption cost based on a fourth preset formula, the target upload energy consumption, and the target idle energy consumption; 其中,所述第四预设公式为: 表示所述目标上传能耗,表示所述目标闲置能耗,表示所述第二能耗开销;Wherein, the fourth preset formula is: represents the target upload energy consumption, represents the target idle energy consumption, represents the second energy consumption cost; 所述目标上传能耗为将所述待计算任务上传至所述服务器的预估能耗,所述目标闲置能耗为所述移动终端等待所述服务器处理所述待计算任务时的预估空闲能耗; The target upload energy consumption is the estimated energy consumption of uploading the task to be calculated to the server, and the target idle energy consumption is the estimated idle energy consumption when the mobile terminal waits for the server to process the task to be calculated; 基于第五预设公式、所述运行周期数以及单位运行周期数对应的使用费用,确定所述第二成本开销;Determine the second cost based on a fifth preset formula, the number of operation cycles, and the usage fee corresponding to the unit number of operation cycles; 其中,所述第五预设公式为:buv=βvcudu,βv表示所述单位运行周期数对应的使用费用。The fifth preset formula is: b uvv c u d u , where β v represents the usage fee corresponding to the unit number of operating cycles. 根据权利要求2所述的方法,其特征在于,在所述基于第一预设公式、所述运行周期数以及所述处理器频率,确定所述第一时延开销之后,所述方法包括:The method according to claim 2, characterized in that after determining the first latency overhead based on the first preset formula, the number of operating cycles and the processor frequency, the method comprises: 在所述第一时延开销大于预设时延阈值的情况下,直接确定所述待计算任务的卸载策略为将所述待计算任务卸载至目标服务器。When the first delay overhead is greater than a preset delay threshold, the offloading strategy of the task to be calculated is directly determined to be offloading the task to be calculated to a target server. 根据权利要求2所述的方法,其特征在于,所述基于第二预设公式、所述运行周期数、所述处理器频率以及所述有效电容系数,确定所述第一能耗开销,包括:The method according to claim 2, characterized in that the determining the first energy consumption cost based on a second preset formula, the number of operating cycles, the processor frequency, and the effective capacitance coefficient comprises: 在所述第一时延开销不大于预设时延阈值的情况下,基于第二预设公式、所述运行周期数、所述处理器频率以及所述有效电容系数,确定所述第一能耗开销。When the first delay overhead is not greater than a preset delay threshold, the first energy consumption overhead is determined based on a second preset formula, the number of operating cycles, the processor frequency, and the effective capacitance coefficient. 根据权利要求4所述的方法,其特征在于,所述基于第四预设公式、目标上传能耗以及目标闲置能耗,确定所述第二能耗开销,包括:The method according to claim 4, characterized in that the determining the second energy consumption cost based on the fourth preset formula, the target upload energy consumption and the target idle energy consumption comprises: 在所述第二时延开销不大于预设时延阈值的情况下,基于第四预设公式、目标上传能耗以及目标闲置能耗,确定所述第二能耗开销。When the second delay overhead is not greater than a preset delay threshold, the second energy consumption overhead is determined based on a fourth preset formula, a target upload energy consumption, and a target idle energy consumption. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method according to claim 7, characterized in that the method further comprises: 在所述第二时延开销大于所述预设时延阈值或所述第二成本开销大于预设成本阈值的情况下,直接确定所述待计算任务的卸载策略为将所述待计算任务卸载至所述移动终端。When the second delay overhead is greater than the preset delay threshold or the second cost overhead is greater than the preset cost threshold, the offloading strategy of the task to be calculated is directly determined to be offloading the task to be calculated to the mobile terminal. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, characterized in that the method further comprises: 预先设置时延权重系数以及能耗权重系数;Pre-set the delay weight coefficient and energy consumption weight coefficient; 所述基于所述第一时延开销以及所述第一能耗开销确定第一目标开销,包括:The determining a first target overhead based on the first delay overhead and the first energy consumption overhead includes: 基于第六预设公式、所述时延权重系数与所述第一时延开销的乘积,以及所述能耗权重系数与所述第一能耗开销的乘积,确定所述第一目标开销;Determine the first target overhead based on a sixth preset formula, a product of the delay weight coefficient and the first delay overhead, and a product of the energy consumption weight coefficient and the first energy consumption overhead; 其中,所述第六预设公式为:α1表示所述时延权重系数,表示所述第一时延开销,α2表示所述能耗权重系数,表示所述第一能耗开销,表示所述第一目标开销。Wherein, the sixth preset formula is: α 1 represents the delay weight coefficient, represents the first delay overhead, α 2 represents the energy consumption weight coefficient, represents the first energy consumption cost, Indicates the first target cost. 根据权利要求9所述的方法,其特征在于,所述方法还包括:The method according to claim 9, characterized in that the method further comprises: 预先设置成本权重系数;Pre-set cost weight coefficients; 所述基于所述第二时延开销、所述第二能耗开销以及所述第二成本开销确定第二目标开销,包括:The determining the second target overhead based on the second delay overhead, the second energy consumption overhead, and the second cost overhead includes: 基于第七预设公式、所述时延权重系数与所述第二时延开销的乘积、所述能耗权重系数与所述第二能耗开销的乘积,以及所述成本权重系数与所述第二成本开销的乘积,确定所述第二目标开销;Determine the second target cost based on a seventh preset formula, a product of the delay weight coefficient and the second delay cost, a product of the energy consumption weight coefficient and the second energy consumption cost, and a product of the cost weight coefficient and the second cost cost; 其中,所述第七预设公式为:α1表示所述时延权重系数,表示所述第二时延开销,α2表示所述能耗权重系数,表示所述第二能耗开销,α3表示所述成本权重系数,buv表示所述第二成本开销,表示所述第二目标开销。Wherein, the seventh preset formula is: α 1 represents the delay weight coefficient, represents the second delay overhead, α 2 represents the energy consumption weight coefficient, represents the second energy consumption cost, α 3 represents the cost weight coefficient, b uv represents the second cost cost, Indicates the second target cost. 根据权利要求10所述的方法,其特征在于,所述基于第七预设公式、所述时延权重系数与所述第二时延开销的乘积、所述能耗权重系数与所述第二能耗开销的乘积, 以及所述成本权重系数与所述第二成本开销的乘积,确定所述第二目标开销,包括:The method according to claim 10, characterized in that the product of the delay weight coefficient and the second delay cost, and the product of the energy consumption weight coefficient and the second energy consumption cost based on the seventh preset formula, and multiplying the cost weight coefficient by the second cost expenditure to determine the second target expenditure, including: 在所述第二成本开销不大于预设成本阈值的情况下,基于第七预设公式、所述时延权重系数与所述第二时延开销的乘积、所述能耗权重系数与所述第二能耗开销的乘积,以及所述成本权重系数与所述第二成本开销的乘积,确定所述第二目标开销。When the second cost overhead is not greater than the preset cost threshold, the second target overhead is determined based on the seventh preset formula, the product of the delay weight coefficient and the second delay overhead, the product of the energy consumption weight coefficient and the second energy consumption overhead, and the product of the cost weight coefficient and the second cost overhead. 根据权利要求10或11所述的方法,其特征在于,所述基于所述第一目标开销以及所述多个服务器对应的多个所述第二目标开销,确定所述待计算任务的卸载策略,包括:The method according to claim 10 or 11, characterized in that the determining the offloading strategy of the task to be calculated based on the first target cost and the plurality of second target costs corresponding to the plurality of servers comprises: 基于所述多个服务器对应的多个所述第二目标开销,确定多个所述第二目标开销中数值最小的第二目标开销,作为最小目标开销;Based on the multiple second target costs corresponding to the multiple servers, determine the second target cost with the smallest value among the multiple second target costs as the minimum target cost; 基于所述最小目标开销以及所述第一目标开销,确定所述待计算任务的卸载策略。Based on the minimum target overhead and the first target overhead, an offloading strategy for the task to be calculated is determined. 根据权利要求12所述的方法,其特征在于,在所述基于所述第二时延开销、所述第二能耗开销以及所述第二成本开销确定第二目标开销之后,所述方法包括:The method according to claim 12, characterized in that after determining the second target overhead based on the second delay overhead, the second energy consumption overhead and the second cost overhead, the method comprises: 将所述第二目标开销记录至所述移动终端对应的目标决策列表;Recording the second target cost into a target decision list corresponding to the mobile terminal; 所述基于所述多个服务器对应的多个所述第二目标开销,确定多个所述第二目标开销中数值最小的第二目标开销,作为最小目标开销,包括:The determining, based on the plurality of second target costs corresponding to the plurality of servers, a second target cost with the smallest value among the plurality of second target costs as the minimum target cost, includes: 在所述多个服务器对应的第二目标开销均记录完毕的情况下,获取所述目标决策列表中数值最小的第二目标开销,作为最小目标开销。When the second target costs corresponding to the plurality of servers are all recorded, the second target cost with the smallest value in the target decision list is obtained as the minimum target cost. 根据权利要求12所述的方法,其特征在于,所述基于所述最小目标开销以及所述第一目标开销,确定所述待计算任务的卸载策略,包括:The method according to claim 12, characterized in that the step of determining the offloading strategy of the task to be calculated based on the minimum target overhead and the first target overhead comprises: 若所述最小目标开销小于所述第一目标开销,则确定所述待计算任务的卸载策略为将所述待计算任务卸载至目标服务器;If the minimum target cost is less than the first target cost, determining that the offloading strategy of the task to be calculated is to offload the task to be calculated to the target server; 若所述最小目标开销大于所述第一目标开销,则确定所述待计算任务的卸载策略为将所述待计算任务卸载至所述移动终端。If the minimum target overhead is greater than the first target overhead, the offloading strategy of the task to be calculated is determined to be offloading the task to be calculated to the mobile terminal. 根据权利要求14所述的方法,其特征在于,在所述最小目标开销等于所述第一目标开销的情况下,所述基于所述最小目标开销以及所述第一目标开销,确定所述待计算任务的卸载策略,还包括:The method according to claim 14, characterized in that, when the minimum target overhead is equal to the first target overhead, determining the offloading strategy of the task to be calculated based on the minimum target overhead and the first target overhead further comprises: 若所述时延权重系数、所述能耗权重系数以及所述成本权重系数中时延权重系数的数值最大,则基于所述第一时延开销以及所述最小目标开销对应的第二时延开销之间的大小关系,确定所述待计算任务的卸载策略;If the value of the delay weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is the largest, then based on the relationship between the first delay overhead and the second delay overhead corresponding to the minimum target overhead, determine the unloading strategy of the task to be calculated; 若所述时延权重系数、所述能耗权重系数以及所述成本权重系数中能耗权重系数的数值最大,则基于所述第一能耗开销以及所述最小目标开销对应的第二能耗开销之间的大小关系,确定所述待计算任务的卸载策略;If the value of the energy consumption weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is the largest, then based on the relationship between the first energy consumption overhead and the second energy consumption overhead corresponding to the minimum target overhead, determine the unloading strategy of the task to be calculated; 若所述时延权重系数、所述能耗权重系数以及所述成本权重系数中成本权重系数的数值最大,则直接确定所述待计算任务的卸载策略为将所述待计算任务卸载至所述移动终端。If the value of the cost weight coefficient among the delay weight coefficient, the energy consumption weight coefficient and the cost weight coefficient is the largest, then the offloading strategy of the task to be calculated is directly determined to be offloading the task to be calculated to the mobile terminal. 根据权利要求15所述的方法,其特征在于,所述基于所述第一时延开销以及所述最小目标开销对应的第二时延开销之间的大小关系,确定所述待计算任务的卸载策略,包括:The method according to claim 15, characterized in that the determining the offloading strategy of the task to be calculated based on the size relationship between the first delay overhead and the second delay overhead corresponding to the minimum target overhead comprises: 若所述第一时延开销大于所述最小目标开销对应的第二时延开销,则确定所述待计算任务的卸载策略为将所述待计算任务卸载至目标服务器; If the first delay overhead is greater than the second delay overhead corresponding to the minimum target overhead, determining the offloading strategy of the task to be calculated is to offload the task to be calculated to the target server; 若所述第一时延开销小于所述最小目标开销对应的第二时延开销,则确定所述待计算任务的卸载策略为将所述待计算任务卸载至所述移动终端;If the first delay overhead is less than the second delay overhead corresponding to the minimum target overhead, determining that the offloading strategy of the task to be calculated is to offload the task to be calculated to the mobile terminal; 若所述第一时延开销等于所述最小目标开销对应的第二时延开销,则基于所述最小目标开销对应的第二能耗开销或所述最小目标开销对应的第二成本开销,确定所述待计算任务的卸载策略。If the first delay overhead is equal to the second delay overhead corresponding to the minimum target overhead, the offloading strategy of the task to be calculated is determined based on the second energy consumption overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead. 根据权利要求15所述的方法,其特征在于,所述基于所述第一能耗开销以及所述最小目标开销对应的第二能耗开销之间的大小关系,确定所述待计算任务的卸载策略,包括:The method according to claim 15, characterized in that the determining of the offloading strategy of the task to be calculated based on the relationship between the first energy consumption overhead and the second energy consumption overhead corresponding to the minimum target overhead comprises: 若所述第一能耗开销大于所述最小目标开销对应的第二能耗开销,则确定所述待计算任务的卸载策略为将所述待计算任务卸载至目标服务器;If the first energy consumption cost is greater than the second energy consumption cost corresponding to the minimum target cost, determining that the unloading strategy of the task to be calculated is to unload the task to be calculated to the target server; 若所述第一能耗开销小于所述最小目标开销对应的第二能耗开销,则确定所述待计算任务的卸载策略为将所述待计算任务卸载至所述移动终端;If the first energy consumption cost is less than the second energy consumption cost corresponding to the minimum target cost, determining that the unloading strategy of the task to be calculated is to unload the task to be calculated to the mobile terminal; 若所述第一能耗开销等于所述最小目标开销对应的第二能耗开销,则基于所述最小目标开销对应的第二时延开销或所述最小目标开销对应的第二成本开销,确定所述待计算任务的卸载策略。If the first energy consumption overhead is equal to the second energy consumption overhead corresponding to the minimum target overhead, the unloading strategy of the task to be calculated is determined based on the second delay overhead corresponding to the minimum target overhead or the second cost overhead corresponding to the minimum target overhead. 一种针对移动边缘计算的任务卸载装置,其特征在于,所述装置包括:A task offloading device for mobile edge computing, characterized in that the device comprises: 第一获取模块,用于获取移动边缘计算系统中的移动终端处理待计算任务时所需的第一时延开销以及第一能耗开销,并基于所述第一时延开销以及所述第一能耗开销确定第一目标开销;所述第一目标开销用于表征将所述待计算任务卸载至所述移动终端的预估开销;A first acquisition module is used to acquire a first delay overhead and a first energy consumption overhead required for a mobile terminal in a mobile edge computing system to process a task to be calculated, and determine a first target overhead based on the first delay overhead and the first energy consumption overhead; the first target overhead is used to characterize an estimated overhead of offloading the task to be calculated to the mobile terminal; 第二获取模块,用于针对所述移动边缘计算系统包含的多个服务器中的任一服务器,获取所述服务器处理所述待计算任务时所需的第二时延开销,以及获取所述服务器处理所述待计算任务时所需的第二能耗开销以及第二成本开销,并基于所述第二时延开销、所述第二能耗开销以及所述第二成本开销确定第二目标开销;所述第二目标开销用于表征将所述待计算任务卸载至所述服务器的预估开销;A second acquisition module is used to obtain, for any server among the multiple servers included in the mobile edge computing system, a second delay overhead required for the server to process the task to be calculated, as well as a second energy consumption overhead and a second cost overhead required for the server to process the task to be calculated, and determine a second target overhead based on the second delay overhead, the second energy consumption overhead and the second cost overhead; the second target overhead is used to characterize the estimated overhead of offloading the task to be calculated to the server; 第一确定模块,用于基于所述第一目标开销以及所述多个服务器对应的多个所述第二目标开销,确定所述待计算任务的卸载策略;所述卸载策略包括将所述待计算任务卸载至所述移动终端或将所述待计算任务卸载至目标服务器;所述目标服务器属于所述多个服务器。The first determination module is used to determine the unloading strategy of the task to be calculated based on the first target overhead and the multiple second target overheads corresponding to the multiple servers; the unloading strategy includes unloading the task to be calculated to the mobile terminal or unloading the task to be calculated to the target server; the target server belongs to the multiple servers. 一种电子设备,其特征在于,包括:An electronic device, comprising: 处理器、存储器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述程序时实现如权利要求1-17中任一所述的针对移动边缘计算的任务卸载方法。A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the task offloading method for mobile edge computing as described in any one of claims 1 to 17 is implemented. 一种非易失性可读存储介质,其特征在于,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行权利要求1-17中一个或多个所述的针对移动边缘计算的任务卸载方法。 A non-volatile readable storage medium, characterized in that when the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the task offloading method for mobile edge computing described in one or more of claims 1-17.
PCT/CN2024/084530 2023-05-05 2024-03-28 Task unloading method and apparatus for mobile edge computing, device, and medium Pending WO2024230352A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310495140.XA CN116225575B (en) 2023-05-05 2023-05-05 Task offloading method, device, device and medium for mobile edge computing
CN202310495140.X 2023-05-05

Publications (1)

Publication Number Publication Date
WO2024230352A1 true WO2024230352A1 (en) 2024-11-14

Family

ID=86587555

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/084530 Pending WO2024230352A1 (en) 2023-05-05 2024-03-28 Task unloading method and apparatus for mobile edge computing, device, and medium

Country Status (2)

Country Link
CN (1) CN116225575B (en)
WO (1) WO2024230352A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20250238281A1 (en) * 2023-07-11 2025-07-24 Chongqing University Of Posts And Telecommunications Task unloading method based on unmanned aerial vehicle cooperation

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116225575B (en) * 2023-05-05 2023-08-15 苏州浪潮智能科技有限公司 Task offloading method, device, device and medium for mobile edge computing
CN117873689B (en) * 2024-03-11 2024-05-31 浪潮计算机科技有限公司 A task allocation method, device, equipment and computer-readable storage medium
CN119025186A (en) * 2024-10-28 2024-11-26 浪潮(北京)电子信息产业有限公司 A method, device, product, equipment and medium for task offloading

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170164237A1 (en) * 2015-12-03 2017-06-08 The Trustees Of The Stevens Institute Of Technology System Apparatus And Methods For Cognitive Cloud Offloading In A Multi-Rat Enabled Wireless Device
CN110351754A (en) * 2019-07-15 2019-10-18 北京工业大学 Industry internet machinery equipment user data based on Q-learning calculates unloading decision-making technique
CN112988347A (en) * 2021-02-20 2021-06-18 西安交通大学 Edge computing unloading method and system for reducing system energy consumption and cost sum
US20220210686A1 (en) * 2020-07-15 2022-06-30 Nantong University Energy-efficient optimized computing offloading method for vehicular edge computing network and system thereof
CN114884958A (en) * 2022-07-12 2022-08-09 北京邮电大学 Method and device for unloading computing tasks in satellite-ground converged network and electronic equipment
CN114895976A (en) * 2022-04-29 2022-08-12 国网智能电网研究院有限公司 Method and device for unloading service security calculation
CN116225575A (en) * 2023-05-05 2023-06-06 苏州浪潮智能科技有限公司 Task offloading method, device, device and medium for mobile edge computing

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112188627B (en) * 2020-09-27 2022-05-03 重庆邮电大学 A Dynamic Resource Allocation Strategy Based on State Prediction
CN115967990B (en) * 2022-12-23 2025-08-26 北京邮电大学 A method for offloading edge collaborative services based on classification and prediction

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170164237A1 (en) * 2015-12-03 2017-06-08 The Trustees Of The Stevens Institute Of Technology System Apparatus And Methods For Cognitive Cloud Offloading In A Multi-Rat Enabled Wireless Device
CN110351754A (en) * 2019-07-15 2019-10-18 北京工业大学 Industry internet machinery equipment user data based on Q-learning calculates unloading decision-making technique
US20220210686A1 (en) * 2020-07-15 2022-06-30 Nantong University Energy-efficient optimized computing offloading method for vehicular edge computing network and system thereof
CN112988347A (en) * 2021-02-20 2021-06-18 西安交通大学 Edge computing unloading method and system for reducing system energy consumption and cost sum
CN114895976A (en) * 2022-04-29 2022-08-12 国网智能电网研究院有限公司 Method and device for unloading service security calculation
CN114884958A (en) * 2022-07-12 2022-08-09 北京邮电大学 Method and device for unloading computing tasks in satellite-ground converged network and electronic equipment
CN116225575A (en) * 2023-05-05 2023-06-06 苏州浪潮智能科技有限公司 Task offloading method, device, device and medium for mobile edge computing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20250238281A1 (en) * 2023-07-11 2025-07-24 Chongqing University Of Posts And Telecommunications Task unloading method based on unmanned aerial vehicle cooperation
US12493499B2 (en) * 2023-07-11 2025-12-09 Chongqing University Of Posts And Telecommunications Task unloading method based on unmanned aerial vehicle cooperation

Also Published As

Publication number Publication date
CN116225575A (en) 2023-06-06
CN116225575B (en) 2023-08-15

Similar Documents

Publication Publication Date Title
WO2024230352A1 (en) Task unloading method and apparatus for mobile edge computing, device, and medium
CN112835698B (en) A dynamic load balancing method based on request classification processing of heterogeneous clusters
TWI729606B (en) Load balancing device and method for an edge computing network
CN109669774B (en) Hardware resource quantification method, hardware resource arrangement method, hardware resource quantification device and hardware resource arrangement device and network equipment
CN112579194B (en) Block chain consensus task unloading method and device based on time delay and transaction throughput
CN109451002B (en) Method and device for selecting CDN nodes
CN110557287B (en) Resource allocation method and device based on Lyapunov optimization
CN111163519A (en) A Wireless Body Area Network Resource Allocation and Task Offloading Algorithm for Maximizing System Benefits
CN109002358A (en) Mobile terminal software adaptive optimization dispatching method based on deeply study
CN112148468A (en) Resource scheduling method and device, electronic equipment and storage medium
WO2021068350A1 (en) Resource-constrained project scheduling method and apparatus, and computer device and storage medium
CN118567733B (en) Method, device and system for optimizing performance of server network card
CN112887345A (en) Node load balancing scheduling method for edge computing environment
CN114048853A (en) Neural network quantification method and device, computer equipment and storage medium
CN109144730B (en) A method and device for offloading tasks in a small cell
US20240143326A1 (en) Kernel coefficient quantization
CN118519782A (en) Cloud host scheduling method and device, electronic equipment and computer readable storage medium
WO2014101532A1 (en) Method and device for analyzing program running performance
CN114461299B (en) A method, device, electronic device and storage medium for determining an unloading decision
CN115951988A (en) Job scheduling method, computing device and storage medium
CN120390259A (en) Multi-task oriented edge computing resource allocation method, device, equipment and medium
CN107391257A (en) Predictor method, device and the server of memory size needed for business
CN104424101B (en) The determination method and apparatus of program feature interference model
CN119149222A (en) Scheduling method, device, equipment, medium and product of collaborative computing platform
CN117640643A (en) Back-to-origin node selection methods, devices, equipment and media

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: 24802640

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE