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
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- Publication Date
- 2006-01-25
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
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...