Supercharge Your Innovation With Domain-Expert AI Agents!

Message speed limiting method, related equipment and storage medium

A message and device technology, applied in the IT field, can solve problems such as waste of resources, slow response of the token bucket mechanism, and inability to meet user needs, achieving the effect of less resource consumption and fast response time

Pending Publication Date: 2021-10-22
HUAWEI CLOUD COMPUTING TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the existing token bucket mechanism responds very slowly, wastes a lot of resources, and cannot meet the needs of users

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
  • Message speed limiting method, related equipment and storage medium
  • Message speed limiting method, related equipment and storage medium
  • Message speed limiting method, related equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] For convenience of understanding, the token barrel according to the present application will be described in detail below. like figure 1 As shown, in order to be able to control the traffic, the thread needs to send a packet, first need to apply for a token from the token barrel. If the thread can obtain the token, the thread can send a packet, opposite, if thread If you can't get a token, the thread refuses to send a packet. Among them, the number of packets that the thread needs to be transmitted is proportional to the number of tokens that need to be obtained. That is, the more the number of packets that the thread needs to be sent, the more the amount of the token that needs to be obtained, and the thread is The less number of packets that need to be sent, the fewer the number of tokens that need to be obtained. For example, when the thread needs to send 100 megab packets, you need to get 1 token from the token bucket, and the thread needs to send 200 megabit packets, y...

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

The invention provides a message speed limiting method. The message speed limiting method comprises the following steps: converting the size of a token bucket into a first clock period number; acquiring a first message at a first moment, and acquiring a second clock period number corresponding to the number of tokens required by the first message; and when the number of the second clock cycles is not greater than the number of the first clock cycles, sending the first message. According to the scheme, the second clock period can be obtained without locking, so that the processing efficiency can be effectively improved.

Description

Technical field [0001] The present application relates to the field of IT, and in particular, to a speed limit method, related device, and storage medium. Background technique [0002] An important role of the token bucket is to control the Quality of Service, QoS. Size fixed token barrels can continue to generate tokens in a constant rate source source. If the token is not consumed, or the speed consumes less than the generated speed, the token will continue to increase until the bucket is filled. The token produced later will overflow from the bucket. The maximum maximum number of cards that can be saved in the last bucket will never exceed the size of the bucket. The token bucket is based on whether there is a token in the token bucket to indicate when can send traffic. If there is a token in the token bucket, the traffic is allowed; if there is no token in the token bucket, it is not allowed to send traffic. Therefore, if the burst threshold is reasonably configured and there...

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 Applications(China)
IPC IPC(8): H04L12/801H04L12/819H04L47/21
CPCH04L47/215H04L47/10
Inventor 金添福
Owner HUAWEI CLOUD COMPUTING TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More