Search

CN-121985042-A - Shunting method and device based on mobile phone flow request and electronic equipment

CN121985042ACN 121985042 ACN121985042 ACN 121985042ACN-121985042-A

Abstract

The invention discloses a shunting method, a shunting device and electronic equipment based on a mobile phone flow request, wherein performance parameters are firstly acquired based on a first server, then the performance parameters are calculated through a first preset algorithm to obtain a base-Ni index, then a decision model is obtained based on the base-Ni index, a shunting strategy is obtained based on the decision model, when the flow request is acquired, the flow request is processed based on the shunting strategy to obtain a first processing result, and the flow request is shunted automatically based on the first processing result, so that the waste of human resources is avoided.

Inventors

  • Ni Qingzhu

Assignees

  • 中移(苏州)软件技术有限公司
  • 中国移动通信集团有限公司

Dates

Publication Date
20260505
Application Date
20260115

Claims (10)

  1. 1. A method for offloading traffic requests based on a cellular phone, the method comprising: acquiring performance parameters, wherein the performance parameters are acquired based on a first server; calculating the performance parameters through a first preset algorithm to obtain a base index; obtaining a decision model based on the base index; Obtaining a shunt strategy based on the decision model; Acquiring a flow request; and processing the flow request based on the diversion strategy to obtain a first processing result, and diverting the flow request based on the first processing result.
  2. 2. The method of claim 1, wherein obtaining a decision model based on the base-ni-index comprises: Obtaining attribute characteristics based on the base index; and obtaining the decision model based on the attribute features.
  3. 3. The method of claim 2, wherein processing the traffic request based on the offload policy to obtain a first processing result comprises: judging the purity of the flow request based on the diversion strategy to obtain purity sequencing; Based on the purity ranking, a first ranking result is obtained.
  4. 4. A method according to claim 3, wherein after obtaining the first ranking result, comprising: judging whether the occupancy rate of the central processing unit exceeds a first threshold value in a first preset period of time of the flow request, and obtaining a first judging result; judging whether the memory occupancy rate of the flow request exceeds a first threshold value in a first preset period of time, and obtaining a second judging result; and obtaining the first processing result based on the first judging result, the second judging result and the first sorting result.
  5. 5. The method of claim 4, comprising checking whether a white list is allowed if the first determination result or the second determination result is yes, and obtaining a third determination result.
  6. 6. The method of claim 1, wherein after obtaining the flow request, comprising: Judging whether the flow request is a first request or not, and obtaining a first prejudgment result; If the first pre-judging result is yes, judging whether the flow request token is legal or not, and obtaining a second pre-judging result; And if the second pre-judging result is yes, selecting a second server to create a cloud machine Pod.
  7. 7. The method of claim 6, wherein calculating the performance parameter by a first preset algorithm to obtain a base index comprises: ; Wherein n is the number of different packets (server response duration, cpu occupancy, memory occupancy, cpu size, memory size, bandwidth, load average, zombie) contained in the set P.
  8. 8. The method of claim 7, comprising migrating the first server corresponding data to a third server when the first server load exceeds a second threshold.
  9. 9. The device is characterized by comprising an acquisition unit, an analysis unit and a processing unit: the acquisition unit is used for acquiring performance parameters, wherein the performance parameters are acquired based on a first server; The analysis unit is used for calculating the performance parameters through a first preset algorithm to obtain a base index, obtaining a decision model based on the base index, and obtaining a shunt strategy based on the decision model; the processing unit is used for acquiring a flow request, judging the flow request based on the diversion strategy, acquiring a first processing result, and diverting the flow request based on the first processing result.
  10. 10. An electronic device, comprising: a memory for storing at least one set of instructions; The system comprises a processor, a first server and a second server, wherein the processor is used for acquiring performance parameters, and the performance parameters are acquired based on the first server; calculating the performance parameters through a first preset algorithm to obtain a base index; obtaining a decision model based on the base index; Obtaining a shunt strategy based on the decision model; Acquiring a flow request; and judging the flow request based on the diversion strategy, obtaining a first processing result, and diverting the flow request based on the first processing result.

Description

Shunting method and device based on mobile phone flow request and electronic equipment Technical Field The embodiment of the application relates to artificial intelligence, in particular to a mobile phone flow request-based distribution method and device and electronic equipment, but is not limited to the method and the device. Background With the development of society and the progress of the era, mobile phone business is required by people, but with the occurrence of a large number of demands, the load pressure of a server is also increased, and how to improve the utilization rate of server resources becomes a problem to be solved continuously. The traditional method uses a filter to distribute flow of a rule written in advance, and when the network load changes or other abnormal conditions occur, the gateway cannot automatically make adjustment and must rely on manual adjustment. Disclosure of Invention In view of the above, the embodiments of the present application provide a method, an apparatus, and an electronic device for offloading traffic requests based on a mobile phone. The technical scheme of the embodiment of the application is realized as follows: The embodiment of the application provides a flow distribution method based on a mobile phone flow request, which comprises the steps of obtaining performance parameters, obtaining the performance parameters based on a first server, calculating the performance parameters through a first preset algorithm to obtain a base index, obtaining a decision model based on the base index, obtaining a flow distribution strategy based on the decision model, obtaining the flow request, processing the flow request based on the flow distribution strategy to obtain a first processing result, and distributing the flow request based on the first processing result. Optionally, the decision model is obtained based on the base index, wherein the decision model is obtained based on the base index and the attribute feature. Optionally, the flow request is processed based on the diversion policy, and a first processing result is obtained, wherein the processing result comprises that purity of the flow request is judged based on the diversion policy, purity ranking is obtained, and a first ranking result is obtained based on the purity ranking. Optionally, after the first ordering result is obtained, the method includes judging whether the occupancy rate of the central processing unit of the flow request exceeds a first threshold value within a first preset period of time to obtain a first judging result, judging whether the occupancy rate of the memory of the flow request exceeds the first threshold value within the first preset period of time to obtain a second judging result, and obtaining the first processing result based on the first judging result, the second judging result and the first ordering result. Optionally, if the first judgment result or the second judgment result is yes, checking whether the white list is allowed or not, and obtaining a third judgment result. Optionally, after the flow request is acquired, the method comprises the steps of judging whether the flow request is a first request or not to acquire a first prejudgment result, judging whether a flow request token is legal or not to acquire a second prejudgment result if the first prejudgment result is yes, and selecting a second server to create a cloud machine Pod if the second prejudgment result is yes. Optionally, the performance parameter is calculated by a first preset algorithm to obtain a kene index, which includes the following calculation modes: wherein n is the number of different packets (server response duration, cpu occupancy, memory occupancy, cpu size, memory size, bandwidth, load average, zombie) contained in the set P. Optionally, when the load of the first server exceeds a second threshold, migrating the data corresponding to the first server to a third server. The device comprises an acquisition unit, an analysis unit and a processing unit, wherein the acquisition unit is used for acquiring performance parameters, the performance parameters are acquired based on a first server, the analysis unit is used for calculating the performance parameters through a first preset algorithm to obtain a base index, a decision model is obtained based on the base index, a flow distribution strategy is obtained based on the decision model, the processing unit is used for acquiring a flow request, the flow request is judged based on the flow distribution strategy, a first processing result is obtained, and the flow request is distributed based on the first processing result. The electronic equipment comprises a memory, a processor, a first processing result and a decision model, wherein the memory is used for storing at least one group of instruction sets, the processor is used for acquiring performance parameters, the performance parameters are acquired based on a first server, the performance par