SIM card order packet switching request sending method, equipment, device and medium
By determining the target transmission rate based on the parameters of the previous sampling time and sending the SIM card ordering package switching request, the problem of high server load pressure under high concurrency is solved, and the stability and efficiency of request processing are improved.
Patent Information
- Application Number
- CN202411966904.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-05-02
AI Technical Summary
In the case of high concurrent requests, the server load pressure of the SIM card ordering package switching request processing is too high, resulting in a timeout or failure of processing, causing inconvenience to users.
By obtaining the sending rate, interface failure rate, system response time and network delay of the SIM card ordering package switching request at the previous sampling time, the target sending rate of the current time is determined, and the request is sent at this rate to reduce the request processing pressure of the server.
This method can effectively reduce the server's request processing pressure, improve the stability and efficiency of SIM card ordering package switching, and reduce operational and maintenance costs.
Smart Images

Figure CN119922525A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, device, apparatus and storage medium for sending a SIM card subscription package switching request. Background Art
[0002] With the promotion of 5G technology and the rise of the Internet of Things, SIM cards serve as a bridge between users and communication networks, and their subscription package switching services are becoming more and more frequent in the connection applications of Toyota and other automakers. This business involves the collaborative work of multiple background systems, including but not limited to B2C switching, multi-APN group number switching, card status changes, etc. Each sub-order needs to call the interfaces of other systems across systems through remote procedure calls (RPCs). These systems mainly include 5GCMP, B2B2C, etc. At present, these process processing faces the problem of excessive load pressure on the server processing requests under high concurrent requests, resulting in timeout or failure in the processing of SIM card subscription package switching requests, which brings inconvenience to users switching subscription packages. Therefore, there are still technical problems that need to be solved in the relevant technology. Summary of the invention
[0003] The purpose of this application is to solve one of the technical problems existing in the prior art to at least a certain extent.
[0004] To this end, an object of an embodiment of the present application is to provide a method, device, apparatus and storage medium for sending a SIM card subscription package switching request, which can reduce the request processing pressure of the server and improve the stability and efficiency of SIM card subscription package switching.
[0005] In order to achieve the above-mentioned technical objectives, the technical solution adopted by the embodiment of the present application includes: a method for sending a SIM card subscription package switching request, comprising the following steps: obtaining a first sending rate of the SIM card subscription package switching request at the last sampling moment, a first interface failure rate of the system interface at the last sampling moment, a first system response time at the last sampling moment, and a first system network delay at the last sampling moment; determining a target sending rate of the SIM card subscription package switching request at the current moment according to the first sending rate, the first interface failure rate, the first system response time, and the first system network delay, and sending the SIM card subscription package switching request at the target sending rate.
[0006] The present application can obtain the first sending rate of the SIM card subscription package switching request at the last sampling moment, the first interface failure rate of the system interface at the last sampling moment, the first system response time at the last sampling moment, and the first system network delay at the last sampling moment, and then determine the target sending rate of the SIM card subscription package switching request at the current moment through the first sending rate, the first interface failure rate, the first system response time, and the first system network delay, and send the SIM card subscription package switching request at the target sending rate. The new algorithm of the present application comprehensively considers the first sending rate of the SIM card subscription package switching request at the last sampling moment, the first interface failure rate of the system interface at the last sampling moment, the first system response time at the last sampling moment, and the first system network delay at the last sampling moment to timely adjust the sending rate of the SIM card subscription package switching request. The present application can reduce the request processing pressure of the server and improve the stability and efficiency of the SIM card subscription package switching.
[0007] In addition, the method for sending a SIM card subscription package switching request according to the above embodiment of the present invention may also have the following additional technical features:
[0008] Further, in the embodiment of the present application, determining the target sending rate of the SIM card subscription package switching request at the current moment according to the first sending rate, the first interface failure rate, the first system response time, and the first system network delay specifically includes:
[0009] determining an initial sending rate according to the first interface failure rate, the first system response time, and the first system network delay;
[0010] The target sending rate is determined according to the initial sending rate and the first sending rate.
[0011] Further, in an embodiment of the present application, determining the initial sending rate according to the first interface failure rate, the first system response time, and the first system network delay specifically includes:
[0012] The first interface failure rate, the first system response time, and the first system network delay are used to determine the initial transmission rate and input it into a first formula to determine the initial transmission rate; wherein the first formula is:
[0013] Rtarget=Rbase×(1-P)×(B / L)
[0014] Rtarget is the initial sending rate, Rbase is the basic sending rate, Rbase is a constant, P is the failure rate of the first interface, B is the response time of the first system, and L is the network delay of the first system.
[0015] Further, in the embodiment of the present application, determining the target sending rate according to the initial sending rate and the first sending rate specifically includes:
[0016] The initial sending rate and the first sending rate are input into a second formula to determine the target sending rate; wherein the second formula is:
[0017] R1=R2+α×(Rtarget-R2)
[0018] R1 is the target sending rate, Rtarget is the initial sending rate, and R2 is the first sending rate.
[0019] Further, in the embodiment of the present application, the first sending rate is obtained by the following steps:
[0020] Obtaining a second sending rate of the SIM card subscription package switching request at a sampling time before the last sampling time;
[0021] Determine a system network delay difference according to the first system network delay and the second system network delay at the current sampling moment;
[0022] When the system network delay difference is less than a first preset threshold, the second transmission rate and the system network delay difference are input into a third formula to obtain a first transmission rate; wherein the third formula is:
[0023] R2=R3×(1-β1×ΔL)
[0024] R2 is the first transmission rate, R3 is the second transmission rate, ΔL is the system network delay difference, and β1 is a constant.
[0025] Further, in the embodiment of the present application, the first sending rate is obtained by the following steps:
[0026] Obtain the failure rate of the second interface at a sampling time before the previous sampling time;
[0027] Determining a system interface failure rate difference according to the first interface failure rate and the second interface failure rate;
[0028] When the interface failure rate difference is less than a second preset threshold, the second sending rate and the interface failure rate difference are input into a fourth formula to obtain a first sending rate; wherein the fourth formula is:
[0029] R2=R3×(1-γ1×ΔP)
[0030] R2 is the first transmission rate, R3 is the second transmission rate, ΔP is the interface failure rate difference, and γ1 is a constant.
[0031] Further, in the embodiment of the present application, determining the system interface failure rate difference according to the first interface failure rate and the second interface failure rate includes:
[0032] Subtract the first interface failure rate from the second interface failure rate to obtain a first difference;
[0033] The first difference is used as the system interface failure rate difference.
[0034] On the other hand, an embodiment of the present application further provides a SIM card subscription package switching request sending device, including:
[0035] an acquisition unit, configured to acquire a first sending rate of a SIM card subscription package switching request at a previous sampling moment, a first interface failure rate of a system interface at a previous sampling moment, a first system response time at a previous sampling moment, and a first system network delay at a previous sampling moment;
[0036] The first processing unit is used to determine a target sending rate of a SIM card subscription package switching request at a current moment according to the first sending rate, the first interface failure rate, the first system response time, and the first system network delay, and to send the SIM card subscription package switching request at the target sending rate.
[0037] On the other hand, the present application also provides a device for sending a SIM card subscription package switching request, comprising:
[0038] at least one processor;
[0039] at least one memory for storing at least one program;
[0040] When the at least one program is executed by the at least one processor, the at least one processor implements a method for sending a SIM card subscription package switching request as described in any one of the invention contents.
[0041] In addition, the present application also provides a computer-readable storage medium, which stores processor-executable instructions. When the processor-executable instructions are executed by the processor, they are used to execute a method for sending a SIM card subscription package switching request as described in any one of the above items.
[0042] The advantages and benefits of the present application will be partially given in the following description, and partially become apparent from the following description, or be understood through the practice of the present application:
[0043] The present application can obtain the first sending rate of the SIM card subscription package switching request at the last sampling moment, the first interface failure rate of the system interface at the last sampling moment, the first system response time at the last sampling moment, and the first system network delay at the last sampling moment, and then determine the target sending rate of the SIM card subscription package switching request at the current moment through the first sending rate, the first interface failure rate, the first system response time, and the first system network delay, and send the SIM card subscription package switching request at the target sending rate. The new algorithm of the present application comprehensively considers the first sending rate of the SIM card subscription package switching request at the last sampling moment, the first interface failure rate of the system interface at the last sampling moment, the first system response time at the last sampling moment, and the first system network delay at the last sampling moment to timely adjust the sending rate of the SIM card subscription package switching request. The present application can reduce the request processing pressure of the server and improve the stability and efficiency of the SIM card subscription package switching. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A schematic diagram of the steps of a method for sending a SIM card subscription package switching request in a specific embodiment of the present invention;
[0045] Figure 2 It is a schematic diagram of the steps of determining the target sending rate of the SIM card subscription package switching request at the current moment according to the first sending rate, the first interface failure rate, the first system response time and the first system network delay in a specific embodiment of the present invention;
[0046] Figure 3 A schematic diagram of steps for obtaining a first transmission rate in a specific embodiment of the present invention;
[0047] Figure 4 A schematic diagram of steps for obtaining a first transmission rate in another specific embodiment of the present invention;
[0048] Figure 5 A schematic diagram of a step of determining a system interface failure rate difference according to a first interface failure rate and a second interface failure rate in a specific embodiment of the present invention;
[0049] Figure 6 It is a structural schematic diagram of a SIM card subscription package switching request sending device in a specific embodiment of the present invention;
[0050] Figure 7 A schematic flow chart of a method for sending a SIM card subscription package switching request in another specific embodiment of the present invention;
[0051] Figure 8 It is a structural schematic diagram of a device for sending a SIM card subscription package switching request in another specific embodiment of the present invention;
[0052] Fig. 9 It is a structural schematic diagram of a device for sending a SIM card subscription package switching request in a specific embodiment of the present invention. DETAILED DESCRIPTION
[0053] The embodiments of the present invention are described in detail below with reference to the accompanying drawings to illustrate the principles and processes of the method, system, device and storage medium for sending a SIM card subscription package switching request in the embodiments of the present invention.
[0054] With the promotion of 5G technology and the rise of the Internet of Things, SIM cards serve as a bridge between users and communication networks, and their subscription package switching services are becoming more and more frequent in the connection applications of Toyota and other automakers. This business involves the collaborative work of multiple background systems, including but not limited to B2C switching, multi-APN group number switching, card status changes, etc. Each sub-order needs to call the interfaces of other systems across systems through remote procedure calls (RPCs). These systems mainly include 5GCMP, B2B2C, etc. At present, these process processing faces the problem of excessive load pressure on the server processing requests under high concurrent requests, resulting in timeout or failure in the processing of SIM card subscription package switching requests, which brings inconvenience to users switching subscription packages. Therefore, there are still technical problems that need to be solved in the relevant technology.
[0055] In view of the above-mentioned defects of the prior art, Figure 1 The present application provides a method for sending a SIM card subscription package switching request. Figure 1 In the method, the method may include the following steps S101-S102.
[0056] S101, obtaining a first sending rate of a SIM card subscription package switching request at a previous sampling moment, a first interface failure rate of a system interface at a previous sampling moment, a first system response time at a previous sampling moment, and a first system network delay at a previous sampling moment.
[0057] S102: Determine a current target sending rate of the SIM card subscription package switching request according to the first sending rate, the first interface failure rate, the first system response time, and the first system network delay, and send the SIM card subscription package switching request at the target sending rate.
[0058] It is understandable that the data collection method of the present application can be periodic, that is, there is a certain time difference between each sampling moment, and the time difference between each two adjacent sampling moments can be the same or different, again without limitation. The first system network delay refers to the time of the system network delay at the previous sampling moment.
[0059] In some feasible embodiments of the present application, the processor may first establish a wired or wireless connection with the acquisition module. After the connection is established, the processor may first obtain the first transmission rate of the SIM card subscription package switching request at the last sampling moment, the first interface failure rate of the system interface at the last sampling moment, the first system response time at the last sampling moment, and the first system network delay at the last sampling moment. After obtaining the first transmission rate, the first interface failure rate, the first system response time, and the first system network delay, the processor may determine the target transmission rate of the SIM card subscription package switching request at the current moment according to the first transmission rate, the first interface failure rate, the first system response time, and the first system network delay, and send the SIM card subscription package switching request at the target transmission rate.
[0060] It should be noted that the above-mentioned wired connection method may include a connection between a mobile device and a processing module, and may also include a connection between a processing module and a hardware device, as well as a wired connection between other devices currently known or to be developed in the future and the processing module; and the above-mentioned wireless connection method may include but is not limited to 3G / 4G / 5G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (Ultra Wide Band) connection, and other wireless connection methods currently known or to be developed in the future.
[0061] The present application can obtain the first sending rate of the SIM card subscription package switching request at the last sampling moment, the first interface failure rate of the system interface at the last sampling moment, the first system response time at the last sampling moment, and the first system network delay at the last sampling moment, and then determine the target sending rate of the SIM card subscription package switching request at the current moment through the first sending rate, the first interface failure rate, the first system response time, and the first system network delay, and send the SIM card subscription package switching request at the target sending rate. The new algorithm of the present application comprehensively considers the first sending rate of the SIM card subscription package switching request at the last sampling moment, the first interface failure rate of the system interface at the last sampling moment, the first system response time at the last sampling moment, and the first system network delay at the last sampling moment to timely adjust the sending rate of the SIM card subscription package switching request. The present application can reduce the request processing pressure of the server and improve the stability and efficiency of the SIM card subscription package switching.
[0062] Further, refer to Figure 2 , Figure 2 This is a schematic diagram of the steps of determining the target sending rate of the SIM card subscription package switching request at the current moment according to the first sending rate, the first interface failure rate, the first system response time and the first system network delay in the embodiment of the present application. Figure 2 In the method, the method specifically includes step S201 and step S202.
[0063] S201. Determine an initial sending rate according to a first interface failure rate, a first system response time, and a first system network delay.
[0064] S202: Determine a target sending rate according to the initial sending rate and the first sending rate.
[0065] It is understandable that the initial sending rate is a user-defined parameter, which is used to subsequently calculate the target sending rate. The target sending rate may be the sending rate of the SIM card subscription package switching request at the current sampling moment.
[0066] In some feasible embodiments of the present application, after the processor obtains the first sending rate, the first interface failure rate, the first system response time and the first system network delay, it can determine the initial sending rate based on the first interface failure rate, the first system response time and the first system network delay; then the processor can determine the target sending rate based on the initial sending rate and the first sending rate.
[0067] Further, the step of determining the initial sending rate according to the first interface failure rate, the first system response time, and the first system network delay specifically includes:
[0068] The first interface failure rate, the first system response time, and the first system network delay are used to determine the initial transmission rate, which is input into the first formula to determine the initial transmission rate; wherein the first formula is:
[0069] Rtarget=Rbase×(1-P)×(B / L)
[0070] Rtarget is the initial sending rate, Rbase is the basic sending rate, Rbase is a constant, P is the failure rate of the first interface, B is the response time of the first system, and L is the network delay of the first system.
[0071] In some feasible embodiments of the present application, after obtaining the first interface failure rate, the first system response time, and the first system network delay, the processor inputs them into the following formula, and finally obtains the initial sending rate. The formula is:
[0072] Rtarget=Rbase×(1-P)×(B / L)
[0073] In the above formula, Rtarget is the initial sending rate, Rbase is the basic sending rate, Rbase is a constant, P is the first interface failure rate, B is the first system response time, and L is the first system network delay.
[0074] Further, the step of determining the target sending rate according to the initial sending rate and the first sending rate specifically includes:
[0075] The initial sending rate and the first sending rate are input into the second formula to determine the target sending rate; wherein the second formula is:
[0076] R1=R2+α×(Rtarget-R2)
[0077] R1 is the target sending rate, Rtarget is the initial sending rate, R2 is the first sending rate,
[0078] In some feasible embodiments of the present application, after obtaining the initial transmission rate and the first transmission rate, they are input into the following formula to obtain the target transmission rate. The formula is:
[0079] R1=R2+α×(Rtarget-R2)
[0080] In the above formula, R1 is the target sending rate, Rtarget is the initial sending rate, and R2 is the first sending rate.
[0081] Further, refer to Figure 3 , Figure 3 Schematic diagram of the steps of obtaining the first transmission rate in the embodiment of the present application. Figure 3 In the embodiment, the first sending rate can be obtained through steps S301 to S303.
[0082] S301: Obtain a second sending rate of a SIM card subscription package switching request at a sampling time before a previous sampling time.
[0083] S302: Determine a system network delay difference according to the first system network delay and the second system network delay at the current sampling moment.
[0084] S303: When the system network delay difference is less than the first preset threshold, the second transmission rate and the system network delay difference are input into a third formula to obtain a first transmission rate; wherein the third formula is:
[0085] R2=R3×(1-β1×ΔL)
[0086] R2 is the first transmission rate, R3 is the second transmission rate, ΔL is the system network delay difference, and β1 is a constant.
[0087] In some feasible embodiments of the present application, the processor may obtain the second sending rate of the SIM card subscription package switching request at a sampling time before the previous sampling time. According to the first system network delay and the second system network delay at the current sampling time, the system network delay difference is determined. When the system network delay difference is less than the first preset threshold, the second sending rate and the system network delay difference are input into the following formula to obtain the first sending rate; wherein the formula is:
[0088] R2=R3×(1-β1×ΔL)
[0089] In the above formula, R2 is the first transmission rate, R3 is the second transmission rate, ΔL is the system network delay difference, and β1 is a constant.
[0090] Further, refer to Figure 4 , Figure 4 Schematic diagram of the steps of obtaining the first transmission rate in the embodiment of the present application. Figure 4 In the embodiment, the first sending rate can be obtained through steps S401 to S403.
[0091] S401: Obtain a second interface failure rate at a sampling time before a previous sampling time.
[0092] S402: Determine a system interface failure rate difference according to the first interface failure rate and the second interface failure rate.
[0093] S403: When the interface failure rate difference is less than the second preset threshold, the second sending rate and the interface failure rate difference are input into a fourth formula to obtain a first sending rate; wherein the fourth formula is:
[0094] R2=R3×(1-γ1×ΔP)
[0095] R2 is the first transmission rate, R3 is the second transmission rate, ΔP is the interface failure rate difference, and γ1 is a constant.
[0096] In some feasible embodiments of the present application, the processor may obtain the second interface failure rate at a sampling time before the last sampling time. Then, based on the first interface failure rate and the second interface failure rate, the processor may determine the system interface failure rate difference. When the interface failure rate difference is less than the second preset threshold, the processor may input the second transmission rate and the interface failure rate difference into the following formula to obtain the first transmission rate. The formula is:
[0097] R2=R3×(1-γ1×ΔP)
[0098] In the above formula, R2 is the first transmission rate, R3 is the second transmission rate, ΔP is the interface failure rate difference, and γ1 is a constant.
[0099] Further, refer to Figure 5 , Figure 5 1 is a schematic diagram of the steps of determining the system interface failure rate difference according to the first interface failure rate and the second interface failure rate in an embodiment of the present application. Figure 5 In the step of determining the system interface failure rate difference may include step S501-step S502.
[0100] S501. Subtract the first interface failure rate from the second interface failure rate to obtain a first difference.
[0101] S502: Use the first difference as the system interface failure rate difference.
[0102] In some feasible embodiments of the present application, the processor may make a difference between the first interface failure rate and the second interface failure rate to obtain a first difference. Then the processor may use the first difference as the system interface failure rate difference. Specifically, the difference between the first interface failure rate and the second interface failure rate may be input into the following formula to obtain the system interface failure rate difference. The formula is:
[0103] ΔP=P1-P2
[0104] In the above formula, ΔP is the system interface failure rate difference, P1 is the first interface failure rate, and P2 is the second interface failure rate.
[0105] It is understandable that the system network delay difference can also be obtained by the following formula. The formula is:
[0106] ΔL=L1-L2
[0107] In the above formula, ΔL is the system network delay difference, L1 is the first system network delay, and L2 is the second system network delay at the current sampling moment.
[0108] The following is combined with Figure 6 and attached Figure 7 The principle of this application is explained.
[0109] Reference Figure 6 , the system transformation content of this embodiment includes:
[0110] 1) Add the "adaptive float flow control algorithm" component service between the switching subscription package MQ message service and the switching subscription package business acceptance layer. The switching subscription package request flows in at a constant rate. The adaptive algorithm controller detects the float limit difference and the health status of the RPC interface in real time, and then obtains the dynamic threshold of the flow rate valve through the algorithm, and adjusts the outflow rate of the switching subscription package request in combination with the distributed RateLimiter.
[0111] 2) Develop 5GCMP, B2B2C RPC API health information, network delay collection and monitoring services, actively dial and test the response feedback information of the RPC interface in the switching order package process every 5 seconds, and dial and test the network request delay with 5GCMP and server every 3 seconds, and collect the above information into the "Adaptive Float Flow Control" component for algorithm analysis.
[0112] 3) Adaptive floating ball flow control algorithm for ordering package switching. For specific algorithms, refer to Figure 7 .exist Figure 7 The algorithm flow includes:
[0113] ①Initialize the global request monitoring list.
[0114] ②Set the request frequency control threshold.
[0115] ③ Based on real-time monitoring data, dynamically adjust the request frequency through an adaptive algorithm.
[0116] ④Periodically perform flow control checks and update flow control strategies.
[0117] ⑤ Use system operation data to optimize algorithm parameters. This technology effectively balances service load and ensures the continuity, high success rate and excellent user experience of SIM card subscription package switching services.
[0118] ⑥The core of the adaptive floating ball flow control algorithm is to dynamically adjust the sending rate according to the network status:
[0119] The parameters used in this embodiment are as follows: R is the sending rate, P is the interface failure rate, B is the response time, and L is the network delay.
[0120] 1) Calculate the initial sending rate: Rtarget = Rbase×(1-P)×(B / L), where Rbase is the basic sending rate.
[0121] 2) Update the target sending rate: R1 = R2 + α × (Rtarget - R2), where α is an adjustment factor that controls the adjustment speed.
[0122] 3) Response delay and packet loss: β1 and γ1 are constants that control the impact of network delay and interface failure rate on the sending rate.
[0123] When L increases, the network delay difference ΔL between the previous cycle and the current cycle is calculated, and the sending rate is reduced: R2 = R3×(1-β1×ΔL).
[0124] When P increases, the difference ΔP between the interface failure rate of the previous cycle and the current cycle is calculated, and the sending rate is reduced: R2 = R3×(1-γ1×ΔP).
[0125] Feedback adjustment: Rnew = Rold + α × (Rtarget - Rold). In each time period T, the network status is monitored and the above formula is executed to update the sending rate: a continuous feedback loop is formed to help the algorithm adapt to the dynamic network environment.
[0126] In summary, the method for sending a SIM card subscription package switching request of the present application has the following advantages:
[0127] 1. This application can greatly improve the efficiency and success rate of processing SIM card subscription package switching requests in a high-concurrency environment.
[0128] 2. The algorithm of this application can achieve adaptive adjustment without manual intervention and can automatically adapt to different network environments and traffic conditions.
[0129] 3. This application can not only enhance the stability of the system and service quality by alleviating the load pressure on the server, but also help reduce the operating costs and maintenance costs caused by processing timeouts.
[0130] In addition, refer to Figure 8 ,and Figure 1 Corresponding to the method, an embodiment of the present application also provides a SIM card subscription package switching request sending device. The system may include an acquisition unit 1001 and a first processing unit 1002. Among them, the acquisition unit 1001 can be used to obtain the first sending rate of the SIM card subscription package switching request at the last sampling moment, the first interface failure rate of the system interface at the last sampling moment, the first system response time at the last sampling moment, and the first system network delay at the last sampling moment. The first processing unit 1002 can be used to determine the target sending rate of the SIM card subscription package switching request at the current moment according to the first sending rate, the first interface failure rate, the first system response time, and the first system network delay, and send the SIM card subscription package switching request at the target sending rate.
[0131] It should be noted that the acquisition unit may be any integrated circuit unit or microprocessor unit obtained by integrating a chip having a processing function and its peripheral circuits through existing integration technology. The first processing unit and the second processing unit may also be any integrated circuit module or microprocessor module obtained by integrating a chip having a processing function and its peripheral circuits through existing integration technology. The first processing unit and the second processing unit may also include one or more memories.
[0132] It should be noted that the contents of the above-mentioned SIM card subscription package switching request sending method embodiment are all applicable to the present SIM card subscription package switching request sending device embodiment, and the functions specifically implemented by the present SIM card subscription package switching request sending device embodiment are the same as those of the above-mentioned SIM card subscription package switching request sending method embodiment, and the beneficial effects achieved are also the same as those achieved by the above-mentioned SIM card subscription package switching request sending method embodiment.
[0133] and Figure 1 Corresponding to the method, the embodiment of the present application also provides a SIM card subscription package switching request sending device, the specific structure of which can be referred to Fig. 9 ,include:
[0134] at least one processor 1011;
[0135] At least one memory 1012, used to store at least one program;
[0136] When the at least one program is executed by the at least one processor, the at least one processor implements the method for sending a SIM card subscription package switching request.
[0137] The contents of the above method embodiments are all applicable to the present device embodiments. The functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0138] and Figure 1 Corresponding to the method, an embodiment of the present application further provides a computer-readable storage medium, which stores processor-executable instructions, and the processor-executable instructions are used to execute the method for sending a SIM card subscription package switching request when executed by the processor.
[0139] The contents of the above-mentioned SIM card subscription package switching request sending method embodiment are all applicable to the present storage medium embodiment. The functions specifically implemented by the present storage medium embodiment are the same as those of the above-mentioned SIM card subscription package switching request sending method embodiment, and the beneficial effects achieved are also the same as those achieved by the above-mentioned SIM card subscription package switching request sending method embodiment.
[0140] In some optional embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the application is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Optional embodiments are expected, wherein the order of various operations is changed and the sub-operation described as a part of a larger operation is performed independently.
[0141] In addition, although the present application is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features can be integrated into a single physical device and / or software module, or one or more functions and / or features can be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present application. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional techniques of the engineer. Therefore, those skilled in the art can implement the present application set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present application, which is determined by the full scope of the attached claims and their equivalents.
[0142] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several programs to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0143] The logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable programs for implementing the logical functions, and may be embodied in any computer-readable medium for use by a program execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch and execute a program from a program execution system, device or apparatus), or in conjunction with such program execution systems, devices or apparatuses. For purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by a program execution system, device or apparatus, or in conjunction with such program execution systems, devices or apparatuses.
[0144] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0145] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable program execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0146] In the above description of this specification, the description with reference to the terms "one embodiment / example", "another embodiment / example" or "certain embodiments / examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0147] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present application, and that the scope of the present application is defined by the claims and their equivalents.
[0148] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the described embodiments. Technical personnel familiar with the field may make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.
Claims
1. A method for sending a SIM card subscription package switching request, characterized in that: The following steps are involved: Obtaining a first sending rate of a SIM card subscription package switching request at a previous sampling moment, a first interface failure rate of a system interface at a previous sampling moment, a first system response time at a previous sampling moment, and a first system network delay at a previous sampling moment; The target sending rate of the SIM card subscription package switching request at the current moment is determined according to the first sending rate, the first interface failure rate, the first system response time and the first system network delay, and the SIM card subscription package switching request is sent at the target sending rate.
2. A method for sending a SIM card subscription package switching request according to claim 1, characterized in that: The determining, according to the first sending rate, the first interface failure rate, the first system response time, and the first system network delay, of a target sending rate of the SIM card subscription package switching request at a current moment specifically includes: determining an initial sending rate according to the first interface failure rate, the first system response time, and the first system network delay; The target sending rate is determined according to the initial sending rate and the first sending rate.
3. A method for sending a SIM card subscription package switching request according to claim 2, characterized in that: The determining the initial sending rate according to the first interface failure rate, the first system response time, and the first system network delay specifically includes: The first interface failure rate, the first system response time, and the first system network delay are used to determine the initial transmission rate and input it into a first formula to determine the initial transmission rate; wherein the first formula is: Rtarget=Rbase×(1-P)×(B / L) Rtarget is the initial sending rate, Rbase is the basic sending rate, Rbase is a constant, P is the failure rate of the first interface, B is the response time of the first system, and L is the network delay of the first system.
4. A method for sending a SIM card subscription package switching request according to claim 2, characterized in that: The determining the target sending rate according to the initial sending rate and the first sending rate specifically includes: The initial sending rate and the first sending rate are input into a second formula to determine the target sending rate; wherein the second formula is: R1=R2+α×(Rtarget-R2) R1 is the target sending rate, Rtarget is the initial sending rate, and R2 is the first sending rate.
5. A method for sending a SIM card subscription package switching request according to claim 1, characterized in that: The first sending rate is obtained by the following steps: Obtaining a second sending rate of the SIM card subscription package switching request at a sampling time before the last sampling time; Determine a system network delay difference according to the first system network delay and the second system network delay at the current sampling moment; When the system network delay difference is less than a first preset threshold, the second transmission rate and the system network delay difference are input into a third formula to obtain a first transmission rate; wherein the third formula is: R2=R3×(1-β1×ΔL) R2 is the first transmission rate, R3 is the second transmission rate, ΔL is the system network delay difference, and β1 is a constant.
6. A method for sending a SIM card subscription package switching request according to claim 1, characterized in that: The first sending rate is obtained by the following steps: Obtain the failure rate of the second interface at a sampling time before the previous sampling time; Determining a system interface failure rate difference according to the first interface failure rate and the second interface failure rate; When the interface failure rate difference is less than the second preset threshold, the second sending rate and the interface failure rate difference are input into a fourth formula to obtain a first sending rate; wherein the fourth formula is: R2=R3×(1-γ1×ΔP) R2 is the first transmission rate, R3 is the second transmission rate, ΔP is the interface failure rate difference, and γ1 is a constant.
7. A method for sending a SIM card subscription package switching request according to claim 6, characterized in that: The determining, according to the first interface failure rate and the second interface failure rate, a system interface failure rate difference includes: Subtract the first interface failure rate from the second interface failure rate to obtain a first difference; The first difference is used as the system interface failure rate difference.
8. A device for sending a SIM card subscription package switching request, characterized in that: include: an acquisition unit, configured to acquire a first sending rate of a SIM card subscription package switching request at a previous sampling moment, a first interface failure rate of a system interface at a previous sampling moment, a first system response time at a previous sampling moment, and a first system network delay at a previous sampling moment; The first processing unit is used to determine a target sending rate of the SIM card subscription package switching request at a current moment according to the first sending rate, the first interface failure rate, the first system response time and the first system network delay, and send the SIM card subscription package switching request at the target sending rate.
9. A device for sending a SIM card subscription package switching request, characterized in that include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method for sending a SIM card subscription package switching request as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing instructions executable by a processor, characterized in that: The processor-executable instructions are used to execute the method for sending a SIM card subscription package switching request as claimed in any one of claims 1 to 7 when executed by the processor.