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

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

Active Publication Date: 2006-01-25
NEW H3C TECH CO LTD
View PDF0 Cites 35 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] The technical problem solved by the present invention is to provide a method for limiting the rate of messages. The method solves the problem that when the number of messages received by the CPU exceeds the predetermined number of messages, the speed limit or traffic shaping is performed on the exceeded messages, thereby Optimize the use of CPU resources, protect the CPU when the system is attacked by broadcast storms or hackers, etc.

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 limit method
  • Message speed limit method
  • Message speed limit method

Examples

Experimental program
Comparison scheme
Effect test

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...

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

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 .

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...

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
IPC IPC(8): H04L12/56H04L47/22
Inventor 王俊
Owner NEW H3C 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