Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Current limiting method and device

A current limiting method and current limiting technology, applied in the network field, can solve problems affecting client access, high labor cost of the current limiting threshold, and inability to allocate server access, so as to improve accuracy and reduce labor costs

Active Publication Date: 2021-08-13
BEIJING SANKUAI ONLINE TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The inventor conducted research on the above schemes and found that, for the first scheme, if one of the clients causes the access volume to exceed the threshold, the access of all clients will be rejected, which will affect the access of other normal clients; for the second scheme, each client It is difficult to determine the current limit threshold of the terminal, and when the number of clients is large, the labor cost of the current limit threshold is high. In addition, it is impossible to accurately allocate the traffic that the server can bear to each client

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Current limiting method and device
  • Current limiting method and device
  • Current limiting method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] refer to figure 1 , which shows a flow chart of the steps of the current limiting method in an embodiment of the present disclosure, specifically as follows.

[0034] Step 101 , monitor the access volume of each node in the preset current-limited binary tree, and the node has a current-limited threshold.

[0035] The embodiments of the present disclosure are used to perform access control on the server to ensure that the server can run normally without causing the server to crash due to excessive access.

[0036] Among them, the current-limited binary tree is constructed based on the full binary tree. In the initial state, the current-limited binary tree only includes one root node, such as image 3 As shown, the child node can be set as an empty node to process the access requests of all clients; when the access to the root node is greater than the current limiting threshold corresponding to the root node, the root node is split into a normal child node and an abnorma...

Embodiment 2

[0052] refer to figure 2 , which shows a flow chart of specific steps of the current limiting method in another embodiment of the present disclosure, specifically as follows.

[0053] Step 201, monitor the access volume of each node in the preset current-limited binary tree, and the node has a current-limited threshold.

[0054] For this step, reference may be made to the detailed description of step 101, which will not be repeated here.

[0055] Step 202, if the visit volume of a target abnormal node among the nodes is greater than the traffic limiting threshold of the target abnormal node, count the visit volume of the client corresponding to the target abnormal node within a preset time period.

[0056] Wherein, the preset time period may be a period of time before the current moment. For example, if the unit time is minutes, the ratio of the total number of access requests in the past two hours to 120 minutes is counted as the access amount.

[0057] It can be understoo...

Embodiment 3

[0121] refer to Figure 8 , which shows a structural diagram of a current limiting device in another embodiment of the present disclosure, as follows.

[0122] The traffic monitoring module 301 is configured to monitor the traffic of each node in the preset current-limited binary tree, and the node has a current-limiting threshold.

[0123] The client division module 302 is used to determine the abnormal client and the normal client from the clients corresponding to the target abnormal node if the visit volume of one target abnormal node in the nodes is greater than the current limiting threshold of the target abnormal node. client;

[0124] A current limiting threshold allocation module 303, configured to allocate the current limiting threshold of the target abnormal node to the abnormal client and the normal client, and obtain the abnormal child node corresponding to the abnormal client and the Normal child nodes.

[0125] The access control module 304 is configured to pe...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the present disclosure provide a current limiting method and device, the method includes: monitoring the access volume of each node in the preset current limiting binary tree, the node has a current limiting threshold; if a target abnormal node in the node The visit volume of the target abnormal node is greater than the current limiting threshold of the target abnormal node, then determine the abnormal client and normal client from the clients corresponding to the target abnormal node; assign the current limiting threshold of the target abnormal node to the abnormal client and normal client, and get Abnormal sub-nodes corresponding to abnormal clients and normal sub-nodes corresponding to normal clients; and access control based on the updated current-limiting binary tree. In this disclosure, when the client is abnormal, the current limiting threshold of the corresponding node of the abnormal client can be allocated to the abnormal client and the rest of the normal clients, thereby preventing the abnormality of one client from affecting the access of other normal clients, reducing labor costs, Improved the accuracy of the current limit threshold.

Description

technical field [0001] Embodiments of the present disclosure relate to the field of network technologies, and in particular, to a current limiting method and device. Background technique [0002] In the network service, the server provides the service, and the client accesses the server to obtain the corresponding service. When there are many clients, the pressure on the server is high. At this time, current limiting is usually used to control the client's access to the server to reduce the pressure on the server. [0003] In the prior art, there are mainly two solutions for limiting the current of the client. Wherein, the first solution mainly sets a general flow-limiting threshold for the server, and when the traffic of the server reaches the flow-limiting threshold of the current limiter, the client is denied access to the server. The second solution mainly sets a current limiting threshold for each client, and when the access volume of the client reaches the correspond...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/801H04L29/06
CPCH04L47/10H04L47/29H04L63/10
Inventor 居振飞戴觊婧
Owner BEIJING SANKUAI ONLINE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products