Decision authority information allocation method, device, equipment and computer storage medium
By calculating the delay compensation coefficient and traversal time, adjusting the spatial capacity of the cloud edge server, solving the problem of inconsistent number and processing capabilities of the cloud edge server management terminal devices, reducing the delay in obtaining decision information, and improving user experience.
Patent Information
- Application Number
- CN202310545146.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-15
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2043-05-15
AI Technical Summary
The number of terminal devices managed by cloud edge servers is not consistent with the processing capabilities, resulting in delays in obtaining decision information and affecting user experience.
By obtaining the delay compensation coefficient and traversal time, the actual time is calculated, and based on the relationship between the space capacity and sinking space capacity of the edge server, the decision permission information of the terminal device is adjusted, and the number of terminal devices managed by the cloud edge server is dynamically adjusted to adapt to processing capabilities and reduce waiting time.
It reduces the delay in obtaining decision information, improves the user experience, and optimizes the processing capabilities of cloud edge servers and the adaptation of terminal devices.
Smart Images

Figure CN116506438B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of edge computing, and in particular to a method, apparatus, device, and computer storage medium for allocating decision-making authority information. Background Art
[0002] In the digital technology era with the rapid development of Internet of Things (IoT), more and more terminals or sensor nodes are connected to the IoT, forming a model where everything can access the network. IoT nodes generate a large amount of business data during continuous operation, and the unified allocation and management of management decision-making information of massive business data has become an industry need.
[0003] In the existing technology, decision information corresponding to the business request is usually obtained through a cloud center server or a cloud edge server, and the decision information managed by the cloud center server or the cloud edge server is directly sent to the corresponding terminal device through a direct connection with the terminal device. Although the cloud edge server disperses the processing pressure of the cloud center server, there is a mismatch between the number of terminal devices managed by the cloud edge server and the processing capacity of the cloud edge server. When the cloud edge server receives a business request sent by a terminal device, it often needs to wait for a period of time before processing the business request, which causes a delay problem in obtaining decision information and affects the user experience. Summary of the Invention
[0004] The embodiments of the present application provide a method, apparatus, device and computer storage medium for allocating decision-making authority information, which can make the number of terminal devices managed by the cloud edge server as compatible as possible with the processing capacity of the cloud edge server, reduce the waiting time for processing business requests, and thereby reduce the delay in obtaining decision information, thereby enhancing the user experience.
[0005] In a first aspect, an embodiment of the present application provides a method for allocating decision-making authority information, comprising:
[0006] Upon receiving a service request from a terminal device, obtaining a delay compensation coefficient and a traversal time of the terminal device, where the traversal time is the transmission time required from the terminal device sending the service request to the first cloud edge server finding decision information corresponding to the service request, and the information in the first cloud edge server includes decision authority information and decision information of the terminal device;
[0007] Based on the delay compensation coefficient and traversal time, calculate the actual time it takes for the terminal device to find the decision information;
[0008] Determine the sinking space capacity of the first cloud edge server corresponding to the actual time consumption and the space capacity of the first cloud edge server based on the relationship information between the actual time consumption, the space capacity of the first cloud edge server, and the sinking space capacity of the first cloud edge server;
[0009] Send change information of the decision-making authority information of the terminal device to the cloud center server, the change information includes the actual time consumption and the sinking space capacity, so that the cloud center server can find the target second cloud edge server according to the change information and the space capacity of the second cloud edge server, and send the decision-making authority information to the target second cloud edge server, so that the target second cloud edge server can establish a communication connection with the terminal device and send decision information corresponding to the service request to the terminal device.
[0010] In one possible embodiment, before obtaining the delay compensation coefficient and traversal time of the terminal device, the method further includes:
[0011] Receive the decision authority information and decision information of the terminal device sent by the cloud center server.
[0012] In one possible embodiment, before determining the sinking space capacity of the first cloud edge server corresponding to the actual time consumption and the space capacity of the first cloud edge server based on the relationship information between the actual time consumption, the space capacity of the first cloud edge server, and the sinking space capacity of the first cloud edge server, the method further includes:
[0013] Obtain samples of the actual time taken by multiple terminal devices to find decision information;
[0014] Training a neural network using actual time consumption samples and the spatial capacity of the first cloud edge server, where the neural network includes relationship information between the actual time consumption, the spatial capacity of the first cloud edge server, and the sinking spatial capacity of the first cloud edge server;
[0015] When the error between the actual time consumption and the target value is within the preset threshold, the trained neural network is obtained;
[0016] Determining the sinking space capacity of the first cloud edge server corresponding to the actual time consumption and the space capacity of the first cloud edge server based on the relationship information between the actual time consumption, the space capacity of the first cloud edge server, and the sinking space capacity of the first cloud edge server includes:
[0017] The actual time consumption and the space capacity of the first cloud edge server are input into the trained neural network, and the relationship information between the actual time consumption, the space capacity of the first cloud edge server and the sinking space capacity of the first cloud edge server is used to determine the sinking space capacity of the first cloud edge server corresponding to the actual time consumption and the space capacity of the first cloud edge server.
[0018] In a second aspect, an embodiment of the present application provides a method for allocating decision-making authority information, including:
[0019] Receive change information of the decision authority information of the terminal device sent by the first cloud edge server, where the change information includes the actual time taken by the terminal device to find the decision information corresponding to the service request and the sinking space capacity of the first cloud edge server;
[0020] Find the target second cloud edge server according to the change information and the space capacity of the second cloud edge server;
[0021] The decision authority information of the terminal device is sent to the target second cloud edge server, so that the target second cloud edge server can establish a communication connection with the terminal device and send decision information corresponding to the service request to the terminal device.
[0022] In one possible embodiment, the present invention further includes:
[0023] Send the decision information of the terminal device to the target second cloud edge server.
[0024] In one possible embodiment, the present invention further includes:
[0025] Upon receiving the decision information allocation request sent by the target second cloud edge server, the decision information of the terminal device is sent to the target second cloud edge server.
[0026] In one possible embodiment, the present invention further includes:
[0027] Upon receiving a service request from a terminal device, the terminal device's delay compensation coefficient and traversal time are obtained. The traversal time is the transmission time required for the terminal device to send the service request to the cloud center server to find the decision information corresponding to the service request. The cloud center server includes the decision authority information and decision information of the terminal device.
[0028] Calculate the initial actual time taken by the terminal device to find the decision information based on the delay compensation coefficient and the traversal time;
[0029] Based on the relationship information between the initial actual time consumption, the space capacity of the cloud center server and the sinking space capacity of the cloud center server, determine the sinking space capacity of the cloud center server corresponding to the initial actual time consumption and the space capacity of the cloud center server;
[0030] Based on the initial actual time consumption and the sinking space capacity of the cloud center server, the sinking space information is generated, and the sinking space information includes the decision authority information of the terminal device;
[0031] The decision authority information of the terminal device is sent to the first cloud edge server, so that the first cloud edge server can establish a communication connection with the terminal device and send decision information corresponding to the service request to the terminal device.
[0032] In one possible embodiment, the present invention further includes:
[0033] Send the decision information of the terminal device to the first cloud edge server.
[0034] In one possible embodiment, the present invention further includes:
[0035] Obtaining authority values of the cloud center server, the first cloud edge server, and the second cloud edge server, where the authority values respectively represent the size of the range covered by the decision authority information in the cloud center server, the first cloud edge server, and the second cloud edge server;
[0036] A two-dimensional decision allocation image is constructed based on the permission value and the transmission path of the business request.
[0037] In one possible embodiment, after constructing the two-dimensional image according to the permission value and the transmission path of the service request, the method further includes:
[0038] Virtual reality (VR) technology is used to model the two-dimensional decision allocation image to obtain a three-dimensional decision allocation image.
[0039] In a third aspect, an embodiment of the present application provides a decision authority information allocation device, comprising:
[0040] An acquisition module is configured to, upon receiving a service request sent by a terminal device, obtain a delay compensation coefficient and a traversal time of the terminal device, where the traversal time is the transmission time required from the terminal device sending the service request to the first cloud edge server finding decision information corresponding to the service request, and the information in the first cloud edge server includes decision authority information and decision information of the terminal device;
[0041] A calculation module, configured to calculate the actual time taken by the terminal device to find the decision information based on the delay compensation coefficient and the traversal time;
[0042] A determination module, configured to determine, based on the relationship information between the actual time consumption, the space capacity of the first cloud edge server, and the sinking space capacity of the first cloud edge server, the sinking space capacity of the first cloud edge server corresponding to the actual time consumption and the space capacity of the first cloud edge server;
[0043] A sending module is used to send change information of the decision-making authority information of the terminal device to the cloud center server. The change information includes the actual time consumption and the sinking space capacity, so that the cloud center server can find the target second cloud edge server according to the change information and the space capacity of the second cloud edge server, and send the decision-making authority information to the target second cloud edge server, so that the target second cloud edge server can establish a communication connection with the terminal device and send the decision information corresponding to the service request to the terminal device.
[0044] In a fourth aspect, an embodiment of the present application provides a decision authority information allocation device, comprising:
[0045] A receiving module, configured to receive change information of the decision authority information of the terminal device sent by the first cloud edge server, the change information including the actual time taken by the terminal device to find the decision information corresponding to the service request and the sinking space capacity of the first cloud edge server;
[0046] A search module, configured to search for a target second cloud edge server based on the change information and the space capacity of the second cloud edge server;
[0047] The sending module is used to send the decision authority information of the terminal device to the target second cloud edge server, so that the target second cloud edge server can establish a communication connection with the terminal device and send the decision information corresponding to the service request to the terminal device.
[0048] In a fifth aspect, an embodiment of the present application provides an electronic device, the device comprising:
[0049] a processor and a memory storing computer program instructions;
[0050] When the processor executes the computer program instructions, it implements any one of the above-mentioned methods for allocating decision-making authority information.
[0051] In a sixth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, any one of the above-mentioned decision authority information allocation methods is implemented.
[0052] In the seventh aspect, an embodiment of the present application provides a computer program product, characterized in that when the instructions in the computer program product are executed by the processor of an electronic device, the electronic device is able to execute any of the above-mentioned decision-making authority information allocation methods.
[0053] The decision authority information allocation method, apparatus, device and computer storage medium of the embodiment of the present application obtains the delay compensation coefficient and traversal time of the terminal device when receiving a service request sent by a terminal device, the traversal time is the transmission time required for the service request sent from the terminal device to the first cloud edge server to find the decision information corresponding to the service request, the information in the first cloud edge server includes the decision authority information and decision information of the terminal device, based on the delay compensation coefficient and the traversal time, calculates the actual time taken for the terminal device to find the decision information, and calculates the actual time taken based on the actual time taken, the space capacity of the first cloud edge server and the space capacity of the first cloud edge server. The terminal device receives the information about the relationship between the actual time consumption and the sinking space capacity of the first cloud edge server, determines the sinking space capacity of the first cloud edge server corresponding to the actual time consumption and the space capacity of the first cloud edge server, and sends the change information of the decision authority information of the terminal device to the cloud center server, wherein the change information includes the actual time consumption and the sinking space capacity, so that the cloud center server can find the target second cloud edge server according to the change information and the space capacity of the second cloud edge server, and send the decision authority information to the target second cloud edge server, so that the target second cloud edge server can establish a communication connection with the terminal device and send the decision information corresponding to the service request to the terminal device. In this way, the actual time consumption of the decision information and the space capacity of the edge server are found by the terminal device, and the decision authority information of the terminal device is adjusted by each cloud edge server, and the number of terminal devices managed by the cloud edge server is changed, so that the number of terminal devices managed by the cloud edge server is adapted to the processing capacity of the cloud edge server as much as possible, thereby reducing the waiting time for processing service requests, thereby reducing the delay in obtaining decision information, and enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0055] Figure 1 This is a flowchart of a method for allocating decision-making authority information provided by an embodiment of the present application;
[0056] Figure 2 This is a flowchart of a method for allocating decision-making authority information provided by another embodiment of the present application;
[0057] Figure 3 This is a flowchart of a method for allocating decision-making authority information provided by another embodiment of the present application;
[0058] Figure 4 1 is a flowchart of a method for allocating decision-making authority information provided in yet another embodiment of the present application;
[0059] Figure 5 1 is a flowchart of a method for allocating decision-making authority information provided in yet another embodiment of the present application;
[0060] Figure 6 This is a structural diagram of a decision authority information allocation device provided in yet another embodiment of the present application; Figure 7 This is a structural diagram of a decision authority information allocation device provided in yet another embodiment of the present application;
[0061] Figure 8 This is a structural diagram of an electronic device provided in yet another embodiment of the present application. DETAILED DESCRIPTION
[0062] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is merely to provide a better understanding of the present application by illustrating the examples of the present application.
[0063] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, the elements defined by the phrase "comprising..." do not exclude the presence of other identical elements in the process, method, article, or device comprising the elements.
[0064] In the digital technology era with the rapid development of Internet of Things (IoT), more and more terminals or sensor nodes are connected to the IoT, forming a model where everything can access the network. IoT nodes generate a large amount of business data during continuous operation, and the unified allocation and management of management decision-making information of massive business data has become an industry need.
[0065] In the existing technology, decision information corresponding to the business request is usually obtained through a cloud center server or a cloud edge server, and the decision information managed by the cloud center server or the cloud edge server is directly sent to the corresponding terminal device through a direct connection with the terminal device. Although the cloud edge server disperses the processing pressure of the cloud center server, there is a mismatch between the number of terminal devices managed by the cloud edge server and the processing capacity of the cloud edge server. When the cloud edge server receives a business request sent by a terminal device, it often needs to wait for a period of time before processing the business request, which causes a delay problem in obtaining decision information and affects the user experience.
[0066] In order to solve the problems of the prior art, the embodiments of the present application provide a method, apparatus, device and computer storage medium for allocating decision-making authority information. The following first introduces the method for allocating decision-making authority information provided by the embodiments of the present application.
[0067] Figure 1 A flow chart of a method for allocating decision-making authority information provided in one embodiment of the present application is shown.
[0068] like Figure 1 As shown, the decision authority information allocation method provided in the embodiment of the present application includes S110 to S160.
[0069] S110. When the first cloud edge server receives a service request sent by a terminal device, it obtains the delay compensation coefficient and traversal time of the terminal device. The traversal time is the transmission time required for the terminal device to send the service request to the first cloud edge server to find the decision information corresponding to the service request. The information in the first cloud edge server includes the decision authority information and decision information of the terminal device.
[0070] In some embodiments, the delay compensation coefficient is a compensation coefficient for a time error existing in hardware, and the delay compensation coefficient can be determined through the transmission process of a large amount of historical data.
[0071] In some embodiments, the cloud edge server may include multiple levels. The lowest-level cloud edge server receives a service request sent by a terminal device and searches for the decision information corresponding to the service request. If the decision information does not exist, the service request is forwarded to the upper-level cloud edge server, and the search is continued layer by layer until the decision information corresponding to the service request is found. The first cloud edge server can be a cloud edge server at any level, and the first cloud edge server includes the decision information corresponding to the service request. If the decision information corresponding to the service request does not exist in the highest-level cloud edge server, the highest-level cloud edge server may also send the service request to the cloud center server, obtain the decision information corresponding to the service request through the cloud center server, and return the decision information directly to the terminal device.
[0072] In some embodiments, the information of the first cloud edge server includes decision information corresponding to the business request and decision authority information of the terminal device sending the business request. The first cloud edge server includes decision information of all business requests sent by the terminal device.
[0073] In some embodiments, the traversal time includes the number of traversals, where the number of traversals refers to the number of traversals between the terminal device and the cloud edge server or cloud center server that has the decision-making authority information of the terminal device, and refers to the number of searches through the cloud edge server. For example, the terminal device sends a service request to the lowest-level cloud edge server. The decision information of the service request does not exist in the lowest-level cloud edge server. The lowest-level cloud edge server forwards the service request to the next-level cloud edge server. The decision information of the service request exists in this level of cloud edge server, and also includes the decision-making authority information of the terminal device that sent the service request. At this time, the number of traversals of the terminal device is 2, and this level of cloud edge server serves as the first cloud edge server. The number of levels of the first cloud edge server is 2, and the found decision information is directly returned to the terminal device. The traversal time is the transmission time required from the terminal device sending the service request to the first cloud edge server to find the decision information corresponding to the service request.
[0074] In some embodiments, the information in the first cloud edge server includes the decision-making authority information and decision information of the terminal device, that is, the information in the first cloud edge server includes the decision-making information corresponding to the business request sent by the terminal device, and also includes the decision-making authority information of the terminal device that sends the business request. It should be noted that only the cloud edge server that includes the decision-making authority information of the terminal device can send the decision information corresponding to the business request to the terminal device.
[0075] S120. The first cloud edge server calculates the actual time taken by the terminal device to find the decision information based on the delay compensation coefficient and the traversal time.
[0076] In some embodiments, as the number of traversals increases, the traversal time will increase accordingly. The actual time it takes for the terminal device to find the decision information includes the delay compensation time for the hardware and the traversal time. The delay compensation time can be determined by the delay compensation coefficient and the time it takes to forward the business request to the upper-level cloud edge server. It refers to the compensation for the delay error of the business request actually reaching the first cloud edge server. The first cloud edge server can be a cloud edge server at any level.
[0077] As an example, the actual time it takes for a terminal device to find the decision information is the sum of the traversal time and the delay compensation time, where the traversal time is the sum of the time it takes to reach the upper-level cloud edge server. The calculation formula (1) for calculating the actual time it takes for a terminal device to find the decision information is as follows:
[0078]
[0079] Where N represents the number of times the service request traverses to the first cloud edge server, w i represents the delay compensation coefficient of the i-th level cloud edge server, T i represents the transmission time of the service request to the i-th level cloud edge server, (T i -T i-1 ) represents the time taken for a service request to travel from the i-1th level cloud edge server to the i-th level cloud edge server.
[0080] S130. The first cloud edge server determines the sinking space capacity of the first cloud edge server corresponding to the actual time consumption and the space capacity of the first cloud edge server based on the relationship information between the actual time consumption, the space capacity of the first cloud edge server and the sinking space capacity of the first cloud edge server.
[0081] In some embodiments, as the number of terminal devices managed by the first cloud edge server increases, the processing pressure of the cloud edge server increases, and the transmission path may be blocked. The first cloud edge server can determine whether the transmission path is congested based on the actual time consumption, and thus calculate the sinking space capacity of the first cloud edge server based on the congestion situation. As an example, a time threshold for the transmission path to be congested can be set. When the actual time consumption is greater than the time threshold, the transmission path is determined to be congested. Then, the first cloud edge server determines the sinking space capacity of the first cloud edge server corresponding to the actual time consumption and the space capacity of the first cloud edge server based on the relationship information between the actual time consumption, the space capacity of the first cloud edge server and the sinking space capacity of the first cloud edge server. That is, the first cloud edge server originally has decision-making authority information for L terminal devices. If one of the terminal devices finds that the actual time consumption of the decision information is greater than the time threshold, the terminal device will not belong to the scope managed by the first cloud edge server.
[0082] In some embodiments, the first cloud edge server searches for terminal devices with similar actual time consumption, and determines the number of terminal devices that need to be sunk based on the space capacity of the first cloud edge server, and determines the sinking space capacity of the first cloud edge server corresponding to the actual time consumption and the space capacity of the first cloud edge server. Here, the sinking space capacity of the first cloud edge server corresponding to the actual time consumption and the space capacity of the first cloud edge server represents the number of terminal devices with similar actual time consumption that need to be sunk.
[0083] As an example, the relationship information between the actual time consumption of the first cloud edge server, the space capacity of the first cloud edge server, and the sinking space capacity of the first cloud edge server can be expressed by formula (2), which is calculated as follows:
[0084] K 下 =K 原 -(M-1)*d (2)
[0085] Among them, K 原 is the space capacity of the first cloud edge server, K 下 is the sinking space capacity of the first cloud edge server, M is the number of terminal devices in the first cloud edge server, and d is the parameter value calculated by dividing the actual transmission time of the terminal device by the ideal transmission time of the first cloud edge server. Here, the ideal transmission time is the time set in advance when there is no waiting time.
[0086] S140. The first cloud edge server sends change information of the decision authority information of the terminal device to the cloud center server. The change information includes actual time consumption and sinking space capacity.
[0087] In some embodiments, the first cloud edge server generates change information of the decision authority information based on the actual time consumption and sinking space capacity of the terminal device, and sends the change information of the decision authority information of the terminal device to the cloud center server.
[0088] S150: The cloud center server searches for a target second cloud edge server based on the change information and the space capacity of the second cloud edge server.
[0089] In some embodiments, the target second cloud edge server can be a next-level cloud edge server of the first cloud edge server. When there are too many terminal devices managed by the first cloud edge server, the processing pressure increases, and the transmission path may be blocked. The actual time consumption will increase, and then a delay problem will occur. At this time, the decision-making authority information of some terminal devices needs to be separated. According to the change information and the space capacity of the second cloud edge server, the terminal devices with similar actual time consumption that need to be sunk will be allocated to the next-level cloud edge server. The next-level cloud edge server serves as the target second cloud edge server. At this time, the authority value of the target second cloud edge server is less than the authority value of the first cloud edge server. The authority value represents the range covered by the decision-making authority information.
[0090] In some embodiments, the target second cloud edge server can also determine the sinking space capacity based on the actual time consumption and space capacity of the terminal device, and allocate the terminal devices that need to be sunk with similar actual time consumption to the next level of cloud edge server. In this way, an edge computing framework can be formed, which includes multiple levels of cloud edge servers and a cloud center server.
[0091] In some embodiments, the cloud center server can also search for the target second cloud edge server in the edge computing framework that has been built based on the change information and the space capacity of the second cloud edge server. When the bandwidth occupied by the service request received by the first cloud edge server is too large, the processing pressure increases, and the transmission path may be blocked. The actual time consumption will increase, and then a delay problem will occur. At this time, it is necessary to separate the decision authority information of some terminal devices. According to the change information and the space capacity of the second cloud edge server, the terminal devices that need to be sunk will be allocated to a higher-level cloud edge server for management. This higher-level cloud edge server serves as the target second cloud edge server. At this time, the authority value of the target second cloud edge server is greater than the authority value of the first cloud edge server. It should be noted that the cloud edge server with a larger authority value has a stronger processing capability. In some embodiments, the terminal device can also include decision information corresponding to the service request. At this time, there is no need to send a service request to the cloud edge server or the cloud center server to obtain the decision information.
[0092] In some embodiments, the first cloud edge server can determine the sinking space capacity of the first cloud edge server corresponding to the actual time consumption, the space capacity of the first cloud edge server and the sinking space capacity of the first cloud edge server based on the relationship information between the actual time consumption, the space capacity of the first cloud edge server and the sinking space capacity of the first cloud edge server, dynamically adjust the terminal devices managed by the first cloud edge server, find the best cloud edge server among the cloud edge servers that can meet the actual time consumption requirements of the terminal devices for data transmission, and send the decision-making authority information of the terminal devices to the cloud edge server.
[0093] In some embodiments, the cloud center server can set the data processing queue of the cloud center server according to the size of the difference between the actual time consumed by the terminal device and the target value. The ones with larger differences will be processed first, which can be set according to actual needs.
[0094] S160. The cloud center server sends decision authority information to the target second cloud edge server, so that the target second cloud edge server can establish a communication connection with the terminal device, and sends decision information corresponding to the service request to the terminal device.
[0095] In some embodiments, decision information corresponding to the service request may be sent to the terminal device only when decision authority information exists in the target second cloud edge server.
[0096] In some embodiments, the information of the target second cloud edge server includes decision information of the terminal device.
[0097] In some embodiments, the target second cloud edge server receives the decision authority information and decision information of the terminal device and establishes a communication connection with the terminal device. The information of the target second cloud edge server includes the decision information and decision authority information of the terminal device. There is no need to obtain the decision information from the cloud center server, and the decision information can be sent directly to the terminal device.
[0098] In this way, the actual time consumed by the terminal device to find the decision information and the space capacity of the edge server are used to adjust the decision authority information of the terminal device on each cloud edge server, and the number of terminal devices managed by the cloud edge server is changed, so that the number of terminal devices managed by the cloud edge server is adapted to the processing capacity of the cloud edge server as much as possible, thereby reducing the waiting time for processing business requests, thereby reducing the delay in obtaining decision information and enhancing the user experience.
[0099] Based on this, in some embodiments, before the above S110, the method may further include:
[0100] The first cloud edge server receives the decision authority information and decision information of the terminal device sent by the cloud center server.
[0101] In some embodiments, the cloud center server includes decision authority information and decision information of all terminal devices.
[0102] In some embodiments, the first cloud edge server receives the decision authority information and decision information of the terminal device sent by the cloud center server. When receiving the service request of the terminal device, it can directly send the decision information corresponding to the service request to the terminal device.
[0103] In this way, the business request sent by the terminal in the business does not need to be sent to the cloud center server to obtain the decision information corresponding to the business request, reducing the processing pressure of the cloud center server.
[0104] Based on this, in some embodiments, before the above S130, the method may further include:
[0105] The first cloud edge server obtains actual time consumption samples of multiple terminal devices for finding decision information;
[0106] The first cloud edge server trains a neural network using actual time consumption samples and the spatial capacity of the first cloud edge server, where the neural network includes relationship information between the actual time consumption, the spatial capacity of the first cloud edge server, and the sinking spatial capacity of the first cloud edge server;
[0107] The first cloud edge server obtains a trained neural network when the error between the actual time consumption and the target value is within a preset threshold;
[0108] The above-mentioned S130 specifically includes:
[0109] The first cloud edge server inputs the actual time consumption and the space capacity of the first cloud edge server into the trained neural network, and uses the relationship information between the actual time consumption, the space capacity of the first cloud edge server and the sinking space capacity of the first cloud edge server to determine the sinking space capacity of the first cloud edge server corresponding to the actual time consumption and the space capacity of the first cloud edge server.
[0110] In some embodiments, the target value is an ideal time consumption when there is no waiting time, and a trained neural network is obtained when the error between the actual time consumption and the target value is within a preset threshold.
[0111] In this way, by inputting the actual time consumption and the space capacity of the first cloud edge server into the trained neural network, the relationship information between the actual time consumption, the space capacity of the first cloud edge server and the sinking space capacity of the first cloud edge server can be used to quickly determine the sinking space capacity of the first cloud edge server corresponding to the actual time consumption and the space capacity of the first cloud edge server.
[0112] Based on this, in some embodiments, the method may further include:
[0113] The cloud center server sends the decision information of the terminal device to the target second cloud edge server.
[0114] In some embodiments, when the cloud center server sends the decision authority information of the terminal device to the target second cloud edge server, the cloud center server may also send the decision information of the terminal device to the target second cloud edge server.
[0115] In some embodiments, the cloud center server may send the decision information of the terminal device to the target second cloud edge server after sending the decision authority information of the terminal device to the target second cloud edge server.
[0116] In some embodiments, the target second cloud edge server receives the decision information of the terminal device sent by the cloud center server. Upon receiving the service request of the terminal device, the target second cloud edge server can directly send the decision information corresponding to the service request to the terminal device.
[0117] In this way, the business request sent by the terminal in the business does not need to be sent to the cloud center server to obtain the decision information corresponding to the business request, reducing the processing pressure of the cloud center server.
[0118] Based on this, in some embodiments, the method may further include:
[0119] When the cloud center server receives the decision information allocation request sent by the target second cloud edge server, it sends the decision information of the terminal device to the target second cloud edge server.
[0120] In some embodiments, when the target second cloud edge server receives the decision authority information of the terminal device, it sends a decision information allocation request for the terminal device to the cloud center server. When the cloud center server receives the decision information allocation request sent by the target second cloud edge server, it sends the decision information of the terminal device to the target second cloud edge server.
[0121] In some embodiments, the target second cloud edge server receives the decision information of the terminal device sent by the cloud center server. Upon receiving the service request of the terminal device, the target second cloud edge server can directly send the decision information corresponding to the service request to the terminal device.
[0122] In this way, the business request sent by the terminal in the business does not need to be sent to the cloud center server to obtain the decision information corresponding to the business request, which reduces the processing pressure of the cloud center server and the processing pressure of the first cloud edge server.
[0123] In some embodiments, as Figure 2 As shown, the method may further include S210 to S250.
[0124] S210. When the cloud center server receives a service request sent by a terminal device, it obtains the delay compensation coefficient and traversal time of the terminal device. The traversal time is the transmission time required for sending the service request from the terminal device to the cloud center server to find the decision information corresponding to the service request. The cloud center server includes the decision authority information and decision information of the terminal device.
[0125] In some embodiments, before the edge computing framework is formed, the terminal device can obtain decision information corresponding to the business request through the initial edge computing framework. The initial edge computing framework may include a cloud edge server, or a cloud center server and at least one cloud edge server.
[0126] In some embodiments, before the edge computing framework is formed, the terminal device can directly send a business request to the cloud center server to obtain the decision information corresponding to the business request. At this time, the traversal time is the transmission time required for sending the business request from the terminal device to the cloud center server to find the decision information corresponding to the business request. The cloud center server includes the decision authority information and decision information of the terminal device.
[0127] In some embodiments, before the edge computing framework is formed, the service request sent by the terminal device can also be forwarded to the cloud center server through at least one level of cloud edge server to obtain decision information corresponding to the service request.
[0128] S220. The cloud center server calculates the initial actual time taken by the terminal device to find the decision information based on the delay compensation coefficient and the traversal time.
[0129] In some embodiments, the cloud center server can calculate the initial actual time taken for the terminal device to find the decision information based on formula (1).
[0130] S230. The cloud center server determines the sinking space capacity of the cloud center server corresponding to the initial actual time consumption and the space capacity of the cloud center server based on the relationship information between the initial actual time consumption, the space capacity of the cloud center server and the sinking space capacity of the cloud center server.
[0131] In some embodiments, as the number of terminal devices managed by the cloud center server increases, the processing pressure of the cloud center server increases, and the transmission path may be blocked. The cloud center server can determine whether the transmission path is congested based on the initial actual time consumption, and thus calculate the sinking space capacity of the cloud center server based on the congestion situation. As an example, a time threshold for the transmission path to be congested can be set. When the initial actual time consumption is greater than the time threshold, the transmission path is determined to be congested. Then, the cloud center server determines the sinking space capacity of the cloud center server corresponding to the actual time consumption and the space capacity of the cloud center server based on the relationship information between the initial actual time consumption, the space capacity of the cloud center server and the sinking space capacity of the cloud center server.
[0132] In some embodiments, the cloud center server searches for terminal devices with similar initial actual time consumption, and determines the number of terminal devices that need to be sunk based on the space capacity of the cloud center server, and determines the sinking space capacity of the cloud center server corresponding to the initial actual time consumption and the space capacity of the cloud center server. Here, the sinking space capacity of the cloud center server corresponding to the initial actual time consumption and the space capacity of the cloud center server represents the number of terminal devices with similar actual time consumption that need to be sunk.
[0133] As an example, the relationship between the actual time consumption of the cloud center server, the space capacity of the cloud center server, and the sinking space capacity of the cloud center server can be expressed by formula (3), which is calculated as follows:
[0134] K 下 =K s -(U-1)*b (3)
[0135] Among them, K s is the space capacity of the cloud center server, K 下 is the sinking space capacity of the cloud center server, U is the number of terminal devices in the cloud center server, and b is the parameter value calculated by dividing the actual time consumed by the terminal device by the ideal transmission time consumed by the cloud center server. Here, the ideal transmission time is the time consumed in advance when there is no waiting time.
[0136] In some embodiments, the cloud center server can also train a neural network through the initial actual time consumption sample. The neural network includes the relationship information between the initial actual time consumption, the spatial capacity of the cloud center server and the sinking spatial capacity of the cloud center server. When the error between the initial actual time consumption and the target value is within a preset threshold, a trained neural network is obtained. Through the trained neural network, the relationship information between the initial actual time consumption, the spatial capacity of the cloud center server and the sinking spatial capacity of the cloud center server is used to determine the sinking spatial capacity of the first cloud edge server corresponding to the actual time consumption and the spatial capacity of the cloud center server.
[0137] S240. The cloud center server generates sinking space information based on the initial actual time consumption and the sinking space capacity of the cloud center server. The sinking space information includes the decision authority information of the terminal device.
[0138] In some embodiments, the cloud center server generates sinking space information based on the initial actual time consumption and the sinking space capacity of the cloud center server, and determines the terminal devices that need to be sunk.
[0139] S250. The cloud center server sends the decision authority information of the terminal device to the first cloud edge server, so that the first cloud edge server can establish a communication connection with the terminal device and send decision information corresponding to the service request to the terminal device.
[0140] In this way, by calculating the capacity of the sinking space, the number of terminal devices that need to be sunk is determined, which disperses the processing pressure of the cloud center server.
[0141] Based on this, in some embodiments, the method may further include:
[0142] The cloud center server sends the decision information of the terminal device to the first cloud edge server.
[0143] In some embodiments, the cloud center server includes decision authority information and decision information of all terminal devices.
[0144] In some embodiments, when the cloud center server sends the decision authority information of the terminal device to the first cloud edge server, the cloud center server can also send the decision information of the terminal device to the first cloud edge server.
[0145] In some embodiments, the cloud center server may send the decision information of the terminal device to the first cloud edge server after sending the decision authority information of the terminal device to the first cloud edge server.
[0146] In some embodiments, the first cloud edge server receives the decision information of the terminal device sent by the cloud center server. When receiving the service request of the terminal device, the first cloud edge server can directly send the decision information corresponding to the service request to the terminal device.
[0147] In this way, the business request sent by the terminal in the business does not need to be sent to the cloud center server to obtain the decision information corresponding to the business request, reducing the processing pressure of the cloud center server.
[0148] Based on this, in some embodiments, the method may further include:
[0149] The cloud center server obtains the authority values of the cloud center server, the first cloud edge server, and the second cloud edge server, where the authority values respectively represent the scopes covered by the decision-making authority of the cloud center server, the first cloud edge server, and the second cloud edge server;
[0150] The cloud center server constructs a two-dimensional decision allocation image based on the authority value and the transmission path of the business request.
[0151] In some embodiments, the cloud center server obtains the authority values of the cloud center server, the first cloud edge server, and the second cloud edge server, sorts the authority values, and constructs a two-dimensional decision allocation image. The two-dimensional decision allocation image includes a node corresponding to a cloud center server and a node corresponding to at least one cloud edge server, as well as a transmission path for the business request.
[0152] In some embodiments, the cloud center server can also construct a two-dimensional decision allocation image of the initial edge computing framework based on the transmission path of the business request.
[0153] In this way, the flow of data can be seen through the two-dimensional decision distribution image.
[0154] Based on this, in some embodiments, after constructing the two-dimensional image according to the authority value and the transmission path of the service request, the method may further include:
[0155] The cloud center server uses virtual reality (VR) technology to model the two-dimensional decision allocation image to obtain a three-dimensional decision allocation image.
[0156] In some embodiments, the cloud center server uses virtual reality (VR) technology to model the two-dimensional decision allocation image based on the two-dimensional decision allocation image and the logical framework relationship between the cloud center server and the cloud edge server to obtain a three-dimensional decision allocation image. The logical framework relationship refers to the logical framework formed between the cloud center server and the cloud edge server. The logical framework includes the association relationship between each server. The three-dimensional decision allocation image includes a node corresponding to a cloud center server and a node corresponding to at least one cloud edge server, as well as the transmission path of the business request.
[0157] In some embodiments, the cloud center server can also use virtual reality VR technology to model the two-dimensional decision allocation image of the initial edge computing framework to obtain a three-dimensional decision allocation image of the initial edge computing framework.
[0158] In this way, the intuitive flow of data can be clearly seen through the three-dimensional decision allocation image.
[0159] In the embodiments provided in the present application, an edge computing framework is constructed to separate the direct connection between the cloud center server and the terminal device, and decentralized edge autonomous decision-making information management is realized through the edge computing framework, forming a closed-loop management decision-making distribution system between each cloud edge server, and forming a comprehensive closed-loop management decision-making distribution system between the cloud center server and several cloud edge servers.
[0160] As an example, assisted navigation for autonomous driving requires high real-time navigation data, and the image or video data obtained by sensors such as cameras, laser scanners and radars installed on the car is large. Each car can generate more than 80TB of driving data per day. If the car cannot obtain obstacle avoidance decision information in time when encountering an obstacle, traffic accidents are likely to occur. Therefore, there are certain timeliness requirements for the transmission rate of road video stream information when providing navigation assistance for autonomous driving.
[0161] In the early stage, such as Figure 3 As shown in the figure, the number of terminal devices associated with car users is relatively small, and the road data sent by each car user terminal device is uniformly processed by the cloud center server to make automatic navigation decision allocation; if the number of car user terminal devices is 10, it is managed by the cloud center server and is responsible for the navigation decision allocation. Assuming that the maximum number of user terminal devices that the cloud center server can process is 100, the road data of each car system will be transmitted to the cloud center server for unified navigation decision processing.
[0162] mid-term, such as Figure 4 As shown in the figure, the number of terminal devices associated with automobile users increases, and the pressure on the cloud center server to process data increases. In addition, road data transmission has certain requirements for transmission bandwidth. The increase in user terminal devices will make the limited bandwidth insufficient. Usually, data needs to wait for bandwidth, resulting in latency problems. Therefore, a cloud edge server closer to the delayed user terminal is dynamically set through the edge computing framework to allocate navigation decisions to user terminal devices with the same or similar latency. At this time, the cloud center server synchronously sends decision data to the cloud edge server and synchronously sends the decision authority information of these user terminal devices with the same or similar latency to the cloud edge server. For example, if there are 1000 automobile user terminal devices, the user device terminals waiting for suitable transmission bandwidth are calculated, and the cloud edge server is set according to the actual transmission time. Within the error range, for example, automobile user terminal devices with a transmission time of 10 seconds in the same province are allocated to the same cloud edge server. By allocating decision authority information to the cloud edge server, the cloud edge server makes navigation decisions for its subordinate automobile user terminal devices.
[0163] Later, such as Figure 5 As shown, as the number of user-associated terminal devices continues to increase, when a cloud edge server has a latency problem, the cloud edge server is regarded as a cloud center server for further authority adjustment, and a subordinate cloud edge server of the next level of the original cloud edge server is set, and the user terminal devices with latency problems in the original cloud edge server are dynamically divided to form a three-level or multi-level management decision-making distribution system; if the number of automobile user terminal devices in the same urban area is 5,000, the user terminal devices with latency will be set up on the subordinate cloud edge server, such as allocating automobile terminal devices with a transmission time of 10 seconds in the same urban area to the same subordinate cloud edge server, and making navigation decisions through the subordinate cloud edge server. Further, each partition under the same urban area can be further divided, thereby forming a multi-level management decision-making distribution system.
[0164] Among them, the decision information includes decision data, the business request includes road data, the road data can be road images or video data, and the multi-level management decision distribution system refers to the edge computing framework, which includes multi-level cloud edge servers and a cloud center server.
[0165] After forming a multi-level management decision-making distribution system, the terminal devices managed by the cloud edge server can also be dynamically adjusted according to the size of the bandwidth occupied by the service requests sent by the terminal devices, so that the number of terminal devices managed by the cloud edge server is as compatible as possible with the processing capacity of the cloud edge server, reducing the waiting time for processing service requests, thereby reducing the delay in obtaining decision information and enhancing the user experience. Based on the decision authority information distribution method provided in the above embodiment, the present application also provides a specific implementation method of the decision authority information distribution device. Please refer to the following embodiments.
[0166] See also Figure 6 The decision authority information allocation device 300 provided in this embodiment of the present application includes:
[0167] An acquisition module 310 is configured to, upon receiving a service request sent by a terminal device, acquire a delay compensation coefficient and a traversal time of the terminal device, where the traversal time is the transmission time required from the terminal device sending the service request to the first cloud edge server finding decision information corresponding to the service request, where the information in the first cloud edge server includes decision authority information and decision information of the terminal device;
[0168] A calculation module 320, configured to calculate an actual time taken by the terminal device to find the decision information based on the delay compensation coefficient and the traversal time;
[0169] A determination module 330 is configured to determine, based on the relationship information between the actual time consumption, the space capacity of the first cloud edge server, and the sinking space capacity of the first cloud edge server, the sinking space capacity of the first cloud edge server corresponding to the actual time consumption and the space capacity of the first cloud edge server;
[0170] The sending module 340 is used to send change information of the decision-making authority information of the terminal device to the cloud center server, where the change information includes the actual time consumption and the sinking space capacity, so that the central server can find the target second cloud edge server according to the change information and the space capacity of the second cloud edge server, and send the decision-making authority information to the target second cloud edge server, so that the target second cloud edge server can establish a communication connection with the terminal device and send the decision information corresponding to the business request to the terminal device.
[0171] Based on this, in some embodiments, the apparatus 300 may further include:
[0172] The receiving module is used to receive the decision authority information and decision information of the terminal device sent by the cloud center server before obtaining the delay compensation coefficient and traversal time of the terminal device.
[0173] Based on this, in some embodiments, the apparatus 300 may further include:
[0174] The acquisition module 310 is further configured to obtain samples of actual time taken by multiple terminal devices to find decision information before determining the sinking space capacity of the first cloud edge server corresponding to the actual time taken and the space capacity of the first cloud edge server based on the relationship information between the actual time taken, the space capacity of the first cloud edge server, and the sinking space capacity of the first cloud edge server;
[0175] A training module, configured to train a neural network using actual time consumption samples and the spatial capacity of the first cloud edge server, wherein the neural network includes relationship information between the actual time consumption, the spatial capacity of the first cloud edge server, and the sinking spatial capacity of the first cloud edge server;
[0176] The determination module 330 is further configured to obtain a trained neural network when the error between the actual time consumption and the target value is within a preset threshold;
[0177] The determination module 330 is specifically configured to:
[0178] The actual time consumption and the space capacity of the first cloud edge server are input into the trained neural network, and the relationship information between the actual time consumption, the space capacity of the first cloud edge server and the sinking space capacity of the first cloud edge server is used to determine the sinking space capacity of the first cloud edge server corresponding to the actual time consumption and the space capacity of the first cloud edge server.
[0179] See also Figure 7 The decision authority information allocation device 400 provided in this embodiment of the present application includes:
[0180] A receiving module 410 is configured to receive change information of the decision authority information of the terminal device sent by the first cloud edge server, where the change information includes the actual time taken by the terminal device to find the decision information corresponding to the service request and the sinking space capacity of the first cloud edge server;
[0181] A search module 420 is configured to search for a target second cloud edge server based on the change information and the space capacity of the second cloud edge server;
[0182] The sending module 430 is used to send the decision authority information of the terminal device to the target second cloud edge server, so that the target second cloud edge server can establish a communication connection with the terminal device and send decision information corresponding to the service request to the terminal device.
[0183] Based on this, in some embodiments, the apparatus 400 may further include:
[0184] The sending module 430 is further configured to send the decision information of the terminal device to the target second cloud edge server.
[0185] Based on this, in some embodiments, the apparatus 400 may further include:
[0186] The sending module 430 is further configured to send the decision information of the terminal device to the target second cloud edge server upon receiving the decision information allocation request sent by the target second cloud edge server.
[0187] Based on this, in some embodiments, the apparatus 400 may further include:
[0188] An acquisition module is used to obtain the delay compensation coefficient and traversal time of the terminal device when receiving a service request sent by the terminal device. The traversal time is the transmission time required from the terminal device sending the service request to the cloud center server to find the decision information corresponding to the service request. The cloud center server includes the decision authority information and decision information of the terminal device;
[0189] A calculation module, configured to calculate the initial actual time taken by the terminal device to find the decision information based on the delay compensation coefficient and the traversal time;
[0190] The determination module is further configured to determine the sinking space capacity of the cloud center server corresponding to the initial actual time consumption and the space capacity of the cloud center server based on the relationship information between the initial actual time consumption, the space capacity of the cloud center server and the sinking space capacity of the cloud center server;
[0191] A generation module is used to generate sinking space information based on the initial actual time consumption and the sinking space capacity of the cloud center server, where the sinking space information includes decision authority information of the terminal device;
[0192] The sending module is also used to send the decision authority information of the terminal device to the first cloud edge server, so that the first cloud edge server can establish a communication connection with the terminal device and send the decision information corresponding to the service request to the terminal device.
[0193] Based on this, in some embodiments, the apparatus 400 may further include:
[0194] The sending module 430 is further configured to send the decision information of the terminal device to the first cloud edge server.
[0195] Based on this, in some embodiments, the apparatus 400 may further include:
[0196] The acquisition module is further used to obtain the authority values of the cloud center server, the first cloud edge server, and the second cloud edge server, where the authority values respectively represent the ranges covered by the decision-making authority in the cloud center server, the first cloud edge server, and the second cloud edge server;
[0197] The building module is used to build a two-dimensional decision allocation image according to the authority value and the transmission path of the business request.
[0198] Based on this, in some embodiments, the apparatus may further include:
[0199] The construction module is also used to construct a two-dimensional image according to the permission value and the transmission path of the business request, and then use virtual reality VR technology to model the two-dimensional decision allocation image to obtain a three-dimensional decision allocation image.
[0200] Each module of the decision authority information allocation device provided in the embodiment of the present application can realize Figures 1 to 5 The functions of each step of the decision authority information allocation method are provided and can achieve its corresponding technical effects. For the sake of brevity, they will not be repeated here.
[0201] Based on the same inventive concept, an embodiment of the present application also provides an electronic device.
[0202] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0203] The electronic device may include a processor 801 and a memory 802 storing computer program instructions.
[0204] Specifically, the processor 801 may include a central processing unit (CPU) or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0205] The memory 802 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 802 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 802 may include removable or non-removable (or fixed) media. Where appropriate, the memory 802 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 802 is a non-volatile solid-state memory.
[0206] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0207] The processor 801 reads and executes computer program instructions stored in the memory 802 to implement any one of the decision authority information allocation methods in the above embodiments.
[0208] In one example, the electronic device may further include a communication interface 803 and a bus 810. Figure 8 As shown, the processor 801, the memory 802, and the communication interface 803 are connected via a bus 810 and communicate with each other.
[0209] The communication interface 803 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0210] The bus 810 includes hardware, software, or both, and couples the components of the electronic device to each other. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Linear Predictive Coding (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (Peripheral Component Interconnect-X, PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VESA Local Bus, VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 810 may include one or more buses. Although the embodiments of the present application describe and illustrate a specific bus, the present application contemplates any suitable bus or interconnection. The electronic device can execute the decision authority information allocation method in the embodiments of the present invention, thereby achieving Figures 1 to 5 Describes a method for allocating decision-making authority information.
[0211] In addition, in conjunction with the decision authority information allocation method in the above embodiments, embodiments of the present application may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any of the decision authority information allocation methods in the above embodiments is implemented.
[0212] The present application also provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes each process of implementing any one of the above-mentioned decision authority information allocation method embodiments.
[0213] It should be understood that the present application is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and illustrated as examples. However, the method process of the present application is not limited to the specific steps described and illustrated. Those skilled in the art can make various changes, modifications, and additions, or change the order of the steps after understanding the spirit of the present application.
[0214] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The programs or code segments can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link via a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memories (ROMs), flash memories, erasable read-only memories (EROMs), floppy disks, compact disc read-only memories (CD-ROMs), optical discs, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segments can be downloaded via computer networks such as the Internet and intranets.
[0215] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps. In other words, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0216] Aspects of the present disclosure have been described above with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit. It is also understood that each box in the block diagram and / or flowchart and the combination of the boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0217] The above is only a specific implementation method of the present application. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the scope of protection of the present application is not limited to this. Any technician familiar with this technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the scope of protection of this application.
Claims
1. A decision authority information allocation method, characterized in that: include: Upon receiving a service request sent by a terminal device, obtaining a delay compensation coefficient and traversal time of the terminal device, where the traversal time is the transmission time required from the terminal device sending the service request to the first cloud edge server finding decision information corresponding to the service request, the information in the first cloud edge server including decision authority information and decision information of the terminal device, the delay compensation coefficient is a compensation coefficient for a time error existing in the transmission process of the terminal device, and the number of terminal devices on the first cloud edge server is M; Calculating the actual time taken by the terminal device to find the decision information based on the delay compensation coefficient and the traversal time; Calculating a ratio of the actual transmission time to the ideal transmission time of the first cloud edge server; According to the product of M-1 and the ratio, the difference between the space capacity of the first cloud edge server and the product is used as the sinking space capacity of the first cloud edge server; Send change information of the decision-making authority information of the terminal device to the cloud center server, the change information including the actual time consumption and the sinking space capacity, so that the cloud center server can find the target second cloud edge server according to the change information and the space capacity of the second cloud edge server, and send the decision-making authority information to the target second cloud edge server, so that the target second cloud edge server can establish a communication connection with the terminal device, and send the decision information corresponding to the service request to the terminal device.
2. The decision authority information allocation method according to claim 1, characterized in that: Before obtaining the delay compensation coefficient and traversal time of the terminal device, the method further includes: Receive the decision authority information and decision information of the terminal device sent by the cloud center server.
3. The decision authority information allocation method according to claim 1, characterized in that: Before calculating the ratio of the actual transmission time to the ideal transmission time of the first cloud edge server; and using the difference between the space capacity of the first cloud edge server and the product of M-1 and the ratio as the sinking space capacity of the first cloud edge server, the method further includes: Obtaining actual time samples of multiple terminal devices finding the decision information; Training a neural network using the actual time consumption samples and the space capacity of the first cloud edge server, the neural network including relationship information between the actual time consumption, the space capacity of the first cloud edge server, and the sinking space capacity of the first cloud edge server; When the error between the actual time consumption and the target value is within a preset threshold, a trained neural network is obtained; The calculating a ratio of the actual transmission time to the ideal transmission time of the first cloud edge server; and taking a difference between the space capacity of the first cloud edge server and the product as the sinking space capacity of the first cloud edge server based on the product of M-1 and the ratio, including: The actual time consumption and the space capacity of the first cloud edge server are input into the trained neural network, and the ratio of the actual time consumption to the ideal transmission time consumption of the first cloud edge server is calculated; according to the product of M-1 and the ratio, the difference between the space capacity of the first cloud edge server and the product is used as the sinking space capacity of the first cloud edge server.
4. A decision authority information allocation method, characterized in that: include: Receive change information of the decision authority information of the terminal device sent by the first cloud edge server, the change information including the actual time taken by the terminal device to find the decision information corresponding to the service request and the sinking space capacity of the first cloud edge server, the sinking space capacity being determined by the decision authority information allocation method according to any one of claims 1 to 3; Searching for a target second cloud edge server according to the change information and the space capacity of the second cloud edge server; The decision authority information of the terminal device is sent to the target second cloud edge server, so that the target second cloud edge server establishes a communication connection with the terminal device, and sends the decision information corresponding to the service request to the terminal device.
5. The decision authority information allocation method according to claim 4, characterized in that: Also includes: Send the decision information of the terminal device to the target second cloud edge server.
6. The decision authority information allocation method according to claim 4, characterized in that: Also includes: Upon receiving the decision information allocation request sent by the target second cloud edge server, the decision information of the terminal device is sent to the target second cloud edge server.
7. The decision authority information allocation method according to claim 4, characterized in that: Also includes: Upon receiving a service request sent by the terminal device, obtaining a delay compensation coefficient and traversal time of the terminal device, where the traversal time is the transmission time required for the terminal device to send the service request to the cloud center server to find the decision information corresponding to the service request, the cloud center server includes the decision authority information and decision information of the terminal device, and the delay compensation coefficient is a compensation coefficient for the time error existing in the transmission process of the terminal device. The number of terminal devices in the cloud center server is U; Calculate the initial actual time taken by the terminal device to find the decision information based on the delay compensation coefficient and the traversal time; Calculating the ratio of the initial actual transmission time to the ideal transmission time of the cloud center server; According to the product of U-1 and the ratio, the difference between the space capacity of the cloud center server and the product is used as the sinking space capacity of the cloud center server; Based on the initial actual time consumption and the sinking space capacity of the cloud center server, generating sinking space information, the sinking space information including decision authority information of the terminal device; The decision authority information of the terminal device is sent to the first cloud edge server, so that the first cloud edge server can establish a communication connection with the terminal device and send the decision information corresponding to the service request to the terminal device.
8. The decision authority information allocation method according to claim 7, characterized in that: Also includes: Send the decision information of the terminal device to the first cloud edge server.
9. The decision authority information allocation method according to claim 4, characterized in that: Also includes: Obtaining authority values of the cloud center server, the first cloud edge server, and the second cloud edge server, wherein the authority values respectively represent the size of the range covered by the decision authority information in the cloud center server, the first cloud edge server, and the second cloud edge server; A two-dimensional decision allocation image is constructed according to the authority value and the transmission path of the service request.
10. The decision authority information allocation method according to claim 9, characterized in that: After constructing the two-dimensional image according to the authority value and the transmission path of the service request, the method further includes: The two-dimensional decision allocation image is modeled using virtual reality (VR) technology to obtain a three-dimensional decision allocation image.
11. A decision authority information distribution device, characterized in that: include: an acquisition module, configured to, upon receiving a service request sent by a terminal device, acquire a delay compensation coefficient and a traversal time of the terminal device, wherein the traversal time is the transmission time required from the terminal device sending the service request to the first cloud edge server finding decision information corresponding to the service request, the information in the first cloud edge server including the decision authority information and decision information of the terminal device, the delay compensation coefficient being a compensation coefficient for a time error existing in the transmission process of the terminal device, and the number of terminal devices in the first cloud edge server being M; a calculation module, configured to calculate an actual time taken by the terminal device to find the decision information based on the delay compensation coefficient and the traversal time; a determination module, configured to calculate a ratio of the actual transmission time to the ideal transmission time of the first cloud edge server; According to the product of M-1 and the ratio, the difference between the space capacity of the first cloud edge server and the product is used as the sinking space capacity of the first cloud edge server; A sending module is used to send change information of the decision-making authority information of the terminal device to the cloud center server, where the change information includes the actual time consumption and the sinking space capacity, so that the cloud center server can find the target second cloud edge server according to the change information and the space capacity of the second cloud edge server, and send the decision-making authority information to the target second cloud edge server, so that the target second cloud edge server can establish a communication connection with the terminal device and send the decision information corresponding to the service request to the terminal device.
12. A decision authority information distribution device, characterized in that: include: A receiving module, configured to receive change information of the decision authority information of a terminal device sent by a first cloud edge server, the change information including the actual time taken by the terminal device to find the decision information corresponding to the service request and the sinking space capacity of the first cloud edge server, the sinking space capacity being determined by the decision authority information allocation method according to any one of claims 1 to 3; A search module, configured to search for a target second cloud edge server according to the change information and the space capacity of the second cloud edge server; A sending module is used to send the decision authority information of the terminal device to the target second cloud edge server, so that the target second cloud edge server can establish a communication connection with the terminal device and send the decision information corresponding to the service request to the terminal device.
13. An electronic device, characterized in that: The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the method for allocating decision-making authority information according to any one of claims 1 to 10 is implemented.
14. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the decision authority information allocation method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Account management method and device and instant messaging system
CN112087366A
Switching control method and device of business server, electronic equipment and storage medium
CN112969209A