A method and device for service network unloading by service
By deploying data processing unit container network interfaces and proxy components in the Kubernetes cluster, the problem that the centralized service grid model cannot support large-scale cloud network scenarios is solved, and fine-grained management and efficient traffic processing of each service are achieved. Improved service quality.
Patent Information
- Application Number
- CN202311264274.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-09-27
AI Technical Summary
The existing centralized service grid model cannot support large-scale cloud network scenarios, and the proxy component is oriented to the entire cluster, and the granularity is too coarse, resulting in low service quality.
Install and deploy the data processing unit container network interface in the Kubernetes cluster, collect the service IP and the cluster basic unit IP, set up the rule table and send it to the protocol stack, start the proxy component for each service according to the rule table, and the client accesses the specific service IP When, the traffic is sent to the corresponding proxy component for processing.
Support large-scale cloud network scenarios, refine the granularity, deploy agent components for each service, adjust basic resources, and provide a better business experience, especially for high-priority services or users.
Smart Images

Figure CN117176819B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network technology, and in particular to a method and device for service network unloading by service. Background Art
[0002] Service Mesh is an infrastructure layer for communication between cloud-native microservices. It is responsible for network communication between microservices and maintains connections between them. In current microservice systems, service meshes mostly adopt the mode of deploying sidecars or centralized service meshes on the host side.
[0003] like Figure 1 As shown in the figure, the service mesh initially adopted the mode of deploying sidecars on the host side. A sidecar needs to be configured for each microservice to extract the network to make service development more convenient and simple. However, as a sidecar, the service mesh will occupy a large amount of resources on the host side, including memory, CPU, etc., which compresses the number of deployable services and greatly reduces the latency and traffic processing efficiency of microservices.
[0004] Based on the defects of the sidecar deployment mode, a centralized service mesh mode is proposed. In this mode, all microservices share a service mesh, which can greatly reduce host resources and improve some latency and efficiency. At the same time, considering that the service mesh can provide rich traffic management, but it is at the expense of latency, it cannot be applied to scenarios such as finance and banking that require extremely low latency. Therefore, the relevant industry fields have also derived centralized service meshes, which further unload the service mesh to hardware for acceleration. The service mesh is centrally unloaded to the data processing unit (DPU), and the proxy component (Envoy) is sunk from the host side to the DPU, which is responsible for the network communication between microservices on the host side and the traffic control in and out of the microservices. The proxy component can serve all services on the host side without occupying the resources on the host side, increasing the number of microservice deployments on the host side and the resource utilization of the host side. More importantly, the traffic can be distributed to a microservice on the host side on the DPU, or forwarded to other devices, without being sent to the host side, thereby greatly improving network latency and forwarding efficiency. However, in this model, all service traffic processing is centralized in one Envoy. When the business scale continues to increase, Envoy's processing capacity will become a forwarding bottleneck and cannot support large bandwidth traffic. At the same time, a centralized Envoy faces the entire cluster and is too coarse-grained to provide differentiated services such as high bandwidth and high network speed for a certain service or a paying user. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a method and device for unloading a service network by service, so as to eliminate or improve one or more defects existing in the prior art, solve the problem that the existing centralized service grid model cannot support large-scale cloud network scenarios, and that a proxy component faces the entire cluster and has too coarse granularity, resulting in low service quality.
[0006] In one aspect, the present invention provides a method for service network unloading by service, characterized in that it comprises the following steps:
[0007] Install and deploy the data processing unit container network interface in the Kubernetes cluster;
[0008] The container network interface is used to collect the service IP of each service in the Kubernetes cluster and the corresponding cluster basic unit IP; a rule table is set according to the service IP and the cluster basic unit IP, and the rule table is sent to the protocol stack rule table of the data processing unit;
[0009] The data processing unit starts a proxy component for each service according to the rules in the rule table;
[0010] The client accesses a specific service IP. When the access request reaches the data processing unit, the proxy component corresponding to the specific service is determined according to the rule table, and the traffic is sent to the proxy component for processing.
[0011] In some embodiments, the service IP of each service in the Kubernetes cluster and the corresponding cluster basic unit IP are collected using the container network interface, and the method further includes:
[0012] The service list and node list are queried through the application programming interface of the Kubernetes cluster to obtain the service IP of each service and the corresponding cluster basic unit IP.
[0013] In some embodiments, the rule table is sent to a protocol stack rule table of a data processing unit, and the method further comprises:
[0014] The issuing method uses one of a configuration management tool, a command line tool or an application programming interface to perform the issuing operation; after the rule table is issued, the rule table is verified.
[0015] In some embodiments, while installing and deploying the data processing unit container network interface in the Kubernetes cluster, the method further includes:
[0016] A client user interface is defined, and corresponding proxy component basic resources are configured according to service priorities; wherein, services with higher priorities are configured with more central processors, and services with lower priorities are configured with fewer central processors.
[0017] In some embodiments, before using a proxy component to process traffic of a specific service, the corresponding specific service is matched based on a quintuple of the traffic to send the traffic to the proxy component corresponding to the specific service; the quintuple includes a source IP address, a destination IP address, a source port number, a destination port number, and a transport layer protocol.
[0018] In some embodiments, according to the five-tuple matching of the traffic, the method further includes:
[0019] For traffic entering the data processing unit and destined for the service IP, directly match the corresponding service and send the traffic to the corresponding proxy component;
[0020] For traffic entering the data processing unit and destined for the cluster basic unit IP corresponding to the service, determine the service IP to which it belongs based on the cluster basic unit IP, and send the traffic to the corresponding proxy component;
[0021] When a service corresponds to multiple cluster basic units, a relationship correspondence table between the service IP and multiple cluster basic units is collected in the Kubernetes cluster through the container network interface, and the relationship correspondence table is sent to the data processing unit.
[0022] In some embodiments, when the specific service is deleted, the method further includes:
[0023] The container network interface sends a rule deletion message to the data processing unit, deletes the rule related to the specific service in the rule table, and deletes the proxy component corresponding to the specific service.
[0024] In some embodiments, the method further comprises:
[0025] Regularly monitoring whether the configuration path between the container network interface and the proxy component is valid to sense whether the proxy component fails;
[0026] When the proxy component fails, the container network interface temporarily transfers the traffic processed by the proxy component to other preset proxy components for processing.
[0027] On the other hand, the present invention provides a device for unloading a service network by service, comprising a processor and a memory, characterized in that computer instructions are stored in the memory, and the processor is used to execute the computer instructions stored in the memory, and when the computer instructions are executed by the processor, the device implements the steps of the method for unloading a service network by service as described in any one of the above-mentioned items.
[0028] On the other hand, the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for service network unloading by service as described in any one of the above.
[0029] The beneficial effects of the present invention are at least:
[0030] The present invention provides a method and device for unloading a service network by service, including: installing and deploying a data processing unit container network interface in a Kubernetes cluster; using the container network interface to collect the service IP of each service in the Kubernetes cluster and the corresponding cluster basic unit IP; setting a rule table according to the service IP and the cluster basic unit IP, and sending the rule table to the protocol stack rule table of the data processing unit; the data processing unit starts a proxy component for each service according to the rules in the rule table; the client accesses a specific service IP, and when the access request reaches the data processing unit, the proxy component corresponding to the specific service is determined according to the rule table, and the traffic is sent to the proxy component for processing. The method for unloading a service network by service provided by the present invention can support large-scale cloud network scenarios, deploy proxy components for each service, further divide the cluster range into individual services, and refine the granularity; further, it can adjust the corresponding basic resources for a certain service, preferentially and quickly calculate and divert its business traffic, and provide a targeted and better business experience for high-priority services or users.
[0031] Additional advantages, purposes, and features of the present invention will be described in part in the following description, and will become apparent to those skilled in the art after studying the following, or may be learned from the practice of the present invention. The purposes and other advantages of the present invention may be achieved and obtained by the structures specifically indicated in the specification and the accompanying drawings.
[0032] Those skilled in the art will appreciate that the objectives and advantages that can be achieved with the present invention are not limited to the above specific description, and the above and other objectives that can be achieved by the present invention will be more clearly understood from the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of the present application, and do not constitute a limitation of the present invention. In the drawings:
[0034] Figure 1 The diagram is a schematic diagram of deploying a sidecar mode service grid on a host side according to an embodiment of the present invention.
[0035] Figure 2 The figure is a schematic diagram of the steps of a method for service network offloading by service in one embodiment of the present invention.
[0036] Figure 3 This is a schematic diagram of a method in which a DPU CNI issues a rule table and starts Envoy for each service in one embodiment of the present invention.
[0037] Figure 4 This is a schematic diagram of a method for matching a specific Envoy for processing when a client accesses a specific service in one embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments and the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0039] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the solutions according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.
[0040] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, elements, steps or components, but does not exclude the presence or addition of one or more other features, elements, steps or components.
[0041] It should also be noted that, unless otherwise specified, the term “connection” herein may refer not only to a direct connection but also to an indirect connection involving an intermediate.
[0042] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the accompanying drawings, the same reference numerals represent the same or similar components, or the same or similar steps.
[0043] It should be emphasized here that the step marks mentioned below are not intended to limit the order of the steps, but it should be understood that the steps can be executed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be executed simultaneously.
[0044] In order to solve the problem that the existing centralized service grid model cannot support large-scale cloud network scenarios, and that a proxy component faces the entire cluster and the granularity is too coarse, resulting in low service quality, the present invention proposes a method for service network unloading by service, such as Figure 2 As shown, the method includes the following steps S101 to S104:
[0045] Step S101: Install and deploy a data processing unit container network interface in a Kubernetes cluster.
[0046] Step S102: Use the container network interface to collect the service IP of each service in the Kubernetes cluster and the corresponding cluster basic unit IP; set a rule table according to the service IP and the cluster basic unit IP, and send the rule table to the protocol stack rule table of the data processing unit.
[0047] Step S103: The data processing unit starts a proxy component for each service according to the rules in the rule table.
[0048] Step S104: The client accesses a specific service IP. When the access request reaches the data processing unit, the proxy component corresponding to the specific service is determined according to the rule table, and the traffic is sent to the proxy component for processing.
[0049] In step S101, the cluster is a Kubernetes cluster. Kubernetes is a common container orchestration system that supports a data processing unit (DPU) container network interface (CNI) plug-in.
[0050] Considering that the DPU is not in the Kubernetes cluster, but the DPU needs to be able to perceive changes in services in the Kubernetes cluster, specifically, each time a service is added to the cluster, the DPU needs to perceive the change and deploy a new proxy component Envoy; each time a service is deleted from the cluster, the DPU needs to perceive the change and delete the corresponding Envoy. Therefore, in the present invention, the DPU CNI is deployed on the host side where the DPU is located, and the DPU CNI is used to collect changes in services in the cluster.
[0051] The method for deploying DPU CNI includes the following steps: installing the DPU CNI plug-in into the Kubernetes cluster, creating a CNI configuration file, configuring parameters for the DPU CNI plug-in, deploying the DPU CNI plug-in using the resource definition file of the Kubernetes cluster, and specifying the cluster basic unit (Pod) or node that runs the plug-in. Usually, after the deployment is completed, a test Pod can be created to verify whether the DPU CNI plug-in can work properly and ensure normal network communication. Among them, Pod is the smallest and simplest unit that can be created and deployed in Kubernetes. A Pod represents a process running in the Kubernetes cluster.
[0052] In some embodiments, while deploying the DPU CNI in the Kubernetes cluster, a client user interface is defined, and corresponding Envoy basic resources such as memory and number of CPUs are configured according to the service priority. Exemplarily, more CPUs are configured for services with higher priority, and fewer CPUs are configured for services with lower priority, usually the default number.
[0053] In step S102, the DPU CNI is used to collect the service IPs and corresponding node Pod IPs in the cluster.
[0054] In some embodiments, if you want to obtain the mapping relationship between the service IP and the node Pod IP in the Kubernetes cluster, you can use the Application Programming Interface (API) of the Kubernetes cluster to obtain the service information and node information in the cluster. Specifically, use an API client such as kubectl, kube-python, etc. to query the service list and node list to obtain the service IP (Cluster IP) and corresponding Pod IP of each service.
[0055] A rule table is constructed based on the collected mapping relationships, and the rule table is sent to the protocol stack rule table of the DPU. For example, the rule table may include network traffic forwarding rules for a service, such as redirecting the ingress traffic of a service from a service IP to a corresponding Pod IP.
[0056] In some embodiments, when the rule table is sent to the DPU protocol stack rule table, the specific sending method depends on the implementation of the DPU CNI and related technologies. Exemplarily, the sending operation can be performed using one of a configuration management tool, a command line tool, or an application programming interface.
[0057] In some embodiments, after the rule table is issued, it is necessary to verify whether the rule table is successfully effective.
[0058] In step S103, the DPU starts a proxy component Envoy for each service according to the rules in the rule table. For example, Envoy1 is started to process service 1, and Envoy2 is started to process service 2.
[0059] In step S104, the client accesses a specific service IP. When the access request reaches the DPU, the proxy component corresponding to the specific service is determined according to the rule table, and the traffic is sent to the proxy component for processing.
[0060] There are multiple Envoys on the DPU, and a specific Envoy only processes the traffic of the corresponding specific service. In step S102, the rule table has been sent to the protocol stack rule table of the DPU, which stores the relationship table between the services of the Kubernetes cluster sent by the DPU CNI and the started Envoy. According to the five-tuple of traffic matching its corresponding service, the traffic can be sent to the Envoy corresponding to the corresponding service, where the five-tuple includes the source IP address, destination IP address, source port number, destination port number and transport layer protocol.
[0061] In some embodiments, the corresponding service is matched according to the five-tuple of traffic, including the following situations:
[0062] For traffic entering the DPU and destined for the service IP, the corresponding service is directly matched and the traffic is sent to the corresponding proxy component Envoy.
[0063] For traffic entering the DPU and destined for the cluster basic unit IP corresponding to the service, the service IP is determined based on the cluster basic unit IP (the Pod IP of the Endpoint corresponding to the service), and the traffic is sent to the corresponding proxy component Envoy. The Pod IP of the Endpoint refers to the IP address assigned to the actual container running the service in the Kubernetes cluster. The Endpoint is part of the service and represents the network endpoint of all actual running instances of the service. Whenever a new Pod is added or deleted, the Endpoint is dynamically updated to reflect the latest Pod IP.
[0064] When a service corresponds to multiple cluster basic units (Pod IPs of Endpoints), it is necessary to collect the relationship correspondence table between the service IP and multiple Pod IPs in the cluster through DPU CNI, and send the relationship correspondence table to DPU for subsequent operations.
[0065] In some embodiments, when a specific service is deleted, the DPU CNI needs to send a rule deletion message to the DPU, delete the rules related to the specific service in the rule table, and delete the proxy component Envoy corresponding to the specific service.
[0066] In some embodiments, the validity of the configured path between the DPU CNI and the proxy component Envoy is monitored regularly to sense whether the proxy component fails; when the proxy component fails, the DPU CNI temporarily transfers the traffic processed by the proxy component to other preset proxy components for processing. Exemplarily, the preset other proxy component may be the first proxy component.
[0067] The following is a further description of the service network service-based unloading method provided by the present invention in conjunction with a specific embodiment. Figure 3 As shown in the figure, the DPU CNI plug-in has been deployed in the Kubernetes cluster. There are two services in the cluster, namely service-1 and service-2. The service IP of service-1 is 10.58.100.1, and the node pod1 IP corresponding to service-1 is 10.244.1.10, and the pod2 IP is 10.244.1.11; the service IP of service-2 is 10.58.33.55, and the node pod3 IP corresponding to service-2 is 10.244.1.12, and the pod4 IP is 10.244.1.13.
[0068] Create a rule table based on the service IP and Pod IP collected by DPU CNI, such as Figure 3 Shown on the right:
[0069] service-envoy table: 10.58.100.1-Envoy1; 10.58.33.55-Envoy2. That is, Envoy1 is used to process the traffic of service-1; Envoy2 is used to process the traffic of service-2.
[0070] service-pod table: 10.58.100.1-10.244.1.10; 10.244.1.11, indicating the corresponding relationship between service-1 and pod1 and pod2; 10.58.33.55-10.244.1.12; 10.244.1.13 indicating the corresponding relationship between service-2 and pod3 and pod4.
[0071] The formulated rule table is sent to the DPU protocol stack rule table.
[0072] According to the above rule table, DPU starts Envoy1 to process service-1; and starts Envoy2 to process service-2.
[0073] like Figure 4 As shown in the figure, when the client accesses the IP 10.58.33.55 of service service-2 and reaches the DPU protocol stack, it matches the rule table, finds the proxy component Envoy2 corresponding to service service-2, and sends the traffic to Envoy2 for processing.
[0074] In some embodiments, if service service-2 is deleted, the DPU CNI sends a rule deletion message to the DPU to delete the rules related to service service-2 and delete Envoy2 at the same time.
[0075] In some embodiments, Figure 4 In the process, the upstream, downstream and service mesh forwarding plane establish TCP connections through the hardware protocol stack.
[0076] exist Figure 3 and Figure 4 In the figure, ETCD and ISTIO are commonly used technical components in cloud-native application development; HOST is the host; SoC is the system-level chip on the DPU; NP is the neural network processor on the DPU; VF is the virtual function; mgt is the transmitter; physical port is the physical port.
[0077] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the method for unloading a service network according to services are implemented.
[0078] Corresponding to the above method, the present invention also provides a device, which includes a computer device, the computer device includes a processor and a memory, the memory stores computer instructions, the processor is used to execute the computer instructions stored in the memory, and when the computer instructions are executed by the processor, the device implements the steps of the method described above.
[0079] The embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the aforementioned edge computing server deployment method are implemented. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.
[0080] In summary, the present invention provides a method and device for unloading a service network by service, including: installing and deploying a data processing unit container network interface in a Kubernetes cluster; using the container network interface to collect the service IP and the corresponding cluster basic unit IP in the Kubernetes cluster; setting a rule table according to the service IP and the cluster basic unit IP, and sending the rule table to the protocol stack rule table of the data processing unit; the data processing unit starts a proxy component for each service according to the rules in the rule table; the client accesses a specific service IP, and when the access request arrives at the data processing unit, the proxy component corresponding to the specific service is determined according to the rule table, and the traffic is sent to the proxy component for processing. The method for unloading a service network by service provided by the present invention can support large-scale cloud network scenarios, deploy proxy components for each service, further divide the cluster range into individual services, and refine the granularity; further, it can adjust the corresponding basic resources for a certain service, preferentially and quickly calculate and divert its business traffic, and provide a targeted and better business experience for high-priority services or users.
[0081] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.
[0082] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0083] In the present invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with or replace features of other embodiments.
[0084] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for offloading services in a service network, It is characterized in that The following steps are involved: Install and deploy the data processing unit container network interface in the Kubernetes cluster; The container network interface is used to collect the service IP of each service in the Kubernetes cluster and the corresponding cluster basic unit IP; a rule table is set according to the service IP and the cluster basic unit IP, and the rule table is sent to the protocol stack rule table of the data processing unit; the rule table includes the mapping relationship between the service IP and the cluster basic unit IP, and the mapping relationship between the service IP and its specific proxy component; The data processing unit starts a specific proxy component for each service according to the mapping relationship between the service IP and its specific proxy component in the rule table; When a client accesses a specific service IP, and the access request reaches the data processing unit, the proxy component corresponding to the specific service is determined according to the rule table, and the traffic is sent to the proxy component for processing; Among them, before using the proxy component to process the traffic of the specific service, the corresponding specific service is matched according to the quintuple of the traffic: for the traffic entering the data processing unit and the destination is the service IP, the corresponding service is directly matched, and the traffic is sent to the corresponding proxy component; for the traffic entering the data processing unit and the destination is the cluster basic unit IP corresponding to the service, the service IP to which it belongs is determined according to the cluster basic unit IP, and the traffic is sent to the corresponding proxy component; when a service corresponds to multiple cluster basic units, the relationship correspondence table between the service IP and multiple cluster basic units is collected in the Kubernetes cluster through the container network interface, and the relationship correspondence table is sent to the data processing unit; the quintuple includes the source IP address, the destination IP address, the source port number, the destination port number and the transport layer protocol.
2. The method for unloading a service network by service according to claim 1, It is characterized in that The container network interface is used to collect the service IP addresses of the services in the Kubernetes cluster and the corresponding cluster basic unit IP addresses. The method further includes: The service list and node list are queried through the application programming interface of the Kubernetes cluster to obtain the service IP of each service and the corresponding cluster basic unit IP.
3. The method for unloading a service network by service according to claim 1, It is characterized in that Sending the rule table to a protocol stack rule table of a data processing unit, the method further comprising: The issuing method uses one of a configuration management tool, a command line tool or an application programming interface to perform the issuing operation; after the rule table is issued, the rule table is verified.
4. The method for unloading a service network by service according to claim 1, It is characterized in that While installing and deploying the data processing unit container network interface in the Kubernetes cluster, the method also includes: A client user interface is defined, and corresponding proxy component basic resources are configured according to service priorities; wherein, services with higher priorities are configured with more central processors, and services with lower priorities are configured with fewer central processors.
5. The method for unloading a service network by service according to claim 1, It is characterized in that When the specific service is deleted, the method further includes: The container network interface sends a rule deletion message to the data processing unit, deletes the rule related to the specific service in the rule table, and deletes the proxy component corresponding to the specific service.
6. The method for service network unloading by service according to claim 1, It is characterized in that The method further comprises: Regularly monitoring whether the configuration path between the container network interface and the proxy component is valid to sense whether the proxy component fails; When the proxy component fails, the container network interface temporarily transfers the traffic processed by the proxy component to other preset proxy components for processing.
7. A device for offloading services from a service network, comprising a processor and a memory, It is characterized in that The memory stores computer instructions, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the device implements the steps of the method as claimed in any one of claims 1 to 6.
8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
