CN106708761A - Service message processing method and device - Google Patents
Service message processing method and device Download PDFInfo
- Publication number
- CN106708761A CN106708761A CN201510772061.4A CN201510772061A CN106708761A CN 106708761 A CN106708761 A CN 106708761A CN 201510772061 A CN201510772061 A CN 201510772061A CN 106708761 A CN106708761 A CN 106708761A
- Authority
- CN
- China
- Prior art keywords
- message
- type
- service
- cpu
- different
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0024—Peripheral component interconnect [PCI]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
Abstract
The embodiment of the invention discloses a service message processing method and device. The method includes the steps that target message types of all service messages are recognized and received, the number of the service messages in different target message types is counted, and number thresholds corresponding to different target message types are obtained, wherein the target message types correspond to the number thresholds; when the number of the service messages of one of the target message types reaches the number threshold corresponding to one target message type, an interrupting signal is sent to a CPU so that the CPU can process all the service messages according to the interrupting signal. Therefore, the requirement of bandwidth service for low CPU occupation rate and the requirements of OPS service for low message processing delay and low message jitter delay can be met at the same time, that is, the CPU occupation rate, the message processing delay and the message jitter delay can be reduced.
Description
Technical field
The present invention relates to Message processing technical field, and in particular to the processing method and dress of a kind of service message
Put.
Background technology
Currently, general host bus adaptor (HBA, Host Bus Adapter) chip can be present
The information flow of both direction:One kind is up direction information flow (including data flow and controlling stream), and it is from HBA
The business interface of chip is come in, and is sent by plate inner joint (usually bus and interface standard PCIE interfaces)
Give central processing unit (CPU, Central Processing Unit) treatment;Another kind is down direction information
Stream (including data flow and controlling stream), i.e. HBA chips by plate inner joint (usually PCIE interfaces) from
CPU obtains information flow, is then sent out information flow by the business interface of HBA chips, and two sides
To information flow transmitting scene can with as shown in figure 1, Fig. 1 be information flow disclosed in prior art transmission
Schematic diagram of a scenario.
In most of business models, broadband type business need high bandwidth performance and low CPU usage,
And number of operations (OPS, Operation Per Second) the type business in the unit interval is required low
The OPS quantity that time delay is issued to.In actual applications, up direction is information flow for cpu system
Reception direction, cpu system can not shift to an earlier date pre-known information stream when arrive and information flow quantity, must
Must by HBA chips interrupt by way of inform cpu system, i.e. HBA chips by PCIE buses with
Cpu system is connected, and HBA chips can be interrupted based on PCIE buses by MSI-X (will up direction
On different information flows be mapped in different interrupt vectors) mode notify cpu system, so as to allow CPU
System processing information stream.Because the number of interruptions of cpu system treatment is limited, too huge interruption
Quantity can seriously tie down the disposal ability of cpu system, which has limited the data bandwidth of bandwidth type business.
In view of the interrupt processing stress problems of cpu system, the processing mode of current general service message
For:By software merit rating so that HBA chips are after the service message for receiving certain amount N to CPU
System is reported once is interrupted, and cpu system is received after once interrupting, and message is judged according to interrupting information
Quantity, so as to carry out an interrupt processing;Or after specific delay threshold is reached, even if HBA chips
The service message quantity for receiving does not reach certain amount N, HBA chip and still reports one to cpu system
Secondary interruption, so that CPU carries out interrupt processing.But, the value of N causes under OPS business models compared with conference
Average delay increase;The value of N is smaller to be caused CPU usage higher under broadband type business and limit
Data bandwidth.It can be seen that, the processing mode of current service message exist cannot low CPU usage with it is low
Problem in a balanced way is obtained between time delay.
The content of the invention
The embodiment of the invention discloses a kind of processing method and processing device of service message, CPU can be reduced and accounted for
With rate and Message processing time delay.
The embodiment of the invention discloses a kind of processing method of service message, methods described includes:
The object message type of all service messages that identification is received;
The message amount of the service message of the different object message type of statistics, and obtain from it is different
The corresponding amount threshold of the object message type, wherein, different object message types correspondences are not
Same amount threshold;
When the report of the service message of the one of which object message type in the different object message types
When literary quantity reaches amount threshold corresponding with the one of which object message type, sent to CPU and interrupted
Signal, so that the CPU is according to interrupt signal treatment all service messages.
In the first possible implementation of embodiment of the present invention first aspect, it is described acquisition from it is different
The corresponding amount threshold of the object message type, including:
Obtained and the different targets from the corresponding relation of amount threshold according to the type of message for prestoring
The corresponding amount threshold of type of message.
With reference to the embodiment of the present invention in a first aspect, second in embodiment of the present invention first aspect possible
It is described to obtain and the different corresponding amount thresholds of the object message type in implementation, including:
Export for obtaining the prompt message from the different corresponding amount thresholds of the object message type;
The response message for prompt message input is received, the response message includes and different institutes
State the corresponding amount threshold of object message type.
With reference to the first possible reality of embodiment of the present invention first aspect, embodiment of the present invention first aspect
Second possible implementation of existing mode or embodiment of the present invention first aspect, in the embodiment of the present invention
In the third possible implementation of first aspect, methods described also includes:
Order according to all service messages are received sends all service messages to the CPU;
The CPU processes all service messages according to the interrupt signal, including:
The suitable of all service messages is received according to the interrupt signal and the CPU by the CPU
Sequence treatment all service messages.
With reference to the embodiment of the present invention in a first aspect, the 4th kind in embodiment of the present invention first aspect possible
In implementation, the object message type includes data message type and control type of message.
Embodiment of the present invention second aspect discloses a kind of processing unit of service message, and described device includes knowing
Other module, statistical module, acquisition module and communication module, wherein:
The identification module, the object message type for recognizing all service messages for receiving;
The statistical module, the message number of the service message for counting the different object message type
Amount;
The acquisition module, for obtain from the different corresponding amount thresholds of the object message type,
Wherein, the different amount threshold of different object message type correspondences;
The communication module, for when the one of which object message in the different object message types
The message amount of the service message of type reaches amount threshold corresponding with the one of which object message type
When, interrupt signal is sent to CPU, so that the CPU is according to interrupt signal treatment all business
Message.
In the first possible implementation of embodiment of the present invention second aspect, the acquisition module is obtained
Take and be from the concrete mode of the different corresponding amount thresholds of the object message type:
Obtained and the different targets from the corresponding relation of amount threshold according to the type of message for prestoring
The corresponding amount threshold of type of message.
With reference to embodiment of the present invention second aspect, second in embodiment of the present invention second aspect is possible
In implementation, the acquisition module is obtained and the different corresponding amount thresholds of the object message type
Concrete mode be:
Export for obtaining the prompt message from the different corresponding amount thresholds of the object message type;
The response message for prompt message input is received, the response message includes and different institutes
State the corresponding amount threshold of object message type.
With reference to the first possible reality of embodiment of the present invention second aspect, embodiment of the present invention second aspect
Second possible implementation of existing mode or embodiment of the present invention second aspect, in the embodiment of the present invention
In the third possible implementation of second aspect, the communication module is additionally operable to described according to receiving
The order of all service messages sends all service messages to the CPU;
The CPU is according to the concrete mode of interrupt signal treatment all service messages:
The suitable of all service messages is received according to the interrupt signal and the CPU by the CPU
Sequence treatment all service messages.
With reference to embodiment of the present invention second aspect, the 4th kind in embodiment of the present invention second aspect is possible
In implementation, the object message type includes data message type and control type of message.
In the embodiment of the present invention, the object message type of all service messages that identification is received, statistics is not
The message amount of the service message of same target service type is simultaneously obtained corresponding from different target service types
Amount threshold, wherein, the different amount thresholds of different object message types correspondences, when different mesh
The message amount of the service message of the one of which object message type in mark type of message is reached with this wherein
During a kind of corresponding amount threshold of object message type, interrupt signal is sent to CPU, so that CPU is according to this
The above-mentioned all service messages of interrupt signal treatment.It can be seen that, the embodiment of the present invention can be by recognizing business report
The quantity of the type of message of text and the service message in any one type of message reaches corresponding amount threshold
Interrupt signal is sent to CPU when (also known as " polymerization granularity "), so that CPU carries out interrupt processing, so
The low CPU usage demand of bandwidth type business and the low Message processing of OPS type business can simultaneously be met
Time delay and low message shake the requirement of time delay.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to reality
The accompanying drawing to be used needed for example is applied to be briefly described, it should be apparent that, drawings in the following description are only
Only it is some embodiments of the present invention, for those of ordinary skill in the art, is not paying creativeness
On the premise of work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the transmitting scene schematic diagram of information flow disclosed in prior art;
Fig. 2 is a kind of schematic flow sheet of the processing method of service message disclosed in the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the processing method of another service message disclosed in the embodiment of the present invention;
Fig. 4 is a kind of structural representation of the processing unit of service message disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of the processing unit of another service message disclosed in the embodiment of the present invention;
Fig. 6 is a kind of structural representation of the processing system of service message disclosed in the embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out
Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the invention, and
It is not all, of embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing
Go out the every other embodiment obtained under the premise of creative work, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of processing method and processing device of service message, can be by recognizing industry
The quantity of the type of message of business message and the service message in any one type of message reaches corresponding quantity
Interrupt signal is sent to CPU during threshold value (also known as " polymerization granularity "), so that CPU carries out interrupt processing,
So can simultaneously meet the low CPU usage demand of bandwidth type business and the low report of OPS type business
Literary processing delay and low message shake the requirement of time delay.It is described in detail individually below.
Fig. 2 is referred to, Fig. 2 is a kind of flow of the processing method of service message disclosed in the embodiment of the present invention
Schematic diagram.As shown in Fig. 2 the processing method of the service message may comprise steps of:
The object message type of all service messages that S201, identification are received.
In the embodiment of the present invention, each service message carries the message identification of the service message, and often
After service message is received, the report of the service message can be recognized according to the message identification of the service message
Literary type.
Optionally, the object message type for identifying can include but is not limited to data message type and control
Type of message, that is, the service message for receiving can including business datum message and Service control message etc.,
The embodiment of the present invention is not limited.
The message amount of the service message of the different object message type of S202, statistics.
In the embodiment of the present invention, whenever after the type of message for identifying the new service message for receiving, by this
The quantity of the service message of type of message adds one.
S203, acquisition and the different corresponding amount thresholds of object message type.
In the embodiment of the present invention, different object message types can correspond to different amount thresholds.
In an optional embodiment, acquisition can from the different corresponding amount thresholds of object message type
To include:
Obtained and different object messages from the corresponding relation of amount threshold according to the type of message for prestoring
The corresponding amount threshold of type.
In the optional embodiment, type of message can be stored in advance in the corresponding relation of amount threshold
Locally, and the corresponding relation of type of message and amount threshold can be according to the type of service of actual treatment business
Dynamic update, so can after the type of message of service message of uplink service is identified, automatically according to
Type of message obtains the different corresponding amount thresholds of object message type from the corresponding relation of amount threshold.
In another optional embodiment, obtain and the different corresponding amount thresholds of object message type
Can also include:
Export for obtaining the prompt message from the different corresponding amount thresholds of object message type;
The response message for the input of above-mentioned prompt message is received, wherein, the response message includes and difference
The corresponding amount threshold of object message type.
In the optional embodiment, after the object message type of the service message for receiving is identified,
Export for obtaining the prompt message from the different corresponding amount thresholds of object message type, so can
User is set to be included and the different corresponding amount thresholds of object message type according to actual business demand input
Response message, which enhance service message treatment flexibility.
S204, the service message when one of which object message type in different object message types
When message amount reaches amount threshold corresponding with the one of which object message type, in being sent to CPU
Break signal.
In the embodiment of the present invention, when the one of which object message type in different object message types
When the message amount of service message reaches amount threshold corresponding with the one of which object message type, to
CPU sends interrupt signal can be included:
Judge to reach correspondence with the presence or absence of message amount in the service message of above-mentioned different object message type
Amount threshold service message, if in the presence of, to CPU send interrupt signal so that CPU is according in this
Break signal is processed the service message that CPU is received.
In another optional embodiment, the processing method of the service message can also include following operation:
Order according to all service messages are received sends all service messages for receiving to CPU.
In the optional embodiment, CPU can be wrapped according to the above-mentioned interrupt signal all service messages for the treatment of
Include:The all business of sequential processes of all service messages are received according to above-mentioned interrupt signal and CPU by CPU
Message, so ensure that the order for not destroying service message.
In the optional embodiment, sent to CPU according to the order for receiving all service messages and received
All service messages can occur after the object message type for receiving service message is identified and send out
Before above-mentioned interrupt signal is sent to CPU, the embodiment of the present invention is not limited for life.
As an example it is assumed that above-mentioned object message type is data message type and control type of message,
The service message for receiving be business datum message and Service control message, and with data message type
Corresponding amount threshold is M, is 1 with the amount threshold for controlling type of message corresponding, and assumes upper industry
Business message is the service message of order 1 and the service message of order 2, now, when the business number for receiving
According to message (order 1 business datum message and order 2 business datum message) quantity reach M or
When Service control message (the Service control message of order 1 or the Service control message of order 2) is received,
Interrupt signal can be sent to CPU, so that CPU receives service message (industry according to interrupt signal and CPU
Business data message and Service control message) the service messages that receive of sequential processes CPU.For OPS
For type business, when Service control message is received immediately to CPU send interrupt signal be obtained in that it is low
Message processing time delay and low message shake time delay;For bandwidth type business, because each order is equal
Including substantial amounts of business datum message, (i.e. the quantity of the business datum message of each order is more than its business control
The quantity of message processed), therefore, triggering the number of times for sending interrupt signal to CPU from Service control message will
Seldom, but when the quantity of the business datum message for receiving reaches M, business datum message can be touched
It is sent to CPU and sends interrupt signal, i.e., once interrupted per M business datum message triggering, this is greatly reduced
The number of interruptions of broadband type business, effectively reduces CPU usage.
It should be noted that step S202 and step S203 can be performed simultaneously, it is also possible to first carry out step
Rapid S202 performs step S203 again, can also first carry out step S203 and perform step S202 again, and the present invention is real
Example is applied not limit.
In the embodiment of the present invention, the object message type of all service messages that identification is received, statistics is not
The message amount of the service message of same object message type is simultaneously obtained corresponding from different target service types
Amount threshold, wherein, the different amount thresholds of different object message types correspondences, when different mesh
The message amount of the service message of the one of which object message type in mark type of message is reached with this wherein
During a kind of corresponding amount threshold of object message type, interrupt signal is sent to CPU, so that CPU is according to this
The above-mentioned all service messages of interrupt signal treatment.It can be seen that, the embodiment of the present invention can be by recognizing business report
The quantity of the type of message of text and the service message in any one type of message reaches corresponding amount threshold
Interrupt signal is sent to CPU when (also known as " polymerization granularity "), so that CPU is to the service message that receives
Interrupt processing is carried out, the low CPU usage demand and OPS of bandwidth type business so can be simultaneously met
The low Message processing time delay of type business and low message shake the requirement of time delay.
Fig. 3 is referred to, Fig. 3 is the stream of the processing method of another service message disclosed in the embodiment of the present invention
Journey schematic diagram.Wherein, " HBA chip (HBA of the method shown in Fig. 3 shown in application scenarios as Fig. 1
Controller)+CPU " application scenarios as a example by.As shown in figure 3, the processing method of the service message can be with
Comprise the following steps:
S301, HBA chip receive the service message of uplink service, and recognize all business reports for receiving
The object message type of text.
The message amount of the service message of the different object message type of S302, HBA chip statistics, and root
According to the type of message prestored in the HBA chips target report different from the corresponding relation acquisition of amount threshold
The corresponding amount threshold of literary type.
All service messages that S303, HBA chip will be received according to all service messages reception sequentially
Send to CPU.
S304, CPU receive all service messages that HBA chips send.
S305, the service message when one of which object message type in different object message types
Message amount reach amount threshold corresponding with the one of which object message type when, HBA chips to
CPU sends interrupt signal.
S306, CPU receive the interrupt signal that HBA chips send, and according to the interrupt signal and reception
The above-mentioned all service messages of reception sequential processes of above-mentioned all service messages.
It can be seen that, the embodiment of the present invention can by recognize service message type of message and any one report
To CPU during quantity corresponding amount threshold (also known as " the polymerization granularity ") of arrival of the service message of literary type
Interrupt signal is sent, so that CPU carries out interrupt processing to the service message for receiving, so can be simultaneously
Meet the low CPU usage demand of bandwidth type business and the low Message processing time delay of OPS type business and
Low message shakes the requirement of time delay.
Fig. 4 is referred to, Fig. 4 is a kind of structure of the processing unit of service message disclosed in the embodiment of the present invention
Schematic diagram.As shown in figure 4, the processing unit of the service message can include identification module 401, statistics mould
Block 402, acquisition module 403 and communication module 404, wherein:
Identification module 401 is used to recognize the object message type of all service messages for receiving.
In the embodiment of the present invention, each service message carries the message identification of the service message, and often
After service message is received, identification module 401 can recognize the industry according to the message identification of the service message
The type of message of business message.
Optionally, the object message type that identification module 401 is identified can include but is not limited to data message
The service message that the processing unit of type and control type of message, i.e. service message is received can include industry
Business data message and Service control message etc., the embodiment of the present invention is not limited.
Statistical module 402 is used for the message amount of the service message of the object message type for counting different.
In the embodiment of the present invention, whenever after the type of message for identifying the new service message for receiving, recognize
Module 401 can trigger statistical module 402 and plus one by the quantity of the service message of the type of message.
Acquisition module 403 is used to obtain and the different corresponding amount thresholds of object message type.
In the embodiment of the present invention, different object message types can correspond to different amount thresholds.
In an optional embodiment, acquisition module 403 obtains corresponding from different object message types
The concrete mode of amount threshold can be:
Obtained and different object messages from the corresponding relation of amount threshold according to the type of message for prestoring
The corresponding amount threshold of type.
In the optional embodiment, type of message can be stored in advance in the corresponding relation of amount threshold
Locally (i.e. the processing unit of service message), and the corresponding relation of type of message and amount threshold can basis
The type of service of actual treatment business dynamically updates, and so can identify uplink service in identification module 401
Service message type of message after, acquisition module 403 can be automatically according to type of message and amount threshold
Corresponding relation obtains different object message type respective amount threshold values.
In another optional embodiment, acquisition module 403 obtains corresponding from different object message types
Amount threshold concrete mode can also be:
Export for obtaining the prompt message from the different corresponding amount thresholds of object message type;
The response message for the input of above-mentioned prompt message is received, wherein, the response message includes and difference
The corresponding amount threshold of object message type.
In the optional embodiment, when identification module 401 identifies the target report of the service message for receiving
After literary type, export for obtaining the prompt message from the different corresponding amount thresholds of object message type,
User can so included according to actual business demand input corresponding from different object message types
The response message of amount threshold, which enhances the flexibility of service message treatment.
Communication module 404 is used for when the one of which object message type in different object message types
When the message amount of service message reaches amount threshold corresponding with the one of which object message type, to
CPU sends interrupt signal.
In the embodiment of the present invention, communication module 404 can be to the concrete mode that CPU sends interrupt signal:
Judge to reach correspondence with the presence or absence of message amount in the service message of above-mentioned different object message type
Amount threshold service message, if in the presence of, to CPU send interrupt signal so that CPU is according in this
Break signal is processed the service message that CPU is received.
In an optional embodiment, communication module 404 can be also used for according to all service messages of reception
Order send all service messages to CPU.
CPU can be according to the concrete mode of the interrupt signal all service messages for the treatment of:
The all business reports of sequential processes of all service messages are received according to interrupt signal and CPU by CPU
Text.
It can be seen that, the embodiment of the present invention can by recognize service message type of message and any one report
To CPU during quantity corresponding amount threshold (also known as " the polymerization granularity ") of arrival of the service message of literary type
Interrupt signal is sent, so that CPU carries out interrupt processing to the service message for receiving, so can be simultaneously
Meet the low CPU usage needs of bandwidth type business and the low Message processing time delay of OPS type business and
Low message shakes the requirement of time delay.
Fig. 5 is referred to, Fig. 5 is the knot of the processing unit of another service message disclosed in the embodiment of the present invention
Structure schematic diagram.As shown in figure 5, the processing unit of the service message can include:Memory 501, input
Interface 502, output interface 503, at least one processor 504 (such as CPU) and at least one communication are total
Line 505, memory 501 can be high-speed RAM memory, or nonvolatile memory
(non-volatile memory), such as at least one magnetic disk storage, optionally, memory 501 can be with
It is at least one storage device for being located remotely from aforementioned processing 504.Wherein:
Communication bus 505 is used to realize the connection communication between these components.
Input interface 502 is used to receive the service message of uplink service.
Batch processing code is stored in memory 501, processor 504 calls what is stored in memory 501
Program code, for performing following operation:
The object message type of all service messages that identified input interface 502 is received;
The message amount of the service message of the different object message type of statistics, and obtain and different targets
The corresponding amount threshold of type of message, wherein, the different amount threshold of different object message type correspondences.
Output interface 503 is used for when the one of which object message type in different object message types
When the message amount of service message reaches amount threshold corresponding with the one of which object message type, to
CPU sends interrupt signal, so that CPU is according to the interrupt signal all service messages for the treatment of.
In one embodiment, processor 504 is obtained and the different corresponding amount thresholds of object message type
Concrete mode can be:
Obtained and different object messages from the corresponding relation of amount threshold according to the type of message for prestoring
The corresponding amount threshold of type.
In one embodiment, processor 504 is obtained and the different corresponding amount thresholds of object message type
Concrete mode can also be:
Exported for obtaining and the different corresponding amount thresholds of object message type by output interface 503
Prompt message;
The response message being input into for above-mentioned prompt message is received by input interface 502, wherein, the response
Information includes and the different corresponding amount thresholds of object message type.
In one embodiment, output interface 503 can be also used for receiving all industry according to input interface 502
The order of business message sends above-mentioned all service messages to CPU, and now, CPU is according in interrupt signal treatment
Stating the concrete mode of all service messages can be:
The above-mentioned institute of sequential processes of above-mentioned all service messages is received according to interrupt signal and CPU by CPU
There is service message.
Optionally, above-mentioned object message type can include but is not limited to data message type and control report
Literary type.
It can be seen that, the embodiment of the present invention can by recognize service message type of message and any one report
To CPU during quantity corresponding amount threshold (also known as " the polymerization granularity ") of arrival of the service message of literary type
Interrupt signal is sent, so that CPU carries out interrupt processing to the service message for receiving, so can be simultaneously
Meet the low CPU usage needs of bandwidth type business and the low Message processing time delay of OPS type business and
Low message shakes the requirement of time delay.
Fig. 6 is referred to, Fig. 6 is a kind of structure of the processing system of service message disclosed in the embodiment of the present invention
Schematic diagram.As shown in fig. 6, the processing system of the service message can include CPU and such as Fig. 4 or such as Fig. 5
The processing unit of shown service message, wherein, processing unit and CPU about service message are retouched
State referring in particular to above-described embodiment, repeat no more here.
It should be noted that in the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, certain
The part being not described in individual embodiment, may refer to the associated description of other embodiment.Secondly,
Those skilled in the art should also know that embodiment described in this description belongs to preferred embodiment,
Necessary to involved action and the module not necessarily present invention.
Step in present invention method can according to actual needs carry out order adjustment, merge and delete
Subtract.
Module in embodiment of the present invention device can according to actual needs be merged, divides and deleted.
Module described in the embodiment of the present invention can be by universal integrated circuit, such as CPU (Central
Processing Unit, central processing unit), or by ASIC (Application Specific Integrated
Circuit, application specific integrated circuit) realize.
One of ordinary skill in the art will appreciate that all or part of stream in realizing above-described embodiment method
Journey, can be by computer program to instruct the hardware of correlation to complete, and described program can be stored in
In computer read/write memory medium, the program is upon execution, it may include such as the embodiment of above-mentioned each method
Flow.Wherein, described storage medium can be magnetic disc, CD, read-only memory (Read-Only
Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
A kind of processing method and processing device of the service message for being provided the embodiment of the present invention above has been carried out in detail
Thin to introduce, instantiation used herein is set forth to principle of the invention and implementation method, with
The explanation of upper embodiment is only intended to help and understands the method for the present invention and its core concept;Simultaneously for
Those of ordinary skill in the art, according to thought of the invention, in specific embodiments and applications
Will change, in sum, this specification content should not be construed as limiting the invention.
Claims (10)
1. a kind of processing method of service message, it is characterised in that methods described includes:
The object message type of all service messages that identification is received;
The message amount of the service message of the different object message type of statistics, and obtain from it is different
The corresponding amount threshold of the object message type, wherein, different object message types correspondences are not
Same amount threshold;
When the report of the service message of the one of which object message type in the different object message types
When literary quantity reaches amount threshold corresponding with the one of which object message type, sent to CPU and interrupted
Signal, so that the CPU is according to interrupt signal treatment all service messages.
2. method according to claim 1, it is characterised in that the acquisition and the different mesh
The corresponding amount threshold of mark type of message, including:
Obtained and the different targets from the corresponding relation of amount threshold according to the type of message for prestoring
The corresponding amount threshold of type of message.
3. method according to claim 1, it is characterised in that the acquisition and the different mesh
The corresponding amount threshold of mark type of message, including:
Export for obtaining the prompt message from the different corresponding amount thresholds of the object message type;
The response message for prompt message input is received, the response message includes and different institutes
State the corresponding amount threshold of object message type.
4. the method according to claim any one of 1-3, it is characterised in that methods described also includes:
Order according to all service messages are received sends all service messages to the CPU;
The CPU processes all service messages according to the interrupt signal, including:
The suitable of all service messages is received according to the interrupt signal and the CPU by the CPU
Sequence treatment all service messages.
5. method according to claim 1, it is characterised in that the object message type includes number
According to type of message and control type of message.
6. a kind of processing unit of service message, it is characterised in that described device includes identification module, system
Meter module, acquisition module and communication module, wherein:
The identification module, the object message type for recognizing all service messages for receiving;
The statistical module, the message number of the service message for counting the different object message type
Amount;
The acquisition module, for obtain from the different corresponding amount thresholds of the object message type,
Wherein, the different amount threshold of different object message type correspondences;
The communication module, for when the one of which object message in the different object message types
The message amount of the service message of type reaches amount threshold corresponding with the one of which object message type
When, interrupt signal is sent to CPU, so that the CPU is according to interrupt signal treatment all business
Message.
7. device according to claim 6, it is characterised in that the acquisition module obtain from it is different
The concrete mode of the corresponding amount threshold of the object message type be:
Obtained and the different targets from the corresponding relation of amount threshold according to the type of message for prestoring
The corresponding amount threshold of type of message.
8. device according to claim 7, it is characterised in that the acquisition module obtain from it is different
The concrete mode of the corresponding amount threshold of the object message type be:
Export for obtaining the prompt message from the different corresponding amount thresholds of the object message type;
The response message for prompt message input is received, the response message includes and different institutes
State the corresponding amount threshold of object message type.
9. the device according to claim any one of 6-8, it is characterised in that the communication module, also
For sending all service messages to the CPU according to the order for receiving all service messages;
The CPU is according to the concrete mode of interrupt signal treatment all service messages:
The suitable of all service messages is received according to the interrupt signal and the CPU by the CPU
Sequence treatment all service messages.
10. device according to claim 6, it is characterised in that the object message type includes number
According to type of message and control type of message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510772061.4A CN106708761A (en) | 2015-11-12 | 2015-11-12 | Service message processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510772061.4A CN106708761A (en) | 2015-11-12 | 2015-11-12 | Service message processing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106708761A true CN106708761A (en) | 2017-05-24 |
Family
ID=58930039
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510772061.4A Pending CN106708761A (en) | 2015-11-12 | 2015-11-12 | Service message processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106708761A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107704421A (en) * | 2017-09-12 | 2018-02-16 | 新华三信息安全技术有限公司 | A kind of polycaryon processor and message processing method |
CN109327333A (en) * | 2018-09-30 | 2019-02-12 | 潍柴动力股份有限公司 | A kind of message stops paying out method and device |
CN111726822A (en) * | 2019-03-21 | 2020-09-29 | 大唐移动通信设备有限公司 | Trap message processing method and data synchronization management device |
CN114138371A (en) * | 2021-12-02 | 2022-03-04 | 北京天融信网络安全技术有限公司 | Configuration dynamic loading method and device, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101826999A (en) * | 2010-04-26 | 2010-09-08 | 瑞斯康达科技发展股份有限公司 | Method and device for online message flow monitoring and bandwidth compensation |
CN102904823A (en) * | 2012-10-23 | 2013-01-30 | 大连梯耐德网络技术有限公司 | Accurate flow control method based on multi-user multi-service of memory |
CN104468629A (en) * | 2014-12-30 | 2015-03-25 | 北京奇虎科技有限公司 | Method and device for transmitting information in batches |
CN104539554A (en) * | 2014-12-22 | 2015-04-22 | 上海斐讯数据通信技术有限公司 | Message transmission method and message processing system |
-
2015
- 2015-11-12 CN CN201510772061.4A patent/CN106708761A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101826999A (en) * | 2010-04-26 | 2010-09-08 | 瑞斯康达科技发展股份有限公司 | Method and device for online message flow monitoring and bandwidth compensation |
CN102904823A (en) * | 2012-10-23 | 2013-01-30 | 大连梯耐德网络技术有限公司 | Accurate flow control method based on multi-user multi-service of memory |
CN104539554A (en) * | 2014-12-22 | 2015-04-22 | 上海斐讯数据通信技术有限公司 | Message transmission method and message processing system |
CN104468629A (en) * | 2014-12-30 | 2015-03-25 | 北京奇虎科技有限公司 | Method and device for transmitting information in batches |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107704421A (en) * | 2017-09-12 | 2018-02-16 | 新华三信息安全技术有限公司 | A kind of polycaryon processor and message processing method |
CN107704421B (en) * | 2017-09-12 | 2021-04-27 | 新华三信息安全技术有限公司 | Multi-core processor and message processing method |
CN109327333A (en) * | 2018-09-30 | 2019-02-12 | 潍柴动力股份有限公司 | A kind of message stops paying out method and device |
CN111726822A (en) * | 2019-03-21 | 2020-09-29 | 大唐移动通信设备有限公司 | Trap message processing method and data synchronization management device |
CN114138371A (en) * | 2021-12-02 | 2022-03-04 | 北京天融信网络安全技术有限公司 | Configuration dynamic loading method and device, computer equipment and storage medium |
CN114138371B (en) * | 2021-12-02 | 2024-02-06 | 北京天融信网络安全技术有限公司 | Configuration dynamic loading method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108733005B (en) | Method and device for controlling linkage of intelligent equipment | |
CN106708761A (en) | Service message processing method and device | |
CN107038137B (en) | Hot-plug equipment and method | |
CN103581042A (en) | Method and device for sending data package | |
CN109388597B (en) | Data interaction method and device based on FPGA | |
CN103647759A (en) | Negotiation method and apparatus of maximum segment size (MSS) | |
US10402354B2 (en) | Method, apparatus, communication equipment and storage media for determining link delay | |
CN105760134B (en) | A kind of data processing method and electronic equipment | |
CN103347031A (en) | Method and equipment for preventing address resolution protocol (ARP) message attack | |
CN113094316B (en) | Online switching device and method of NCSI (non-volatile memory) signals | |
CN112422485A (en) | Communication method and device of transmission control protocol | |
CN111158905A (en) | Method and device for adjusting resources | |
CN109995548B (en) | Device management method and system, data transmission method and system and terminal device | |
US11343065B2 (en) | Serial bidirectional communication circuit and method thereof | |
CN108712494A (en) | Handle the method, apparatus and equipment of asynchronous message | |
CN109800202B (en) | PCIE (peripheral component interface express) -based data transmission system, method and device | |
CN100578971C (en) | Device and method for carrying out transmission via universal serial bus channel | |
CN113497740A (en) | Network forwarding equipment, link fault detection method, device and storage medium | |
CN105406989A (en) | Message processing method, network card and system, information updating method and host | |
CN107729136B (en) | Processing priority configuration method and device based on FPGA | |
CN105183373A (en) | Data processing method and network device | |
US11646971B2 (en) | Limiting backpressure with bad actors | |
CN111723032B (en) | Interrupt management and control method and electronic equipment | |
CN108270694A (en) | A kind of high speed transmission method based on LVDS | |
CN116886463B (en) | Cascade communication method, device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200423 Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Applicant after: HUAWEI TECHNOLOGIES Co.,Ltd. Address before: 301, A building, room 3, building 301, foreshore Road, No. 310053, Binjiang District, Zhejiang, Hangzhou Applicant before: Huawei Technologies Co.,Ltd. |
|
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170524 |