Edge cloud server traffic offloading method, system, device and storage medium

By adopting the fast secondary authentication and service authentication priority cost adjustment method using blockchain technology in 5G-MEC edge cloud network, the problems of duplicate authentication delay and low-priority services tampering with high-priority resources are solved, and efficient terminal equipment traffic offloading is achieved.

CN115379581BActive Publication Date: 2025-07-29CHINA ELECTRIC POWER RESEARCH INSTITUTE CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210988996.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-17
Publication Date
2025-07-29
Estimated Expiration
2042-08-17

AI Technical Summary

Technical Problem

In 5G-MEC edge cloud network, the prior art has problems with increasing authentication delay caused by duplicate authentication, and lacks authentication for service authentication priority, resulting in low-priority services tampering with high-priority computing resources.

Method used

The fast secondary authentication method based on blockchain technology is adopted, and the terminal device traffic offloading method is used to obtain the terminal device's identification and business authentication priority information, and the terminal device traffic offloading method is used to obtain the terminal device's identification and business authentication cost adjustment.

Benefits of technology

It improves business authentication efficiency, avoids the problem of increasing delay in repeated authentication, and ensures that the computing resources of high-priority services are not tampered with by low-priority services, and is suitable for massive business processing in the power system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115379581B_ABST
    Figure CN115379581B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of power automation, and discloses a method, system, device and storage medium for traffic offloading of an edge cloud server. By obtaining a traffic offloading request of a terminal device, the identifier and service authentication priority information of the terminal device are obtained. The service authentication priority record information of the terminal device is searched in a preset blockchain network, and the service authentication of the terminal device is performed to obtain the service authentication result of the terminal device. When the service authentication result of the terminal device is passed, according to the service authentication priority information of the terminal device, a traffic offloading method based on service authentication priority cost adjustment is adopted to perform traffic offloading of the terminal device. The traffic offloading method of the edge cloud server of the present invention can effectively improve the service authentication efficiency, avoid the problem of increased authentication delay caused by repeated authentication, and avoid the problem that low-priority services tamper with the priority and then preempt high-priority computing resources during the traffic offloading process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of power automation, and relates to a method, system, device and storage medium for traffic offloading of an edge cloud server. Background Art

[0002] With the development of the power system, the smart grid will develop towards digitalization, networking and intelligence. The delay and reliability of the power communication network are the basis for the normal operation of services such as smart grid video monitoring, power consumption information collection and power grid status monitoring. The 5G communication network provides a basis for the transmission rate of power services. However, since data services in the 5G communication network need to be uploaded to the cloud computing center for service processing, there will be a problem of insufficient computing resources of the central server in the scenario of massive service processing, which will greatly affect the communication delay requirements of the services. The MEC (Multi-Access Edge Computing) edge cloud provides edge intelligent services nearby by deploying a cloud resource pool and a cloud platform on the edge side. Compared with the traditional 5G communication network, it can reduce the computing delay and transmission delay and relieve the overall network pressure. Therefore, by combining 5G communication technology with MEC edge cloud networking and applying 5G-MEC edge cloud to the power communication network architecture, powerful computing, storage and connection capabilities can be provided for power services. The 5G-MEC edge cloud network has the characteristic of decentralization. By offloading part of the computing traffic to the edge nodes, services and cloud computing functions are provided to user terminals nearby.

[0003] Currently, the 5G-MEC edge cloud traffic offloading scheme first needs to perform secondary authentication on the device to verify the relevant information of the device, and then select a traffic offloading server based on the information of the secondary authentication. The effectiveness and reliability of the authentication will affect the efficiency of traffic offloading. However, the situation of repeated secondary authentication will occur every time the device submits an access application, which will cause a great deal of authentication delay in the scenario of massive service processing. Moreover, there is a lack of authentication of service authentication priorities in the authentication process, and it is impossible to avoid the problem that low-priority services tamper with priorities to preempt the computing resources of high-priority services during traffic offloading, resulting in the inability to guarantee the offloading delay requirements of high-priority services. Summary of the Invention

[0004] An object of the present invention is to overcome the above-mentioned disadvantages of the prior art and provide a method, system, device and storage medium for traffic offloading of an edge cloud server.

[0005] To achieve the above object, the present invention adopts the following technical solutions:

[0006] In the first aspect of the present invention, a method for traffic offloading of an edge cloud server is provided, including:

[0007] Obtain the traffic offloading request of the terminal device, and based on the traffic offloading request of the terminal device, obtain the identifier of the terminal device and the service authentication priority information;

[0008] According to the identifier of the terminal device, search for the service authentication priority record information of the terminal device in the preset blockchain network, and perform service authentication on the terminal device based on the service authentication priority information and the service authentication priority record information to obtain the service authentication result of the terminal device;

[0009] When the service authentication result of the terminal device is passed, according to the service authentication priority information of the terminal device, adopt a traffic offloading method based on service authentication priority cost adjustment to perform traffic offloading on the terminal device.

[0010] Optionally, the service authentication priority record information of the terminal device is obtained by obtaining the preset service authentication priority identifier information of the terminal device, performing n times of Hash hash operations on the service authentication priority identifier information, and arranging the results of each Hash hash operation of the service authentication priority identifier information in the order of the operation times, where n is a preset constant;

[0011] The service authentication priority information of the terminal device is the result of the (n - i)-th Hash hash operation of the service authentication priority identifier information, where i is the number of times the terminal device performs service authentication of the terminal device.

[0012] Optionally, the performing service authentication on the terminal device based on the service authentication priority information and the service authentication priority record information to obtain the service authentication result of the terminal device includes:

[0013] Perform a Hash hash operation on the service authentication priority information of the terminal device to obtain a first authentication value;

[0014] Obtain the result of the (n - i + 1)-th Hash hash operation of the service authentication priority identifier information in the service authentication priority record information of the terminal device to obtain a second authentication value;

[0015] When the first authentication value is the same as the second authentication value, the service authentication result of the terminal device is passed; when the first authentication value is different from the second authentication value, the service authentication result of the terminal device is not passed.

[0016] Optionally, the preset blockchain network is stored in each edge cloud server;

[0017] Searching for the business authentication priority record information of the terminal device in a preset blockchain network according to the identifier of the terminal device, and performing business authentication on the terminal device according to the business authentication priority information and the business authentication priority record information of the terminal device to obtain the business authentication result of the terminal device includes:

[0018] Sending the identifier and business authentication priority information of the terminal device to each edge cloud server;

[0019] The identifier of the terminal device is used to trigger each edge cloud server to search for the business authentication priority record information of the terminal device in a preset blockchain network according to the identifier of the terminal device, and perform business authentication on the terminal device according to the business authentication priority information and the business authentication priority record information of the terminal device, obtain the business authentication results of the terminal device on each edge cloud server and conduct blockchain network consensus, obtain the business authentication result of the terminal device and give feedback;

[0020] Receiving the feedback business authentication result of the terminal device.

[0021] Optionally, the method for performing traffic offloading on the terminal device according to the business authentication priority information of the terminal device by using a traffic offloading method based on business authentication priority cost adjustment includes:

[0022] S11: Obtaining the utility values of offloading the data traffic of each terminal device that has not undergone data traffic offloading to each edge cloud server;

[0023] S12: Traversing each terminal device that has not undergone data traffic offloading, and taking the current terminal device as the terminal device to be offloaded corresponding to the edge cloud server with the maximum utility value among the utility values of offloading the data traffic of the current terminal device to each edge cloud server;

[0024] S13: Traversing each edge cloud server, selecting the edge cloud servers whose number of terminal devices to be offloaded does not exceed the current limit of the number of terminal device offloads of the current edge cloud server to obtain each target edge cloud server, and offloading the data traffic of the terminal devices to be offloaded of each target edge cloud server to each target edge cloud server;

[0025] S14: According to the business authentication priority information of the terminal device, obtaining the business authentication priorities of each terminal device that has not undergone data traffic offloading, and reducing the utility values of offloading the data traffic of each terminal device that has not undergone data traffic offloading to each edge cloud server according to the business authentication priorities of each terminal device that has not undergone data traffic offloading, and the higher the business authentication priority of the terminal device, the lower the reduction amount of the utility value;

[0026] S15: Repeating S12 to S14 until the number of terminal devices that have not undergone data traffic offloading is 0.

[0027] Optionally, obtaining the utility value of offloading the data traffic of each terminal device that has not performed data traffic offloading to each edge cloud server includes:

[0028] Obtaining the offloading delay and selection cost of offloading the data traffic of each terminal device that has not performed data traffic offloading to each edge cloud server;

[0029] According to the offloading delay and selection cost of offloading the data traffic of each terminal device that has not performed data traffic offloading to each edge cloud server, the utility value of offloading the data traffic of each terminal device that has not performed data traffic offloading to each edge cloud server is obtained by the following method:

[0030] When the offloading delay of offloading the data traffic of the current terminal device to the current edge cloud server is greater than the offloading delay limit value of the data traffic of the current terminal device, the utility value of offloading the data traffic of the current terminal device to the current edge cloud server is negative infinity;

[0031] When the offloading delay of offloading the data traffic of the current terminal device to the current edge cloud server is not greater than the offloading delay limit value of the data traffic of the current terminal device, the utility value of offloading the data traffic of the current terminal device to the current edge cloud server is the difference between the reciprocal of the offloading delay of offloading the data traffic of the current terminal device to the current edge cloud server and the selection cost of offloading the data traffic of the current terminal device to the current edge cloud server;

[0032] Reducing the utility value of offloading the data traffic of each terminal device that has not performed data traffic offloading to each edge cloud server according to the service authentication priority of each terminal device that has not performed data traffic offloading includes:

[0033] According to the service authentication priority of each terminal device that has not performed data traffic offloading, the selection cost of offloading the data traffic of each terminal device that has not performed data traffic offloading to each edge cloud server is increased, and the higher the service authentication priority of the terminal device, the lower the increase amount of the selection cost.

[0034] In a second aspect of the present invention, an edge cloud server traffic offloading system is provided, including:

[0035] An information acquisition module, configured to acquire a traffic offloading request of a terminal device, and obtain an identifier and service authentication priority information of the terminal device according to the traffic offloading request of the terminal device;

[0036] A service authentication module, configured to find the service authentication priority record information of a terminal device in a preset blockchain network according to the identifier of the terminal device, and perform service authentication on the terminal device according to the service authentication priority information and the service authentication priority record information of the terminal device to obtain a service authentication result of the terminal device;

[0037] A traffic offloading module, configured to, when the service authentication result of the terminal device is passed, perform traffic offloading on the terminal device by using a traffic offloading method based on service authentication priority cost adjustment according to the service authentication priority information of the terminal device.

[0038] Optionally, the traffic offloading module is specifically configured to:

[0039] When the service authentication result of the terminal device is passed, perform the following steps:

[0040] S11: Obtain the utility values of offloading the data traffic of each terminal device without data traffic offloading to each edge cloud server;

[0041] S12: Traverse each terminal device without data traffic offloading, and use the current terminal device as the terminal device to be offloaded corresponding to the edge cloud server with the maximum utility value among the utility values of offloading the data traffic of the current terminal device to each edge cloud server;

[0042] S13: Traverse each edge cloud server, select the edge cloud servers whose number of terminal devices to be offloaded of the current edge cloud server does not exceed the current limit value of the terminal device offloading quantity of the current edge cloud server to obtain each target edge cloud server, and offload the data traffic of the terminal devices to be offloaded of each target edge cloud server to each target edge cloud server;

[0043] S14: According to the service authentication priority information of the terminal device, obtain the service authentication priorities of each terminal device without data traffic offloading, and reduce the utility values of offloading the data traffic of each terminal device without data traffic offloading to each edge cloud server according to the service authentication priorities of each terminal device without data traffic offloading, and the higher the service authentication priority of the terminal device, the lower the reduction amount of the utility value;

[0044] S15: Repeat S12 to S14 until the number of terminal devices without data traffic offloading is 0.

[0045] In a third aspect of the present invention, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the above-mentioned edge cloud server traffic offloading method are implemented.

[0046] In the fourth aspect of the present invention, there is provided a computer-readable storage medium storing a computer program, which when executed by a processor, implements the steps of the above-mentioned edge cloud server traffic offloading method.

[0047] Compared with the prior art, the present invention has the following beneficial effects:

[0048] The edge cloud server traffic offloading method of the present invention obtains the identification and service authentication priority information of the terminal device, then searches for the service authentication priority record information of the terminal device in the preset blockchain network according to the identification of the terminal device, and realizes the service authentication of the terminal device through the service authentication priority information and service authentication priority record information of the terminal device, that is, realizes the fast secondary authentication of the terminal device, improves the service authentication efficiency, and compared with the traditional secondary authentication method, avoids the problem of increased authentication delay caused by repeated authentication, and is applicable to the current situation of massive service processing in the power system. At the same time, based on the service authentication priority record information of the terminal device, the priority of the service corresponding to the terminal device can also be accurately determined, and then the traffic offloading method based on the service authentication priority cost adjustment is used to offload the traffic of the terminal device, avoiding the problem that low-priority services tamper with the priority to preempt high-priority computing resources in the subsequent traffic offloading process. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 It is a flowchart of the edge cloud server traffic offloading method according to an embodiment of the present invention.

[0050] Figure 2 It is a schematic diagram of the power 5G-MEC edge cloud network architecture according to an embodiment of the present invention.

[0051] Figure 3 It is a schematic diagram of the fast secondary authentication process of the terminal device according to an embodiment of the present invention.

[0052] Figure 4 It is a flowchart of writing the service authentication priority information into the blockchain network according to an embodiment of the present invention.

[0053] Figure 5 It is a flowchart of verifying whether the service authentication priority is tampered with according to an embodiment of the present invention.

[0054] Figure 6 It is a flowchart of the traffic offloading method based on the service authentication priority according to an embodiment of the present invention.

[0055] Figure 7 It is a comparison diagram of the offloading delay of different methods for different priority services according to an embodiment of the present invention.

[0056] Figure 8Schematic diagram of the proportion of different priority services in the embodiments of the present invention for selecting MEC edge cloud servers.

[0057] Figure 9 Block diagram of the edge cloud server traffic offloading system in the embodiments of the present invention. Detailed implementation manners

[0058] In order to enable those skilled in the art of the present technology to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0059] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments of the present invention described here can be implemented in an order different from those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0060] As introduced in the background art, currently, for the 5G-MEC edge cloud traffic offloading solution, it is first necessary to perform secondary authentication on the device to verify the relevant information of the device, and then select the traffic offloading server based on the information of the secondary authentication. The effectiveness and reliability of the authentication will affect the efficiency of traffic offloading. However, the situation of repeated secondary authentication will occur every time the device submits an access request, which will cause a great authentication delay in the scenario of massive service processing. Moreover, there is a lack of authentication for the service authentication priority in the authentication process, and it is impossible to avoid the problem that the low-priority service tampers with the priority to preempt the computing resources of the high-priority service during traffic offloading, resulting in an increase in the offloading delay.

[0061] To address the above problems, an embodiment of the present invention provides a method for traffic offloading of an edge cloud server. By obtaining a traffic offloading request from a terminal device, the identity of the terminal device and service authentication priority information are obtained. The service authentication priority record information of the terminal device is searched in a preset blockchain network, and service authentication of the terminal device is performed to obtain a service authentication result of the terminal device. When the service authentication result of the terminal device is passed, based on the service authentication priority information of the terminal device, a traffic offloading method based on service authentication priority cost adjustment is used to perform traffic offloading of the terminal device. When the service authentication result of the terminal device is not passed, the traffic offloading request of the terminal device is rejected. The service authentication efficiency is improved, the problem of increased authentication delay caused by repeated authentication is avoided, and the problem of low-priority services tampering with priorities and preempting high-priority computing resources during the traffic offloading process is avoided. The following further describes the present invention in detail with reference to the accompanying drawings:

[0062] Referring to Figure 1 , in an embodiment of the present invention, a method for traffic offloading of an edge cloud server is provided, and a fast secondary authentication method based on blockchain technology is designed. An edge authentication blockchain network is built using an edge cloud server, and the service authentication priority record information updated in real time is stored in the blockchain network. For non-first application terminal devices, the service authentication priority record information stored in the blockchain network is used to perform service authentication on them, avoiding secondary authentication and improving service authentication efficiency to solve the problem of increased authentication delay caused by repeated authentication.

[0063] Specifically, the method for traffic offloading of the edge cloud server includes the following steps:

[0064] S1: Obtain a traffic offloading request from a terminal device, and based on the traffic offloading request of the terminal device, obtain the identity of the terminal device and service authentication priority information.

[0065] S2: According to the identity of the terminal device, search for the service authentication priority record information of the terminal device in a preset blockchain network, and perform service authentication of the terminal device based on the service authentication priority information and service authentication priority record information of the terminal device to obtain a service authentication result of the terminal device.

[0066] S3: When the service authentication result of the terminal device is passed, based on the service authentication priority information of the terminal device, use a traffic offloading method based on service authentication priority cost adjustment to perform traffic offloading of the terminal device.

[0067] In summary, for the method for offloading traffic of the edge cloud server of the present invention, by obtaining the identifier and service authentication priority information of the terminal device, then according to the identifier of the terminal device, searching for the service authentication priority record information of the terminal device in the preset blockchain network, and through the service authentication priority information and service authentication priority record information of the terminal device, realizing the service authentication of the terminal device, that is, realizing the fast secondary authentication of the terminal device, improving the service authentication efficiency. Compared with the traditional secondary authentication method, it avoids the problem of increased authentication delay caused by repeated authentication, and is applicable to the current situation of massive service processing in the power system. At the same time, based on the service authentication priority record information of the terminal device, the priority of the service corresponding to the terminal device can also be accurately determined, and then a traffic offloading method based on service authentication priority cost adjustment is adopted to offload the traffic of the terminal device, avoiding the problem that low-priority services tamper with the priority to preempt high-priority computing resources in the subsequent traffic offloading process.

[0068] In a possible implementation manner, referring to Figure 2 , an application scenario of the method for offloading traffic of the edge cloud server of the present invention is shown, that is, the power 5G-MEC edge cloud network architecture.

[0069] Specifically, the power 5G-MEC edge cloud network architecture mainly includes a device layer, an access layer, an edge cloud layer, and a core layer. Among them, the device layer is mainly composed of various power service devices, which are connected to the 5G base station to realize power service data collection and upload and migrate local computing tasks. The access layer uses the 5G network to provide communication access services for the access layer devices. The core layer uses the policy formulation function of the 5G core network SMF (Session Management Function) and the data distribution and diversion function of the UPF (User Plane Function) network element to realize traffic offloading strategy planning. The UDM (Unified Data Management) and AUSF (Authentication Server Function) are used to complete the access authentication of the fast secondary authentication method of the terminal based on blockchain technology, and the AAA (Authentication, Authorization, Accounting) server is used to complete the service authentication and authenticate the service authentication priority. The edge cloud layer is composed of several edge cloud servers, which provide data computing services. At the same time, a cluster composed of several edge servers jointly maintains a traceable and tamper-proof blockchain network for service authentication, and this blockchain network is used to store the service authentication priority record information of the terminal device.

[0070] Referring to Figure 3, which shows the method for offloading traffic of the edge cloud server of the present invention and the principle of the method for realizing the fast secondary authentication of the terminal device based on the blockchain technology. Based on the above-mentioned power 5G-MEC edge cloud network architecture, in the process other than the service authentication of the terminal device, it is the conventional process of authentication and access authentication of 5G communication at present. In terms of the service authentication of the terminal device, the power terminal interacts with the AAA server and the blockchain network, realizes service authentication based on the blockchain network, and the blockchain network is maintained through the MEC edge cloud server to ensure the normal progress of service authentication.

[0071] Specifically, the specific process of the method for realizing the fast secondary authentication of the terminal device based on the blockchain technology includes the following steps:

[0072] S101: The power terminal sends a traffic offloading request to the 5G core network, first completes the access authentication with the UDM and the AUSF, and establishes a secure ciphertext transmission channel between the power terminal and the AMF (Access and Mobility Management Function) after the authentication is passed.

[0073] S102: The power terminal establishes a PDU session (a PDU session refers to the process of communication between a user terminal UE and a data network DN. After the PDU session is established, a data transmission channel between the UE and the DN is established). The AAA server judges whether the power terminal is a device applying for the first time. If it is a device applying for the first time, step S103 is executed; if it is not a device applying for the first time, step S104 is executed.

[0074] S103: The AAA server obtains the identifier and service authentication priority information of the power terminal according to the traffic offloading request of the power terminal, generates a service authentication request for service authentication, judges whether the service authentication priority of the power terminal is tampered with. If no tampering behavior is verified, the service authentication priority information of the power terminal is written into the blockchain network, and step S105 is executed; if it is verified that the priority is tampered with, a security threat is sent and the traffic offloading is aborted.

[0075] S104: The AAA server forwards the service authentication request to the MEC edge cloud server. The MEC edge cloud server searches for and records the service information and device information of the device in the edge blockchain network it maintains, and uses the Hash operation to verify whether the service authentication priority is tampered with. If no tampering behavior is verified, step S105 is executed; if it is verified that the priority is tampered with, a security threat is sent to the core layer and the traffic offloading is aborted.

[0076] S105: If the secondary authentication is passed, send a message indicating successful authentication to the UPF (User Plane Function) and the power terminal. The UPF obtains the service authentication priority result.

[0077] In a possible implementation, the service authentication priority record information of the terminal device is obtained by acquiring the preset service authentication priority identification information of the terminal device, performing n times of Hash hash operations on the service authentication priority identification information, and arranging the results of each Hash hash operation of the service authentication priority identification information in the order of the operation times, where n is a preset constant; the service authentication priority information of the terminal device is the result of the (n - i)-th Hash hash operation of the service authentication priority identification information, where i is the number of times the terminal device performs service authentication of the terminal device. Among them, the service authentication priority identification information can be a random number.

[0078] Based on this, see Figure 4 , in the above step S103, the specific process of the AAA server writing the service authentication priority information of the power terminal into the blockchain network includes the following steps:

[0079] In this implementation, taking the generation of a Hash chain as an example, the power terminal selects a random number S UE , and then performs multiple Hash hash operations on it to transform an input of any length into an output of a fixed length through Hash operations, and arranges the results of each Hash operation in the order of the time stamp, that is, arranges them in the order of the operation times to form an identity Hash chain representing the power terminal, that is, the service authentication priority record information. The value of the last item of this Hash chain is h n (S UE ), and its output formula is as follows:

[0080] h n (S UE ) = h(h(h(...h(S UE ))...))

[0081] Among them, h(S UE ) is published as the public key and can also be used as the verification information of the service authentication priority information.

[0082] Perform the release of a new block in the blockchain network, release h n (S UE ) of the newly connected power terminal and assign a unique address ID UE as an identifier as its device information.

[0083] In a possible implementation manner, the business authentication of the terminal device according to the service authentication priority information and service authentication priority record information of the terminal device to obtain the service authentication result of the terminal device includes: performing a Hash hash operation on the service authentication priority information of the terminal device to obtain a first authentication value; obtaining the result of the (n - i + 1)-th Hash hash operation of the service authentication priority identification information in the service authentication priority record information of the terminal device to obtain a second authentication value; when the first authentication value is the same as the second authentication value, the service authentication result of the terminal device is passed; when the first authentication value is different from the second authentication value, the service authentication result of the terminal device is not passed.

[0084] Based on this, referring to Figure 5 , in the above step S104, the specific process of using the Hash operation to verify whether the service authentication priority is tampered with includes the following steps:

[0085] The service authentication priority information of the power terminal, that is, the Hash chain h, is attached to the service authentication request of the power terminal n-i (S UE ) item. The MEC edge cloud server performs a Hash operation on h n-i (S UE ) according to the Hash algorithm used by the power terminal to generate its own identity Hash chain to obtain a Hash value r. The specific process is shown in the following formula:

[0086] r = h n-i+1 (S UE ) = h(h n-i (S UE ))

[0087] Obtain the service authentication priority record information on the blockchain network. According to the terminal unique address ID UE , query the value R corresponding to the power terminal that contains h n-i+1 (S UE ). If r = R, the service authentication of the power terminal passes; if r ≠ R, the service authentication of the power terminal fails, and a security threat is sent and the traffic offloading is aborted.

[0088] In a possible implementation, the preset blockchain network is stored in each edge cloud server; the method of looking up the service authentication priority record information of the terminal device in the preset blockchain network according to the identifier of the terminal device, and performing service authentication on the terminal device according to the service authentication priority information and the service authentication priority record information to obtain the service authentication result of the terminal device includes: sending the identifier and service authentication priority information of the terminal device to each edge cloud server; the identifier of the terminal device is used to trigger each edge cloud server to look up the service authentication priority record information of the terminal device in the preset blockchain network according to the identifier of the terminal device, and perform service authentication on the terminal device according to the service authentication priority information and the service authentication priority record information to obtain the service authentication results of the terminal device on each edge cloud server and perform blockchain network consensus to obtain the service authentication result of the terminal device and feedback it; receiving the feedback service authentication result of the terminal device.

[0089] Specifically, using the MEC edge cloud server to build a blockchain network for service authentication can be well adapted to the current power 5G-MEC edge cloud network architecture, and realize the edge cloud server traffic offloading method of the present invention in the power 5G-MEC edge cloud network architecture with relatively low implementation cost and relatively simple implementation method, and realize the edge cloud processing of a large number of services in the power system.

[0090] In a possible implementation, the method of performing terminal device traffic offloading according to the service authentication priority information of the terminal device by using a traffic offloading method based on service authentication priority cost adjustment includes:

[0091] S11: Obtain the utility value of offloading the data traffic of each terminal device that has not undergone data traffic offloading to each edge cloud server.

[0092] S12: Traverse each terminal device that has not undergone data traffic offloading, and use the current terminal device as the terminal device to be offloaded corresponding to the edge cloud server with the maximum utility value among the utility values of offloading the data traffic of the current terminal device to each edge cloud server.

[0093] S13: Traverse each edge cloud server, select the edge cloud servers whose number of terminal devices to be offloaded does not exceed the current limit of the terminal device offloading quantity of the current edge cloud server to obtain each target edge cloud server, and offload the data traffic of the terminal devices to be offloaded of each target edge cloud server to each target edge cloud server.

[0094] S14: Obtain the service authentication priorities of each terminal device that has not undergone data traffic offloading according to the service authentication priority information of the terminal device, and based on the service authentication priorities of each terminal device that has not undergone data traffic offloading, reduce the utility value of offloading the data traffic of each terminal device that has not undergone data traffic offloading to each edge cloud server. Moreover, the higher the service authentication priority of the terminal device, the lower the reduction amount of the utility value.

[0095] S15: Repeat S12 - S14 until the number of terminal devices that have not undergone data traffic offloading is 0.

[0096] Specifically, based on the above - mentioned power 5G - MEC edge cloud network architecture, the process of the traffic offloading method based on service authentication priority cost adjustment in the edge cloud server traffic offloading method of the present invention is described in detail.

[0097] First, in the power 5G - MEC edge cloud network architecture, there are several power terminals within the coverage of the base stations in the access layer. After the power service data generated by each power terminal is transmitted to the base station, it needs to be further offloaded to the MEC edge cloud server for processing. Assume that one power terminal corresponds to one power service, and N power terminals transmit N power services to the base station. The power terminal set is represented as H = {H1,..., H n ,..., H N}. Assume that there are M MEC edge cloud servers, and their set is represented as S = {S1, S2,..., S m ,..., S M}. Each MEC edge cloud server is connected to the base station through an optical fiber to obtain power service data, and assume that each MEC edge cloud server can process q m power services simultaneously. Define the traffic offloading indication variable x n,m (t), where x n,m (t) = 1 indicates that the traffic of power terminal H n is offloaded to the MEC edge cloud server S m for calculation, otherwise x n,m (t) = 0.

[0098] Based on the way of connecting the base station and the MEC edge cloud server through an optical fiber, in this embodiment, a time - slot model is adopted, and the entire optimization time period is divided into T time slots. Define that within the t - th time slot, the data transmission rate of power terminal H n is expressed as:

[0099]

[0100] Among them, P n (t) represents the optical power when the base station transmits the data of power terminal H n ; Indicates the optical path gain between the base station and the MEC edge cloud server S m which is related to the length of the optical fiber link and the devices used; B n Indicates the transmission bandwidth; Indicates the spontaneous emission noise power spectral density between the base station and the MEC edge cloud server S m ; Γ represents the signal-to-noise ratio interval, which is related to the preset symbol error rate.

[0101] Assume that the time interval of optical fiber communication between the base station and the MEC edge cloud server is fixed, denoted as δ. Then, within the t-th time slot, the power terminal H n offloads the data volume U m (t) to the MEC edge cloud server S n,m is defined as min{Q n (t), δR n,m (t)}, where Q n (t) represents the maximum data processing volume of the MEC edge cloud server S m .

[0102] The transmission delay of offloading the data of the power terminal H n to the MEC edge cloud server S m is: For:

[0103]

[0104] Since the data volume after calculation is much smaller than the data volume transmitted from the base station to the MEC edge cloud server and can be ignored, the backhaul delay is not considered in this embodiment.

[0105] Assume that within the t-th time slot, the computing resource of the MEC edge cloud server S m for processing the power terminal H n is φ m,n (t), then the computing delay during its data processing is expressed as: where η n (t) represents the computing complexity of processing the data of the power terminal H n , that is, the CPU frequency required to calculate 1 bit of data.

[0106] In this embodiment, the total traffic offloading delay considered includes the transmission delay and the computing delay. Define the total delay of offloading the data traffic of the power terminal H n to the MEC edge cloud server S m within the t-th time slot as The expression is:

[0107] In this embodiment, the considered service authentication priority is determined by the fast secondary authentication method for terminal devices based on blockchain technology. Define the power terminal H according to the service authentication result n The service authentication priority of is ω n , for example, if the service authentication priority of power terminal H1 is higher than that of power terminal H2, then ω1 > ω2. Therefore, the problem of minimizing the weighted delay of traffic offloading is modeled as:

[0108]

[0109] At the same time, it is stipulated that within each time slot, the service data of each power terminal can only be offloaded to 1 MEC edge cloud server, and each MEC edge cloud server can process at most q m power services in each time slot, and the total delay of traffic offloading of power services needs to meet their service delay requirements.

[0110] For the problem of minimizing the weighted delay of traffic offloading modeled above, in this embodiment, the following solution method is provided:

[0111] First, define the selection cost of the data traffic offloading of power terminal H n to the MEC edge cloud server S m as p m,n (t), and initialize it to p m,n (t) = 0. Define the set of power terminals that have passed the service authentication and have not been selected to the MEC edge cloud server as Θ. Define the power terminal that sends a selection request to the MEC edge cloud server S m as the candidate terminal, and its set is represented as Ω m . At the same time, according to the service authentication priority authentication result in the fast secondary authentication, define the utility value of power terminal H n for the MEC edge cloud server S m as γ n,m (t), and initialize it to 0.

[0112] Among them, the utility value γ n,m (t) initializes the utility value γ of each power terminal for each MEC edge cloud server according to the service authentication priority determination result of the power terminal n,m (t). When the total offloading delay meets the service delay requirement, that is the utility value is updated to the difference between the reciprocal of the offloading delay and the server selection cost considering the service authentication priority; if the total delay does not meet the service delay requirement, the utility value is updated to negative infinity. Each power terminal constructs a utility list by sorting each MEC edge cloud server in descending order based on the utility value γ n,m (t).

[0113] In a possible implementation, obtaining the utility value of offloading the data traffic of each terminal device that has not undergone data traffic offloading to each edge cloud server includes: obtaining the offloading delay and selection cost of offloading the data traffic of each terminal device that has not undergone data traffic offloading to each edge cloud server; according to the offloading delay and selection cost of offloading the data traffic of each terminal device that has not undergone data traffic offloading to each edge cloud server, obtaining the utility value of offloading the data traffic of each terminal device that has not undergone data traffic offloading to each edge cloud server in the following manner: when the offloading delay of offloading the data traffic of the current terminal device to the current edge cloud server is greater than the data traffic offloading delay limit of the current terminal device, the utility value of offloading the data traffic of the current terminal device to the current edge cloud server is negative infinity; when the offloading delay of offloading the data traffic of the current terminal device to the current edge cloud server is not greater than the data traffic offloading delay limit of the current terminal device, the utility value of offloading the data traffic of the current terminal device to the current edge cloud server is the difference between the reciprocal of the offloading delay of offloading the data traffic of the current terminal device to the current edge cloud server and the selection cost of offloading the data traffic of the current terminal device to the current edge cloud server.

[0114] Optionally, improving the utility value of offloading the data traffic of each terminal device that has not undergone data traffic offloading to each edge cloud server according to the service authentication priority of each terminal device that has not undergone data traffic offloading includes: according to the service authentication priority of each terminal device that has not undergone data traffic offloading, reducing the selection cost of offloading the data traffic of each terminal device that has not undergone data traffic offloading to each edge cloud server, and the higher the service authentication priority of the terminal device, the lower the increase in the selection cost.

[0115] Based on this, in this implementation, the traffic offloading method based on service authentication priority solves the problem of server computing resource competition by reducing the server selection cost of high-priority service terminals, and realizes a stable mutual selection relationship between the terminal and the server. See Figure 6 , and its specific process is as follows:

[0116] 1) The power terminal selects the MEC edge cloud server: Each power terminal H n According to the utility list, sends a selection request to the MEC edge cloud server corresponding to the maximum utility value; the MEC edge cloud server that receives the selection request will add the corresponding power terminal H n to the candidate terminal set Ω m .

[0117] 2) If the number of requests received by the MEC edge cloud server S m is not more than q m , that is, Ω m ≤q m, then transfer the corresponding power terminal H n out of the terminal set Θ, and update Θ = Θ \ H n , and let x n,m (t) = 1; if the MEC edge cloud server S m receives a request quantity greater than q m , then transfer the power terminal that issues the traffic offloading request to the terminal set Θ, and at the same time increase the cost p m,n (t) of the power terminal to select the MEC edge cloud server. Among them, the increased part of the cost is inversely proportional to the service authentication priority of the power terminal, that is, the greater the service authentication priority, the less the cost of the power terminal to select the MEC edge cloud server increases.

[0118] 3) Update the utility list: Update the utility value according to the increased p m,n (t) of the power terminal to select the MEC edge cloud server, and update the utility list accordingly.

[0119] Repeat the above steps 1) to 3) until all power terminals complete server selection, that is the SMF forwards the results of the MEC edge cloud servers selected by each power terminal to the UPF, that is, the offloading policy results.

[0120] In a possible implementation manner, the edge cloud server traffic offloading method further includes: when the service authentication result of the terminal device fails, reject the traffic offloading request of the terminal device.

[0121] In this implementation manner, the massive power service processing scenario is fully considered. For the power service offloading problem, combined with the 5G-MEC technology, the service authentication priority is confirmed during the secondary authentication process. The competition between multiple services and the influence of the service authentication priority on the service traffic offloading between the base station and the MEC edge cloud server are fully considered. While ensuring the differentiated delay requirements of various power services, the total delay of the network is minimized, the priority sorting of services and the optimization of traffic offloading are realized, and the total delay is reduced while ensuring the differentiated delay requirements of various power services.

[0122] In a possible implementation manner, to further illustrate the technical effect of the edge cloud server traffic offloading method of the present invention, a simulation experiment is carried out, and the technical effect is reflected by the simulation results. The specific process is as follows:

[0123] In this simulation experiment, the power 5G-MEC edge cloud computing scenario is considered. There are 45 power terminals, 3 base stations and 12 MEC edge cloud servers in the scenario. The specific computing resource allocation is shown in Table 1.

[0124] Table 1

[0125] Server Number <![CDATA[S1]]> <![CDATA[S2]]> <![CDATA[S3]]> <![CDATA[S4]]> <![CDATA[S5]]> <![CDATA[S6]]> Computing Resources (GHz) 100 100 120 120 140 140 Server Number <![CDATA[S7]]> <![CDATA[S8]]> <![CDATA[S9]]> <![CDATA[S 10 > <![CDATA[S 11 > <![CDATA[S 12 > Computing Resources (GHz) 160 160 180 180 200 200

[0126] In this simulation experiment, three different priority services are considered, and the specific service settings are shown in Table 2:

[0127] Table 2

[0128] Service Type Priority Setting Service Data Volume Latency Constraint Number of Terminals Video Surveillance Service Low Priority [6,10] Mbit / slot 500 ms 15 Power Consumption Information Collection Medium Priority [4,6] Mbit / slot 250 ms 15 Power Grid Status Monitoring High Priority [2,4] Mbit / slot 140 ms 15

[0129] At the same time, the area length is set to 4000m, the area width is 3000m, the interval between base stations is set to 1000m, the interval between the MEC edge cloud server and the base station is set to 800m, and the power terminals are randomly distributed in the area. The remaining parameter settings are shown in Table 3:

[0130] Table 3

[0131]

[0132] At the same time, in this simulation experiment, two comparative traffic offloading methods are set for performance comparison and verification:

[0133] 1) The matching-based MEC traffic offloading algorithm (MMEC). This algorithm optimizes the traffic offloading delay through ascending price matching. However, due to the lack of authentication of service authentication priorities, there is a problem that low-priority services tamper with priorities to preempt the computing resources of high-priority services during traffic offloading.

[0134] 2) The priority-based MEC greedy task assignment algorithm (PMGTA). This algorithm, according to the delay requirements of services, uses the greedy algorithm to make each service select the traffic offloading strategy that is most beneficial to itself. However, due to the lack of authentication of service authentication priorities, there is a problem that low-priority services tamper with priorities to preempt the computing resources of high-priority services during traffic offloading.

[0135] See Figure 7 , which shows the comparison of offloading delays of different methods for different priority services. The delay situation of different priority services is the average value of the offloading delays of all services within that priority service. Compared with the MMEC algorithm and the PMGTA algorithm, the method of the present invention, through the service authentication priority authentication in the secondary authentication, avoids low-priority services tampering with priorities to preempt the computing resources of high-priority services. Therefore, the offloading delay requirements of medium-priority services and high-priority services can be fully guaranteed. MMEC and PMGTA do not have service authentication priority authentication, so they cannot avoid medium- and low-priority services tampering with priorities, resulting in medium- and low-priority services meeting the delay requirements while the delay requirements of high-priority services cannot be satisfied.

[0136] See Figure 8 which shows the method for offloading traffic of the edge cloud server of the present invention, aiming at the proportion of processing various priority services by different MEC edge cloud servers. It can be seen from the figure that the method for offloading traffic of the edge cloud server of the present invention can ensure that the server with more computing resources is selected according to the service authentication priority, and ensure the task offloading delay requirements of high-priority services.

[0137] The following is the device embodiment of the present invention, which can be used to execute the method embodiment of the present invention. For details not disclosed in the device embodiment, please refer to the method embodiment of the present invention.

[0138] See Figure 9 In another embodiment of the present invention, an edge cloud server traffic offloading system is provided, which can be used to implement the above-mentioned edge cloud server traffic offloading method. Specifically, the edge cloud server traffic offloading system includes an information acquisition module, a service authentication module, and a traffic offloading module.

[0139] Among them, the information acquisition module is used to obtain the traffic offloading request of the terminal device, and obtain the identifier and service authentication priority information of the terminal device according to the traffic offloading request of the terminal device; the service authentication module is used to find the service authentication priority record information of the terminal device in the preset blockchain network according to the identifier of the terminal device, and perform service authentication on the terminal device according to the service authentication priority information and service authentication priority record information of the terminal device to obtain the service authentication result of the terminal device; the traffic offloading module is used to, when the service authentication result of the terminal device is passed, perform traffic offloading of the terminal device according to the service authentication priority information of the terminal device by using a traffic offloading method based on service authentication priority cost adjustment.

[0140] In a possible implementation manner, the traffic offloading module is further used to reject the traffic offloading request of the terminal device when the service authentication result of the terminal device is not passed.

[0141] In a possible implementation manner, the service authentication priority record information of the terminal device is obtained by obtaining the preset service authentication priority identification information of the terminal device, performing n times of Hash hash operations on the service authentication priority identification information, and arranging the results of each Hash hash operation of the service authentication priority identification information in the order of the operation times, where n is a preset constant; the service authentication priority information of the terminal device is the result of the (n - i)-th Hash hash operation of the service authentication priority identification information, where i is the number of times the terminal device performs service authentication of the terminal device.

[0142] In a possible implementation manner, performing service authentication on the terminal device according to the service authentication priority information and service authentication priority record information of the terminal device, and obtaining the service authentication result of the terminal device includes: performing a Hash hash operation on the service authentication priority information of the terminal device to obtain a first authentication value; obtaining the result of the (n - i + 1)-th Hash hash operation of the service authentication priority identification information in the service authentication priority record information of the terminal device to obtain a second authentication value; when the first authentication value is the same as the second authentication value, the service authentication result of the terminal device is passed; when the first authentication value is different from the second authentication value, the service authentication result of the terminal device is not passed.

[0143] In a possible implementation manner, the preset blockchain network is stored in each edge cloud server; searching for the service authentication priority record information of the terminal device in the preset blockchain network according to the identifier of the terminal device, and performing service authentication on the terminal device according to the service authentication priority information and service authentication priority record information of the terminal device, and obtaining the service authentication result of the terminal device includes: sending the identifier and service authentication priority information of the terminal device to each edge cloud server; the identifier of the terminal device is used to trigger each edge cloud server to search for the service authentication priority record information of the terminal device in the preset blockchain network according to the identifier of the terminal device, and perform service authentication on the terminal device according to the service authentication priority information and service authentication priority record information of the terminal device, obtain the service authentication results of the terminal device for each edge cloud server and perform blockchain network consensus to obtain the service authentication result of the terminal device and feedback; receiving the feedback service authentication result of the terminal device.

[0144] In a possible implementation, the traffic offloading module is specifically configured to: when the service authentication result of the terminal device is passed, perform the following steps: S11: Obtain the utility value of offloading the data traffic of each terminal device that has not undergone data traffic offloading to each edge cloud server; S12: Traverse each terminal device that has not undergone data traffic offloading, and use the current terminal device as the terminal device to be offloaded corresponding to the edge cloud server with the maximum utility value among the utility values of offloading the data traffic of the current terminal device to each edge cloud server; S13: Traverse each edge cloud server, select the edge cloud servers whose number of terminal devices to be offloaded does not exceed the current limit of the terminal device offloading quantity of the current edge cloud server, obtain each target edge cloud server, and offload the data traffic of the terminal devices to be offloaded of each target edge cloud server to each target edge cloud server; S14: According to the service authentication priority information of the terminal device, obtain the service authentication priority of each terminal device that has not undergone data traffic offloading, and according to the service authentication priority of each terminal device that has not undergone data traffic offloading, reduce the utility value of offloading the data traffic of each terminal device that has not undergone data traffic offloading to each edge cloud server, and the higher the service authentication priority of the terminal device, the lower the reduction amount of the utility value; S15: Repeat S12 to S14 until the number of terminal devices that have not undergone data traffic offloading is 0.

[0145] In a possible implementation, obtaining the utility value of offloading the data traffic of each terminal device that has not undergone data traffic offloading to each edge cloud server includes: obtaining the offloading delay and selection cost of offloading the data traffic of each terminal device that has not undergone data traffic offloading to each edge cloud server; according to the offloading delay and selection cost of offloading the data traffic of each terminal device that has not undergone data traffic offloading to each edge cloud server, obtain the utility value of offloading the data traffic of each terminal device that has not undergone data traffic offloading to each edge cloud server through the following method: when the offloading delay of offloading the data traffic of the current terminal device to the current edge cloud server is greater than the offloading delay limit value of the current terminal device, the utility value of offloading the data traffic of the current terminal device to the current edge cloud server is negative infinity; when the offloading delay of offloading the data traffic of the current terminal device to the current edge cloud server is not greater than the offloading delay limit value of the current terminal device, the utility value of offloading the data traffic of the current terminal device to the current edge cloud server is the difference between the reciprocal of the offloading delay of offloading the data traffic of the current terminal device to the current edge cloud server and the selection cost of offloading the data traffic of the current terminal device to the current edge cloud server.

[0146] In a possible implementation manner, enhancing the utility value of offloading the data traffic of each terminal device that has not undergone data traffic offloading to each edge cloud server according to the service authentication priorities of the terminal devices that have not undergone data traffic offloading includes: according to the service authentication priorities of the terminal devices that have not undergone data traffic offloading, enhancing the selection cost of offloading the data traffic of the terminal devices that have not undergone data traffic offloading to each edge cloud server, and the higher the service authentication priority of the terminal device, the lower the increase in the selection cost.

[0147] All relevant content of each step involved in the embodiments of the foregoing edge cloud server traffic offloading method can be cited in the function description of the corresponding functional modules of the edge cloud server traffic offloading system in the embodiments of the present invention, and will not be elaborated herein.

[0148] The division of modules in the embodiments of the present invention is illustrative, and is only a logical function division. In actual implementation, there may be other division methods. In addition, in each embodiment of the present invention, the functional modules can be integrated in a processor, or can exist separately physically, or two or more modules can be integrated in one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules.

[0149] In another embodiment of the present invention, a computer device is provided. The computer device includes a processor and a memory. The memory is used to store a computer program. The computer program includes program instructions. The processor is used to execute the program instructions stored in the computer storage medium. The processor may be a Central Processing Unit (CPU), or may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, and is suitable for implementing one or more instructions. Specifically, it is suitable for loading and executing one or more instructions in the computer storage medium to implement the corresponding method flow or corresponding function. The processor described in the embodiments of the present invention can be used for the operation of the edge cloud server traffic offloading method.

[0150] In another embodiment of the present invention, the present invention further provides a storage medium, specifically a computer-readable storage medium (Memory). The computer-readable storage medium is a memory device in a computer device, used to store programs and data. It can be understood that the computer-readable storage medium here can include both the built-in storage medium in the computer device and, of course, the extended storage medium supported by the computer device. The computer-readable storage medium provides a storage space, and the operating system of the terminal is stored in this storage space. Moreover, one or more instructions suitable for being loaded and executed by the processor are stored in this storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. One or more instructions stored in the computer-readable storage medium can be loaded and executed by the processor to implement the corresponding steps of the method for offloading traffic of the edge cloud server in the above embodiments.

[0151] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program codes.

[0152] The present invention is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0153] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the functions in Figure 1 one flow or multiple flows and / or blocksFigure 1 The functions specified in one or more boxes.

[0154] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process. Thus, the instructions executed on the computer or other programmable device provide for implementing the steps of the functions specified in one Figure 1 process or multiple processes and / or boxes Figure 1 or more boxes.

[0155] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications or equivalent replacements can still be made to the specific implementation manners of the present invention. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention shall be covered by the protection scope of the claims of the present invention.

Claims

1. A method for traffic offloading of an edge cloud server, characterized in that, Including: Obtain the traffic offloading request of the terminal device, and based on the traffic offloading request of the terminal device, obtain the identifier of the terminal device and the service authentication priority information; According to the identifier of the terminal device, search for the service authentication priority record information of the terminal device in the preset blockchain network, and perform service authentication on the terminal device based on the service authentication priority information and the service authentication priority record information of the terminal device to obtain the service authentication result of the terminal device; When the service authentication result of the terminal device is passed, based on the service authentication priority information of the terminal device, adopt a traffic offloading method based on service authentication priority cost adjustment to perform traffic offloading on the terminal device; The adopting a traffic offloading method based on service authentication priority cost adjustment to perform traffic offloading on the terminal device according to the service authentication priority information of the terminal device includes: S11: Obtain the utility value of offloading the data traffic of each terminal device that has not performed data traffic offloading to each edge cloud server; S12: Traverse each terminal device that has not performed data traffic offloading, and use the current terminal device as the terminal device to be offloaded corresponding to the edge cloud server with the maximum utility value among the utility values of offloading the data traffic of the current terminal device to each edge cloud server; S13: Traverse each edge cloud server, select the edge cloud servers whose number of terminal devices to be offloaded of the current edge cloud server does not exceed the current limit value of the terminal device offloading quantity of the current edge cloud server to obtain each target edge cloud server, and offload the data traffic of the terminal devices to be offloaded of each target edge cloud server to each target edge cloud server; S14: According to the service authentication priority information of the terminal device, obtain the service authentication priority of each terminal device that has not performed data traffic offloading, and based on the service authentication priority of each terminal device that has not performed data traffic offloading, reduce the utility value of offloading the data traffic of each terminal device that has not performed data traffic offloading to each edge cloud server, and the higher the service authentication priority of the terminal device, the lower the reduction amount of the utility value; S15: Repeat S12 to S14 until the number of terminal devices that have not performed data traffic offloading is 0.

2. The method for offloading traffic of an edge cloud server according to claim 1, wherein The service authentication priority record information of the terminal device is obtained by obtaining the preset service authentication priority identification information of the terminal device, performing n Hash hash operations on the service authentication priority identification information, and arranging the results of each Hash hash operation of the service authentication priority identification information in the order of the operation times, where n is a preset constant; The service authentication priority information of the terminal device is the result of the (n - i)-th Hash hash operation of the service authentication priority identification information, where i is the number of times the terminal device performs service authentication of the terminal device.

3. The edge cloud server traffic offloading method according to claim 2, wherein The performing service authentication on the terminal device based on the service authentication priority information and the service authentication priority record information of the terminal device to obtain the service authentication result of the terminal device includes: Perform a Hash hash operation on the service authentication priority information of the terminal device to obtain a first authentication value; Obtain the result of the (n - i + 1)-th Hash hash operation on the service authentication priority identification information in the service authentication priority record information of the terminal device to obtain a second authentication value; When the first authentication value is the same as the second authentication value, the service authentication result of the terminal device is passed; when the first authentication value is different from the second authentication value, the service authentication result of the terminal device is not passed.

4. The method for offloading the edge cloud server traffic according to claim 1, wherein The preset blockchain network is stored in each edge cloud server; The steps of finding the service authentication priority record information of the terminal device in the preset blockchain network according to the identifier of the terminal device, and performing service authentication of the terminal device according to the service authentication priority information and the service authentication priority record information of the terminal device to obtain the service authentication result of the terminal device include: Send the identifier and service authentication priority information of the terminal device to each edge cloud server; The identifier of the terminal device is used to trigger each edge cloud server to find the service authentication priority record information of the terminal device in the preset blockchain network according to the identifier of the terminal device, and perform service authentication of the terminal device according to the service authentication priority information and the service authentication priority record information of the terminal device, obtain the service authentication results of the terminal device on each edge cloud server and perform blockchain network consensus to obtain the service authentication result of the terminal device and feedback it; Receive the feedback service authentication result of the terminal device.

5. The method for offloading traffic of an edge cloud server according to claim 1, wherein The steps of obtaining the utility value of offloading the data traffic of each terminal device that has not performed data traffic offloading to each edge cloud server include: Obtain the offloading delay and selection cost of offloading the data traffic of each terminal device that has not performed data traffic offloading to each edge cloud server; According to the offloading delay and selection cost of offloading the data traffic of each terminal device that has not performed data traffic offloading to each edge cloud server, obtain the utility value of offloading the data traffic of each terminal device that has not performed data traffic offloading to each edge cloud server in the following manner: When the offloading delay of offloading the data traffic of the current terminal device to the current edge cloud server is greater than the data traffic offloading delay limit value of the current terminal device, the utility value of offloading the data traffic of the current terminal device to the current edge cloud server is negative infinity; When the offloading delay of offloading the data traffic of the current terminal device to the current edge cloud server is not greater than the data traffic offloading delay limit value of the current terminal device, the utility value of offloading the data traffic of the current terminal device to the current edge cloud server is the difference between the reciprocal of the offloading delay of offloading the data traffic of the current terminal device to the current edge cloud server and the selection cost of offloading the data traffic of the current terminal device to the current edge cloud server; The steps of reducing the utility value of offloading the data traffic of each terminal device that has not performed data traffic offloading to each edge cloud server according to the service authentication priority of each terminal device that has not performed data traffic offloading include: According to the service authentication priority of each terminal device that has not performed data traffic offloading, increase the selection cost of offloading the data traffic of each terminal device that has not performed data traffic offloading to each edge cloud server, and the higher the service authentication priority of the terminal device, the lower the increase in the selection cost.

6. An edge cloud server traffic offloading system, characterized in that, Including: An information acquisition module, configured to acquire a traffic offloading request of a terminal device, and obtain an identifier of the terminal device and service authentication priority information according to the traffic offloading request of the terminal device; A service authentication module, configured to search for service authentication priority record information of the terminal device in a preset blockchain network according to the identifier of the terminal device, and perform service authentication of the terminal device according to the service authentication priority information and the service authentication priority record information of the terminal device to obtain a service authentication result of the terminal device; A traffic offloading module, configured to, when the service authentication result of the terminal device is passed, perform terminal device traffic offloading by using a traffic offloading method based on service authentication priority cost adjustment according to the service authentication priority information of the terminal device; Specifically, the traffic offloading module is configured to: When the service authentication result of the terminal device is passed, perform the following steps: S11: Obtain the utility values of offloading the data traffic of each terminal device that has not performed data traffic offloading to each edge cloud server; S12: Traverse each terminal device that has not performed data traffic offloading, and use the current terminal device as the terminal device to be offloaded corresponding to the edge cloud server with the maximum utility value among the utility values of offloading the data traffic of the current terminal device to each edge cloud server; S13: Traverse each edge cloud server, select the edge cloud servers whose number of terminal devices to be offloaded does not exceed the current limit of the terminal device offloading quantity of the current edge cloud server to obtain each target edge cloud server, and offload the data traffic of the terminal devices to be offloaded of each target edge cloud server to each target edge cloud server; S14: According to the service authentication priority information of the terminal device, obtain the service authentication priorities of each terminal device that has not performed data traffic offloading, and reduce the utility values of offloading the data traffic of each terminal device that has not performed data traffic offloading to each edge cloud server according to the service authentication priorities of each terminal device that has not performed data traffic offloading, and the higher the service authentication priority of the terminal device, the lower the reduction amount of the utility value; S15: Repeat S12 to S14 until the number of terminal devices that have not performed data traffic offloading is 0.

7. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, the steps of the edge cloud server traffic offloading method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, the steps of the edge cloud server traffic offloading method according to any one of claims 1 to 5 are implemented.