A collaborative space division method, device, equipment and storage medium

By dynamically adjusting the grouping method of MEC servers, idle processing resources in collaborative groups are divided into groups with the smallest distance, which solves the problem of low utilization of MEC server processing resources and improves resource utilization and user experience.

CN115202871BActive Publication Date: 2024-09-06CHINA TELECOM CORP LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210757091.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2024-09-06
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

In the existing technology, the processing resource utilization of the MEC server is low because different computing tasks require different processing resources. As a result, the MEC server in the collaborative group has idle resources, and other groups cannot use these idle resources.

Method used

By obtaining the resource threshold and total remaining processing resources of the current collaborative group to be adjusted, idle processing resources are calculated and divided into target collaborative groups with the smallest distance, thereby dynamically adjusting the grouping method of the MEC server and improving resource utilization.

Benefits of technology

It effectively improves the processing resource utilization of the MEC server, avoids the situation where idle resources exist in collaborative groups and cannot be used by other groups, and improves computing task processing speed and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115202871B
    Figure CN115202871B
Patent Text Reader

Abstract

The disclosed embodiments provide a collaborative space partitioning method, apparatus, device and storage medium, which obtains the resource threshold corresponding to the current collaborative group to be adjusted; counts the total remaining processing resources of each edge MEC server in the current collaborative group to be adjusted within the target time period; if the total remaining processing resources are greater than the resource threshold, calculates the difference between the total remaining processing resources and the resource threshold, and obtains the corresponding idle processing resources in the current collaborative group to be adjusted; from each collaborative group, determines the target collaborative group with the smallest distance between the cluster center and the central MEC server of the current collaborative group to be adjusted; and divides the edge MEC server to which the idle processing resources belong to into the target collaborative group. Based on this, the grouping mode of each MEC server can be dynamically adjusted based on the remaining processing resources of each collaborative group and the resource threshold required for processing computing tasks, which can improve the utilization rate of the processing resources of the MEC server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technology, and in particular to a collaborative space division method, device, equipment and storage medium. Background Art

[0002] VR (Virtual Reality) video is an important video format in the current immersive mode playback experience. Users can watch VR videos through user devices. VR videos have high requirements for transmission rate, transmission delay and reliability. MEC (Mobile Edge Computing) servers are located at the edge of user devices. In order to improve the user's viewing experience of VR videos, the MEC server can process the computing tasks unloaded from the user device. The computing tasks are used to obtain VR videos, and the MEC server sends the obtained VR videos to the user device. However, the processing resources (for example, computing resources and cache resources) of a single MEC server are limited. Therefore, multiple MEC servers can collaboratively process the computing tasks unloaded from the user device.

[0003] In the related art, multiple MEC servers are clustered to obtain multiple collaborative groups. The cluster center of a collaborative group can be called a central MEC server, and other MEC servers except the cluster center can be called edge MEC servers. When a VR device obtains a VR video, the computing task for obtaining the VR video is offloaded to the central MEC server with the shortest distance, and each edge MEC server in the collaborative group to which the central MEC server belongs collaboratively processes the computing task to obtain the VR video.

[0004] However, different computing tasks require different processing resources. If the processing resources required by a computing task are less than the processing resources provided by each MEC server in the collaborative group, each MEC server in the collaborative group has idle processing resources, and other collaborative groups cannot use the idle processing resources of the MEC server in the collaborative group when processing computing tasks. It can be seen that in the related art, the utilization rate of the processing resources of the MEC server is low. Summary of the invention

[0005] The purpose of the embodiments of the present disclosure is to provide a collaborative space partitioning method, apparatus, device and storage medium to improve the utilization of processing resources of MEC servers. The specific technical solution is as follows:

[0006] In a first aspect, in order to achieve the above-mentioned object, an embodiment of the present disclosure provides a collaborative space partitioning method, the method comprising:

[0007] Obtaining a resource threshold corresponding to the current collaborative group to be adjusted; wherein the resource threshold represents: the processing resources required for the current collaborative group to be adjusted to process computing tasks within the target time period; the current collaborative group to be adjusted includes a central MEC server and an edge MEC server, and the central MEC server in the current collaborative group to be adjusted is the clustering center of the current collaborative group to be adjusted;

[0008] Counting the total remaining processing resources of each edge MEC server in the current coordination group to be adjusted within the target time period;

[0009] If the total remaining processing resources are greater than the resource threshold, a difference between the total remaining processing resources and the resource threshold is calculated to obtain idle processing resources corresponding to the current coordinated group to be adjusted;

[0010] From each collaborative group, determine the collaborative group with the smallest distance between the cluster center and the central MEC server of the current collaborative group to be adjusted as the target collaborative group;

[0011] The edge MEC servers to which the idle processing resources belong are divided into the target collaborative groups.

[0012] In some embodiments, dividing the edge MEC server to which the idle processing resources belong into the target collaborative group includes:

[0013] The edge MEC server to which the idle processing resources belong is divided into the target collaborative group to obtain the current collaborative group to be adjusted, and the step of obtaining the resource threshold corresponding to the current collaborative group to be adjusted is returned to execute until the dynamic adjustment of each collaborative group is completed.

[0014] In some embodiments, the counting of the total remaining processing resources of each edge MEC server in the current coordinated group to be adjusted within the target time period includes:

[0015] Calculate the sum of the remaining computing resources of each edge MEC server in the current collaborative group to be adjusted within the target time period as a first sum;

[0016] Calculate the sum of the remaining cache resources of each edge MEC server in the current coordinated group to be adjusted within the target time period as the second sum;

[0017] A weighted sum of the first sum value and the second sum value is calculated to obtain the total remaining processing resources of each edge MEC server in the current collaborative group to be adjusted within the target time period.

[0018] In some embodiments, before obtaining the resource threshold corresponding to the current coordination group to be adjusted, the method further includes:

[0019] Obtain the coordinates of the preset cluster centers in each MEC server;

[0020] Calculate the distance between the first MEC server and the current cluster center as the first distance; wherein the first MEC server is another MEC server among the MEC servers except the current cluster center;

[0021] From each first MEC server, select the MEC server with the largest first distance as the cluster center;

[0022] For each first MEC server, calculate the distance between the first MEC server and each current cluster center as the second distance;

[0023] Determine a minimum second distance from the second distances corresponding to the first MEC server as a third distance corresponding to the first MEC server;

[0024] Determining a cluster center from each of the first MEC servers based on the third distance corresponding to each of the first MEC servers;

[0025] For each first MEC server, the first MEC server is divided into a collaborative group to which the cluster center with the smallest distance belongs.

[0026] In some embodiments, determining the cluster center from each first MEC server based on the third distance corresponding to each first MEC server includes:

[0027] Selecting a first MEC server with the largest corresponding third distance and satisfying a preset condition from each first MEC server as the second MEC server; wherein: the preset condition is: the third distance is greater than a specified distance; the specified distance is determined based on the determined distance between the first cluster center and the second cluster center;

[0028] If the second MEC server is not the determined cluster center, the second MEC server is determined as the cluster center, and the step of returning to execute for each first MEC server, calculating the distance between the first MEC server and each current cluster center as the second distance, until the determined second MEC server is the determined cluster center.

[0029] In some embodiments, after dividing the edge MEC servers to which the idle processing resources belong into the target collaborative group, the method further includes:

[0030] A configuration file containing grouping information of each MEC server is sent to the base station, so that the base station determines a collaborative group for processing the received computing task when receiving the computing task sent by the user equipment.

[0031] In some embodiments, after dividing the edge MEC servers to which the idle processing resources belong into the target collaborative group, the method further includes:

[0032] receiving a computing task sent by the base station, and dividing the computing task into a plurality of subtasks;

[0033] For each edge MEC server in the current coordination group to be adjusted, a corresponding subtask is sent to the edge MEC server, so that the edge MEC server processes the received subtask and obtains a corresponding processing result;

[0034] Obtaining the processing result of the computing task based on the processing results of the subtasks sent by each edge MEC server;

[0035] The processing result of the computing task is sent to the base station, so that the base station sends the processing result of the computing task to the user equipment.

[0036] In a second aspect, in order to achieve the above-mentioned object, an embodiment of the present disclosure provides a collaborative space division device, the device comprising:

[0037] A resource threshold acquisition module is used to acquire the resource threshold corresponding to the current collaborative group to be adjusted; wherein the resource threshold represents: the processing resources required for the current collaborative group to be adjusted to process the computing tasks within the target time period; the current collaborative group to be adjusted includes a central MEC server and an edge MEC server, and the central MEC server in the current collaborative group to be adjusted is the clustering center of the current collaborative group to be adjusted;

[0038] A remaining processing resource statistics module, used to count the total remaining processing resources of each edge MEC server in the current coordination group to be adjusted within the target time period;

[0039] an idle processing resource determination module, configured to calculate the difference between the total remaining processing resources and the resource threshold if the total remaining processing resources are greater than the resource threshold, and obtain the idle processing resources corresponding to the current coordination group to be adjusted;

[0040] A collaborative group determination module is used to determine, from among the collaborative groups, a collaborative group with the smallest distance between the cluster center and the central MEC server of the current collaborative group to be adjusted as a target collaborative group;

[0041] The idle processing resource allocation module is used to divide the edge MEC servers to which the idle processing resources belong into the target collaborative group.

[0042] In some embodiments, the idle processing resource allocation module is specifically used to divide the edge MEC server to which the idle processing resources belong into the target collaborative group, obtain the current collaborative group to be adjusted, and trigger the resource threshold acquisition module to execute the step of obtaining the resource threshold corresponding to the current collaborative group to be adjusted until the dynamic adjustment of each collaborative group is completed.

[0043] In some embodiments, the remaining processing resource statistics module is specifically used to calculate the sum of the remaining computing resources of each edge MEC server in the current collaborative group to be adjusted within the target time period as the first sum;

[0044] Calculate the sum of the remaining cache resources of each edge MEC server in the current coordinated group to be adjusted within the target time period as the second sum;

[0045] A weighted sum of the first sum value and the second sum value is calculated to obtain the total remaining processing resources of each edge MEC server in the current collaborative group to be adjusted within the target time period.

[0046] In some embodiments, the apparatus further comprises:

[0047] A first cluster center acquisition module, configured to acquire the coordinates of a preset cluster center in each MEC server before the resource threshold acquisition module acquires the resource threshold corresponding to the current coordinated group to be adjusted;

[0048] A first distance determination module, used to calculate the distance between the first MEC server and the current cluster center as the first distance; wherein the first MEC server is another MEC server among the MEC servers except the current cluster center;

[0049] A second cluster center acquisition module is used to select a MEC server with the largest first distance from each first MEC server as a cluster center;

[0050] A second distance determination module is used to calculate, for each first MEC server, a distance between the first MEC server and each current cluster center as a second distance;

[0051] A third distance determination module, configured to determine a minimum second distance from the second distances corresponding to the first MEC server as a third distance corresponding to the first MEC server;

[0052] A third cluster center acquisition module, configured to determine a cluster center from each first MEC server based on a third distance corresponding to each first MEC server;

[0053] The MEC server grouping module is used to divide each first MEC server into a collaborative group to which a cluster center with a minimum distance belongs.

[0054] In some embodiments, the third cluster center acquisition module is specifically used to select a first MEC server with the largest corresponding third distance and meeting a preset condition from each first MEC server as the second MEC server; wherein: the preset condition is: the third distance is greater than a specified distance; the specified distance is determined based on the determined distance between the first cluster center and the second cluster center;

[0055] If the second MEC server is not the determined cluster center, the second MEC server is determined as the cluster center, and the second distance determination module is triggered to execute, for each first MEC server, the distance between the first MEC server and each current cluster center is calculated as the second distance step, until the determined second MEC server is the determined cluster center.

[0056] In some embodiments, the apparatus further comprises:

[0057] A configuration file sending module is used to send a configuration file containing grouping information of each MEC server to the base station after the idle processing resource allocation module executes the division of the edge MEC servers to which the idle processing resources belong into the target collaborative group, so that when the base station receives the computing task sent by the user equipment, it determines the collaborative group for processing the received computing task.

[0058] In some embodiments, the apparatus further comprises:

[0059] A computing task division module, configured to receive the computing task sent by the base station and divide the computing task into a plurality of subtasks after the idle processing resource allocation module divides the edge MEC server to which the idle processing resource belongs into the target collaborative group;

[0060] The subtask sending module is used to send the corresponding subtask to each edge MEC server in the current coordinated group to be adjusted, so that the edge MEC server processes the received subtask and obtains the corresponding processing result;

[0061] A processing result acquisition module, used to obtain the processing result of the computing task based on the processing results of the subtasks sent by each edge MEC server;

[0062] The processing result sending module is used to send the processing result of the computing task to the base station, so that the base station sends the processing result of the computing task to the user equipment.

[0063] The embodiment of the present disclosure also provides an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0064] Memory, used to store computer programs;

[0065] The processor is used to implement any of the above-mentioned steps of the collaborative space division method when executing the program stored in the memory.

[0066] The embodiment of the present disclosure further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the steps of the collaborative space division method described above is implemented.

[0067] The embodiment of the present disclosure also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute any of the collaborative space division methods described above.

[0068] A collaborative space partitioning method provided by an embodiment of the present disclosure obtains a resource threshold corresponding to a current collaborative group to be adjusted; the resource threshold represents: the processing resources required for the current collaborative group to be adjusted to process computing tasks within a target time period; the current collaborative group to be adjusted includes a central MEC server and an edge MEC server, and the central MEC server in the current collaborative group to be adjusted is the clustering center of the current collaborative group to be adjusted; the total remaining processing resources of each edge MEC server in the current collaborative group to be adjusted within the target time period are counted; if the total remaining processing resources are greater than the resource threshold, the difference between the total remaining processing resources and the resource threshold is calculated to obtain the corresponding idle processing resources in the current collaborative group to be adjusted; from each collaborative group, the collaborative group with the smallest distance between the clustering center and the central MEC server of the current collaborative group to be adjusted is determined as the target collaborative group; the edge MEC server to which the idle processing resources belong is divided into the target collaborative group.

[0069] Based on the above processing, the idle processing resources of the collaborative group can be determined based on the processing resources (i.e., resource threshold) required for the collaborative group to process computing tasks and the remaining processing resources of the collaborative group, and the idle processing resources can be allocated to other collaborative groups. When other collaborative groups process computing tasks, they can use the allocated idle processing resources. That is, based on the remaining processing resources of each collaborative group and the resource threshold required for processing computing tasks, the grouping method of each MEC server can be dynamically adjusted to avoid the situation where one collaborative group has idle processing resources while other collaborative groups cannot use the idle processing resources corresponding to the collaborative group, which can improve the utilization rate of the processing resources of the MEC server.

[0070] Of course, it is not necessary to achieve all the advantages described above at the same time to implement any product or method of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0072] Figure 1 A flowchart of a collaborative space partitioning method provided in an embodiment of the present disclosure;

[0073] Figure 2 A flowchart of another collaborative space partitioning method provided by an embodiment of the present disclosure;

[0074] Figure 3 A flowchart of another collaborative space partitioning method provided by an embodiment of the present disclosure;

[0075] Figure 4 A flowchart of another collaborative space partitioning method provided by an embodiment of the present disclosure;

[0076] Figure 5 A schematic diagram of the structure of a multi-level task offloading architecture provided by an embodiment of the present disclosure;

[0077] Figure 6 A structural diagram of a collaborative space division device provided in an embodiment of the present disclosure;

[0078] Figure 7 A structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0079] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field based on the present disclosure belong to the scope of protection of the present disclosure.

[0080] Different computing tasks require different processing resources. If the processing resources required for a computing task are less than the processing resources provided by each MEC server in the collaborative group, the collaborative group has idle processing resources. For example, if the processing resources required to process a computing task are 3 MEC servers, and the collaborative group contains 4 MEC servers, then the remaining 1 MEC server is an idle processing resource, and other collaborative groups cannot use the idle processing resources of the collaborative group when processing computing tasks. It can be seen that in the related art, the utilization rate of the processing resources of the MEC server is low.

[0081] To solve the above problem, see Figure 1 , Figure 1 A flowchart of a collaborative space partitioning method provided in an embodiment of the present disclosure, the method is applied to a central MEC server, and the method may include the following steps:

[0082] S101: Obtain a resource threshold corresponding to a current coordination group to be adjusted.

[0083] The resource threshold represents: the processing resources required for the current collaborative group to be adjusted to process computing tasks within the target time period. The current collaborative group to be adjusted includes a central MEC server and an edge MEC server, and the central MEC server in the current collaborative group to be adjusted is the clustering center of the current collaborative group to be adjusted.

[0084] S102: Count the total remaining processing resources of each edge MEC server in the current coordination group to be adjusted within the target time period.

[0085] S103: If the total remaining processing resources are greater than the resource threshold, the difference between the total remaining processing resources and the resource threshold is calculated to obtain the idle processing resources corresponding to the current coordination group to be adjusted.

[0086] S104: From each collaborative group, determine the collaborative group with the smallest distance between the cluster center and the central MEC server of the current collaborative group to be adjusted as the target collaborative group.

[0087] S105: Divide the edge MEC servers to which the idle processing resources belong into target collaborative groups.

[0088] Based on the collaborative space partitioning method provided by the embodiment of the present disclosure, the idle processing resources of the collaborative group can be determined based on the processing resources (i.e., resource threshold) required for the collaborative group to process computing tasks and the remaining processing resources of the collaborative group, and the idle processing resources can be allocated to other collaborative groups. When other collaborative groups process computing tasks, they can use the allocated idle processing resources. That is, based on the remaining processing resources of each collaborative group and the resource threshold required for processing computing tasks, the grouping method of each MEC server can be dynamically adjusted to avoid the situation where one collaborative group has idle processing resources while other collaborative groups cannot use the idle processing resources corresponding to the collaborative group, which can improve the utilization rate of the processing resources of the MEC server.

[0089] The collaborative space division method provided by the embodiments of the present disclosure can be applied to electronic devices. The electronic device can be a base station that is communicatively connected to each MEC server, or the electronic device can be a designated MEC server among the MEC servers. The designated MEC server is: the cluster center (i.e., the central MEC server) determined when grouping the MEC servers, such as the preset first central MEC server.

[0090] For step S101, the current collaborative group to be adjusted is any collaborative group, each collaborative group includes a central MEC server and multiple edge MEC servers, the central MEC server in the collaborative group is the clustering center of the collaborative group determined when the MEC servers are grouped, the edge MEC servers in the collaborative group are other MEC servers except the central MEC server in the collaborative group, and the edge MEC servers in the collaborative group are used to collaboratively process the computing tasks corresponding to the collaborative group.

[0091] The resource threshold can be determined based on actual needs. For example, the processing resource usage of MEC servers in different geographical environments (e.g., commercial areas, residential areas, educational areas, etc.) shows obvious time dependence, so the processing resources required by MEC servers to process computing tasks in different time periods are also quite different. The resource threshold can be determined based on the geographical environment and target time period of each MEC server in the current collaborative group to be adjusted. The geographical environment of each MEC server can be a residential area, an office area, a commercial area, etc. The target time period can be any time period.

[0092] For example, if the geographical environment of each MEC server in the current collaborative group to be adjusted is a residential area, and the target time period is 19:00-20:00 on weekdays, the resource threshold can be set to a larger value. If the geographical environment of each MEC server in the current collaborative group to be adjusted is a commercial area, and the target time period is 14:00-20:00 on weekends, the resource threshold can be set to a larger value.

[0093] The resource threshold represents: the processing resources required by the current collaborative group to be adjusted to process the computing task within the target time period.

[0094] For step S102, in one implementation, the total remaining processing resources of each edge MEC server in the current collaborative group to be adjusted within the target time period may be: the number of unused edge MEC servers in the current collaborative group to be adjusted within the target time period. For example, the current collaborative group to be adjusted includes 3 edge MEC servers, and there are 3 unused edge MEC servers in the current collaborative group to be adjusted within the target time period, then the total remaining processing resources in the current collaborative group to be adjusted within the target time period are: 3 edge MEC servers.

[0095] In another implementation, Figure 1 Based on Figure 2 , step S102 may include the following steps:

[0096] S1021: Calculate the sum of the remaining computing resources of each edge MEC server in the current collaborative group to be adjusted within the target time period as a first sum.

[0097] S1022: Calculate the sum of the remaining cache resources of each edge MEC server in the current coordinated group to be adjusted within the target time period as the second sum.

[0098] S1023: Calculate the weighted sum of the first sum value and the second sum value to obtain the total remaining processing resources of each edge MEC server in the current coordination group to be adjusted within the target time period.

[0099] The remaining computing resources of an edge MEC server in the target time period may be: the computing resources not used by the edge MEC server in the target time period, for example, the number of CPUs (Central Processing Units) not used by the edge server in the target time period.

[0100] If the target time period is the time period to which the current time belongs, for each edge MEC server, the electronic device can directly use the remaining computing resources of the edge MEC server at the current time as the remaining computing resources of the edge MEC server in the target time period. For example, if the current time is 9:00, the target time period is from 9:00 to 10:00, and the remaining computing resources of the edge MEC server at the current time are 1 CPU, then it can be determined that the remaining computing resources of the edge MEC server in the target time period are 1 CPU.

[0101] If the target time period is a time period after the current moment, for each edge MEC server, the electronic device may determine the remaining computing resources of the edge MEC server in the target time period based on the remaining computing resources of the edge MEC server in each historical time period corresponding to the target time period. For example, the electronic device calculates the average of the remaining computing resources of the edge MEC server in each historical time period corresponding to the target time period as the remaining computing resources of the edge MEC server in the target time period.

[0102] The historical time period corresponding to the target time period is: the historical time period of the same type as the target time period. For example, if the target time period is 9:00 to 10:00 on weekdays, the historical time period corresponding to the target time period is 9:00 to 10:00 on weekdays before the target time period.

[0103] The remaining cache resources of an edge MEC server in the target time period may be: the cache resources not used by the edge MEC server in the target time period, for example, the size of the memory not used by the edge MEC server in the target time period.

[0104] The way in which the electronic device determines the remaining cache resources of the edge MEC server within the target time period is similar to the way in which the remaining computing resources of the edge MEC server are determined, and reference may be made to the relevant introduction of the aforementioned embodiment.

[0105] The electronic device calculates the sum of the remaining computing resources of each edge MEC server in the current collaborative group to be adjusted within the target time period (i.e., the first sum), and calculates the sum of the remaining cache resources of each edge MEC server in the current collaborative group to be adjusted within the target time period (i.e., the second sum). Furthermore, the electronic device calculates the weighted sum of the first sum and the second sum to obtain the total remaining processing resources of each edge MEC server in the current collaborative group to be adjusted within the target time period.

[0106] The weight of the first sum value and the weight of the second sum value can be set according to actual needs. For example, when more cache resources are needed, the weight of the second sum value can be set to be larger and the weight of the first sum value can be set to be smaller. When more computing resources are needed, the weight of the first sum value can be set to be larger and the weight of the second sum value can be set to be smaller.

[0107] For step S103, if the total remaining processing resources of the current collaborative group to be adjusted are greater than the resource threshold, it indicates that there are idle processing resources when each edge MEC server in the current collaborative group to be adjusted processes computing tasks within the target time period. The electronic device calculates the difference between the total remaining processing resources and the resource threshold to obtain the idle processing resources corresponding to the current collaborative group to be adjusted.

[0108] If the total remaining processing resources of the current collaborative group to be adjusted are not greater than the resource threshold, indicating that there are no idle processing resources when the edge MEC servers in the current collaborative group to be adjusted process computing tasks within the target time period, the electronic device can select a collaborative group that has not been dynamically adjusted from the collaborative groups as the current collaborative group to be adjusted, and obtain the resource threshold and the total remaining processing resources corresponding to the current collaborative group to be adjusted, and dynamically adjust the current collaborative group to be adjusted based on the resource threshold and the total remaining processing resources corresponding to the current collaborative group to be adjusted until the dynamic adjustment of each collaborative group is completed.

[0109] For step S104 and step S105, for each collaborative group, the electronic device calculates the distance between the cluster center of the collaborative group and the central MEC server of the current collaborative group to be adjusted. The cluster center of a collaborative group is the central MEC server of the collaborative group. The electronic device determines the collaborative group with the smallest distance between the cluster center and the central MEC server of the current collaborative group to be adjusted as the target collaborative group, and divides the edge MEC server to which the idle processing resources belong to into the target collaborative group.

[0110] Exemplarily, the total remaining processing resources of the current collaborative group to be adjusted are: 3 edge MEC servers, the resource threshold corresponding to the current collaborative group to be adjusted is: 1 edge MEC server, and the idle processing resources of the current collaborative group to be adjusted are 2 edge MEC servers, then the 2 edge MEC servers can be allocated to the target collaborative group.

[0111] Alternatively, the number of edge MEC servers in the current collaborative group to be adjusted is 4, and the electronic device calculates the weighted sum of the first sum and the second sum, and obtains that the total remaining processing resources of the current collaborative group to be adjusted is: 40. The resource threshold corresponding to the current collaborative group to be adjusted is: 20, and the idle processing resources of the current collaborative group to be adjusted are: 10.

[0112] The electronic device calculates that the ratio of idle processing resources to the total remaining processing resources of the current collaborative group to be adjusted is 25%. The electronic device calculates that the product of the ratio (i.e., 25%) and the number of edge MEC servers in the current collaborative group to be adjusted (i.e., 4) is 1. The electronic device determines that the corresponding idle processing resources in the current collaborative group to be adjusted are 1 edge MEC server, and selects 1 edge MEC server to be allocated to the target collaborative group.

[0113] In some embodiments, step S105 may include the following steps: dividing the edge MEC servers to which the idle processing resources belong into target collaborative groups, obtaining the current collaborative groups to be adjusted, and returning to execute the step of obtaining the resource threshold corresponding to the current collaborative groups to be adjusted until the dynamic adjustment of each collaborative group is completed.

[0114] After the electronic device divides the edge MEC server to which the idle processing resources belong into the target collaborative group, it can use the divided target group as the current collaborative group to be adjusted, and obtain the resource threshold and the total remaining processing resources corresponding to the current collaborative group to be adjusted. Based on the resource threshold and the total remaining processing resources corresponding to the current collaborative group to be adjusted, the current collaborative group to be adjusted is dynamically adjusted until the dynamic adjustment of each collaborative group is completed.

[0115] For example, see Table 1, which shows the algorithm execution process for dynamic adjustment of each cooperative group.

[0116] Table 1

[0117]

[0118]

[0119] Input represents the input information of the algorithm for dynamic adjustment of each collaborative group. The collaborative space is the collaborative group in the embodiment of the present disclosure, and the collaborative space A of the optimally divided MEC server i The ith collaborative group represents the ith collaborative group, which is the current collaborative group to be adjusted in the embodiment of the present disclosure, and the resource threshold of the ith collaborative space is the resource threshold corresponding to the current collaborative group to be adjusted. Output represents the output information of the algorithm for dynamic adjustment of each collaborative group, and the latest collaborative space of the MEC server is the latest MEC server group information after dynamic adjustment.

[0120] For the mth edge MEC server in the current coordinated group to be adjusted, the electronic device obtains the remaining cache resources of the mth edge MEC server recorded in the processing resource record table. With the remaining computing resources

[0121] The electronic device calculates the total remaining cache resources and the total remaining computing resources in the MEC server collaborative space based on the following formula:

[0122]

[0123]

[0124] The MEC server collaboration space is the current collaboration group to be adjusted in the embodiment of the present disclosure, S 1 represents the total remaining cache resources of the current coordinated group to be adjusted, S 2 Indicates the total remaining computing resources of the current collaborative group to be adjusted, represents the remaining cache resources of the mth edge MEC server in the current coordinated group to be adjusted, represents the remaining computing resources of the mth edge MEC server in the current collaborative group to be adjusted, M represents the number of edge MEC servers in the current collaborative group to be adjusted, the total remaining computing resources are the first sum value in the embodiment of the present disclosure, and the total remaining cache resources are the second sum value in the embodiment of the present disclosure.

[0125] The electronic device calculates the weighted total remaining processing resources based on the following formula:

[0126] S 3 =αS 1 +(1-α)S 2 (3)

[0127] The weighted total remaining processing resources are the total remaining processing resources of the current coordinated group to be adjusted in the embodiment of the present disclosure, S 3 represents the total remaining processing resources of the current collaborative group to be adjusted, α represents the weight of the total remaining cache resources of the current collaborative group to be adjusted, and (1-α) represents the weight of the total remaining computing resources of the current collaborative group to be adjusted.

[0128] The electronic device determines whether the total remaining processing resources of the current collaborative group to be adjusted are greater than the resource threshold. If the total remaining processing resources of the current collaborative group to be adjusted are greater than the resource threshold, the collaborative space A is calculated based on the following formula: i Idle processing resources:

[0129] S 4 =S 3 -R (4)

[0130] Collaborative Space A i The idle processing resources of the current coordinated group to be adjusted are S 4 Indicates the idle processing resources of the current coordinated group to be adjusted, S 3 represents the total remaining processing resources of the current coordination group to be adjusted, and R represents the resource threshold corresponding to the current coordination group to be adjusted.

[0131] According to the principle of closest distance, the electronic device allocates idle processing resources to the collaborative space of the nearest MEC server to obtain a new collaborative space. That is, the electronic device determines the collaborative group with the smallest distance between the cluster center and the central MEC server of the current collaborative group to be adjusted from each collaborative group, as the target collaborative group, and divides the edge MEC servers to which the idle processing resources belong to the target collaborative group.

[0132] Repeat steps 3 to 6 to complete the dynamic regulation of all collaborative spaces, that is, the electronic device divides the edge MEC servers to which the idle processing resources belong into the target collaborative groups, obtains the current collaborative groups to be adjusted, and obtains the resource thresholds corresponding to the current collaborative groups to be adjusted, until the dynamic adjustment of each collaborative group is completed.

[0133] Update the clustering range of the MEC server, that is, the electronic device obtains the latest grouping information of the MEC server based on the dynamic adjustment results.

[0134] Based on the above processing, the collaborative groups of MEC servers can be reasonably adjusted based on the processing resource usage of the collaborative groups of MEC servers in different areas and different time periods. That is, the processing resources of each collaborative group can be reasonably adjusted to achieve dynamic adjustment of the collaborative groups of MEC servers to improve the resource utilization of MEC servers. Furthermore, the processing speed of the collaborative groups for computing tasks can be improved, the response delay for users to obtain data from the MEC server can be reduced, and the user experience can be improved.

[0135] In some embodiments, before dynamically adjusting each collaborative grouping, the electronic device may also group each MEC server to obtain multiple collaborative groups.

[0136] In one implementation, the electronic device selects a preset number of MEC servers from each MEC server as the current cluster center, calculates the distance between each MEC server and the current cluster center, and divides the MEC server into the collaborative group to which the closest cluster center belongs. Then, the electronic device re-determines the current cluster center, calculates the distance between each MEC server and the current cluster center, and divides the MEC server into the collaborative group to which the closest cluster center belongs, and so on, until the cluster center determined again is the determined cluster center.

[0137] However, in the above method, the cluster center determined for the first time is a preset initial value, and there is no reliable theoretical basis for setting the initial value. Especially for actual application scenarios, the distance between each edge MEC server and the cluster center (i.e., the central MEC server in the embodiment of the present disclosure) in the divided collaborative group is not the shortest distance, which leads to a higher communication delay between the MEC servers in the same collaborative group.

[0138] In another implementation, in order to reduce the delay in communication between MEC servers in the collaborative group, Figure 1 Based on Figure 3 Before step S101, the method may further include the following steps:

[0139] S106: Obtain the coordinates of the preset cluster center in each MEC server.

[0140] Among them, the preset cluster center is the MEC server specified in each MEC server.

[0141] S107: Calculate the distance between the first MEC server and the current cluster center as the first distance.

[0142] The first MEC server is the other MEC servers among the MEC servers except the current cluster center.

[0143] S108: Selecting, from each first MEC server, a MEC server with the largest first distance as a cluster center.

[0144] S109: For each first MEC server, calculate the distance between the first MEC server and each current cluster center as the second distance.

[0145] S110: Determine a minimum second distance from the second distances corresponding to the first MEC server as a third distance corresponding to the first MEC server.

[0146] S111: Determine a cluster center from each first MEC server based on the third distance corresponding to each first MEC server.

[0147] S112: For each first MEC server, divide the first MEC server into a collaborative group to which the cluster center with the smallest distance belongs.

[0148] The electronic device obtains the coordinates of the preset cluster center in each MEC server, and the preset cluster center is the first cluster center determined (i.e., the first central MEC server), and the preset cluster center can be set by the technician according to the requirements. The electronic device determines that the other MEC servers except the current cluster center of each MEC server are the first MEC servers, and obtains the coordinates of each first MEC server.

[0149] Then, the electronic device calculates the distance (i.e., the first distance) between each first MEC server and the current cluster center, which is also the preset cluster center. The electronic device selects the MEC server with the largest corresponding first distance from each first MEC server as the new cluster center.

[0150] For each first MEC server, the distance (i.e., the second distance) between the first MEC server and each current cluster center is calculated, and each current cluster center is a preset cluster center and a cluster center determined based on the first distance. The electronic device determines the smallest second distance from each second distance corresponding to the first MEC server, and obtains the third distance corresponding to the first MEC server.

[0151] In some embodiments, Figure 3 Based on Figure 4 , step S111 may include the following steps:

[0152] S1111: Select a first MEC server whose corresponding third distance is the largest and meets a preset condition from among the first MEC servers as the second MEC server.

[0153] Wherein: the preset condition is: the third distance is greater than the specified distance; the specified distance is determined based on the distance between the determined first cluster center and the second cluster center.

[0154] S1112: If the second MEC server is not the determined cluster center, determine the second MEC server as the cluster center, and return to execute the step of calculating the distance between each first MEC server and the current cluster centers as the second distance for each first MEC server, until the determined second MEC server is the determined cluster center.

[0155] The first cluster center determined is the preset cluster center, and the second cluster center determined is the cluster center determined based on the first distance.

[0156] The electronic device selects the first MEC server that meets the preset conditions and has the largest corresponding third distance from each first MEC server as the second MEC server. If the second MEC server is not the determined cluster center, the second MEC server is determined as the cluster center, and the distance between each first MEC server and each current cluster center is calculated again, and a new cluster center is determined based on the calculated distance until the determined second MEC server is the determined cluster center, and multiple cluster centers are obtained, and multiple cluster centers are multiple central MEC servers.

[0157] Furthermore, for each first MEC server, the electronic device divides the first MEC server into the collaborative group to which the cluster center (ie, the central MEC server) with the smallest distance belongs, and obtains multiple collaborative groups.

[0158] See Table 2, which shows the algorithm execution process for grouping MEC servers in the embodiment of the present disclosure.

[0159] Table 2

[0160]

[0161]

[0162] Input represents the input information of the algorithm for grouping MEC servers. The coordinates P(x n ,y n ) is the coordinate of the first preset cluster center P, and the maximum number of iterations N represents the number of iterations of the algorithm for grouping MEC servers. Output represents the output information of the algorithm for grouping MEC servers, and the cluster range of MEC servers is the grouping information of MEC servers.

[0163] A MEC server is randomly selected as the cluster center a1 of the first cluster, that is, the electronic device obtains the coordinates of the preset cluster center in each MEC server, and the preset cluster center is the input P(x n ,y n ).

[0164] The electronic device calculates the Euclidean distance between all remaining MEC servers and the cluster center a1. All remaining MEC servers are the first MEC servers, that is, the electronic device calculates the distance (i.e., the first distance) between the first MEC server and the current cluster center based on the following formula:

[0165]

[0166] L k,nrepresents the first distance between the kth first MEC server and the cluster center a1, (x n ,y n ) represents the coordinates of cluster center a1, (x k ,y k ) represents the coordinates of the kth first MEC server.

[0167] The electronic device selects the MEC server with the farthest Euclidean distance from the cluster center a1 as the second cluster center a2, that is, the electronic device selects the MEC server with the largest first distance from each first MEC server as the cluster center.

[0168] The electronic device calculates the Euclidean distances from the remaining MEC servers to all cluster centers and records all shortest distances. That is, for each first MEC server, the electronic device calculates the distance between the first MEC server and the current cluster centers as the second distance, and determines the smallest second distance from the second distances corresponding to the first MEC server as the third distance corresponding to the first MEC server.

[0169] The electronic device determines the MEC server with the maximum value among the shortest distances and that meets the preset conditions as the new cluster center, that is, the electronic device selects the first MEC server with the largest corresponding third distance and that meets the preset conditions from each first MEC server as the second MEC server. If the second MEC server is not a determined cluster center, the second MEC server is determined as the cluster center.

[0170] The default conditions are:

[0171] T≥β‖a1-a2‖ (6)

[0172] T represents the third distance corresponding to the first MEC server, β represents the preset coefficient, a1 represents the first determined cluster center, a2 represents the second determined cluster center, and ‖a1-a2‖ represents the distance between the first determined cluster center and the second determined cluster center.

[0173] Repeat steps 6 to 7 until no new cluster center appears in step 7, that is, if the second MEC server is not a determined cluster center, determine the second MEC server as the cluster center, and calculate the distance between each first MEC server and each current cluster center until the determined second MEC server is a determined cluster center, and obtain multiple cluster centers; or, until the maximum number of iterations N is reached, and obtain multiple cluster centers. Then, for each first MEC server, divide the first MEC server into the collaborative group to which the cluster center with the smallest distance belongs, and obtain multiple collaborative groups.

[0174] Based on the above processing, MEC servers are grouped based on the clustering algorithm. By adopting the maximum and minimum distance clustering, the location of the cluster center is determined, which avoids the error introduced by the preset cluster center setting, and the optimal grouping method of MEC servers can be obtained.

[0175] In some embodiments, the electronic device is a central MEC server. Accordingly, after step S105, the method may further include the following steps: sending a configuration file containing grouping information of each MEC server to the base station, so that when the base station receives a computing task sent by the user equipment, it determines a collaborative grouping for processing the received computing task.

[0176] After dynamically adjusting each collaborative group, the latest group information of each MEC server can be obtained. The electronic device sends a configuration file containing the latest group information of each MEC server to the base station. After receiving the configuration file, the base station can determine the grouping of each MEC server. Furthermore, when receiving a computing task sent by a user device, the base station can determine the collaborative group for processing the received computing task from each collaborative group, so that the collaborative group processes the computing task.

[0177] In some embodiments, the electronic device is a central MEC server, and the method may further include the following steps:

[0178] Step 1: Receive a computing task sent by a base station and divide the computing task into multiple subtasks.

[0179] Step 2: For each edge MEC server, send the corresponding subtask to the edge MEC server, so that the edge MEC server processes the received subtask and obtains the corresponding processing result.

[0180] Step 3: Based on the processing results of the subtasks received from each edge MEC server, the processing result of the computing task is obtained.

[0181] Step 4: Send the processing result of the computing task to the base station, so that the base station sends the processing result of the computing task to the user equipment.

[0182] The user device may be a VR device used by the user, such as a VR head display device.

[0183] When a user uses a user device to watch a VR video, the user device needs to render the original image according to the user's current viewing angle information, obtain a VR video that matches the user's current viewing angle information, and play the VR video. If the processing resources of the user device are insufficient and the user device cannot generate a VR video, the user device can send an acquisition request to the base station, and the acquisition request is used to obtain a VR video that matches the user's current viewing angle information.

[0184] When the base station receives the acquisition request sent by the user equipment, it determines the computing task for acquiring the VR video that matches the user's current viewing information, and determines from multiple collaborative groups the collaborative group whose remaining processing resources can handle the computing task and whose central MEC server is at a smaller distance from the user equipment, and sends the computing task to the central MEC server of the collaborative group.

[0185] The electronic device can receive the computing task sent by the base station and divide the computing task into multiple subtasks. For example, the electronic device can divide the original image into multiple image areas, each subtask is used to obtain a VR video of an image area, and the number of subtasks can be the same as the number of edge MEC servers in the collaborative group.

[0186] For each edge MEC server, the electronic device sends the corresponding subtask to the edge MEC server, and the edge MEC server processes the received subtask to obtain the processing result of the subtask and sends the processing result of the subtask to the electronic device. For example, the edge server can render the image area corresponding to the subtask to obtain a VR video of the image area.

[0187] After receiving the processing results of the subtasks sent by each edge MEC server, the electronic device obtains the processing results of the computing task based on the received processing results of the subtasks sent by each edge MEC server. For example, the electronic device merges the VR videos of each image area to obtain a VR video that matches the user's current viewing angle information. Then, the electronic device sends the processing results of the computing task to the base station, and the base station can send the processing results of the computing task to the user device, that is, send the acquired VR video to the user device.

[0188] See also Figure 5 , Figure 5A structural diagram of a multi-level task offloading architecture provided for an embodiment of the present disclosure, the multi-level task offloading architecture is an offloading architecture of "VR device-base station / MEC server-cloud", and the multi-level task offloading architecture includes: cloud, base station, MEC server and VR device. Each MEC server is connected to each other through an x2 link, and the cloud and base station are connected through a wired fixed network link. Each MEC server is divided into multiple collaborative groups, each of which includes a central MEC server and multiple edge MEC servers.

[0189] VR technology enables learning, training, and experience through virtual interaction with people, providing an immersive video viewing experience and a way to interact with various digital scenes. Smart healthcare, smart education, games, entertainment and other industries are closely related to VR technology. With the improvement of software and hardware technologies, VR virtual reality will be applied in more fields in the future.

[0190] When the processing resources of the VR device used by the user are insufficient, the VR device can offload the computing tasks to the collaborative group to which the nearest central MEC server belongs to complete the computing tasks. That is, when the processing resources of the VR device cannot obtain the VR video that matches the current user perspective information, the computing task for obtaining the VR video is sent to the base station. The base station determines the collaborative group with the closest central MEC server to the VR device from each collaborative group, and sends the computing task for obtaining the VR video to the central MEC server of the collaborative group.

[0191] The central MEC server divides the computing task into multiple subtasks and sends the subtasks to each edge MEC server in the collaborative group. Each edge MEC server sends the processing results of the subtasks to the central MEC server through the x2 link. The central MEC server merges the processing results of each subtask to obtain a VR video that matches the current user perspective information, and sends the VR video to the VR device used by the user through the base station.

[0192] If the processing resources of the MEC servers in each collaborative group are unable to handle the computing task, the VR device will offload the computing task to the cloud. That is, the VR device sends the computing task to the base station. The base station determines that there is no collaborative group in each collaborative group that can handle the computing task, and then sends the computing task to the cloud.

[0193] When the cloud receives the computing task, it generates a VR video that matches the user's current viewing angle information and sends the VR video to the base station. Then, the base station sends the received VR to the VR device used by the user.

[0194] Based on the above processing, the network delay of VR video transmission is reduced, the burden of network bandwidth is alleviated, and the immersive experience of users when watching VR videos is greatly improved. In addition, efficient caching and offloading calculations are performed on the MEC server, which can effectively reduce the transmission delay of VR videos, improve the resource utilization of the MEC server, and enhance the user's viewing experience of watching VR videos.

[0195] and Figure 1 Corresponding to the method embodiment of Figure 6 , Figure 6 A structural diagram of a collaborative space division device provided in an embodiment of the present disclosure, the device comprising:

[0196] The resource threshold acquisition module 601 is used to obtain the resource threshold corresponding to the current collaborative group to be adjusted; wherein the resource threshold represents: the processing resources required for the current collaborative group to be adjusted to process the computing tasks within the target time period; the current collaborative group to be adjusted includes a central MEC server and an edge MEC server, and the central MEC server in the current collaborative group to be adjusted is the clustering center of the current collaborative group to be adjusted;

[0197] The remaining processing resource statistics module 602 is used to count the total remaining processing resources of each edge MEC server in the current coordination group to be adjusted within the target time period;

[0198] The idle processing resource determination module 603 is used to calculate the difference between the total remaining processing resources and the resource threshold if the total remaining processing resources are greater than the resource threshold, and obtain the idle processing resources corresponding to the current coordination group to be adjusted;

[0199] The collaborative group determination module 604 is used to determine, from among the collaborative groups, a collaborative group having the smallest distance between its cluster center and the central MEC server of the current collaborative group to be adjusted as a target collaborative group;

[0200] The idle processing resource allocation module 605 is used to divide the edge MEC servers to which the idle processing resources belong into the target collaborative group.

[0201] In some embodiments, the idle processing resource allocation module 605 is specifically used to divide the edge MEC server to which the idle processing resources belong into the target collaborative group, obtain the current collaborative group to be adjusted, and trigger the resource threshold acquisition module 601 to execute the step of obtaining the resource threshold corresponding to the current collaborative group to be adjusted until the dynamic adjustment of each collaborative group is completed.

[0202] In some embodiments, the remaining processing resource statistics module 602 is specifically used to calculate the sum of the remaining computing resources of each edge MEC server in the current collaborative group to be adjusted within the target time period as the first sum;

[0203] Calculate the sum of the remaining cache resources of each edge MEC server in the current coordinated group to be adjusted within the target time period as the second sum;

[0204] A weighted sum of the first sum value and the second sum value is calculated to obtain the total remaining processing resources of each edge MEC server in the current collaborative group to be adjusted within the target time period.

[0205] In some embodiments, the apparatus further comprises:

[0206] A first cluster center acquisition module, configured to acquire the coordinates of a preset cluster center in each MEC server before the resource threshold acquisition module 601 acquires the resource threshold corresponding to the current coordinated group to be adjusted;

[0207] A first distance determination module, used to calculate the distance between the first MEC server and the current cluster center as the first distance; wherein the first MEC server is another MEC server among the MEC servers except the current cluster center;

[0208] A second cluster center acquisition module is used to select a MEC server with the largest first distance from each first MEC server as a cluster center;

[0209] A second distance determination module is used to calculate, for each first MEC server, a distance between the first MEC server and each current cluster center as a second distance;

[0210] A third distance determination module, configured to determine a minimum second distance from the second distances corresponding to the first MEC server as a third distance corresponding to the first MEC server;

[0211] A third cluster center acquisition module, configured to determine a cluster center from each first MEC server based on a third distance corresponding to each first MEC server;

[0212] The MEC server grouping module is used to divide each first MEC server into a collaborative group to which a cluster center with a minimum distance belongs.

[0213] In some embodiments, the third cluster center acquisition module is specifically used to select a first MEC server with the largest corresponding third distance and meeting a preset condition from each first MEC server as the second MEC server; wherein: the preset condition is: the third distance is greater than a specified distance; the specified distance is determined based on the determined distance between the first cluster center and the second cluster center;

[0214] If the second MEC server is not the determined cluster center, the second MEC server is determined as the cluster center, and the second distance determination module is triggered to execute, for each first MEC server, the distance between the first MEC server and each current cluster center is calculated as the second distance step, until the determined second MEC server is the determined cluster center.

[0215] In some embodiments, the apparatus further comprises:

[0216] A configuration file sending module is used to send a configuration file containing grouping information of each MEC server to the base station after the idle processing resource allocation module 605 executes the division of the edge MEC servers to which the idle processing resources belong into the target collaborative group, so that when the base station receives the computing task sent by the user equipment, it determines the collaborative group for processing the received computing task.

[0217] In some embodiments, the apparatus further comprises:

[0218] A computing task division module, configured to receive the computing task sent by the base station and divide the computing task into a plurality of subtasks after the idle processing resource allocation module 605 divides the edge MEC server to which the idle processing resource belongs into the target collaborative group;

[0219] The subtask sending module is used to send the corresponding subtask to each edge MEC server in the current coordinated group to be adjusted, so that the edge MEC server processes the received subtask and obtains the corresponding processing result;

[0220] A processing result acquisition module, used to obtain the processing result of the computing task based on the processing results of the subtasks sent by each edge MEC server;

[0221] The processing result sending module is used to send the processing result of the computing task to the base station, so that the base station sends the processing result of the computing task to the user equipment.

[0222] Based on the collaborative space division device provided by the embodiment of the present disclosure, the idle processing resources of the collaborative group can be determined based on the processing resources (i.e., resource threshold) required for the collaborative group to process computing tasks and the remaining processing resources of the collaborative group, and the idle processing resources can be allocated to other collaborative groups. When other collaborative groups process computing tasks, they can use the allocated idle processing resources. That is, based on the remaining processing resources of each collaborative group and the resource threshold required for processing computing tasks, the grouping method of each MEC server can be dynamically adjusted to avoid the situation where one collaborative group has idle processing resources while other collaborative groups cannot use the idle processing resources corresponding to the collaborative group, which can improve the utilization rate of the processing resources of the MEC server.

[0223] The present disclosure also provides an electronic device, such as Figure 7 As shown, it includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704.

[0224] Memory 703, used for storing computer programs;

[0225] The processor 701 is used to execute the program stored in the memory 703 to implement the following steps:

[0226] Obtaining a resource threshold corresponding to the current collaborative group to be adjusted; wherein the resource threshold represents: the processing resources required for the current collaborative group to be adjusted to process computing tasks within the target time period; the current collaborative group to be adjusted includes a central MEC server and an edge MEC server, and the central MEC server in the current collaborative group to be adjusted is the clustering center of the current collaborative group to be adjusted;

[0227] Counting the total remaining processing resources of each edge MEC server in the current coordination group to be adjusted within the target time period;

[0228] If the total remaining processing resources are greater than the resource threshold, a difference between the total remaining processing resources and the resource threshold is calculated to obtain idle processing resources corresponding to the current coordinated group to be adjusted;

[0229] From each collaborative group, determine the collaborative group with the smallest distance between the cluster center and the central MEC server of the current collaborative group to be adjusted as the target collaborative group;

[0230] The edge MEC servers to which the idle processing resources belong are divided into the target collaborative groups.

[0231] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0232] The communication interface is used for communication between the above electronic device and other devices.

[0233] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0234] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0235] In another embodiment provided by the present disclosure, a computer-readable storage medium is also provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned collaborative space division methods are implemented.

[0236] In another embodiment provided by the present disclosure, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any collaborative space division method in the above embodiments.

[0237] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0238] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0239] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device, computer-readable storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0240] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the protection scope of the present disclosure. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure are included in the protection scope of the present disclosure.

Claims

1. A collaborative space partitioning method, characterized in that: The method comprises: Obtaining a resource threshold corresponding to the current collaborative group to be adjusted; wherein the resource threshold represents: the processing resources required for the current collaborative group to be adjusted to process computing tasks within the target time period; the current collaborative group to be adjusted includes a central mobile edge computing MEC server and an edge MEC server, and the central MEC server in the current collaborative group to be adjusted is the clustering center of the current collaborative group to be adjusted; Counting the total remaining processing resources of each edge MEC server in the current coordination group to be adjusted within the target time period; If the total remaining processing resources are greater than the resource threshold, a difference between the total remaining processing resources and the resource threshold is calculated to obtain idle processing resources corresponding to the current coordination group to be adjusted; From each collaborative group, determine the collaborative group with the smallest distance between the cluster center and the central MEC server of the current collaborative group to be adjusted as the target collaborative group; The edge MEC servers to which the idle processing resources belong are divided into the target collaborative groups.

2. The method according to claim 1, characterized in that The dividing the edge MEC server to which the idle processing resources belong into the target collaborative group includes: The edge MEC server to which the idle processing resources belong is divided into the target collaborative group to obtain the current collaborative group to be adjusted, and the step of obtaining the resource threshold corresponding to the current collaborative group to be adjusted is returned to execute until the dynamic adjustment of each collaborative group is completed.

3. The method according to claim 1, characterized in that The counting of the total remaining processing resources of each edge MEC server in the current coordination group to be adjusted within the target time period includes: Calculate the sum of the remaining computing resources of each edge MEC server in the current collaborative group to be adjusted within the target time period as a first sum; Calculate the sum of the remaining cache resources of each edge MEC server in the current coordinated group to be adjusted within the target time period as the second sum; A weighted sum of the first sum value and the second sum value is calculated to obtain the total remaining processing resources of each edge MEC server in the current collaborative group to be adjusted within the target time period.

4. The method according to claim 1, characterized in that: Before obtaining the resource threshold corresponding to the current coordination group to be adjusted, the method further includes: Obtain the coordinates of the preset cluster centers in each MEC server; Calculate the distance between the first MEC server and the current cluster center as the first distance; wherein the first MEC server is another MEC server among the MEC servers except the current cluster center; From each first MEC server, select the MEC server with the largest first distance as the cluster center; For each first MEC server, calculate the distance between the first MEC server and each current cluster center as the second distance; Determine a minimum second distance from the second distances corresponding to the first MEC server as a third distance corresponding to the first MEC server; Determining a cluster center from each of the first MEC servers based on the third distance corresponding to each of the first MEC servers; For each first MEC server, the first MEC server is divided into a collaborative group to which the cluster center with the smallest distance belongs.

5. The method according to claim 4, characterized in that The determining of the cluster center from each first MEC server based on the third distance corresponding to each first MEC server includes: Selecting a first MEC server with the largest corresponding third distance and satisfying a preset condition from each first MEC server as the second MEC server; wherein: the preset condition is: the third distance is greater than a specified distance; the specified distance is determined based on the determined distance between the first cluster center and the second cluster center; If the second MEC server is not the determined cluster center, the second MEC server is determined as the cluster center, and the step of returning to execute for each first MEC server, calculating the distance between the first MEC server and each current cluster center as the second distance, until the determined second MEC server is the determined cluster center.

6. The method according to claim 1, characterized in that After dividing the edge MEC servers to which the idle processing resources belong into the target collaborative group, the method further includes: A configuration file containing grouping information of each MEC server is sent to the base station, so that the base station determines a collaborative group for processing the received computing task when receiving the computing task sent by the user equipment.

7. The method according to claim 1, characterized in that After dividing the edge MEC servers to which the idle processing resources belong into the target collaborative group, the method further includes: receiving a computing task sent by a base station, and dividing the computing task into a plurality of subtasks; For each edge MEC server in the current coordination group to be adjusted, a corresponding subtask is sent to the edge MEC server, so that the edge MEC server processes the received subtask and obtains a corresponding processing result; Obtaining the processing result of the computing task based on the processing results of the subtasks sent by each edge MEC server; The processing result of the computing task is sent to the base station, so that the base station sends the processing result of the computing task to the user equipment.

8. A collaborative space division device, characterized in that: The device comprises: A resource threshold acquisition module is used to acquire the resource threshold corresponding to the current collaborative group to be adjusted; wherein the resource threshold represents: the processing resources required for the current collaborative group to be adjusted to process the computing tasks within the target time period; the current collaborative group to be adjusted includes a central MEC server and an edge MEC server, and the central MEC server in the current collaborative group to be adjusted is the clustering center of the current collaborative group to be adjusted; A remaining processing resource statistics module, used to count the total remaining processing resources of each edge MEC server in the current coordination group to be adjusted within the target time period; an idle processing resource determination module, configured to calculate the difference between the total remaining processing resources and the resource threshold if the total remaining processing resources are greater than the resource threshold, and obtain the idle processing resources corresponding to the current coordination group to be adjusted; A collaborative group determination module is used to determine, from among the collaborative groups, a collaborative group with the smallest distance between the cluster center and the central MEC server of the current collaborative group to be adjusted as a target collaborative group; The idle processing resource allocation module is used to divide the edge MEC servers to which the idle processing resources belong into the target collaborative group.

9. The device according to claim 8, characterized in that The idle processing resource allocation module is specifically used to divide the edge MEC server to which the idle processing resources belong into the target collaborative group, obtain the current collaborative group to be adjusted, and trigger the resource threshold acquisition module to execute the step of obtaining the resource threshold corresponding to the current collaborative group to be adjusted until the dynamic adjustment of each collaborative group is completed.

10. The device according to claim 8, characterized in that The remaining processing resource statistics module is specifically used to calculate the sum of the remaining computing resources of each edge MEC server in the current collaborative group to be adjusted within the target time period as the first sum; Calculate the sum of the remaining cache resources of each edge MEC server in the current coordinated group to be adjusted within the target time period as the second sum; A weighted sum of the first sum value and the second sum value is calculated to obtain the total remaining processing resources of each edge MEC server in the current collaborative group to be adjusted within the target time period.

11. The device according to claim 8, characterized in that The device also includes: A first cluster center acquisition module, configured to acquire the coordinates of a preset cluster center in each MEC server before the resource threshold acquisition module acquires the resource threshold corresponding to the current coordinated group to be adjusted; A first distance determination module, used to calculate the distance between the first MEC server and the current cluster center as the first distance; wherein the first MEC server is another MEC server among the MEC servers except the current cluster center; A second cluster center acquisition module is used to select a MEC server with the largest first distance from each first MEC server as a cluster center; A second distance determination module is used to calculate, for each first MEC server, a distance between the first MEC server and each current cluster center as a second distance; A third distance determination module, configured to determine a minimum second distance from the second distances corresponding to the first MEC server as a third distance corresponding to the first MEC server; A third cluster center acquisition module, configured to determine a cluster center from each first MEC server based on a third distance corresponding to each first MEC server; The MEC server grouping module is used to divide each first MEC server into a collaborative group to which a cluster center with a minimum distance belongs.

12. The device according to claim 11, characterized in that The third cluster center acquisition module is specifically used to select a first MEC server with the largest corresponding third distance and meeting a preset condition from each first MEC server as the second MEC server; wherein: the preset condition is: the third distance is greater than a specified distance; the specified distance is determined based on the determined distance between the first cluster center and the second cluster center; If the second MEC server is not the determined cluster center, the second MEC server is determined as the cluster center, and the second distance determination module is triggered to execute, for each first MEC server, the distance between the first MEC server and each current cluster center is calculated as the second distance step, until the determined second MEC server is the determined cluster center.

13. The device according to claim 8, characterized in that The device also includes: A configuration file sending module is used to send a configuration file containing grouping information of each MEC server to the base station after the idle processing resource allocation module executes the division of the edge MEC servers to which the idle processing resources belong into the target collaborative group, so that when the base station receives the computing task sent by the user equipment, it determines the collaborative group for processing the received computing task.

14. The device according to claim 8, characterized in that The device also includes: A computing task division module, configured to execute the computing task sent by the receiving base station and divide the computing task into a plurality of subtasks after the idle processing resource allocation module divides the edge MEC server to which the idle processing resource belongs into the target collaborative group; The subtask sending module is used to send the corresponding subtask to each edge MEC server in the current coordinated group to be adjusted, so that the edge MEC server processes the received subtask and obtains the corresponding processing result; A processing result acquisition module, used to obtain the processing result of the computing task based on the processing results of the subtasks sent by each edge MEC server; The processing result sending module is used to send the processing result of the computing task to the base station, so that the base station sends the processing result of the computing task to the user equipment.

15. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 7 when executing a program stored in a memory.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Video monitoring cloud platform resource scheduling method and device

    CN105872114A

  • User request processing method and device for aggregation server

    CN107528884A

  • Resource scheduling method and device and computer readable storage medium

    CN110826915A

  • A process for measuring distance in a packet network with a plurality of routers

    EP1307010A1