Cloud-edge collaborative resource optimization method, device, electronic device and storage medium

By obtaining and optimizing the edge-side data quality missing queue value, predicting the sampling rate and processing mode, and dynamically adjusting cloud-edge collaborative resources, the problem of data service quality deterioration caused by cloud-edge collaborative resource optimization is solved, and data delay and quality are improved. Take into consideration.

CN117370033BActive Publication Date: 2024-09-03KONGTROLINK
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202311666819.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-07
Publication Date
2024-09-03
Estimated Expiration
2043-12-07

AI Technical Summary

Technical Problem

In the industrial Internet of Things, cloud-edge collaborative resource optimization leads to the problem of poor data service quality, especially the loss of high-frequency data performance and increased data delay caused by reducing the sampling frequency.

Method used

By obtaining the data quality missing queue value at the edge side at the last moment, predict the data quality under different sampling rates, optimize the objective function to determine the target sampling rate and data processing mode, combine the data delay and cloud resource allocation, dynamically adjust the sampling rate and Processing mode to reduce data latency and ensure data quality.

Benefits of technology

It achieves reduced data delay while ensuring data quality, improves cloud and edge resource utilization, and avoids unnecessary resource consumption and data loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117370033B
    Figure CN117370033B
Patent Text Reader

Abstract

The present application provides a cloud-edge collaborative resource optimization method, device, electronic device and storage medium. The method includes: obtaining the first data quality missing queue value at the previous moment on the edge side; predicting the second data quality missing queue value at different preset sampling rates when collecting data at the current moment according to the data quality corresponding to different preset sampling rates and the first data quality missing queue value; using different preset sampling rates and different data processing modes to optimize the objective function, obtain the target sampling rate and the target data processing mode, the objective function includes data delay and the second data quality missing queue value; according to the relationship between the data cloud processing time and the cloud resource allocation value, the target sampling rate and the target data processing mode, determine the cloud resource allocation value at the current moment. The method of the present application reduces data delay while ensuring the stability of data quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a cloud-edge collaborative resource optimization method, device, electronic device and storage medium. Background Art

[0002] In the industrial Internet of Things, digital twin is an important technology that can connect industrial physical entities and the digital virtual world, reflect the real world in real time in the virtual world, and on this basis realize various industrial process monitoring, such as model display, equipment health diagnosis, etc.

[0003] In order to ensure the synchronization between the physical entity and the digital virtual world in the digital twin, it is necessary to obtain data from the physical entity in real time to ensure the service quality of the digital twin, such as data delay and data accuracy. When obtaining real-time data, it is usually completed by cloud-edge collaboration. The edge side collects data in real time and completes data processing on the edge side. After transmission to the cloud, the cloud completes data storage, analysis and display. In order to reduce data delay, the sampling frequency on the edge side is usually reduced to meet the delay requirements.

[0004] However, reducing the sampling frequency will lead to high-frequency data performance loss, making the data service quality worse. Summary of the invention

[0005] The present application provides a cloud-edge collaborative resource optimization method, device, electronic device and storage medium to solve the problem that cloud-edge collaborative resource optimization causes data service quality to deteriorate.

[0006] In a first aspect, the present application provides a cloud-edge collaborative resource optimization method, comprising:

[0007] Obtain the first data quality missing queue value of the data collected at the edge side at the last moment;

[0008] According to the data qualities corresponding to the different preset sampling rates and the first data quality missing queue values, predict the second data quality missing queue values ​​at the different preset sampling rates when collecting data at the current moment;

[0009] Using different preset sampling rates and different data processing modes, optimizing the objective function to minimize the value of the objective function, and obtaining the target sampling rate and the target data processing mode, wherein the data processing mode includes the cloud processing mode and the edge processing mode, and the objective function includes the data delay and the second data quality missing queue value, and the data delay is the sum of the data edge processing time, the data transmission time, and the data cloud processing time;

[0010] The cloud resource allocation value at the current moment is determined based on the relationship between the data cloud processing time and the cloud resource allocation value, the target sampling rate, and the target data processing mode.

[0011] In some embodiments, after determining the cloud resource allocation value at the current moment, the method further includes:

[0012] The target sampling rate, target data processing mode, and the current cloud resource allocation value are sent to the edge side and the cloud.

[0013] In some embodiments, the cloud resource allocation value at the current moment is the cloud resource allocation value when the data cloud processing time is the smallest under the target sampling rate and the target data processing mode.

[0014] In some embodiments, the second data quality missing queue value is a negative offset accumulated penalty value of the data quality at the current moment compared to the data quality standard value.

[0015] In a second aspect, the present application provides a cloud-edge collaborative resource optimization device, including:

[0016] An acquisition module, used to acquire a first data quality missing queue value of data collected at the edge side at the last moment;

[0017] A prediction module, used to predict the second data quality missing queue value at different preset sampling rates when collecting data at the current moment according to the data quality corresponding to the different preset sampling rates and the first data quality missing queue value;

[0018] An optimization module is used to optimize the objective function by using different preset sampling rates and different data processing modes to minimize the value of the objective function and obtain a target sampling rate and a target data processing mode, wherein the data processing mode includes a cloud processing mode and an edge processing mode, and the objective function includes a data delay and a second data quality missing queue value, and the data delay is the sum of the data edge processing time, the data transmission time, and the data cloud processing time;

[0019] The determination module is used to determine the cloud resource allocation value at the current moment according to the relationship between the data cloud processing time and the cloud resource allocation value, the target sampling rate and the target data processing mode.

[0020] In some embodiments, the determination module is further used to send the target sampling rate, the target data processing mode and the cloud resource allocation value at the current moment to the edge side and the cloud.

[0021] In some embodiments, the cloud resource allocation value at the current moment is the cloud resource allocation value when the data cloud processing time is the smallest under the target sampling rate and the target data processing mode.

[0022] In some embodiments, the second data quality missing queue value is a negative offset accumulated penalty value of the data quality at the current moment compared to the data quality standard value.

[0023] In a third aspect, the present application provides an electronic device, including: a memory and a processor;

[0024] The memory is used to store computer programs; the processor is used to execute the computer programs stored in the memory to implement the cloud-edge collaborative resource optimization method in the first aspect and any one of the embodiments of the first aspect.

[0025] In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the cloud-edge collaborative resource optimization method in the first aspect and any one of the embodiments of the first aspect is implemented.

[0026] The cloud-edge collaborative resource optimization method, device, electronic device and storage medium provided in the present application predict the second data quality missing queue value at the current moment by obtaining the first data quality missing queue value of the edge side data collected at the previous moment and combining the data quality corresponding to different sampling rates. Different sampling rates and different data processing modes are used to optimize the objective function, and the target sampling rate and target data processing mode that take into account both data delay and data quality are obtained. The cloud resource allocation value at the current moment is further determined in combination with the cloud data processing time in the data delay, so that the edge side and the cloud collect and process data according to the cloud resource allocation value, target sampling rate and target data processing mode, thereby reducing data delay while ensuring stable data quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the present application or 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.

[0028] Figure 1 A schematic diagram of a cloud-edge collaboration scenario provided for an embodiment of the present application;

[0029] Figure 2 A flowchart of a cloud-edge collaborative resource optimization method provided in one embodiment of the present application;

[0030] Figure 3 A schematic diagram of the structure of a cloud-edge collaborative resource optimization device provided in one embodiment of the present application;

[0031] Figure 4 A schematic diagram of the structure of a cloud programming platform system provided in one embodiment of the present application;

[0032] Figure 5 A schematic diagram of a graphical configuration of a cloud programming platform provided in one embodiment of the present application;

[0033] Figure 6 A schematic diagram of data quality convergence provided by an embodiment of the present application;

[0034] Figure 7 A schematic diagram of data delay convergence provided in one embodiment of the present application;

[0035] Figure 8 A schematic diagram of data quality loss queue value convergence provided by an embodiment of the present application;

[0036] Fig. 9 A schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0038] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances. For example, without departing from the scope of this document, first information can also be referred to as second information, and similarly, second information can also be referred to as first information.

[0039] In order to ensure the synchronization between the physical entity and the virtual world in the digital twin, it is usually necessary to obtain data from the physical entity in real time to ensure the quality of service (QOS) of the digital twin, such as data latency and data quality. For obtaining real-time data, cloud-edge collaboration is a common solution, which involves real-time data sampling at the edge and completing data processing on the edge side, and then transmitting it to the cloud, which completes data storage, analysis, and display.

[0040] In the process of cloud-edge collaborative data collection and processing, high-frequency data collection of industrial entities will generate a large amount of data, consume a lot of network resources, and increase data calculation delay and transmission delay, which poses a challenge to the low latency requirement of data. Therefore, it is necessary to dynamically adjust the data sampling rate of edge nodes to minimize data delay while ensuring data quality.

[0041] Currently, data latency is usually reduced by lowering the data sampling rate, which results in some high-frequency data losing performance and affecting data quality. In addition, the sampling rate can be adjusted based on the signal's own properties, such as the frequency of signal changes, but the use of data in the cloud is not taken into account, which results in data sampling when low-frequency sampling is required or no sampling is required, consuming unnecessary edge computing resources.

[0042] In the above-mentioned cloud-edge collaboration process, not only is the data quality not guaranteed, but most cloud-edge collaboration systems are developed using high-level languages ​​(Java, C++, etc.). When the data sampling strategy is dynamically adjusted, there will be problems such as large code changes and easy errors. In addition, the existing data processing mode is fixed, that is, data is either processed uniformly on the edge side or uniformly processed on the cloud side, and the data processing mode cannot be dynamically switched between the cloud and the edge side. For example, when the amount of data to be processed is large, unified processing on the edge side will consume a large amount of edge computing resources; unified processing on the cloud side will consume more network resources, increase transmission delays, and fail to meet the requirements of high real-time data.

[0043] In response to the above problems, the present application proposes a cloud-edge collaborative resource optimization method, device, electronic device and storage medium. According to the first data quality missing queue value of the edge side data collected at the previous moment, different sampling rates and different data processing modes, the objective function is optimized so that the data delay is reduced and the data quality is stable. On this basis, according to the relationship between data delay and cloud resource allocation, the target sampling rate determined by the optimization objective function and the target data processing mode, the cloud resource allocation value is determined, thereby determining the sampling rate, data processing mode and cloud resource allocation value at the current moment, so that in the process of collecting and processing data at the current moment, the data delay is small and the data quality is stable.

[0044] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0045] Figure 1 A schematic diagram of a cloud-edge collaboration scenario provided by an embodiment of the present application is shown. Figure 1As shown in the figure, the cloud-edge collaborative system includes edge computing nodes and a cloud platform, in which a cloud programming platform is deployed in the cloud platform. The edge computing node is deployed near the physical entity, obtains raw data through various digital interfaces such as RS485 serial communication, RJ45 network communication, and Loar wireless communication, and performs edge computing and data processing strategy selection to meet the high real-time requirements of industry. The edge computing node sends effective structured data to the cloud platform through industrial WIFI, 5G, and optical fiber networks, and the cloud platform performs big data analysis, storage, and display. The cloud programming platform in the cloud platform supports graphical programming and automatic code generation, and can generate files that can be loaded and run by edge computing nodes, including dynamic link libraries, binary files, etc. For example, the cloud programming platform can generate a file that instructs the edge computing node how to collect and process data at the next moment. The file is a file that can be loaded and run by the edge computing node, which facilitates the edge computing node to collect and process data according to the requirements in the file.

[0046] In this application, the cloud programming platform is used as the execution subject to execute the cloud-edge collaborative resource optimization method of the following embodiment. Specifically, the execution subject can be a hardware device of the cloud programming platform, or a software application that implements the following embodiment in the cloud programming platform, or a computer-readable storage medium that is installed with the software application that implements the following embodiment, or a code that implements the software application of the following embodiment.

[0047] Figure 2 A flow chart of a cloud-edge collaborative resource optimization method provided by an embodiment of the present application is shown. Figure 2 As shown, with the cloud programming platform as the execution subject, the method of this embodiment may include the following steps:

[0048] S101: Obtain a first data quality missing queue value of data collected at the edge side at the last moment.

[0049] In this embodiment, the first data quality missing queue value represents the cumulative penalty value of the negative deviation of the data quality standard value of the data collected at the previous moment. That is, the larger the first data quality missing queue value, the larger the cumulative penalty value, indicating that the data quality is more unstable.

[0050] The data collected at the last moment may represent the data collected in the last timestamp. In each timestamp, the sampling rate and the data processing mode are fixed.

[0051] The cloud programming platform monitors the first data quality missing queue value of the edge side collected data according to a preset monitoring frequency, wherein the preset monitoring frequency may be the same as the sampling frequency at the previous moment, that is, after each data collection on the edge side, the cloud programming platform can obtain the data quality and data quality missing queue value of the data collected this time.

[0052] S102: predicting second data quality missing queue values ​​at different preset sampling rates when collecting data at the current moment according to data qualities corresponding to different preset sampling rates and first data quality missing queue values.

[0053] Among them, different sampling rates correspond to different data qualities, as shown in formula (1).

[0054] (1)

[0055] in, Indicates that the data sampling rate is f The data quality at the time f represents the data sampling rate, F max indicates the sampling rate with the highest quality requirement.

[0056] In this embodiment, the data quality evolution queue can be constructed by using the Lyapunov function, which is expressed as formula (2).

[0057] (2)

[0058] Among them, Q(t) represents the second data quality missing queue value at the current moment, Q(t-1) represents the first data quality missing queue value at the previous moment, Ath represents the data quality standard value, and A represents the data quality at the current moment.

[0059] Similar to the first data quality missing queue value, the second data quality missing queue value is the cumulative penalty value of the negative offset of the data quality at the current moment compared to the data quality standard value. The larger the second data quality missing queue value, the larger the cumulative penalty value, indicating that the data quality is more unstable.

[0060] In this embodiment, a plurality of preset data sampling rates S may be preset with a total of K levels, that is, S=[S1, S2, ..., SK], where SK represents the maximum sampling rate and S1 represents the minimum sampling rate. The edge computing node may select from S1 to SK to sample the physical entity.

[0061] After selecting the sampling rate, the data quality at the current moment can be calculated according to formula (1), and then the second data quality missing queue value can be predicted and determined according to formula (2) and the first data quality missing queue value. In other words, after the sampling rate is determined, the second data quality missing queue value at the current moment can be calculated and determined.

[0062] S103, using different preset sampling rates and different data processing modes to optimize the objective function, minimize the value of the objective function, and obtain a target sampling rate and a target data processing mode.

[0063] In this embodiment, the data processing mode O includes a cloud processing mode C and an edge processing mode L, and the edge computing node can select C or L to process the data.

[0064] Data delay T represents the sum of data edge processing time TL, data transmission time TR and data cloud processing time TC. TL, TR and TC are shown in formulas (3)-(5) respectively.

[0065] (3)

[0066] (4)

[0067] (5)

[0068] Among them, O represents the data processing mode. When the edge processing mode L is selected, O=0; when the cloud processing mode C is selected, O=1;

[0069] z Indicates the amount of data generated by a single data sampling (constant);

[0070] ρ Indicates the number of central processing unit (CPU) clocks consumed by the edge computing node to process a unit bit of data (a constant);

[0071] k Indicates the CPU main frequency of the edge computing node (constant);

[0072] θ Indicates the CPU efficiency of edge computing nodes (constant);

[0073] μ Indicates the proportion of CPU resources used by edge computing nodes for data processing (constant);

[0074] R represents the network transmission rate (constant);

[0075] β Indicates the compression ratio of data after being processed by the edge computing node (constant);

[0076] δ Indicates the number of CPU clocks consumed by the cloud programming platform to process a unit bit of data (constant);

[0077] m represents the CPU main frequency of the cloud programming platform (constant);

[0078] Indicates the CPU efficiency of the cloud programming platform (constant);

[0079] Indicates the CPU resource allocation of the cloud for data processing, that is, the cloud resource allocation value.

[0080] According to formulas (3) and (4), the data edge processing time TL and the data transmission time TR can be minimized by selecting the data sampling rate and the data processing mode.

[0081] The objective function includes data delay and the second data quality missing queue value, as shown in formula (6).

[0082] (6)

[0083] Wherein, V(t) represents the objective function, and M and N are adjustment parameters used to balance the impact of data delay and data quality on the objective function.

[0084] In this embodiment, the objective function is optimized to minimize the value of the objective function, that is, to ensure the stability of data quality as much as possible while reducing data delay, and to achieve a balance between low data delay and stable data quality.

[0085] After traversing various combinations of preset sampling rates and data processing modes, the sampling rate and data processing mode when the objective function is minimized are the target sampling rate and target data processing mode, which will be used to collect and process data at the current moment.

[0086] S104: Determine the cloud resource allocation value at the current moment according to the relationship between the data cloud processing time and the cloud resource allocation value, the target sampling rate, and the target data processing mode.

[0087] Specifically, formula (5) represents the relationship between the data cloud processing time TC and the cloud resource allocation value 𝜏.

[0088] In some embodiments, the cloud resource allocation value at the current moment is the cloud resource allocation value when the data cloud processing time is the smallest under the target sampling rate and the target data processing mode.

[0089] Specifically, the minimum TC value is obtained according to formula (5), and the Lagrange equation is used to bring in the target sampling rate, target data processing mode and other constraints to obtain the equation as shown in formula (7):

[0090] (7)

[0091] in, , 0<τ<1.

[0092] right Find the partial derivative, the result is as shown in formula (8):

[0093] (8)

[0094] Calculated The values ​​are:

[0095] (9)

[0096] In summary, the cloud-edge collaborative resource optimization method provided in this embodiment determines the target sampling rate, target data processing mode and cloud resource allocation value at the current moment according to the first data missing queue value at the previous moment and the preset sampling rate and data processing mode. By optimizing the objective function, the sampling rate and data processing mode are dynamically adjusted, so that when the target sampling rate, target data processing mode and cloud resource allocation value are used to collect and process data at the current moment, data delay can be reduced while ensuring stable data quality. Since the data processing mode can be dynamically switched between the cloud and the edge, the resource utilization of the cloud and the edge is improved. Using the cloud resource allocation value when the data cloud processing time is the smallest can reduce the consumption of edge resources and the consumption of network transmission resources.

[0097] In some embodiments, after step S104, the cloud programming platform may also send the target sampling rate, the target data processing mode, and the current cloud resource allocation value to the edge side and the cloud.

[0098] The edge collects data at the current moment according to the target sampling rate, selects the target data processing mode, and processes the data or instructs the cloud to process the data. The cloud allocates resources according to the calculated cloud resource allocation value.

[0099] Figure 3 A schematic diagram of the structure of a cloud-edge collaborative resource optimization device provided by an embodiment of the present application is shown. Figure 3 As shown, the cloud-edge collaborative resource optimization device 10 of this embodiment is used to implement the operation corresponding to the cloud programming platform in any of the above method embodiments. The cloud-edge collaborative resource optimization device 10 of this embodiment includes:

[0100] An acquisition module 11 is used to acquire a first data quality missing queue value of data collected at the edge side at the last moment;

[0101] A prediction module 12, configured to predict the second data quality missing queue value at different preset sampling rates when collecting data at the current moment according to the data quality corresponding to the different preset sampling rates and the first data quality missing queue value;

[0102] The optimization module 13 is used to optimize the objective function by using different preset sampling rates and different data processing modes to minimize the value of the objective function, thereby obtaining a target sampling rate and a target data processing mode, wherein the data processing mode includes a cloud processing mode and an edge processing mode, and the objective function includes a data delay and a second data quality missing queue value, wherein the data delay is the sum of the data edge processing time, the data transmission time, and the data cloud processing time;

[0103] The determination module 14 is used to determine the cloud resource allocation value at the current moment according to the relationship between the data cloud processing time and the cloud resource allocation value, the target sampling rate and the target data processing mode.

[0104] In some embodiments, the determination module 14 is further configured to send the target sampling rate, the target data processing mode, and the cloud resource allocation value at the current moment to the edge side and the cloud.

[0105] In some embodiments, the cloud resource allocation value at the current moment is the cloud resource allocation value when the data cloud processing time is the smallest under the target sampling rate and the target data processing mode.

[0106] In some embodiments, the second data quality missing queue value is a negative offset accumulated penalty value of the data quality at the current moment compared to the data quality standard value.

[0107] The cloud-edge collaborative resource optimization device 10 provided in the embodiment of the present application can execute the above-mentioned method embodiment. Its specific implementation principles and technical effects can be found in the above-mentioned method embodiment, and this embodiment will not be repeated here.

[0108] Figure 4 This is a schematic diagram of the structure of a cloud programming platform system provided in one embodiment of the present application. Figure 4 As shown, the cloud programming platform system 20 includes a graphical function module 21, a code conversion module 22 and a cross-compilation module 23.

[0109] The graphical function module 21 is used to obtain the data quality missing queue value at the previous moment, dynamically select the sampling rate and data processing mode, ensure the stability of data quality while reducing data delay, and then determine the cloud resource allocation value and update the data to complete the process of dynamically building a resource optimization program, and present the built program as follows: Figure 5 Graphical configuration shown.

[0110] The code conversion module 22 is used to convert the graphical program into a standard language, such as C language.

[0111] The cross-compilation module 23 is used to cross-compile the standard language to generate files that can be recognized and executed by the edge computing node and the cloud. That is, the files can be loaded and run by the edge computing node and the cloud.

[0112] The following are more specific embodiments to help understand the technical solution of the present application.

[0113] The edge computing node is a data gateway with a main frequency of 800M and a memory of 256MB. The physical entity is a programmable logic controller (PLC), such as S1-0000PLC. The edge computing node communicates with S1-0000 through the network interface and carries the S1 protocol to obtain PLC data. There are 400 points collected, and the data is reported to the cloud through the message queue telemetry transport protocol (Message QueuingTelemetry Transport, MQTT). The communication method between the edge computing node and the cloud is a wired network with a bandwidth of 15M - 20M with random fluctuations. The communication protocol between the cloud programming platform and the edge computing node is the Transmission Control Protocol (TCP). The main frequency of the cloud server is 2.4G, 4 cores, and the memory is 32G.

[0114] The preset data quality standard Ath is 0.85, the trade-off parameter N value is 0.05, the sampling rate classification number K is 5, where S1 is 10 Hz / s and S5 is 50 Hz / s.

[0115] After data sampling is started, the convergence process of data quality is as follows: Figure 6 As shown in the figure, at the initial node, the data quality fluctuates slightly due to factors such as the network and sampling rate, but over time, the data quality converges to the allowable error range of the standard value of 0.85.

[0116] The data delay convergence process is as follows Figure 7 As shown, in the initial stage, the data delay fluctuates, and as time goes by, the time delay converges to a stable state within an error range of 0.25 seconds.

[0117] The convergence process of data quality missing queue value Q(t) is as follows Figure 8 As shown in the figure, in the initial stage, because the data quality did not meet the requirements, the system was constantly adjusted and Q(t) was also fluctuating. As time went by, the data quality gradually stabilized and Q(t) gradually converged to an error range of 0.

[0118] The data sampling rate and data processing mode selection are shown in Table 1. Due to different network conditions, the data selection mode is also different.

[0119] Fig. 9 FIG. 1 shows a hardware structure diagram of an electronic device provided in an embodiment of the present application. Fig. 9As shown, the electronic device 30 is used to implement the operations corresponding to the cloud programming platform in any of the above method embodiments. The electronic device 30 of this embodiment may include: a memory 31, a processor 32 and a communication interface 34.

[0120] The memory 31 is used to store computer programs. The memory 31 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a disk or an optical disk.

[0121] Table 1 Sampling rate and data processing mode at different times

[0122]

[0123] The processor 32 is used to execute the computer program stored in the memory to implement the cloud-edge collaborative resource optimization method in the above embodiment. For details, please refer to the relevant description in the above method embodiment. The processor 32 can be a CPU, or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), etc. A general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the invention can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.

[0124] Optionally, the memory 31 may be independent or integrated with the processor 32 .

[0125] When the memory 31 is a device independent of the processor 32, the electronic device 30 may further include a bus 33. The bus 33 is used to connect the memory 31 and the processor 32. The bus 33 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0126] The communication interface 34 may be connected to the processor 32 via the bus 33. The processor 32 may control the communication interface 34 to implement the functions of receiving and sending signals.

[0127] The electronic device 30 provided in this embodiment can be used to execute the above-mentioned cloud-edge collaborative resource optimization method. Its implementation method and technical effect are similar, and this embodiment will not be repeated here.

[0128] The present application also provides a computer-readable storage medium, in which a computer program / instruction is stored. When the computer program / instruction is executed by a processor, it is used to implement the methods provided in the various embodiments described above.

[0129] Among them, the computer-readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that is convenient for transmitting a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a computer-readable storage medium is coupled to a processor so that the processor can read information from the computer-readable storage medium and write information to the computer-readable storage medium. Of course, the computer-readable storage medium can also be a component of the processor. The processor and the computer-readable storage medium can be located in an application-specific integrated circuit (ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the computer-readable storage medium can also exist in a communication device as discrete components.

[0130] Specifically, the computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium may be any available medium that can be accessed by a general or special-purpose computer.

[0131] The present application also provides a computer program product, which includes a computer program / instruction, and the computer program / instruction is stored in a computer-readable storage medium. At least one processor of the device can read the computer program / instruction from the computer-readable storage medium, and at least one processor executes the computer program / instruction so that the device implements the methods provided in the various embodiments described above.

[0132] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0133] Among them, each module can be physically separated, for example, installed in different locations of a device, or installed on different devices, or distributed on multiple network units, or distributed on multiple processors. Each module can also be integrated together, for example, installed in the same device, or integrated in a set of codes. Each module can exist in the form of hardware, or can also exist in the form of software, or can also be implemented in the form of software plus hardware. The present application can select some or all of the modules according to actual needs to achieve the purpose of the present embodiment.

[0134] It should be understood that, although the various steps in the flowcharts in the above-described embodiments are sequentially displayed according to the indications of the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and they can be executed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily to be carried out sequentially, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0135] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the above embodiments can still be modified, or some or all of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A cloud-edge collaborative resource optimization method, characterized in that: The method comprises: Obtaining a first data quality missing queue value of the data collected at the edge side at the last moment; the first data quality missing queue value represents an accumulated penalty value of a negative deviation of a data quality standard value of the data quality of the data collected at the last moment; According to the data quality corresponding to different preset sampling rates and the first data quality missing queue value, predict the second data quality missing queue value at the different preset sampling rates when collecting data at the current moment; the second data quality missing queue value is the cumulative penalty value of the negative offset of the data quality at the current moment compared with the data quality standard value; Adopting the different preset sampling rates and different data processing modes, optimizing the objective function, minimizing the value of the objective function, and obtaining the target sampling rate and the target data processing mode, wherein the data processing mode includes a cloud processing mode and an edge processing mode, and the objective function includes a data delay and a second data quality missing queue value, and the data delay is the sum of the data edge processing time, the data transmission time, and the data cloud processing time; The cloud resource allocation value at the current moment is determined according to the relationship between the data cloud processing time and the cloud resource allocation value, the target sampling rate, and the target data processing mode; the relationship between the data cloud processing time and the cloud resource allocation value is: Wherein, TC represents the data cloud processing time; O represents the data processing mode. When the edge processing mode is selected, O=0; when the cloud processing mode is selected, O=1. The data processing mode is determined by the target data processing mode. Indicates the amount of data generated by a single data sampling (constant); represents a data sampling rate, and the data sampling rate is determined by the target sampling rate; Indicates the compression ratio of data after being processed by the edge computing node (constant); Indicates the number of CPU clocks consumed by the cloud programming platform to process a unit bit of data (constant); Indicates the CPU main frequency of the cloud programming platform (constant); Indicates the CPU efficiency of the cloud programming platform (constant); Indicates the cloud resource allocation value.

2. The method according to claim 1, characterized in that After determining the cloud resource allocation value at the current moment, the method further includes: The target sampling rate, the target data processing mode, and the cloud resource allocation value at the current moment are sent to the edge side and the cloud.

3. The method according to claim 1, characterized in that The cloud resource allocation value at the current moment is the cloud resource allocation value when the cloud processing time of the data is the smallest under the target sampling rate and the target data processing mode.

4. The method according to claim 2, characterized in that: The second data quality missing queue value is a cumulative penalty value of the negative deviation of the data quality at the current moment compared to the data quality standard value.

5. A cloud-edge collaborative resource optimization device, characterized in that: The device comprises: An acquisition module, used to acquire a first data quality missing queue value of the data collected at the edge side at the last moment; the first data quality missing queue value represents an accumulated penalty value of a negative deviation data quality standard value of the data quality of the data collected at the last moment; A prediction module, configured to predict, based on the data qualities corresponding to the different preset sampling rates and the first data quality missing queue value, a second data quality missing queue value at the different preset sampling rates when collecting data at the current moment; the second data quality missing queue value is a cumulative penalty value for the negative offset of the data quality at the current moment compared to the data quality standard value; An optimization module, configured to optimize an objective function by using the different preset sampling rates and different data processing modes, minimize the value of the objective function, and obtain a target sampling rate and a target data processing mode, wherein the data processing mode includes a cloud processing mode and an edge processing mode, and the objective function includes a data delay and a second data quality missing queue value, wherein the data delay is the sum of the data edge processing time, the data transmission time, and the data cloud processing time; The determination module is used to determine the cloud resource allocation value at the current moment according to the relationship between the data cloud processing time and the cloud resource allocation value, the target sampling rate and the target data processing mode; the relationship between the data cloud processing time and the cloud resource allocation value is: Wherein, TC represents the data cloud processing time; O represents the data processing mode. When the edge processing mode is selected, O=0; when the cloud processing mode is selected, O=1. The data processing mode is determined by the target data processing mode. Indicates the amount of data generated by a single data sampling (constant); represents a data sampling rate, and the data sampling rate is determined by the target sampling rate; Indicates the compression ratio of data after being processed by the edge computing node (constant); Indicates the number of CPU clocks consumed by the cloud programming platform to process a unit bit of data (constant); Indicates the CPU main frequency of the cloud programming platform (constant); Indicates the CPU efficiency of the cloud programming platform (constant); Indicates the cloud resource allocation value.

6. The device according to claim 5, characterized in that The determination module is also used to send the target sampling rate, the target data processing mode and the cloud resource allocation value at the current moment to the edge side and the cloud.

7. The device according to claim 5, characterized in that The cloud resource allocation value at the current moment is the cloud resource allocation value when the cloud processing time of the data is the smallest under the target sampling rate and the target data processing mode.

8. The device according to claim 6, characterized in that The second data quality missing queue value is a cumulative penalty value of the negative deviation of the data quality at the current moment compared to the data quality standard value.

9. An electronic device, characterized in that: The device comprises: a memory and a processor; The memory is used to store computer programs; The processor is used to execute the computer program stored in the memory to implement the cloud-edge collaborative resource optimization method as described in any one of claims 1-4.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, is used to implement the cloud-edge collaborative resource optimization method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Predictive control scheduling method for substation monitoring and edge cloud collaboration

    CN112882383A

  • Resource scheduling implementation method based on energy consumption and QoS collaborative optimization

    CN113515351A

  • Joint optimization method and system for time delay and spectrum occupation in cloud edge collaborative network

    CN113784373A

  • Task unloading and resource allocation method for industrial hybrid network

    CN115002799A

  • Resource allocation method, nonvolatile storage medium and electronic equipment

    CN116132380A