Network traffic control method, device, electronic device and computer readable medium

By dynamically controlling the network threshold information between the request sending device and the network platform, the problems of low network flow control efficiency and current limiter failure in the existing technology are solved, the efficiency and success rate of network request processing are improved, and the network platform is enhanced. stability.

CN116155808BActive Publication Date: 2024-09-13MULTIPOINT (SHENZHEN) DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111385976.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-22
Publication Date
2024-09-13
Estimated Expiration
2041-11-22

AI Technical Summary

Technical Problem

In the existing network flow control method, the request sending device needs to send the request through the network current limiter, resulting in low processing efficiency, and when the current limiter fails, the request link will be interrupted, causing failure.

Method used

By determining network threshold information within a preset time range, network traffic is dynamically controlled, avoiding the use of network flow limiters, and controlling flow directly between the request sending device and the network platform to achieve precise management and flow limiting of network traffic.

Benefits of technology

It improves network request processing efficiency and success rate, avoids interruption problems caused by current limiter failure, optimizes computing resource allocation, and enhances the stability of the network platform and computing resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116155808B
    Figure CN116155808B
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a network traffic control method, device, electronic device and computer-readable medium. A specific implementation of the method includes: determining the first network threshold information and the second network threshold information set within a second preset time range according to the set of order information groups generated within the first preset time range; obtaining the first network request group set received within the target unit time; limiting the flow of the first target network request in the first target network request group or updating the network threshold of the second network threshold information corresponding to the first target network request group; limiting the flow of the first network request in the first network request group set or updating the network threshold of the first network threshold information. This implementation improves the network request processing efficiency and the success rate of network request sending.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a network traffic control method, device, electronic device, and computer-readable medium. Background Art

[0002] With the rapid development of modern information technology, network platforms receive more and more network requests. How to control the network traffic generated by network requests is of great significance to prevent network platform avalanche. At present, when performing network traffic control, the commonly used method is to set a network flow limiter between the network platform and the request sending device to achieve control of network traffic.

[0003] However, when the above method is adopted, the following technical problems often occur:

[0004] First, since the network request sent by the request sending device to the network platform often needs to flow through the network limiter first, and then be sent to the network platform through the network limiter, this increases the time it takes for the request sending device to send the network request to the network platform, thereby causing low efficiency in network request processing;

[0005] Second, once a network current limiter fails, it often interrupts the network link through which the request sending device sends the network request to the network platform, thereby causing the network request to fail to be sent. Summary of the invention

[0006] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0007] Some embodiments of the present disclosure propose a network traffic control method, an apparatus, an electronic device, and a computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.

[0008] In a first aspect, some embodiments of the present disclosure provide a method for network traffic control, the method comprising: determining first network threshold information and second network threshold information sets within a second preset time range based on a set of order information groups generated within a first preset time range, wherein the first network threshold information is used to characterize the maximum total network request volume allowed to be accessed within a target unit time, and the second network threshold information in the second network threshold information set is used to characterize the maximum network request volume initiated from a target request interface in a target request interface set within a target unit time; obtaining a first network request group set received within a target unit time; in response to the presence of a first target network request group in the first network request group set, The first target network request in the first target network request group is flow-limited or the second network threshold information corresponding to the first target network request group is updated with a network threshold, wherein the first target network request group is the first network request group in the first network request group set that meets the target condition, and the target condition is that the total amount of the first network requests in the first network request group is greater than the network threshold represented by the second network threshold information corresponding to the first network request group; in response to the total amount of the first network requests in the first network request group set being greater than the network threshold represented by the first network threshold information, the first network requests in the first network request group set are flow-limited or the first network threshold information is updated with a network threshold.

[0009] In a second aspect, some embodiments of the present disclosure provide a network traffic control device, the device comprising: a determination unit, configured to determine first network threshold information and a second network threshold information set within a second preset time range based on a set of order information groups generated within a first preset time range, wherein the first network threshold information is used to characterize the maximum total network request volume allowed to be accessed within a target unit time, and the second network threshold information in the second network threshold information set is used to characterize the maximum network request volume initiated from a target request interface in a target request interface set within a target unit time; an acquisition unit, configured to acquire a first network request group set received within a target unit time; a first current limiting update unit, configured to respond to the presence of a first target in the first network request group set. A network request group, limiting the flow of the first target network request in the above-mentioned first target network request group or updating the network threshold of the second network threshold information corresponding to the above-mentioned first target network request group, wherein the above-mentioned first target network request group is the first network request group in the above-mentioned first network request group set that meets the target condition, and the above-mentioned target condition is that the total amount of the first network requests in the first network request group is greater than the network threshold represented by the second network threshold information corresponding to the first network request group; a second flow limiting update unit, configured to, in response to the total amount of the first network requests in the above-mentioned first network request group set being greater than the network threshold represented by the above-mentioned first network threshold information, limit the flow of the first network request in the above-mentioned first network request group set or update the network threshold of the above-mentioned first network threshold information.

[0010] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.

[0011] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.

[0012] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the network traffic control method of some embodiments of the present disclosure, the network request processing efficiency and the success rate of network request sending are improved. Specifically, the reasons for the low efficiency of network request processing and the failure of network request sending are: first, since the network request sent by the request sending device to the network platform often needs to flow through the network limiter first, and then be sent to the network platform through the network limiter, thereby increasing the time for the request sending device to send the network request to the network platform, thereby causing low efficiency in network request processing. Second, once the network limiter fails, it often interrupts the network link for the request sending device to send the network request to the network platform, thereby causing the failure of network request sending (for example, the above-mentioned network limiter can be implemented by the leaky bucket algorithm). The above-mentioned request sending device is often a device (such as a mobile phone) that sends a network request to a network platform (for example, a third-party electronic payment platform). Based on this, the network traffic control method of some embodiments of the present disclosure, first, according to the order information group set generated within the first preset time range, determines the first network threshold information and the second network threshold information set within the second preset time range, wherein the first network threshold information is used to characterize the maximum total network request volume allowed to be accessed within the target unit time, and the second network threshold information in the second network threshold information set is used to characterize the maximum network request volume initiated from the target request interface in the target request interface set within the target unit time. Therefore, the network threshold corresponding to the second network threshold information in the first network threshold information and the second network threshold information set can be set to achieve control of network traffic on the network platform. Since the first network threshold information and the second network threshold information set are determined according to the order information group set generated within the first preset time range. Therefore, the accuracy of the second network threshold information in the first network threshold information and the second network threshold information set is improved. Secondly, since the network threshold is used, when the network traffic control is performed, it is not necessary to set a network flow limiter between the network platform and the request sending device. Thus, the technical problems caused by the network flow limiter are avoided. Furthermore, the network request processing efficiency and the success rate of network request sending are improved. Secondly, since the second network threshold information in the first network threshold information and the second network threshold information set is dynamically determined, the rationality of the allocation of computing resources of the network platform is improved. Next, the first network request group set received within the target unit time is obtained.Then, in response to the existence of the first target network request group in the above-mentioned first network request group set, the first target network request in the above-mentioned first target network request group is limited or the network threshold value of the second network threshold information corresponding to the above-mentioned first target network request group is updated, wherein the above-mentioned first target network request group is the first network request group in the above-mentioned first network request group set that meets the target condition, and the above-mentioned target condition is that the total amount of the first network request in the first network request group is greater than the network threshold represented by the second network threshold information corresponding to the first network request group. Therefore, when the first target network request in the above-mentioned first target network request group is limited, it will not affect the network platform's processing of the first network request other than the first target network request group in the first network request group set. Thereby, the processing success rate of the first network request other than the first target network request group in the first network request group set is improved. When the network threshold value of the second network threshold information corresponding to the above-mentioned first target network request group is updated, the network request processing volume generated by processing the first target network request in the first target network request group is increased. Finally, in response to the total amount of the first network requests in the above-mentioned first network request group set being greater than the network threshold represented by the above-mentioned first network threshold information, the first network requests in the above-mentioned first network request group set are limited or the network threshold information is updated. Therefore, when the first network requests in the above-mentioned first network request group set are limited, the network platform as a whole can be protected, the network platform avalanche can be prevented, and the stability of the network platform can be improved. When the network threshold information is updated, the purpose of fully utilizing the computing resources of the network platform can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0014] Figure 1 is a schematic diagram of an application scenario of the network traffic control method of some embodiments of the present disclosure;

[0015] Figure 2 is a flow chart of some embodiments of the network traffic control method according to the present disclosure;

[0016] Figure 3 is a flow chart of other embodiments of the network traffic control method according to the present disclosure;

[0017] Figure 4 is a schematic diagram of the structure of some embodiments of the network traffic control device according to the present disclosure;

[0018] Figure 5 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0019] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0020] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0021] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0022] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0023] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0024] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0025] Figure 1 It is a schematic diagram of an application scenario of the network traffic control method of some embodiments of the present disclosure.

[0026] exist Figure 1In the application scenario, first, the computing device 101 can determine the first network threshold information 103 and the second network threshold information set 104 within the second preset time range based on the order information group set 102 generated within the first preset time range, wherein the first network threshold information 103 is used to characterize the maximum total network request volume allowed to be accessed within the target unit time, and the second network threshold information in the second network threshold information set 104 is used to characterize the maximum network request volume initiated from the target request interface in the target request interface set within the target unit time. Secondly, the computing device 101 can obtain the first network request group set 105 received within the target unit time. Next, the computing device 101 may, in response to the existence of the first target network request group 106 in the first network request group set 105, limit the flow 107 of the first target network request in the first target network request group 106 or update the network threshold 108 of the second network threshold information corresponding to the first target network request group 106, wherein the first target network request group 106 is the first network request group in the first network request group set 105 that meets the target condition, and the target condition is that the total amount of the first network requests in the first network request group is greater than the network threshold represented by the second network threshold information corresponding to the first network request group. Finally, the computing device 101 may, in response to the total amount of the first network requests in the first network request group set 105 being greater than the network threshold represented by the first network threshold information 103, limit the flow 109 of the first network request in the first network request group set 105 or update the network threshold 110 of the first network threshold information 103.

[0027] It should be noted that the computing device 101 can be hardware or software. When the computing device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. When the computing device is embodied as software, it can be installed in the hardware devices listed above. It can be implemented as multiple software or software modules for providing distributed services, or as a single software or software module. No specific limitation is made here.

[0028] It should be understood that Figure 1 The number of computing devices in the embodiment is only illustrative. Any number of computing devices may be provided according to implementation requirements.

[0029] Continue to refer Figure 2 , shows a process 200 of some embodiments of the network traffic control method according to the present disclosure. The network traffic control method comprises the following steps:

[0030] Step 201, determining a first network threshold information set and a second network threshold information set within a second preset time range according to a set of order information groups generated within a first preset time range.

[0031] In some embodiments, the execution subject of the network traffic control method (for example Figure 1 The computing device 101) shown can determine the first network threshold information and the second network threshold information set within the above-mentioned second preset time range based on the order information group set generated within the above-mentioned first preset time range.

[0032] The first preset time range may be a time period before a preset time. The preset time may be a preset time. The second preset time range may be a time period after the preset time. The end time of the first preset time range and the start time of the second preset time range may both be the preset time. The preset time may be the current time. For example, the preset time may be 12:36:16 on October 1, 2021. The first network threshold information may be used to characterize the maximum total network request volume allowed to be accessed within a target unit time. The second network threshold information in the second network threshold information set may be used to characterize the maximum network request volume initiated from the target request interface in the target request interface set within a target unit time. The target unit time may characterize the unit time of the second preset time range. For example, the duration of the target unit time may be 1 second. The user may generate order information through the target request interface in the target request interface set in the target terminal. The target terminal may be a terminal including a target application. The target application may be a program with an order payment function. The target request interface in the above-mentioned target request interface set may be an API (Application Programming Interface). The order information in the above-mentioned order information group set may include: order initiation time and payment method identifier. The payment method identifier may represent the target request interface adopted when the user generates order information through the target terminal. Among them, the payment method identifier included in each order information in each order information group in the above-mentioned order information group set may be the same. The network request may represent the data of the request sent by the user through the target terminal to generate order information. The order payment function may be a function for the target terminal to realize payment for the order through a third-party payment method.

[0033] As an example, this step may include the following steps:

[0034] The first step, for each order information group in the order information group set, determines the second network threshold information corresponding to the order information group, which may include the following sub-steps:

[0035] In the first sub-step, order information with the same order initiation time is selected from the above order information groups as a first information group set.

[0036] Among them, the order initiation time included in the first information in the first information group in the above-mentioned first information group set is the same.

[0037] The second sub-step is to determine the target prediction information sequence corresponding to the first information group set according to the amount of first information in each first information group in the first information group set.

[0038] The target prediction information in the target prediction information sequence may represent the predicted value of the number of target order information in the target order information set generated within the target unit time within the second preset range. The payment method identifier included in each target order information in the target order information set may be the same as the payment method identifier included in the order information in the order information group.

[0039] For example, the execution subject may determine the target prediction information sequence corresponding to the first information group set by a prediction algorithm according to the quantity of the first information in each first information group in the first information group set. The prediction algorithm may be but is not limited to any one of the following: a simple average method, a moving average method, and a linear regression method.

[0040] For example, the first information groups in the first information group set may be ordered. For example, the order of the first information groups in the first information group set may be in ascending order according to the order initiation time included in the first information in the first information group in the first information group set.

[0041] The second preset range may include [target unit time A, target unit time B, target unit time C]. The target prediction information sequence may be [20, 30, 40]. Among them, the predicted value of the order quantity corresponding to the target unit time A may be "20". The predicted value of the order quantity corresponding to the target unit time B may be "30". The predicted value of the order quantity corresponding to the target unit time C may be "40".

[0042] The third sub-step is to determine the maximum value among the prediction values ​​represented by each target prediction information in the above target prediction information sequence as the target prediction peak information.

[0043] The fourth sub-step is to determine the second network threshold information according to the target prediction peak information.

[0044] For example, the execution subject may determine the second network threshold information according to the target prediction peak information by the following formula:

[0045] N1=q1·n1.

[0046] Wherein, N1 is the network threshold represented by the second network threshold information corresponding to the target prediction peak information. q1 is a value in the first preset numerical range. The first preset numerical range may be a preset numerical range. For example, the first preset numerical range may be (1, 2). n1 is the predicted value represented by the target prediction peak information.

[0047] The second step is to determine the first network threshold information according to the obtained second network threshold information set.

[0048] For example, the execution entity may accumulate the network thresholds represented by the respective second network threshold information in the second network threshold information set to obtain the network threshold represented by the first network threshold information.

[0049] Step 202: Obtain a first set of network request groups received within a target unit time.

[0050] In some embodiments, the execution subject may obtain the first network request group set received within a target unit time by means of a wired connection or a wireless connection.

[0051] Among them, the first network request in the first network request group in the above-mentioned first network request group set may be a network request initiated by the target request interface in the above-mentioned target request interface set. The first network request in the above-mentioned first network request group set may represent the order information initiated through the target request interface within the target unit time in the above-mentioned second preset time range. The payment method identifiers included in each first network request in the first network request group in the above-mentioned first network request group set may be the same.

[0052] Step 203, in response to the existence of the first target network request group in the first network request group set, limiting the flow of the first target network request in the first target network request group or updating the network threshold of the second network threshold information corresponding to the first target network request group.

[0053] In some embodiments, the execution subject may, in response to the existence of the first target network request group in the first network request group set, limit the flow of the first target network request in the first target network request group or update the network threshold of the second network threshold information corresponding to the first target network request group. The first target network request group may be the first network request group in the first network request group set that meets the target condition. The target condition may be that the total amount of the first network request in the first network request group is greater than the network threshold represented by the second network threshold information corresponding to the first network request group. The number of first network requests in the first network request group may be determined by a target counter. The target counter may be used to accumulate the total amount of the first network request in a target unit time. For example, the target counter may be, but is not limited to, any one of the following: a distributed counter, a synchronous counter, and a binary counter.

[0054] As an example, the execution subject may determine the first preset threshold information as the second network threshold information corresponding to the first target network request group, so as to implement the network threshold update of the second network threshold information corresponding to the first target network request group. The network threshold represented by the first preset threshold information may be greater than the network threshold represented by the second network threshold information before the network threshold corresponding to the first target network request group is updated. The network threshold represented by the first preset threshold information may be less than the network threshold represented by the first network threshold information.

[0055] As another example, the execution entity may not send the data requested by the first target network request to the target terminal corresponding to the first target network request in the first target network request group, so as to achieve current limiting for the first target network request in the first target network request group.

[0056] Step 204, in response to the total amount of the first network requests in the first network request group set being greater than the network threshold represented by the first network threshold information, limiting the flow of the first network requests in the first network request group set or updating the network threshold of the first network threshold information.

[0057] In some embodiments, the execution entity may, in response to the total amount of the first network requests in the first network request group set being greater than the network threshold represented by the first network threshold information, limit the flow of the first network requests in the first network request group set or update the network threshold of the first network threshold information.

[0058] As an example, the first network request in the first network request group in the above-mentioned first network request group set may include: the network request sending time.

[0059] First, the execution subject may filter out the first network request group that meets the third filtering condition from the first network request group set according to the network request sending time included in the first network request in the first network request group set, as the first sub-network request, to obtain the first sub-network request group. Among them, the network request sending time included in the first network request in the first network request group set may be the time when the corresponding first network request is sent to the execution subject. The third filtering condition may be that the network request sending time included in the first network request is greater than the destination time. The destination time may be the same as the request initiation time included in the destination number of the first network request in the first network request group set. The destination number may be the same as the network threshold represented by the first network threshold information.

[0060] Then, for each first subnetwork request in the first subnetwork request group, the execution entity may refuse to send the data requested by the first subnetwork request to the target terminal corresponding to the first subnetwork request, so as to achieve current limiting for the first subnetwork request in the first subnetwork request group.

[0061] For example, for each first sub-network request in the above-mentioned first sub-network request group, the above-mentioned execution entity may not send the data requested by the above-mentioned first sub-network request to the target terminal corresponding to the above-mentioned first sub-network request, but only send a prompt message (such as, there are too many visitors at present, please visit later.) to achieve current limiting of the first sub-network request in the above-mentioned first sub-network request group.

[0062] As another example, the execution entity may determine the second preset threshold information as the first network threshold information to implement a network threshold update for the first network threshold information. The network threshold represented by the second preset threshold information may be greater than the network threshold represented by the first network threshold information before the network threshold update. The network threshold represented by the second preset threshold information is less than a critical value. The critical value may represent the maximum network request processing volume when the network platform avalanches.

[0063] As another example, the execution entity may not send the data requested by the first network request to the target terminal corresponding to the first network request in the first network request group set, so as to achieve current limiting for the first network request in the first network request group set.

[0064] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the network traffic control method of some embodiments of the present disclosure, the network request processing efficiency and the success rate of network request sending are improved. Specifically, the reasons for the low efficiency of network request processing and the failure of network request sending are: first, since the network request sent by the request sending device to the network platform often needs to flow through the network limiter first, and then be sent to the network platform through the network limiter, thereby increasing the time for the request sending device to send the network request to the network platform, thereby causing low efficiency in network request processing. Second, once the network limiter fails, it often interrupts the network link for the request sending device to send the network request to the network platform, thereby causing the failure of network request sending (for example, the above-mentioned network limiter can be implemented by the leaky bucket algorithm). The above-mentioned request sending device is often a device (such as a mobile phone) that sends a network request to a network platform (for example, a third-party electronic payment platform). Based on this, the network traffic control method of some embodiments of the present disclosure, first, according to the order information group set generated within the first preset time range, determines the first network threshold information and the second network threshold information set within the second preset time range, wherein the first network threshold information is used to characterize the maximum total network request volume allowed to be accessed within the target unit time, and the second network threshold information in the second network threshold information set is used to characterize the maximum network request volume initiated from the target request interface in the target request interface set within the target unit time. Therefore, the network threshold corresponding to the second network threshold information in the first network threshold information and the second network threshold information set can be set to achieve control of network traffic on the network platform. Since the first network threshold information and the second network threshold information set are determined according to the order information group set generated within the first preset time range. Therefore, the accuracy of the second network threshold information in the first network threshold information and the second network threshold information set is improved. Secondly, since the network threshold is used, when the network traffic control is performed, it is not necessary to set a network flow limiter between the network platform and the request sending device. Thus, the technical problems caused by the network flow limiter are avoided. Furthermore, the network request processing efficiency and the success rate of network request sending are improved. Secondly, since the second network threshold information in the first network threshold information and the second network threshold information set is dynamically determined, the rationality of the allocation of computing resources of the network platform is improved. Next, the first network request group set received within the target unit time is obtained.Then, in response to the existence of the first target network request group in the above-mentioned first network request group set, the first target network request in the above-mentioned first target network request group is limited or the network threshold value of the second network threshold information corresponding to the above-mentioned first target network request group is updated, wherein the above-mentioned first target network request group is the first network request group in the above-mentioned first network request group set that meets the target condition, and the above-mentioned target condition is that the total amount of the first network request in the first network request group is greater than the network threshold represented by the second network threshold information corresponding to the first network request group. Therefore, when the first target network request in the above-mentioned first target network request group is limited, it will not affect the network platform's processing of the first network request other than the first target network request group in the first network request group set. Thereby, the processing success rate of the first network request other than the first target network request group in the first network request group set is improved. When the network threshold value of the second network threshold information corresponding to the above-mentioned first target network request group is updated, the network request processing volume generated by processing the first target network request in the first target network request group is increased. Finally, in response to the total amount of the first network requests in the above-mentioned first network request group set being greater than the network threshold represented by the above-mentioned first network threshold information, the first network requests in the above-mentioned first network request group set are limited or the network threshold information is updated. Therefore, when the first network requests in the above-mentioned first network request group set are limited, the network platform as a whole can be protected, the network platform avalanche can be prevented, and the stability of the network platform can be improved. When the network threshold information is updated, the purpose of fully utilizing the computing resources of the network platform can be achieved.

[0065] Further references Figure 3 , which shows a process 300 of another embodiment of a network traffic control method. The process 300 of the network traffic control method includes the following steps:

[0066] Step 301, determining a first network threshold information set and a second network threshold information set within a second preset time range according to a set of order information groups generated within a first preset time range.

[0067] In some embodiments, the execution subject of the network traffic control method (for example Figure 1 The computing device 101) shown can determine the first network threshold information and the second network threshold information set within the above-mentioned second preset time range based on the order information group set generated within the above-mentioned first preset time range.

[0068] As an example, this step may include the following steps:

[0069] The first step is to filter out order information with the same order initiation time from the above order information group set to obtain a first order information group set.

[0070] Among them, the order initiation time included in the first order information in the first order information group in the above-mentioned first order information group set can be the same.

[0071] The second step is to determine the first prediction information group corresponding to the first order information group according to the number of first order information in each first order information group in the first order information group set, and obtain a first prediction information group sequence.

[0072] Among them, each piece of first prediction information in each first prediction information group in the above-mentioned first prediction information group sequence can represent the approximate number of first order information in the first order information group corresponding to the above-mentioned first prediction information group.

[0073] For example, the execution entity may round up the number of first order information in the first order information group to determine the first prediction information group corresponding to the first order information group. The first prediction information group may include only one first prediction information. For example, the number of first order information in the first order information group may be 56. The execution entity may round up 56 to determine that the first prediction information group is

[60] .

[0074] Optionally, the execution entity may determine the first prediction information group corresponding to the first order information group according to the number of first order information in each first order information group in the first order information group set, and obtain a first prediction information group sequence. The first prediction information group sequence may include: a fourth prediction information group and an eighth prediction information group sequence. The fourth prediction information group may include: fifth prediction information, sixth prediction information and seventh prediction information. The first prediction information group in the first prediction information group sequence may include: fifth prediction information, sixth prediction information and seventh prediction information. The fourth prediction information group may be the first group of first prediction information groups in the first prediction information group sequence. The eighth prediction information group sequence may be the first prediction information group sequence with the fourth prediction information group truncated.

[0075] For example, the execution subject may determine the first prediction information group corresponding to the first order information group according to the number of first order information in each first order information group in the first order information group set, and obtain the fourth prediction information group and the eighth prediction information group sequence, which may include the following sub-steps:

[0076] The first sub-step is to sort the first order information groups in the above-mentioned first order information group set according to the order initiation time included in the first order information in each first order information group in the above-mentioned first order information group set to generate a first order information group sequence.

[0077] The first order information group sequence may include: a fifth order information group sequence. The sorting of the first order information groups in the first order information group sequence may be sorted in ascending order according to the order initiation time included in the first order information in the first order information group in the first order information group sequence. The fifth order information group sequence may be the first order information group sequence with the first group of first order information groups in the first order information group sequence truncated.

[0078] The second sub-step is to extract the first sub-order information group, the second sub-order information group and the third sub-order information group from the above-mentioned first order information group sequence.

[0079] The first sub-order information group may be the first group of first order information groups in the first order information group sequence. The second sub-order information group may be the second group of first order information groups in the first order information group sequence. The third sub-order information group may be the third group of first order information groups in the first order information group sequence.

[0080] The third sub-step is to determine the initial prediction information based on the number of first sub-order information in the above-mentioned first sub-order information group, the number of second sub-order information in the above-mentioned second sub-order information group, the number of third sub-order information in the third sub-order information group, the first target weight, the second target weight and the third target weight.

[0081] Among them, the numerical value represented by the above-mentioned initial prediction information can represent the weighted average of the number of first sub-order information in the above-mentioned first sub-order information group, the number of second sub-order information in the above-mentioned second sub-order information group, and the number of third sub-order information in the above-mentioned third sub-order information group.

[0082] For example, the execution entity may determine the initial prediction information according to the number of first sub-order information in the first sub-order information group, the number of second sub-order information in the second sub-order information group, the number of third sub-order information in the third sub-order information group, the first target weight, the second target weight and the third target weight through the following formula:

[0083] y0=w1·x1x+w2·x2+w3·x3.

[0084] Wherein, y0 is the above-mentioned initial prediction information. w1 is the above-mentioned first target weight. The above-mentioned first target weight can represent a numerical value in (0, 1). w2 is the above-mentioned second target weight. The above-mentioned second target weight can represent a numerical value in (0, 1-w1). w3 is the above-mentioned third target weight. The above-mentioned third target weight can represent a numerical value in (0, 1-w1-w2). x1 is the number of first sub-order information in the above-mentioned first sub-order information group. x2 is the number of second sub-order information in the above-mentioned second sub-order information group. x3 is the number of third sub-order information in the above-mentioned third sub-order information group.

[0085] The fourth sub-step is to determine the fifth prediction information included in the fourth prediction information group based on the initial prediction information, the number of first sub-order information in the first sub-order information group, the fourth target weight and the fifth target weight.

[0086] For example, the execution entity may determine the fifth prediction information included in the fourth prediction information group according to the initial prediction information, the number of first sub-order information in the first sub-order information group, the fourth target weight and the fifth target weight by the following formula:

[0087]

[0088] in, is the fifth prediction information included in the fourth prediction information group. w4 is the fourth target weight. The fourth target weight can represent a value in (0, 1). x1 is the number of first sub-order information in the first sub-order information group. w5 is the fifth target weight. The fifth target weight can represent a value in (0, 1-w4). y0 is the initial prediction information.

[0089] The fifth sub-step is to determine the sixth prediction information included in the fourth prediction information group based on the initial prediction information, the fifth prediction information included in the fourth prediction information group, the fourth target weight and the fifth target weight.

[0090] For example, the execution entity may determine the sixth prediction information included in the fourth prediction information group according to the initial prediction information, the fifth prediction information included in the fourth prediction information group, the fourth target weight and the fifth target weight by the following formula:

[0091]

[0092] in, is the sixth prediction information included in the fourth prediction information group. w4 is the fourth target weight. The fourth target weight can represent a value in (0, 1). is the fifth prediction information included in the fourth prediction information group. w5 is the fifth target weight. The fifth target weight can represent a value in (0, 1-w4). y0 is the initial prediction information.

[0093] The sixth sub-step is to determine the seventh prediction information included in the fourth prediction information group based on the initial prediction information, the sixth prediction information included in the fourth prediction information group, the fourth target weight and the fifth target weight.

[0094] For example, the execution entity may determine the seventh prediction information included in the fourth prediction information group according to the initial prediction information, the sixth prediction information included in the fourth prediction information group, the fourth target weight and the fifth target weight by the following formula:

[0095]

[0096] in, is the seventh prediction information included in the fourth prediction information group. w4 is the fourth target weight. The fourth target weight can represent a value in (0, 1). is the sixth prediction information included in the fourth prediction information group. w5 is the fifth target weight. The fifth target weight can represent a value in (0, 1-w4). y0 is the initial prediction information.

[0097] The seventh sub-step is to determine the eighth prediction information group corresponding to the fifth order information group based on the number of fifth order information in each fifth order information group in the fifth order information group sequence, the fifth prediction information included in the fourth prediction information group, the sixth prediction information included in the fourth prediction information group, the seventh prediction information included in the fourth prediction information group, the fourth target weight and the fifth target weight, and obtain the eighth prediction information group sequence.

[0098] For example, the execution entity may determine the eighth prediction information group corresponding to the fifth order information group based on the number of fifth order information in each fifth order information group in the fifth order information group sequence, the fifth prediction information included in the fourth prediction information group, the sixth prediction information included in the fourth prediction information group, the seventh prediction information included in the fourth prediction information group, the fourth target weight and the fifth target weight, by the following formula:

[0099]

[0100] Wherein, t represents the position of the fifth order information group in the fifth order information group sequence, and t-1 represents the position of the t-1th fifth order information group in the fifth order information group sequence. It is the fifth prediction information included in the eighth prediction information group corresponding to the fifth order information group. It is the sixth prediction information included in the eighth prediction information group corresponding to the fifth order information group. is the seventh prediction information included in the eighth prediction information group corresponding to the fifth order information group. w4 is the fourth target weight. The fourth target weight can represent a value in (0, 1). w5 is the fifth target weight. The fifth target weight can represent a value in (0, 1-w4). t It is the quantity of the fifth order information in the above-mentioned fifth order information group. It is the fifth prediction information included in the eighth prediction information group corresponding to the t-1th fifth order information group in the above-mentioned fifth order information group sequence. It is the sixth prediction information included in the eighth prediction information group corresponding to the t-1th fifth order information group in the above-mentioned fifth order information group sequence. It is the seventh prediction information included in the eighth prediction information group corresponding to the t-1th fifth order information group in the above-mentioned fifth order information group sequence.

[0101] Therefore, by setting different weights for the number of first order information in the first order information group in the above-mentioned first order information group set according to the time when the first order information was generated, the first prediction information in the first prediction information group in the predicted first prediction information group sequence is made closer to the actual value. Thus, the accuracy of the first prediction information in the first prediction information group in the first prediction information group sequence is improved. Secondly, this method of predicting by setting different weights can require a relatively small number of first order information groups. Therefore, the processing of the first order information group is reduced. Thus, the occupation of computing resources of the network platform is reduced.

[0102] The third step is to extract a preset number of first prediction information groups from the tail of the first prediction information group sequence to obtain a second prediction information group sequence.

[0103] The tail of the first prediction information group sequence may be the position where the last first prediction information group in the first prediction information group sequence is located. The preset number may be a preset number. For example, the preset number may be 1.

[0104] The fourth step is to determine the third prediction information sequence based on the second prediction information group sequence.

[0105] Among them, the third prediction information in the above-mentioned third prediction information sequence can represent the predicted value of the total amount of order information generated within the target unit time. For example, the above-mentioned second preset range may include [target unit time A, target unit time B, target unit time C]. The above-mentioned third prediction information sequence may be [30, 40, 50]. Among them, the predicted value of the total order quantity corresponding to the target unit time A may be "30". The predicted value of the total order quantity corresponding to the target unit time B may be "40". The predicted value of the total order quantity corresponding to the target unit time C may be "50".

[0106] For example, the second prediction information group sequence may include: a tenth prediction information group sequence. The tenth prediction information group sequence may include three first prediction information groups intercepted from the tail of the first prediction information group sequence.

[0107] For example, the execution entity may determine each third prediction information in the third prediction information sequence according to the tenth prediction information group sequence, the first target weight, the second target weight, and the third target weight by the following formula:

[0108] y s =w1·y s-1 +w 2· y s-2 +w3·y s-3 .

[0109] Wherein, S represents the position of the Sth third prediction information in the above-mentioned third prediction information sequence. s-1 represents the position of the s-1th third prediction information in the above-mentioned third prediction information sequence. s-2 represents the position of the s-2th third prediction information in the above-mentioned third prediction information sequence. s-3 represents the position of the s-3th third prediction information in the above-mentioned third prediction information sequence. ys is the above-mentioned third prediction information. w1 is the first target weight. The above-mentioned first target weight can represent a value in (0, 1). w2 is the above-mentioned second target weight. The above-mentioned second target weight can represent a value in (0, 1-w1). w3 is the above-mentioned third target weight. The above-mentioned third target weight can represent a value in (0, 1-w1-w2). y s-1 is the s-1th third prediction information in the third prediction information sequence. s-2 is the s-2th third prediction information in the third prediction information sequence. s-3It is the s-3th third prediction information in the third prediction information sequence. When the first three third prediction information in the third prediction information sequence are determined, the third prediction information sequence can be spliced ​​with the seventh prediction information included in each tenth prediction information group in the tenth prediction information group sequence to obtain a new third prediction information sequence. The seventh prediction information included in the third, second and first tenth prediction information groups in the tenth prediction information group sequence can be used as the first, second and third third prediction information in the new third prediction information sequence, respectively. The first, second and third third prediction information in the third prediction information sequence can be used as the fourth, fifth and sixth third prediction information in the new third prediction information sequence, respectively.

[0110] Optionally, a third prediction information sequence is determined based on the second prediction information group sequence, wherein the second prediction information group sequence may include: a ninth prediction information group, wherein the ninth prediction information group may be a first prediction information group intercepted from the tail of the first prediction information group sequence.

[0111] For example, the execution subject may determine the third prediction information according to the ninth prediction information group, the position information corresponding to each third prediction information in the third prediction information sequence, the fourth target weight, and the fifth target weight, to obtain the third prediction information sequence. The position information may represent the position of the third prediction information in the third prediction information sequence in the third prediction information sequence.

[0112] For example, the execution subject may determine the third prediction information according to the ninth prediction information group, the position information corresponding to each third prediction information in the third prediction information sequence, the fourth target weight, and the fifth target weight by the following formula:

[0113]

[0114] Wherein, y is the third prediction information, a is the first parameter, b is the second parameter, c is the third parameter, and T is the position of the third prediction information in the third prediction information sequence. It is the fifth prediction information included in the first prediction information group corresponding to the ninth prediction information group. It is the sixth prediction information included in the first prediction information group corresponding to the above-mentioned ninth prediction information group. is the seventh prediction information included in the first prediction information group corresponding to the ninth prediction information group. w4 is the fourth target weight. The fourth target weight can represent a value in (0, 1). w5 is the fifth target weight. The fifth target weight can represent a value in (0, 1-w4).

[0115] The fifth step is to select the third prediction information satisfying the first screening condition from the third prediction information sequence as the third prediction peak information.

[0116] The first screening condition may be that the prediction value represented by the third prediction information is the largest among the prediction values ​​represented by the third prediction information in the third prediction information sequence.

[0117] Step 6: Determine the first network threshold information based on the third predicted peak value information.

[0118] For example, the execution entity may determine the first network threshold information according to the third predicted peak value information by the following formula:

[0119] N2=q2·n2.

[0120] Wherein, N2 is the first network threshold information. q2 is a value in a second preset value range. The second preset value range may be a preset value range. For example, the second preset value range may be (1, 2). n2 is the third predicted peak value information.

[0121] Step 7: Determine the second network threshold information corresponding to the above order information group based on the number of order information in the above order information group set, the number of order information in each order information group in the above order information group set and the above first network threshold information to generate the above second network threshold information set.

[0122] For example, the execution subject determines the second network threshold information corresponding to the order information group according to the number of order information in the order information group set, the number of order information in each order information group in the order information group set, and the first network threshold information, which may include the following sub-steps:

[0123] In the first sub-step, the execution entity may determine the ratio information corresponding to the order information group according to the number of order information in the order information group set and the number of order information in the order information group by using the following formula:

[0124]

[0125] Wherein, h is the ratio information corresponding to the above order information group, z1 is the number of order information in the above order information group set, and z2 is the number of order information in the above order information group.

[0126] In the second sub-step, the execution entity may determine the second network threshold information corresponding to the order information group according to the ratio information corresponding to the order information group and the first network threshold information by the following formula:

[0127] N1=h·N2.

[0128] Wherein, N1 is the second network threshold information corresponding to the above order information group, h is the ratio information corresponding to the above order information group, and N2 is the above first network threshold information.

[0129] Step 302: Obtain a first set of network request groups received within a target unit time.

[0130] In some embodiments, the specific implementation of step 302 and the technical effects brought about can be referred to Figure 2 The corresponding step 202 in the embodiments will not be described in detail here.

[0131] Step 303: Send the target page to the target terminal set corresponding to the first network request group set.

[0132] In some embodiments, the execution subject may send a target page to a target terminal set corresponding to the first network request group set by wireless connection. The first network request in the first network request group set may correspond to a target terminal in the target terminal set one by one. The target terminal in the target terminal set may be used to receive the target page. The execution subject may send a target page to each target terminal in the target terminal set. The target page may be used to display the data requested by the first network request in the first network request group set.

[0133] Step 304: According to the network request sending time included in the first target network request in the first target network request group, the first target network request that meets the second screening condition is screened out from the first target network request group as the second target network request, thereby obtaining the second target network request group.

[0134] In some embodiments, the execution subject may filter out the first target network request that meets the second filtering condition from the first target network request group as the second target network request according to the network request sending time included in the first target network request in the first target network request group, thereby obtaining the second target network request group. The second filtering condition is that the network request sending time included in the first target network request is greater than the target time. The target time is the same as the request initiation time included in the target number of first target network requests in the first target network request group. The target number is the same as the network threshold represented by the second network threshold information corresponding to the first target network request group.

[0135] Step 305: For each second target network request in the second target network request group, refuse to send reply data to the target terminal corresponding to the second target network request.

[0136] In some embodiments, the execution entity may refuse to send reply data to the target terminal corresponding to the second target network request for each second target network request in the second target network request group, so as to achieve current limiting of the second target network requests in the second target network request group, wherein the reply data may be the data requested by the second target network request.

[0137] As an example, for each second target network request in the above-mentioned second target network request group, the above-mentioned execution entity may send only target prompt information to the target terminal corresponding to the above-mentioned second target network request without sending reply data. Among them, the above-mentioned target prompt information can be used to recommend an idle payment method to users who use a busy payment method. The amount of network requests sent by users using the above-mentioned busy payment method may be greater than the second network threshold information corresponding to the above-mentioned busy payment method. The amount of network requests sent by users using the above-mentioned idle payment method may be less than the second network threshold information corresponding to the above-mentioned idle payment method. For example, the above-mentioned target prompt information may be "There are too many users currently using X payment methods. It is recommended that you switch to Y payment methods or Z payment methods for payment."

[0138] Step 306, in response to the total amount of the first network requests in the first network request group set being greater than the network threshold represented by the first network threshold information, limiting the flow of the first network requests in the first network request group set or updating the network threshold of the first network threshold information.

[0139] In some embodiments, the specific implementation of step 306 and the technical effects brought about can be referred to Figure 2 The corresponding step 204 in the embodiments will not be described in detail here.

[0140] from Figure 3 It can be seen that Figure 2Compared with the description of some corresponding embodiments, the present disclosure first adds filtering out order information including the same order initiation time from the above-mentioned order information group set to obtain a first order information group set, wherein the order initiation time included in the first order information group in the above-mentioned first order information group set is the same. Next, according to the number of first order information in each first order information group in the above-mentioned first order information group set, the first prediction information group corresponding to the above-mentioned first order information group is determined to obtain a first prediction information group sequence. Continuing, it is added that a preset number of first prediction information groups are intercepted from the tail of the above-mentioned first prediction information group sequence to obtain a second prediction information group sequence. Then, according to the above-mentioned second prediction information group sequence, a third prediction information sequence is determined, wherein the third prediction information in the above-mentioned third prediction information sequence represents the predicted value of the total order initiation amount within the target unit time within the above-mentioned second preset time range. Since the third prediction information sequence is determined according to the order information group set. Therefore, the accuracy of the third prediction information in the third prediction information sequence is improved. Then, it is added that the third prediction information that meets the first screening condition is filtered out from the above-mentioned third prediction information sequence as the third prediction peak information. Afterwards, it is added that the first network threshold information is determined according to the third predicted peak information. Because, when the network is abnormal, there may be multiple network requests for order payment initiated for the same order information. Therefore, the network request received by the network platform may be slightly greater than the number of generated order information. Therefore, the first network threshold information is determined according to the third predicted peak information. The accuracy of the first network threshold information is improved. Secondly, it is added that the second network threshold information corresponding to the above-mentioned order information group is determined according to the number of order information in the above-mentioned order information group set, the number of order information in each order information group in the above-mentioned order information group set, and the above-mentioned first network threshold information to generate the above-mentioned second network threshold information set. Since the first network threshold information corresponds to the total network requests initiated by the target request interface set, the second network threshold information in the second network threshold information set corresponds to the total network requests initiated by the target request interface in the target request interface set. Therefore, the second network threshold information in the second network threshold information set is determined by the first network threshold information and the number of order information, which improves the accuracy of the second network threshold information in the second network threshold information set.Finally, according to the network request sending time included in the first target network request in the first target network request group, the first target network request that meets the second screening condition is screened out from the first target network request group as the second target network request, and the second target network request group is obtained, wherein the second screening condition is that the network request sending time included in the first target network request is greater than the target time, the target time is the same as the request initiation time included in the target number of the first target network request in the first target network request group, and the target number is the same as the network threshold represented by the second network threshold information corresponding to the first target network request group. For each second target network request in the second target network request group, the target terminal corresponding to the second target network request is refused to send reply data, wherein the reply data is the data requested by the second target network request. Since only the second target network request in the second target network request group is limited, the processing of the first target network request in the first target network request group other than the second target network request group by the execution subject is not affected. Thus, the rationalization of the allocation of computing resources of the network platform is improved.

[0141] Further references Figure 4 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a network traffic control device. These device embodiments are Figure 2 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.

[0142] like Figure 4As shown, the network traffic control device 400 of some embodiments includes: a determination unit 401, an acquisition unit 402, a first current limiting update unit 403 and a second current limiting update unit 404. The determination unit 401 is configured to determine the first network threshold information and the second network threshold information set within the second preset time range according to the order information group set generated within the first preset time range, wherein the first network threshold information is used to characterize the maximum total network request volume allowed to be accessed within the target unit time, and the second network threshold information in the second network threshold information set is used to characterize the maximum network request volume initiated from the target request interface in the target request interface set within the target unit time; the acquisition unit 402 is configured to acquire the first network request group set received within the target unit time; the first current limiting update unit 403 is configured to respond to the existence of the first target network request group in the first network request group set, to update the first target network request group in the first network request group set. The first target network request in the target network request group is limited in flow or the second network threshold information corresponding to the first target network request group is updated in network threshold, wherein the first target network request group is the first network request group in the first network request group set that meets the target condition, and the target condition is that the total amount of the first network requests in the first network request group is greater than the network threshold represented by the second network threshold information corresponding to the first network request group; the second flow limiting update unit 404 is configured to, in response to the total amount of the first network requests in the first network request group set being greater than the network threshold represented by the first network threshold information, limit the flow of the first network request in the first network request group set or update the network threshold of the first network threshold information.

[0143] It is understood that the units described in the device 400 are similar to those described in the reference Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 400 and the units included therein, and will not be described in detail here.

[0144] Reference below Figure 5 , which shows an electronic device (such as Figure 1 A schematic diagram of the structure of the computing device 101)500 is shown. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0145] like Figure 5As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0146] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 5 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0147] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0148] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0149] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0150] The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist independently without being assembled into the electronic device. The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: determines the first network threshold information and the second network threshold information set within the second preset time range according to the set of order information groups generated within the first preset time range, wherein the above-mentioned first network threshold information is used to characterize the maximum total network request volume allowed to be accessed within the target unit time, and the second network threshold information in the above-mentioned second network threshold information set is used to characterize the maximum network request volume initiated from the target request interface in the target request interface set within the target unit time; obtains the first network request group set received within the target unit time; and in response to the existence of the first target in the above-mentioned first network request group set, A network request group, limiting the flow of the first target network request in the above-mentioned first target network request group or updating the network threshold of the second network threshold information corresponding to the above-mentioned first target network request group, wherein the above-mentioned first target network request group is the first network request group in the above-mentioned first network request group set that meets the target condition, and the above-mentioned target condition is that the total amount of the first network requests in the first network request group is greater than the network threshold represented by the second network threshold information corresponding to the first network request group; in response to the total amount of the first network requests in the above-mentioned first network request group set being greater than the network threshold represented by the above-mentioned first network threshold information, limiting the flow of the first network requests in the above-mentioned first network request group set or updating the network threshold of the above-mentioned first network threshold information.

[0151] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0152] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0153] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be set in a processor, for example, may be described as: a processor includes a determination unit, an acquisition unit, a first current limiting update unit, and a second current limiting update unit. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances. For example, the acquisition unit may also be described as "a unit for acquiring a set of first network request groups received within a target unit time."

[0154] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0155] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. A network traffic control method, comprising: Determine, according to the set of order information groups generated within the first preset time range, first network threshold information and second network threshold information set within the second preset time range, wherein the first network threshold information is used to characterize the maximum total network request volume allowed to be accessed within the target unit time, and the second network threshold information in the second network threshold information set is used to characterize the maximum network request volume initiated from the target request interface in the target request interface set within the target unit time; Obtain the first network request group set received within a target unit time; In response to the existence of a first target network request group in the first network request group set, limiting the flow of the first target network request in the first target network request group or updating the network threshold of the second network threshold information corresponding to the first target network request group, wherein the first target network request group is the first network request group in the first network request group set that meets the target condition, and the target condition is that the total amount of the first network requests in the first network request group is greater than the network threshold represented by the second network threshold information corresponding to the first network request group; In response to the total amount of the first network requests in the first network request group set being greater than the network threshold represented by the first network threshold information, the first network requests in the first network request group set are limited or the network threshold information is updated.

2. The method according to claim 1, wherein: The order information in the order information group set includes: order initiation time; and The step of determining the first network threshold information and the second network threshold information set within the second preset time range according to the order information group set generated within the first preset time range includes: Filtering out order information including the same order initiation time from the order information group set to obtain a first order information group set, wherein the order initiation time included in the first order information group in the first order information group in the first order information group set is the same; According to the quantity of first order information in each first order information group in the first order information group set, determining a first prediction information group corresponding to the first order information group, and obtaining a first prediction information group sequence; intercepting a preset number of first prediction information groups from the tail of the first prediction information group sequence to obtain a second prediction information group sequence; Determine a third prediction information sequence according to the second prediction information group sequence, wherein the third prediction information in the third prediction information sequence represents a predicted value of the total order initiation quantity within a target unit time within the second preset time range; Filtering out third prediction information satisfying a first filtering condition from the third prediction information sequence as third prediction peak information; The first network threshold information is determined according to the third predicted peak value information.

3. The method according to claim 2, wherein: The step of determining the first network threshold information and the second network threshold information set within a second preset time range according to the order information group set generated within the first preset time range further includes: According to the number of order information in the order information group set, the number of order information in each order information group in the order information group set and the first network threshold information, the second network threshold information corresponding to the order information group is determined to generate the second network threshold information set.

4. The method according to claim 3, wherein: The first prediction information group sequence includes: a fourth prediction information group, the fourth prediction information group includes: fifth prediction information, sixth prediction information and seventh prediction information; and The step of determining the first prediction information group corresponding to the first order information group according to the quantity of the first order information in each first order information group in the first order information group set to obtain the first prediction information group sequence comprises: sorting the first order information groups in the first order information group set according to the order initiation time included in the first order information in each first order information group in the first order information group set to generate a first order information group sequence; Extracting a first sub-order information group, a second sub-order information group and a third sub-order information group from the first order information group sequence; determining initial prediction information according to the amount of first sub-order information in the first sub-order information group, the amount of second sub-order information in the second sub-order information group, the amount of third sub-order information in the third sub-order information group, the first target weight, the second target weight, and the third target weight; determining fifth prediction information included in the fourth prediction information group according to the initial prediction information, the number of first sub-order information in the first sub-order information group, the fourth target weight and the fifth target weight; Determining sixth prediction information included in the fourth prediction information group according to the initial prediction information, the fifth prediction information included in the fourth prediction information group, the fourth target weight and the fifth target weight; The seventh prediction information included in the fourth prediction information group is determined according to the initial prediction information, the sixth prediction information included in the fourth prediction information group, the fourth target weight and the fifth target weight.

5. The method according to claim 4, wherein: The first order information group sequence includes: a fifth order information group sequence, the first prediction information group sequence also includes: an eighth prediction information group sequence; and The step of determining the first prediction information group corresponding to the first order information group according to the number of first order information in each first order information group in the first order information group set to obtain a first prediction information group sequence further includes: Based on the number of fifth order information in each fifth order information group in the fifth order information group sequence, the fifth prediction information included in the fourth prediction information group, the sixth prediction information included in the fourth prediction information group, the seventh prediction information included in the fourth prediction information group, the fourth target weight and the fifth target weight, the eighth prediction information group corresponding to the fifth order information group is determined to obtain the eighth prediction information group sequence.

6. The method according to claim 5, wherein: The second prediction information group sequence includes: a ninth prediction information group; and The step of determining a third prediction information sequence according to the second prediction information group sequence comprises: The third prediction information is determined according to the ninth prediction information group, the position information corresponding to each third prediction information in the third prediction information sequence, the fourth target weight and the fifth target weight, and the third prediction information sequence is obtained, wherein the position information is used to characterize the position of the third prediction information in the third prediction information sequence.

7. The method according to claim 6, wherein: In response to the first network request group set having a first target network request group, before limiting the flow of the first target network request in the first target network request group or updating the network threshold of the second network threshold information corresponding to the first target network request group, the method further includes: A target page is sent to a target terminal set corresponding to the first network request group set, wherein the first network requests in the first network request group set correspond one-to-one to the target terminals in the target terminal set.

8. The method according to claim 7, wherein: The first network request in the first network request group in the first network request group set includes: a network request sending time; and In response to the first target network request group being in the first network request group set, limiting the flow of the first target network request in the first target network request group or updating the network threshold of the second network threshold information corresponding to the first target network request group includes: According to the network request sending time included in the first target network request in the first target network request group, the first target network request that meets the second screening condition is screened out from the first target network request group as the second target network request, to obtain the second target network request group, wherein the second screening condition is that the network request sending time included in the first target network request is greater than the target time, the target time is the same as the request initiation time included in the target number of first target network requests in the first target network request group, and the target number is the same as the network threshold represented by the second network threshold information corresponding to the first target network request group; For each second target network request in the second target network request group, refusing to send reply data to the target terminal corresponding to the second target network request, wherein the reply data is the data requested by the second target network request.

9. A network traffic control device, comprising: A determination unit is configured to determine, according to a set of order information groups generated within a first preset time range, first network threshold information and a second network threshold information set within a second preset time range, wherein the first network threshold information is used to characterize a maximum total network request volume allowed to be accessed within a target unit time, and the second network threshold information in the second network threshold information set is used to characterize a maximum network request volume initiated from a target request interface in a target request interface set within a target unit time; An acquisition unit is configured to acquire a first network request group set received within a target unit time; A first current limiting update unit is configured to, in response to the presence of a first target network request group in the first network request group set, limit the current of a first target network request in the first target network request group or update the network threshold of the second network threshold information corresponding to the first target network request group, wherein the first target network request group is the first network request group in the first network request group set that meets the target condition, and the target condition is that the total amount of the first network requests in the first network request group is greater than the network threshold represented by the second network threshold information corresponding to the first network request group; The second current limiting update unit is configured to, in response to the total amount of the first network requests in the first network request group set being greater than the network threshold represented by the first network threshold information, limit the current of the first network requests in the first network request group set or update the network threshold of the first network threshold information.

10. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.