Weighted delay and minimum user association and resource allocation method in MEC network
By adopting time-frequency resource division and weighted delay minimization methods in the mobile edge computing network, user association and resource allocation are optimized, complex user association and resource allocation problems are solved, and computing-sensitive and high-speed users are realized The low latency requirement significantly reduces network latency.
Patent Information
- Application Number
- CN202111432072.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-11-29
AI Technical Summary
User association and resource configuration in mobile edge computing networks are complex, making it difficult to meet the low-latency requirements of computing-sensitive and high-speed users, especially when spectrum and backhaul resources are scarce and mobile terminal computing capabilities are limited.
Under time-frequency resource division, the user association and resource allocation method of weighted delay minimization is adopted, the resource allocation amount is initialized through the strongest channel association rule and equal resource allocation principle, user association and computing and cache resources are alternately optimized, and convex optimization is used The theory obtains a closed-form solution for resource allocation and eliminates interference between uplink and downlink.
It significantly reduces network delays for computing-sensitive and high-speed users, improves user experience quality, and achieves resource allocation with minimal weighted delay.
Smart Images

Figure CN114143883B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a mobile edge computing network (a small cell network equipped with mobile edge computing and cache servers, i.e., an MEC network), spectrum resources, computing resources, and user association optimization, and belongs to the field of mobile edge computing networks, and in particular to a method for weighted delay and minimum user association and resource allocation in an MEC network. Background Art
[0002] In recent years, the rapid development of mobile computing and the Internet of Things has brought about many new compute-sensitive (CS) and high-rate (HR) services, such as mobile games, cognitive assistance, and virtual / augmented reality. As a key technology to improve the efficiency of network resource utilization, cloud computing has been widely studied and applied, but it may not meet the low latency requirements of CS and HR services. In addition, today's backbone networks are highly congested, and it is obviously impractical to transmit all data streams to the remote cloud through the network, especially for the leap-forward growth of distributed data streams. It is not difficult to find that the challenges brought about by the popularization of CS and HR services are: how to deal with the shortage of spectrum and backhaul resources, the limitations of mobile terminal computing power and energy, and the requirements of high-quality experience (QoE).
[0003] In order to meet the above challenges, mobile edge computing (MEC) and cache technology have been widely advocated and are regarded as an important and indispensable part of the new network architecture. This technology pushes the frontier of data services and computing applications from cloud computing centers to the logical edge of mobile networks, so that data mining and analysis can be completed near the data source. By deploying mobile edge computing and cache servers in small cell networks, micro base stations are equipped with cloud-like storage and computing capabilities, and mobile edge computing networks are thus generated, which can be regarded as a substitute for cloud computing.
[0004] Although the deployment of mobile edge computing and cache servers can well support CS and HR services, thereby ensuring a high-quality user experience, it may make the user association (cell / base station selection) problem more complicated. It is easy to find that in a mobile edge computing network, the user association problem not only involves base station selection, but also needs to consider the selection of computing and caching modes - judging whether the computing task is completed by the user locally or by the micro base station (equipped with computing and cache servers), and whether the required data is obtained directly from the micro base station or from the cloud through the macro base station.
[0005] In the mobile edge computing network, according to the situation that the user association problem involves edge computing and caching, the existing related research can be roughly divided into the following three categories. The first category is that the user association problem is closely related to the mobile edge cache. This type of research integrates edge caching technology into the user association problem, and needs to take into account user association and file access (cache) optimization. The second category is that the user association problem is closely related to mobile edge computing. This type of research integrates edge computing technology into the user association problem, and needs to take into account user association and computational offloading decisions. The third category is that the user association problem is tightly coupled with mobile edge computing and caching. This type of research integrates mobile edge computing and caching technology into the user association problem at the same time, and takes into account user association, file access and computational offloading decisions at the same time. At present, the third type of research is relatively difficult, and the existing research results are also rare, mainly including user association with the minimum weighted network delay (not involving computing resources and cache resource allocation) and user association with the minimum network cost under frequency division duplex (involving computing resources and cache resource allocation). Summary of the invention
[0006] Aiming at the problem of jointly optimizing user association, computing and cache resource allocation in mobile edge computing networks, the present invention proposes a user association and resource allocation method with minimum weighted delay in MEC networks under time-frequency resource partitioning. This method can significantly reduce the network delay of CS and HR users.
[0007] In order to jointly optimize the user association, computing and cache resource allocation in the mobile edge computing network, the present invention proposes a user association and resource allocation method with minimum weighted delay in the MEC network under the time-frequency resource division. Specifically, the present invention first uses the time-frequency resource division method to eliminate the interference between the uplink and downlink, the access link and the return link, and adopts different frequency bands for adjacent macrocells in the uplink and downlink systems; secondly, in order to solve the weighted delay and minimization problem, the present invention alternately optimizes user association and computing and cache resources, and uses joint game to find the optimal user association, and uses convex optimization theory to obtain the closed-form solution of the computing and cache resource allocation. The technical solution of the present invention is:
[0008] A method for weighted delay and minimum user association and resource allocation in an MEC network includes the following steps:
[0009] Step 1: divide the time and frequency resources for the mobile edge computing network, where the mobile edge computing network refers to a small cell network formed by multiple micro base stations equipped with mobile edge computing and cache servers;
[0010] Step 2: First, the strongest channel association rule is used to select micro base stations in the mobile edge computing network for all users, including computing-sensitive users (CS users) and high-rate users (HR users). Then, the equal resource allocation principle is used to initialize the resource allocation amount. Then, the delay including access link delay, return link delay and computing delay is calculated. Then, the micro base stations associated with CS users are adjusted according to the delay. Finally, all users associated with a single micro base station are constructed into an alliance, and the alliance division of all alliances and users is recorded.
[0011] Step 3: Create corresponding temporary alliances for all alliances, then select any two from all alliances and randomly select users from them for exchange. The exchanged alliances are used as new temporary alliances. If the exchanged temporary alliance meets the resource limit and rate constraint conditions, the list of the temporary alliance replaces the original alliance list and saves it. Otherwise, keep it as it is. Then determine whether the preset number of repetitions of step 3 has been reached. If it is met, execute step 4. Otherwise, execute step 3 again.
[0012] Step 4: According to convex optimization theory, reallocate resources to minimize the weighted delay sum;
[0013] Step 5, determine whether the preset number of repetitions of steps 3 and 4 has been reached, if so, end the calculation process of this method, otherwise return to step 3.
[0014] In the method, in step 1, dividing the time-frequency resources includes:
[0015] The frequency band division factor a is preset, the uplink time accounts for T1 / T, and the downlink time accounts for T2 / T; wherein 0≤a≤1; the frequency band used by the uplink access link and the downlink access link is aW, the frequency band used by the uplink return link and the downlink return link is (1-a)W, the time slice used by the uplink access link and the uplink return link accounts for T1 / T, the time slice used by the downlink access link and the downlink return link accounts for T2 / T, wherein W is the system bandwidth, T, T1 and T2 are the channel coherence time, the uplink service time and the downlink service time respectively.
[0016] The method, in step 2, adopting the strongest channel association rule to select micro base stations in the associated mobile edge computing network for all users including computing-sensitive users, i.e., CS users, and high-rate users, i.e., HR users, includes:
[0017] In the data rate constraints Under this condition, any HR user k chooses to associate with the micro base station n that has the strongest channel gain for the user, where a is the frequency band division factor, 0≤a≤1; is the achievable rate of the downlink access link of HR user k at base station n, is the achievable rate of the uplink backhaul link and the downlink backhaul link; any CS user also chooses to associate with the micro base station with the strongest channel gain for the user.
[0018] In the method, in step 2, initializing the resource allocation amount using the equal resource allocation principle includes:
[0019] In the downlink access link and the downlink backhaul link, the initial resource allocation amounts β and η of the HR users associated with the micro base station are determined according to equal bandwidth allocation, and the initial values are both "1 / the number of HR users served"; in the uplink access link, the initial resource allocation amount α of the CS users associated with the micro base station is determined according to equal bandwidth allocation, and the initial value is "1 / the number of CS users served"; the mobile edge computing and cache server determines the initial resource allocation amount γ according to equal computing resource allocation, and the value is "1 / the number of CS users served"; among them, the initial resource allocation amount α of the CS users associated with the micro base station is the uplink access link bandwidth resource allocation amount The initial resource allocation amount β of the HR user associated with the micro base station is the downlink access link bandwidth resource allocation amount The initial resource allocation amount η of the HR user associated with the micro base station is the bandwidth resource allocation amount of the downlink backhaul link Compute resource allocation in the initial resource allocation and are the sets of micro base stations, HR users, CS users and files, respectively. One channel transmits only one corresponding file, so the channel and the file use the same number; n, k, i are the sequence numbers of micro base stations, users and files, respectively; a nk is the uplink access bandwidth allocated by micro base station n to CS user k; β nki is the downlink access bandwidth allocated by micro base station n to HR user k on channel i; nki is the downlink backhaul bandwidth allocated by micro base station n to HR user k on channel i; nk It is the computing resource allocated by micro base station n to CS user k.
[0020] In the method, in step 2, calculating the delay including the access link delay, the return link delay and the calculation delay comprises:
[0021] Calculate downlink access link delay Downlink backhaul link delay Uplink access link delay Edge computing latency Local computing delay refers to the user's local computing delay The first intermediate variable The second intermediate variable The third intermediate variable is the achievable rate of CS user k on the downlink access link of base station n; is the achievable rate of base station n on the backhaul link; is the data rate of the uplink access link from CS user k to micro base station n; is the achievable rate of CS user k on the uplink access link of base station n; and are the data rates of the downlink access link and downlink backhaul link of HR user k on subchannel i of micro base station n, respectively; is the data rate of the uplink access link from CS user k to micro base station n; C k , and are the computing tasks of CS user k, in units of CPU cycles. The units of local computing capabilities of edge computing servers and user k are both in CPU cycles / second. With d k are the number of micro base stations in the macro cell, the size of file i, and the amount of data calculated by user k; and In the formula, in the uplink and downlink systems, adjacent macro cells use different spectrum resources.
[0022] In the method, in step 2, adjusting the micro base station associated with the CS user according to the delay includes:
[0023] For any CS user, if its edge computing delay is greater than the local computing delay or its computing data volume is greater than the remaining storage space of the micro base station, the association between the CS user and the micro base station is removed and the user is allowed to complete the computing task locally. Otherwise, no adjustment is made. That is, when the CS user k meets the condition And the amount of data d k When the remaining storage capacity of the mobile edge computing and cache server is exceeded, user k associated with micro base station n completes the computing task locally, where is the local computation delay of user k.
[0024] In the method, in step 2, all associated users of a single micro base station are constructed as an alliance, and recording the alliance divisions of all alliances and users includes:
[0025] Build alliance divisions for users is the number of micro base stations; Represents a virtual base station, which alone constitutes an alliance whose members are composed of all users who complete computing tasks locally.
[0026] In the method, in step 3, corresponding temporary alliances are created for all alliances, and then two are randomly selected from all alliances, and users therein are randomly selected for exchange. The exchanged alliances serve as new temporary alliances and include:
[0027] Create a temporary alliance for any alliance. For any micro base station n, its temporary alliance in For the existing alliance of micro base stations n;
[0028] By user Randomly select two alliances and
[0029] if If empty, Randomly select user j from and if If empty, Randomly select user i from and if and If not empty, then from Randomly select user j from Randomly select the same type of HR or CS user i and exchange the alliances of the two users, that is, and
[0030] The method, in step 3, if the temporary alliance after the exchange meets the resource restriction and rate constraint conditions, replacing the original alliance list with the temporary alliance list and saving the list includes:
[0031] if and The known spectrum resources, storage resources and computing resources of micro base stations m and n are met, and the conditions are met Then use the temporary alliance to update the current alliance, that is and in means that the load is the cost,
[0032]
[0033] exist Middle, b ni With c ki is a known quantity, where b ni is the cache indication of micro base station n for file i, c ki is the demand indication of user k for file i. If base station n caches file i, then b ni=1, otherwise b ni = 0, if user k needs file i, then c ki =1, otherwise c ki =0; if HR user Then y nk =1, otherwise y nk =0,y nk Indicator variable indicating that HR user k is associated with micro base station n; if CS user Then x nk =1, otherwise x nk =0,x nk An indicator variable indicating that CS user k is associated with micro base station n; w k is the weight of user k; From the perspective of , if base station n has cached file i required by HR user k, the user delay is Otherwise, the user needs to obtain the file through the backhaul link, which causes delays. If CS user k completes the computing task by the edge computing server of micro base station n, the user delay is Otherwise, users complete the computing task locally, which causes delays. The last updated user is divided into
[0034] The method, in step 4, reallocating resources to minimize the weighted delay sum according to convex optimization theory, includes:
[0035] The closed-form formula for obtaining resource allocation is:
[0036] If c ki y nk =1, c ki (1-b ni )y nk =1 and x nk =1, then
[0037]
[0038]
[0039]
[0040]
[0041] Otherwise, they take values small enough to be ignored, where the auxiliary parameters [·] 1 Indicates a value less than 1; if user m needs file i, then cmi =1, otherwise c mi =0, c mi is the demand indication of user m for file i, which is a known quantity; if HR user Then y nm =1, otherwise y nm =0,y nm Indicator variable indicating that HR user m is associated with micro base station n; if CS user Then x nm =1, otherwise x nm =0,x nm An indicator variable indicating that CS user m is associated with micro base station n.
[0042] The technical effect of the present invention is that it solves the user association and resource allocation problems in the mobile edge computing network, and achieves the goal of minimizing the weighted delay while meeting the communication service quality requirements of compute-sensitive (CS) and high-rate (HR) users. The present invention further eliminates the interference between uplink and downlink, access link and return link through the time-frequency resource partitioning method, and finally realizes the traditional user association (ABCG) based on equal resource allocation as input, and alternately optimizes user association and mobile edge computing and cache resources. Simulation results show that compared with the ABCG method, the method (AMND) proposed in the present invention can greatly reduce the network delay of CS and HR users. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 This is a schematic diagram of an application scenario of the present invention, namely a mobile edge computing network.
[0044] Figure 2 A schematic diagram of the time-frequency resource division of the present invention.
[0045] Figure 3 It is a schematic diagram of the present invention assigning spectrum to adjacent macro cells in uplink and downlink systems.
[0046] Figure 4 The present invention discloses the relationship between the total return delay of HR users (the delay of the combined downlink access and downlink return link) and the spectrum partition factor a under the file request coefficient δ (a factor reflecting the popularity of the file, the higher the value, the greater the probability that the file has been cached).
[0047] Figure 5 The present invention discloses the relationship between the total delay of HR users (including the delay of the downlink access link and the delay of the combined downlink access and downlink backhaul link) and the spectrum partition factor a under the file request coefficient δ.
[0048] Figure 6The present invention discloses the relationship between the total local computing execution delay of a CS user and the spectrum partition factor a under the file request coefficient δ.
[0049] Figure 7 The present invention discloses the relationship between the total unloading delay of CS users (including uplink access link delay and edge computing delay) and the spectrum partition factor a under the file request coefficient δ.
[0050] Figure 8 The present invention discloses the relationship between the total delay of CS users (including local calculation delay and unloading delay) and the spectrum partition factor a under the file request coefficient δ.
[0051] Fig. 9 The present invention discloses the relationship between the total return delay of HR users and the time proportion T1 / T under the file request coefficient δ.
[0052] Fig.10 The present invention discloses the relationship between the total delay of HR users and the time proportion T1 / T under the file request coefficient δ.
[0053] Fig.11 The present invention discloses the relationship between the total local execution delay of CS users and the time proportion T1 / T under the file request coefficient δ.
[0054] Fig.12 The present invention discloses the relationship between the total unloading delay of CS users and the time proportion T1 / T under the file request coefficient δ.
[0055] Fig.13 The present invention discloses the relationship between the total delay of CS users and the time proportion T1 / T under the file request coefficient δ. DETAILED DESCRIPTION
[0056] This embodiment alternately optimizes user association and computing and caching resources under time-frequency resource division, uses joint game to find the optimal user association, and uses convex optimization theory to obtain a closed-form solution for computing and caching resource allocation.
[0057] Step 1: Determine the frequency band division factor a, the uplink time proportion T1 / T, and the downlink time proportion T2T. The best settings for these parameters can be found through simulation, that is, for different parameter settings, the method provided in this embodiment is executed through simulation, and the optimal settings are determined from each performance result according to the performance requirements. After determining these parameters, the corresponding ones are: the uplink and downlink access links use the frequency band aW, the uplink and downlink return links use the frequency band (1-a)W, the uplink access link and the uplink return link use the time slice (proportion) T1 / T, the downlink access link and the downlink return link use the time slice (proportion) T2 / T, where W is the system bandwidth, T, T1 and T2 are the channel coherence time, the uplink service time and the downlink service time respectively.
[0058] Step 2: According to the rules of the traditional user association method of equal resource allocation, namely the ABCG method (see steps 2.1-2.4 for details), the bandwidth resource allocation of the uplink and downlink access links and the downlink backhaul link is initialized respectively. Initialize computing resource allocation and user segmentation in and are the collections of micro base stations, HR users, CS users, and files (channels); is the initial alliance of micro base station n (composed of users associated with this base station); is the number of micro base stations; Then the virtual base station is indicated, and the virtual base station forms an alliance whose members are composed of all users who complete the computing task locally. By running this method under different a values, the general performance trend of the method can be obtained. This trend has a certain robustness. Once the trend is obtained, a can be set according to the actual communication needs;
[0059] Step 2.1: Under data rate constraints Under this condition, any HR user k selects a micro base station n with the strongest channel gain, where is the achievable rate of the downlink access link, and is the achievable rate of the backhaul link; any CS user selects the micro base station with the strongest channel gain; all associated users of any micro base station n form an initial alliance It is worth noting that any micro base station is equipped with mobile edge computing and cache servers.
[0060] Step 2.2: In the downlink access link and the downlink return link, the initial resource allocation amounts β and η of HR users associated with the micro base station are determined according to the equal bandwidth allocation, and the value is "1 / the number of HR users served"; in the uplink access link, the initial resource allocation amount α of CS users associated with the micro base station is determined according to the equal bandwidth allocation, and the value is "1 / the number of CS users served"; the edge computing server determines the initial resource allocation amount γ according to the equal computing resource allocation, and the value is "1 / the number of CS users served"; if the HR or CS user does not select (i.e., associate with) any micro base station, the corresponding resource allocation amount should be small enough (i.e., small enough to be negligible) to facilitate algorithm design.
[0061] Step 2.3: Calculate the downlink access link delay Downlink backhaul link delay Uplink access link delay Edge computing latency Local (user-local) computing delay in and are the data rates of the downlink access link and the downlink backhaul link of HR user k on subchannel i (assuming one subchannel transmits one file) of micro base station n, respectively; is the data rate of the uplink access link from CS user k to micro base station n; C k , and are the computing task volume (CPU cycles) of CS user k, the computing power of the edge computing server (CPU cycles / second), and the local computing power (CPU cycles / second) of user k; M, With d k are the number of micro base stations in the macro cell, the size of file i, and the amount of computational data of user k, respectively. and Parameter 3 in indicates that in the uplink and downlink systems, adjacent macro cells use different spectrum resources.
[0062] Step 2.4: When user k meets the condition And its data volume d k When the remaining storage capacity of the cache server is not exceeded, user k associated with micro base station n completes the computing task locally. This means that user k leaves the alliance. Join the Alliance Right now and
[0063] Step 3: Alternately perform user association and resource allocation operations (steps 4-5) until the maximum number of iterations is reached.
[0064] Step 4: According to the coalition game, loop through steps 4.1-4.6 until the maximum number of iterations is reached.
[0065] Step 4.1: Create a temporary alliance for any alliance. For any micro base station n, its temporary alliance
[0066] Step 4.2: Segment by user Randomly select two alliances and
[0067] Step 4.3: If If empty, Randomly select user j from and if If empty, Randomly select user i from and if and If not empty, then from Randomly select user j from Randomly select the same user i from the same group and exchange the alliances of the two users, that is, and
[0068] Step 4.4: If and Meet the spectrum resource, storage resource and computing resource constraints of micro base stations m and n, and meet the conditions Then use the temporary alliance to update the current alliance, that is and in
[0069]
[0070] exist Middle, b ni With c ki is a known quantity; if base station n caches file i, then b ni =1, otherwise b ni =0; if user k needs file i, then c ki =1, otherwise c ki =0; if HR user Then y nk =1, otherwise y nk =0; if CS user Then x nk =1, otherwise x nk =0; w k is the weight of user k. From the perspective of , if base station n has cached file i required by HR user k, the user delay is Otherwise, the user needs to obtain the file through the backhaul link, which causes delays. If CS user k completes the computing task by the edge computing server of micro base station n, the user delay is Otherwise, users complete the computing task locally, which causes delays.
[0071] Step 4.5: Update user segments
[0072] Step 4.6: Determine whether the loop termination condition is met. If so, execute step 5, otherwise jump to step 4.
[0073] Step 5: If c ki y nk =1, c ki (1-b ni )y nk =1 and x nk =1, then
[0074]
[0075]
[0076]
[0077]
[0078] Otherwise, they take sufficiently small (negligible) values to facilitate algorithm design, where [·] 1 Indicates a value less than 1.
[0079] Step 6: Determine whether the loop termination condition is met. If so, the algorithm ends, otherwise jump to step 3.
[0080] Figure 1The application scenario of the present invention is given, that is, the deployment of a mobile edge computing network, in which each micro base station is equipped with a computing server and a cache server. It is worth noting that when the micro base station has cached the files required by its associated users, its users (edge cache users) can directly obtain the files from the base station, otherwise the users (backhaul users) must obtain the required files from the core network through the wireless backhaul link between the micro base station and the macro base station; in addition, users (local computing users) can complete computing tasks locally (user terminals themselves), and users (edge computing users) can also offload computing tasks to the micro base station end. In the mobile edge computing network, HR users are composed of edge cache users and backhaul users, while CS users are composed of local computing users and edge computing users. It is not difficult to find that the way users obtain files or the way users complete computing tasks determines the detailed category of users, and the way users obtain files or complete computing tasks depends on the specific method designed by the present invention.
[0081] Figure 2 The present invention shows the allocation of time and frequency resources for uplink and downlink, access and backhaul links. Figure 2 As shown in FIG. 1 , the system frequency band W is divided into two parts: F1 (bandwidth is aW) and F2 (bandwidth is (1-a)W), and the channel coherence time T is divided into two time slots: T1 and T2. Figure 2 As shown, the uplink and downlink access links use frequency band aW, the uplink and downlink return links use frequency band (1-a)W, the uplink access link and the downlink return link use time slice T1, and the downlink access link and the downlink return link use time slice T2. Through this time-frequency resource division, the interference between the uplink and downlink, access and return links can be eliminated.
[0082] Figure 3 The spectrum allocation of adjacent macro cells in the uplink and downlink systems is shown. Figure 3 As shown in FIG. 1 , adjacent macro cells use different spectrum resources in both the uplink system and the downlink system. Specifically, the frequency band F1 is divided into three sub-bands F1 and F2 of equal bandwidth. 11 、F 12 and F 13 , which are used by adjacent macro cells in uplink and downlink access links; the frequency band F2 is divided into three sub-bands F with equal bandwidth. 21 、F 22 and F 23 , which are used by adjacent macro cells in the uplink and downlink backhaul links. In this way of frequency band utilization, the interference between adjacent macro cells in the uplink and downlink systems can be eliminated.
[0083] Figure 4The present invention discloses a schematic diagram of the relationship between the total return delay of HR users and the spectrum partition factor a under the file request coefficient δ. When factor a is small, the increase of factor a means that HR users have more and more opportunities to obtain services from some micro base stations with high downlink access link data rates, and fewer and fewer HR users need to obtain files from the core network through the return link. However, since the downlink access link data rate should be less than or equal to the downlink return link data rate, when factor a is large, the increase of factor a means that HR users have fewer and fewer opportunities to obtain services from some micro base stations with high downlink access link data rates, and more and more HR users need to obtain files from the core network through the return link. Therefore, the total return delay of HR users in the method AMND provided by the present invention and the traditional method ABCG first decreases and then increases with the increase of a. Given that ABCG only focuses on channel gain, and the method AMND of the present invention always tries to minimize user delay, the latter may achieve a lower delay than the former (including the total return delay and total delay of HR users, and the total unloading delay and total delay of CS users). In addition, since a larger file request coefficient δ means a greater probability that the file has been cached, the HR user has a greater chance of obtaining the file directly from the micro base station. Obviously, this means that the HR user delay (including the total return delay and total delay of the HR user) may be smaller!
[0084] Figure 5 FIG. 1 is a schematic diagram showing the relationship between the total delay of HR users and the spectrum partition factor a under the file request coefficient δ of the present invention. Figure 4 It is analyzed that the total delay of HR users in the method AMND of the present invention and the traditional method ABCG first decreases and then increases with a.
[0085] Figure 6 The present invention discloses a schematic diagram of the relationship between the total local (local) execution delay of CS users and the spectrum partition factor a under the file request coefficient δ. It is easy to find that the increase of factor a means that CS users may have a higher uplink data rate, and more and more CS users tend to offload their computing tasks to the micro base station. Therefore, the total local computing (execution) delay of CS users in the method AMND of the present invention and the traditional method ABCG will decrease as a increases. In addition, because ABCG is the initial input of AMND, they may achieve almost the same total local computing delay when the offloading decision does not change significantly.
[0086] Figure 7 FIG. 1 is a schematic diagram showing the relationship between the total unloading delay of CS users and the spectrum partition factor a under the file request coefficient δ of the present invention. Figure 6As revealed, the number of local computing users may decrease as a increases, which means that the number of edge computing users may increase as a increases. When micro base stations serve more users, these users will get less computing resources, so the total offloading delay of CS users may increase as a increases.
[0087] Figure 8 The present invention discloses the relationship between the total delay of CS users and the spectrum division factor a under the file request coefficient δ. Figure 6 and Figure 7 From the performance metrics in , it is easy to find that local computation directly affects the total latency of CS users. In general, the total latency of CS users should decrease as a increases.
[0088] Fig. 9 The present invention discloses the relationship between the total return delay of HR users and the time proportion T1 / T under the file request coefficient δ. It is easy to find that the increase of factor T1 / T will lead to fewer and fewer resources available to HR users on the return link. Therefore, the total return delay of HR users will increase with the increase of T1 / T.
[0089] Fig.10 The present invention discloses the relationship between the total delay of HR users and the time proportion T1 / T under the file request coefficient δ. It is easy to find that the increase of factor T1 / T will lead to fewer and fewer resources available to HR users on the downlink backhaul link and the downlink access link, which means that the total delay of HR users will increase with the increase of T1 / T.
[0090] Fig.11 The present invention is a schematic diagram of the relationship between the total local execution delay of CS users and the time proportion T1 / T under the file request coefficient δ. It is not difficult to find that the increase of factor T1 / T means that CS users have higher and higher uplink data rates, and more and more CS users may tend to offload their computing tasks to the micro base station. Therefore, the total local computing delay of CS users will decrease with the increase of T1 / T. Similar to Figure 6 , the method AMND of the present invention and the traditional method ABCG achieve almost the same total local computation delay.
[0091] Fig.12 FIG. 1 is a schematic diagram showing the relationship between the total unloading delay of CS users and the time proportion T1 / T under the file request coefficient δ of the present invention. Fig.11 As revealed by the above, the number of local computing users may decrease with the increase of T1 / T, which means that the number of edge computing users will increase with it. Obviously, when the micro base station serves more CS users, they will have fewer computing resources available. Therefore, the total offloading delay of CS users may increase with the increase of T1 / T.
[0092] Fig.13 This is a schematic diagram of the relationship between the total delay of CS users and the time proportion T1 / T under the file request coefficient δ of the present invention. Fig.11 and Fig.12 From the performance scalar, it is not difficult to find that local computing plays a dominant role in the total computing latency trend of CS users. Therefore, the total latency of CS users will decrease with the increase of T1 / T.
Claims
1. A method for user association and resource allocation with minimum weighted delay in a MEC network, characterized in that: The following steps are involved: Step 1: divide the time and frequency resources for the mobile edge computing network, where the mobile edge computing network refers to a small cell network formed by multiple micro base stations equipped with mobile edge computing and cache servers; Step 2: First, the strongest channel association rule is used to select micro base stations in the mobile edge computing network for all users, including computing-sensitive users (CS users) and high-rate users (HR users). Then, the equal resource allocation principle is used to initialize the resource allocation amount. Then, the delay including access link delay, return link delay and computing delay is calculated. Then, the micro base stations associated with CS users are adjusted according to the delay. Finally, all users associated with a single micro base station are constructed into an alliance, and the alliance division of all alliances and users is recorded. Step 3: Create corresponding temporary alliances for all alliances, then select any two from all alliances and randomly select users from them for exchange. The exchanged alliances are used as new temporary alliances. If the exchanged temporary alliance meets the resource limit and rate constraint conditions, the list of the temporary alliance replaces the original alliance list and saves it. Otherwise, keep it as it is. Then determine whether the loop termination condition of step 3 is met. If it is met, execute step 4. Otherwise, execute step 3 again. Step 4: According to convex optimization theory, reallocate resources to minimize the weighted delay sum; Step 5, determine whether the loop termination condition of the entire method is met, if it is met, end the calculation process of this method, otherwise return to step 3; In step 2, the use of the strongest channel association rule to select a micro base station in an associated mobile edge computing network for all users including CS and HR users includes the following steps: In the data rate constraints Under this condition, any HR user k chooses to associate with the micro base station n that has the strongest channel gain for the user, where a is the frequency band division factor, 0≤a≤1; is the achievable rate of the downlink access link, is the achievable rate of the backhaul link; any CS user also chooses to associate with the micro base station with the strongest channel gain for the user; In step 2, initializing the resource allocation amount using the equal resource allocation principle includes the following steps: In the downlink access link and the downlink backhaul link, the initial resource allocation amounts β and η of the HR users associated with the micro base station are determined according to the equal bandwidth allocation, and the initial values are both "1 / the number of HR users served"; in the uplink access link, the initial resource allocation amount α of the CS users associated with the micro base station is determined according to the equal bandwidth allocation, and the initial value is "1 / the number of CS users served"; the edge computing server determines the initial resource allocation amount γ according to the equal computing resource allocation, and the value is "1 / the number of CS users served"; among them, the bandwidth resource allocation amount of the uplink access link is Downlink access link bandwidth resource allocation Bandwidth resource allocation for downlink backhaul link and computing resource allocation and are the sets of micro base stations, HR users, CS users and files, respectively. One channel transmits only one corresponding file, so the channel and the file use the same number; n, k, i are the sequence numbers of micro base stations, users and files, respectively; α nk is the uplink access bandwidth allocated by micro base station n to user k; β nki is the downlink access bandwidth allocated by micro base station n to user k on channel i; η nki is the downlink backhaul bandwidth allocated by micro base station n to user k on channel i; nk is the computing resource allocated by micro base station n to user k; In the step 2, calculating the delay including the access link delay, the return link delay and the calculation delay comprises the following steps: Calculate downlink access link delay Downlink backhaul link delay Uplink access link delay Edge computing latency Local means user local computing latency in β nki is the downlink access bandwidth allocated by micro base station n to user k on channel i; is the achievable rate of user k on the downlink access link of base station n; nki is the downlink backhaul bandwidth allocated by micro base station n to user k on channel i; is the achievable rate of base station n on the backhaul link; is the data rate of the uplink access link from CS user k to micro base station n; α nk is the uplink access bandwidth allocated by micro base station n to user k; is the achievable rate of user k on the uplink access link of base station n; nk is the computing resource allocated by micro base station n to user k; and are the data rates of the downlink access link and downlink backhaul link of HR user k on subchannel i of micro base station n, respectively; is the data rate of the uplink access link from CS user k to micro base station n; C k , and are the computing task of CS user k, i.e., the number of CPU cycles, the computing power of the edge computing server, i.e., the number of CPU cycles / second, and the local computing power of user k, i.e., the number of CPU cycles / second; M, With d k are the number of micro base stations in the macro cell, the size of file i, and the amount of data calculated by user k; and The denominator 3 in the formula indicates that in the uplink and downlink systems, adjacent macro cells use different spectrum resources; In the step 2, adjusting the micro base station associated with the CS user according to the delay includes the following steps: For any CS user, if its edge computing delay is greater than the local computing delay or its computing data volume is greater than the remaining storage space of the base station, the association between the CS user and the micro base station is removed and the user is allowed to complete the computing task locally. Otherwise, no adjustment is made. That is, when the CS user k meets the condition And its data volume d k When the remaining storage capacity of the cache server is exceeded, user k associated with micro base station n completes the computing task locally, where The local calculation delay for user k; In step 3, if the temporary alliance after the exchange meets the resource limit and constraint conditions, replacing the original alliance list with the temporary alliance list and saving includes the following steps: if and Meet the known spectrum resources, storage resources and computing resource constraints of micro base stations m and n, and meet the conditions Then use the temporary alliance to update the current alliance, that is and in means that the load is the cost, exist Middle, b ni With c ki is a known quantity, where b ni is the cache indication of micro base station n for file i, c ki is the demand indication of user k for file i. If base station n caches file i, then b ni =1, otherwise b ni = 0, if user k needs file i, then c ki =1, otherwise c ki =0; if HR user Then y nk =1, otherwise y nk =0,y nk Indicator variable indicating that HR user k is associated with micro base station n; if CS user Then x nk =1, otherwise x nk =0,x nk w is an indicator variable indicating that CS user k is associated with micro base station n; k is the weight of user k; From the perspective of , if base station n has cached file i required by HR user k, the user delay is Otherwise, the user needs to obtain the file through the backhaul link, which causes delays. If CS user k completes the computing task by the edge computing server of micro base station n, the user delay is Otherwise, users complete the computing task locally, which causes delays. The last updated user is divided into 2. The method according to claim 1, characterized in that: In step 1, dividing the time-frequency resources includes the following steps: The frequency band division factor a is pre-set, the uplink time accounts for T1 / T, and the downlink time accounts for T2 / T; wherein 0≤a≤1; the frequency band used by the uplink and downlink access links is aW, and the frequency band used by the uplink and downlink return links is (1-a)W, the time slices used by the uplink access link and the uplink return link account for T1 / T, and the time slices used by the downlink access link and the downlink return link account for T2 / T, wherein W is the system bandwidth, T, T1 and T2 are the channel coherence time, the uplink service time and the downlink service time respectively.
3. The method according to claim 1, characterized in that In step 2, building an alliance and dividing includes the following steps: Build user segments in is the initial alliance of micro base station n, consisting of all users associated with this base station; is the number of micro base stations; Represents a virtual base station, which alone constitutes an alliance whose members are composed of all users who complete computing tasks locally.
4. The method according to claim 1, characterized in that In step 3, corresponding temporary alliances are created for all alliances, and then two alliances are randomly selected from all alliances, and users in them are randomly selected for exchange. The exchanged alliances are used as new temporary alliances, including the following steps: Create a temporary alliance for any alliance. For any micro base station n, its temporary alliance in For the existing alliance of micro base stations n; By user Randomly select two alliances and if If empty, Randomly select user j from and if If empty, Randomly select user i from and if and If not empty, then from Randomly select user j from Randomly select the same user i from the same group and exchange the alliances of the two users, that is, and 5. The method according to claim 1, characterized in that In step 4, a closed-form calculation formula for resource allocation is obtained according to convex optimization theory, and resources are re-allocated to minimize the weighted delay sum, including the following steps: If c ki y nk =1, c ki (1-b ni )y nk =1 and x nk =1, then Otherwise, they are taken to be small enough to be ignored to facilitate algorithm design, where the auxiliary parameters [·] 1 Indicates a value less than 1; if user m needs file i, then c mi =1, otherwise c mi =0, c mi is the demand indication of user m for file i, which is a known quantity; if HR user Then y nm =1, otherwise y nm =0,y nm Indicator variable indicating that HR user m is associated with micro base station n; if CS user Then x nm =1, otherwise x nm =0,x nm An indicator variable indicating that CS user m is associated with micro base station n.
