Message speed limit method

A message and message limit technology, applied in the field of message processing, to achieve the effect of simple implementation, less resource occupation, and basically stable quantity

CN1725732AActive Publication Date: 2006-01-25NEW H3C TECH CO LTD
0 Cites 35 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2006-01-25

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

A method for limiting speed of message includes presetting width of time window and number of message to pass , obtaining current system time and calculating out passed time of current time window ( CTW ) , judging whether passed time of CTW is less that time window width or not , allowing message to pass CTW and refreshing end time of CTW if it is not , judging whether number of passed message is greater that number of message being allowed to pass or not if it is , calculating out message number exceeding to pass , making flow delay for them then allowing them to pas if it is or otherwise allowing message in CTW to pass and refreshing end time of CTW .
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the technical field of message processing, in particular to a message rate limiting method. Background technique

[0002] With the rapid development of communication chip technology, the processing speed of data communication equipment including routers and Ethernet switches is getting faster and faster, the port density is getting bigger and bigger, and the functions and protocol features supported are becoming more and more abundant. There are more and more protocol packets, interrupts, and messages that need to be processed by the CPU of the device. On the one hand, these protocol messages are received by the CPU, analyzed, and then placed in the message processing queue of the corresponding software protocol processing unit to wait for processing; on the other hand, the processing speed of the current CPU is getting faster and faster. Some devices also have problems such as packet processing queue overflow and memory usage...

Examples

Embodiment Construction

[0048] The core of the present invention is to control the flow of messages received by the CPU by setting the flow of messages passing through the time window, and adopt a corresponding punishment mechanism for messages exceeding the unit time window, that is, delay processing, so as to ensure The number of packets sent is basically stable, so as to optimize the use of CPU resources and protect the CPU when the system is attacked by broadcast storms or hackers.

[0049] The invention provides a general and convenient method for limiting the speed of messages. The method uses software means to limit the flow rate or shape the flow of CPU messages sent to the CPU, and is applicable to various types of CPUs and software operating systems. The technical scheme of the invention will be further described below by taking the realization on the embedded operating system Vxworks as an example.

[0050] Please refer to figure 1 , is the flow chart of the message rate limiting method o...