CN103684886B - A kind of message processing method and equipment - Google Patents

A kind of message processing method and equipment Download PDF

Info

Publication number
CN103684886B
CN103684886B CN201310753775.1A CN201310753775A CN103684886B CN 103684886 B CN103684886 B CN 103684886B CN 201310753775 A CN201310753775 A CN 201310753775A CN 103684886 B CN103684886 B CN 103684886B
Authority
CN
China
Prior art keywords
message
event
currently pending
processing module
event message
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.)
Active
Application number
CN201310753775.1A
Other languages
Chinese (zh)
Other versions
CN103684886A (en
Inventor
潘方敏
刘赫伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Hangzhou Huawei Digital Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Huawei Digital Technologies Co Ltd filed Critical Hangzhou Huawei Digital Technologies Co Ltd
Priority to CN201310753775.1A priority Critical patent/CN103684886B/en
Publication of CN103684886A publication Critical patent/CN103684886A/en
Application granted granted Critical
Publication of CN103684886B publication Critical patent/CN103684886B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of message processing method and equipment, by the way that caused event message in message traffic processing procedure is assembled into the pseudo- message for possessing same format with the message, and according to the type of the event message, mode where the pseudo- message is inserted into the message among the relevant position of message queue, to realize the unified management of message and event message, so as to simplify the processing logic of message and event message, reach and improved the treatment effeciency of message and event message and processing flexibility and and then improve the purpose of systematic function.

Description

A kind of message processing method and equipment
Technical field
The present invention relates to communication technical field, more particularly to a kind of message processing method and equipment.
Background technology
At present, the network equipment(Such as Service Gateway, router and Network Security Device)On would generally run agreement knowledge Not, the business such as Context resolution, load balancing, network acceleration and safety, with effective management of supporting network flow.
Specifically, when message of the network equipment in the network data flow to receiving is handled, it usually needs strict Carried out according to the sequencing of each message, also, the miscellaneous service run on the network equipment is also required to when handling same message It is strict to keep order.For example, being directed to any message, the network equipment needs first to perform it protocol identification, afterwards, could be right It performs Context resolution, and the operation such as safety inspection and/or load balancing could be finally performed to it.In addition, for message in industry The event message such as caused link setup or chain rupture in processing procedure of being engaged in, it is also desirable to pass to each service application in an orderly manner.
Based on the above situation, the network equipment generally can be in the following ways to the message and message that receive at business Caused event message is handled during reason:
Mode one:The information such as the sequencing of message and the timestamp of message carrying, burst is received according to the network equipment, Each message is formed into corresponding message queue, and, according to sequencing caused by event message, by all as caused by message Event message also forms corresponding event message queue.In message queue and event message queue, management and maintenance respectively is treated Each Service Processing Module performed, protocol identification module, IPS Intrusion as corresponding to message queue in Fig. 1 Prevention System, intrusion prevention system)Module and ADC(Application Delivery Controller, should Use delivery controller)Module, and ADC corresponding to event message queue or IPS modules etc., message and thing are ensured with this The order of part Message Processing, now, the processing procedure of the message and event message can be as shown in Figure 1.
But due to when carrying out business processing to each message and each event message using aforesaid way, message be present A variety of queues such as queue, event message queue and Service Processing Module queue, so as to cause the management and dispatching between queue compared with For complexity;Also, the event message as caused by message, its opportunity performed, it is possible to which needs are synchronous with message, according to multiple Queue is then difficult to realize;Further, when the network equipment handles message and event message using Multi-core mode, can cause to lock The frequent use of resource, the possibility of parallel processing conflict is added while overhead is increased, to system resource and property Can there is larger waste.
Mode two:Processing to event message triggers in message queue processing procedure, and is realized in the form of interruption, this When, the processing procedure of the message and event message can be as shown in Figure 2.
Compared with mode one, due to the form of interruption can be used to during Message processing at caused event message Reason, therefore can reach hiding event message queue, so as to reducing the purpose of queue scheduling complexity.But for some needs The event message that could be performed after message complete process, mode two can not be supported completely, further, due to using When mode two carries out business processing to each message and each event message, the multiple Service Processing Modules of registration in advance, in Fig. 2 IPS modules and ADC corresponding to message, or IPS chain ruptures processing module corresponding to chain rupture event message, at ADC chain ruptures Manage module and WOC(WAN Optimization Controller, wan optimization controller)Chain rupture processing module etc., i.e., The Service Processing Module for being actually needed execution is set there was only a part therein, it is also desirable to perform all Service Processing Modules successively In the past, a certain degree of waste is had to the performance of system.
That is, presently, there are to each message and respectively during Message processing at caused event message The mode of reason is simultaneously bad, therefore, needs badly and provides a kind of new processing mode to solve the above problems.
The content of the invention
The embodiments of the invention provide a kind of message processing method and equipment, to solve to presently, there are to each message with And respectively caused event message is handled during Message processing mode and it is bad the problem of.
First aspect, there is provided a kind of message processing method, including:
The network equipment obtains currently pending message from the message queue including at least one message, and determines to described Currently pending message carries out at least one Service Processing Module and at least one business processing needed for business processing The mutual business execution sequence of module;
According to the mutual industry of at least one Service Processing Module and at least one Service Processing Module Execution sequence of being engaged in carries out business processing to the currently pending message, and by caused event message group in business procession Fill to possess the pseudo- message of identical message format with the currently pending message, and, according to the type of the event message, The pseudo- message is inserted among the relevant position of the message queue.
With reference in a first aspect, in the first possible implementation of first aspect, it is determined that to described currently pending Message carry out business processing needed at least one Service Processing Module and at least one Service Processing Module mutually it Between business execution sequence, including:
According to the Service Processing Module being pre-configured with and the corresponding relation of message service condition, or at the business being pre-configured with Module and the corresponding relation of message Run-time scenario are managed, it is determined that service condition or Run-time scenario phase with the currently pending message Corresponding at least one Service Processing Module, and according at least one Service Processing Module in the currently pending message Service condition or Run-time scenario under execution sequencing, determine the mutual industry of at least one Service Processing Module Business execution sequence.
With reference in a first aspect, in second of possible implementation of first aspect, it is determined that currently waiting to locate to described After the business processing operation executed that reason message is carried out finishes, methods described also includes:
If it is determined that the currently pending message is pseudo- message, then the currently pending message is abandoned;
If it is determined that the currently pending message is non-pseudo- message, then the currently pending message is sent to message and connect Receiving unit.
With reference in a first aspect, or first aspect the first or second of possible implementation, in first aspect In the third possible implementation, according at least one Service Processing Module and at least one business processing mould The mutual business execution sequence of block carries out business processing to the currently pending message, including:
According to the mutual business execution sequence of at least one Service Processing Module, each business processing is dispatched successively Module, and corresponding business processing is carried out to the currently pending message according to the Service Processing Module of scheduling.
With reference in a first aspect, or first aspect the first or second of possible implementation, in first aspect In 4th kind of possible implementation, the event message includes link setup event message, link setup completes event message, chain rupture event One or more in message, request End Event message and affairs End Event message;
It is described that the event message is assembled into the pseudo- message for possessing identical message format with the currently pending message, And according to the type of the event message, the pseudo- message is inserted among the relevant position of the message queue, including:
When the event message is that link setup completes event message, the event message is assembled into and currently waits to locate with described Reason message possesses identical message format and the pseudo- message of event message mark is completed comprising link setup, and the pseudo- message is inserted into The header opening position of the message queue;Or
When the event message is link setup event message, request End Event message or affairs End Event message, point It is other that link setup event message mark, request End Event message mark or affairs End Event are carried out to the currently pending message Message marks, to obtain possessing identical message format with the currently pending message and disappear respectively comprising corresponding link setup event The pseudo- message of breath mark, request End Event message mark or affairs End Event message mark, and the pseudo- message is inserted At the currently pending message position into the message queue;Or
When the event message is chain rupture event message, the event message is assembled into and the currently pending report Stationery is for identical message format and includes the pseudo- message of chain rupture event message mark, and the pseudo- message is inserted into the message The telegram end opening position of queue.
Second aspect, there is provided a kind of message processor, including:
Receive message unit, for obtaining currently pending message from the message queue including at least one message;
Module determining unit, the currently pending message for determining to get the Receive message unit carry out business At least one Service Processing Module and the mutual business of at least one Service Processing Module needed for processing perform Sequentially;
Message process unit, at least one Service Processing Module for being determined according to the module determining unit with And the mutual business execution sequence of at least one Service Processing Module carries out business to the currently pending message Processing, and caused event message in business procession is assembled into and possesses identical message lattice with the currently pending message The pseudo- message of formula, and, according to the type of the event message, the pseudo- message is inserted into the corresponding positions of the message queue Among putting.
With reference to second aspect, in the first possible implementation of second aspect, the module determining unit, specifically For according to the Service Processing Module being pre-configured with and the corresponding relation of message service condition, or the business processing mould being pre-configured with The corresponding relation of block and message Run-time scenario, it is determined that corresponding with the service condition or Run-time scenario of the currently pending message At least one Service Processing Module, and according at least one Service Processing Module the currently pending message fortune Execution sequencing under row condition or Run-time scenario, determine that the mutual business of at least one Service Processing Module is held Row order.
With reference to second aspect, in second of possible implementation of second aspect, the message process unit, also use In after it is determined that the business processing operation executed carried out to the currently pending message finishes, however, it is determined that described currently to treat Processing message is pseudo- message, then abandons the currently pending message, and, however, it is determined that the currently pending message is non-puppet Message, then the currently pending message is sent to corresponding message receiving device.
With reference to second aspect, or the first or second of possible implementation of second aspect, in second aspect In the third possible implementation, the message process unit, specifically for according at least one Service Processing Module Mutual business execution sequence, dispatches each Service Processing Module successively, and according to the Service Processing Module of scheduling to described Currently pending message carries out corresponding business processing.
With reference to second aspect, or the first or second of possible implementation of second aspect, in second aspect In 4th kind of possible implementation, the event message includes link setup event message, link setup completes event message, chain rupture event One or more in message, request End Event message and affairs End Event message;
The message process unit, specifically for when the event message be link setup complete event message when, by the thing Part message, which is assembled into the currently pending message, to be possessed identical message format and completes event message mark comprising link setup Pseudo- message, and the pseudo- message is inserted into the header opening position of the message queue;Or specifically for disappearing when the event Cease for link setup event message, request End Event message or during affairs End Event message, respectively to the currently pending report Text carries out link setup event message mark, request End Event message mark or affairs End Event message mark, to obtain and institute State currently pending message and possess identical message format and respectively comprising corresponding link setup event message mark, request End Event Message marks or the pseudo- message of affairs End Event message mark, and the pseudo- message is inserted into the institute in the message queue State at currently pending message position;Or specifically for when the event message is chain rupture event message, will described in Event message is assembled into the puppet for possessing identical message format with the currently pending message and including chain rupture event message mark Message, and the pseudo- message is inserted into the telegram end opening position of the message queue.
In technical scheme described in the embodiment of the present invention, by by caused event message group in message traffic processing procedure Fill to possess the pseudo- message of same format with the message, and according to the type of the event message, the pseudo- message is inserted Mode where to the message among the relevant position of message queue, to realize the unified management of message and event message, from And the processing logic of message and event message is simplified, reach the treatment effeciency for improving message and event message and processing is flexible Property and and then improve systematic function purpose.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill in field, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 show the schematic diagram one of the processing procedure of message in the prior art and event message;
Fig. 2 show the schematic diagram two of the processing procedure of message in the prior art and event message;
Fig. 3 show the schematic flow sheet of message processing method described in the embodiment of the present invention one;
Fig. 4 show the schematic diagram of message format unified described in the embodiment of the present invention one;
Fig. 5 show the structural representation of message processor described in the embodiment of the present invention two;
Fig. 6 show the structural representation of message processor described in the embodiment of the present invention three.
Embodiment
The embodiments of the invention provide a kind of message processing method and equipment, by will be produced in message traffic processing procedure Event message be assembled into the pseudo- message for possessing same format with the message, and according to the type of the event message, by institute The mode among the relevant position of message queue where pseudo- message is inserted into the message is stated, to realize message and event message Unified management, so as to simplify the processing logic of message and event message, the processing effect for improving message and event message is reached Rate with processing flexibility and and then improve systematic function purpose.
In order that the object, technical solutions and advantages of the present invention are clearer, the present invention is made below in conjunction with accompanying drawing into One step it is described in detail, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole implementation Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belongs to the scope of protection of the invention.
Embodiment one:
As shown in figure 3, it is the schematic flow sheet of message processing method described in the embodiment of the present invention one, at the message Reason method is applicable to the various network equipments for needing to perform multiple functions business, as Service Gateway, router and network are pacified Among the network equipments such as full equipment, the embodiment of the present invention is not limited in any way to this.Specifically, the message processing method can wrap Include following steps:
Step 101:Message queue for including at least one message, the network equipment obtains from the message queue works as Preceding clear text.
Specifically, in embodiment of the present invention, the network equipment receive from message send equipment message after, First can be according to the source IP of message(Internet Protocol, procotol)Address, purpose IP address, source port, destination The parameter information such as mouth and host-host protocol, determines the affiliated message flow of each message, and according to the sequencing of each message received And carried on each message timestamp, the information such as burst, each message being subordinated in same message flow is buffered in together successively Among one message queue.
Correspondingly, for including the message queue of at least one message, from current treat is obtained from the message queue When managing message, it can be obtained successively among the message queue according to the sequencing of each message among the message queue Each message is as currently pending message.
Step 102:It is determined that at least one business processing mould needed for business processing is carried out to the currently pending message Block and the mutual business execution sequence of at least one Service Processing Module.
Specifically, in embodiment of the present invention, the network equipment can be in advance according to different message service conditions(With/ Or message Run-time scenario)Configure corresponding conditionses(And/or scene)The lower Service Processing Module for needing to perform, that is, be pre-configured with business Processing module and message service condition(And/or Run-time scenario)Corresponding relation.
Wherein, by taking message Run-time scenario as an example, the scene can be subdivided into message entrance, outlet, L7 layers(Application layer) Processing etc., the embodiment of the present invention is not limited in any way to this.It is further to note that the network equipment can also be according to actual feelings Condition, to the Service Processing Module being pre-configured with and message service condition(And/or Run-time scenario)Corresponding relation carry out it is real When adjust setting, to be more flexibly adapted to the business procession of message, the embodiment of the present invention is not made any to this yet Limit.
Correspondingly, in embodiment of the present invention, it is determined that being carried out to the currently pending message needed for business processing At least one Service Processing Module and the mutual business execution sequence of at least one Service Processing Module, can be with Including:
According to the Service Processing Module that is pre-configured with and the corresponding relation of message service condition, it is determined that currently waiting to locate with described The corresponding at least one Service Processing Module of the service condition of message is managed, and is existed according at least one Service Processing Module Execution sequencing under the service condition of the currently pending message, determine that at least one Service Processing Module is mutual Between business execution sequence;
Or the corresponding relation according to the Service Processing Module being pre-configured with and message Run-time scenario, it is determined that working as with described The corresponding at least one Service Processing Module of the Run-time scenario of preceding clear text, and according at least one business processing Execution sequencing of the module under the Run-time scenario of the currently pending message, determine at least one business processing mould The mutual business execution sequence of block.
Wherein, identified Service Processing Module can generally include protocol identification module, IPS modules, ADC, WOC Module and by the one or more in the particular service processing module of user's customized as needed, the embodiment of the present invention pair This is not limited in any way.
Further, identified at least one Service Processing Module can also be carried out real-time according to the actual demand of user Ground additions and deletions, further to reach the purpose for the business procession for being more flexibly adapted to message, the embodiment of the present invention pair This is not also limited in any way.
Further, in embodiment of the present invention, each message in any message queue can generally possess such as Fig. 4 institutes The unified message format shown.Can possess the message number for representing the specific data content of message in the unified message format According to field, the message data length field for representing message data length, the type of message for representing message particular type Field and public data field etc., the embodiment of the present invention is not limited in any way to this.Further, the common data word Section in may include for represent message service condition and/or Run-time scenario flow table information, the first packet mark when message is first packet Note and the event message label information when message is caused event message in message traffic processing procedure etc., the present invention Embodiment is not also limited in any way to this.
Correspondingly, according to the Service Processing Module being pre-configured with and message service condition(And/or Run-time scenario)Pair Should be related to, it is determined that with the currently pending message service condition(And/or Run-time scenario)During corresponding Service Processing Module, It can be determined according to the public data field information carried in the currently pending message corresponding to the currently pending message Message service condition(Such as source IP address, purpose IP address, source port, destination interface information)(And/or message Run-time scenario) Etc. information, and according to the message service condition of determination(And/or Run-time scenario), from the Service Processing Module and message being pre-configured with Service condition(And/or Run-time scenario)Corresponding relation in, obtain and the message service condition of the determination(And/or operation field Scape)Corresponding Service Processing Module.
It should be noted that in embodiment of the present invention, for any message, due to identified to the message Required at least one Service Processing Module putting in order in the presence of setting between each other when carrying out business processing, therefore, can will At least one Service Processing Module required when carrying out business processing to the message determined is referred to as Service Processing Module chain, Correspondingly, it is identified to match respectively with any two message for any two message in same message queue Service Processing Module chain can be mutually identical or different, the embodiment of the present invention is not limited in any way to this.
It is further to note that for any two message in same message queue, when it is identified respectively with institute It is same Service Processing Module chain to state the Service Processing Module chain that any two message matches, as described same message queue In the Service Processing Module chain that is pre-configured with of each clear text when being same Service Processing Module chain, can be it is determined that described same After the Service Processing Module chain that first message in one message queue matches, directly using the Service Processing Module chain as with institute The Service Processing Module chain that other each messages in same message queue match is stated, to reach simplified subsequent packet business processing The purpose of flow.
Step 103:According at least one Service Processing Module of determination and at least one business processing mould The mutual business execution sequence of block carries out business processing to the currently pending message.
Specifically, in embodiment of the present invention, according at least one Service Processing Module and it is described at least The mutual business execution sequence of one Service Processing Module carries out business processing to the currently pending message, can wrap Include:
According to the mutual business execution sequence of at least one Service Processing Module, each business processing is dispatched successively Module, and corresponding business processing is carried out to the currently pending message according to the Service Processing Module of scheduling.
For example, at least one Service Processing Module determined by includes protocol identification module, the IPS moulds being arranged in order , can be according to the arrangement sequencing of each Service Processing Module when block and ADC, scheduling protocol identification module, IPS moulds successively Block and ADC, and corresponding business processing is carried out to the currently pending message according to the module of scheduling.
Step 104:Caused event message in business procession is assembled into and possessed with the currently pending message The pseudo- message of identical message format, and according to the type of the event message, the pseudo- message is inserted into the message queue Relevant position among.
Wherein, the event message at least can include link setup event message, link setup completes event message, chain rupture event disappears Breath, request End Event message and affairs End Event message etc., the embodiment of the present invention is not limited in any way to this.
Specifically, when carrying out business processing to the currently pending message, if detecting the currently pending report Text is to carry SYN(Synchronous, establish the handshake used during connection)The message of mark, then it can produce correspondingly Link setup event message, to establish new connection;Further, by taking ICP/IP protocol as an example, when determining three-way handshake success, Correspondingly link setup can then be produced and complete event message, completed with representing that this connection is established;Further, FIN is being detected(Knot Beam)Message or RST(Reset)During message, then it represents that current connection is over, can discharge related resource, now, can produce Raw correspondingly chain rupture event message.
Further, when detecting request end, when such as carrying the message of Request End marks, can produce End Event message is correspondingly asked, to carry out end processing to event message corresponding to the request end;Or examining When measuring the message for carrying Transaction End marks, correspondingly affairs End Event message can be produced, to notify network Equipment corresponding event message is processed to be finished.
Further, when the identified at least one business carried out to the currently pending message needed for business processing When also including the particular service processing module by user's customized in processing module, the event message can also include by institute Special event message, the embodiment of the present invention caused by particular service processing module is stated not to be limited in any way this.Additionally need It is bright, any event message can not be also produced during business processing is carried out to the clear text, the present invention is real Apply example not also to be limited in any way this, now, then can need not perform this step 104.
Correspondingly, the event message is assembled into the pseudo- report for possessing identical message format with the currently pending message Text, and according to the type of the event message, the pseudo- message being inserted among the relevant position of the message queue, can be with Including:
When the event message is that link setup completes event message, the event message is assembled into and currently waits to locate with described Reason message possesses identical message format and the pseudo- message of event message mark is completed comprising link setup, and the pseudo- message is inserted into The header opening position of the message queue, wherein, the link setup completes event message mark and may be generally disposed at the pseudo- message Public data field in.That is, when the event message is that link setup completes event message, described build can be preferentially performed Chain completes event message, accordingly for the message for waiting link setup completion to continue with before, it is necessary to when waiting just again It is added at the tail of the queue of message queue;Or
When the event message is link setup event message, request End Event message or affairs End Event message, point It is other that link setup event message mark, request End Event message mark or affairs End Event are carried out to the currently pending message Message marks, to obtain possessing identical message format with the currently pending message and disappear respectively comprising corresponding link setup event The pseudo- message of breath mark, request End Event message mark or affairs End Event message mark, and the pseudo- message is inserted At the currently pending message position into the message queue.That is, now, it is only necessary to described current Link setup event message mark, request End Event message mark or affairs End Event message mark are recorded in clear text, To realize the pseudo- message carried out to the event message assembling and pseudo- message insertion process, so as to the currently pending report Follow-up each Service Processing Module corresponding to text can read the mark, and carry out corresponding business processing according to the mark and be Can.Wherein, link setup event message mark can be represented by isSyn fields, and the request End Event message mark can be by IsRequestEnd represents that the affairs End Event message mark can be represented by isTransactionEnd fields, the present invention Embodiment is not repeated this;Or
When the event message is chain rupture event message, the event message is assembled into and the currently pending report Stationery is for identical message format and includes the pseudo- message of chain rupture event message mark, and the pseudo- message is inserted into the message The telegram end opening position of queue, wherein, the chain rupture event message mark may be generally disposed at the common data word of the pseudo- message Duan Zhong, and can be represented by isTeardown fields, the embodiment of the present invention is not also repeated this.
Further, the event message can also include the special event message generated by each Service Processing Module, such as IPS It is attack message stream that module, which can record a message flow, now, in the message format that can possess to the currently pending message Public data field carry out corresponding special event message mark, so that other clear texts of the follow-up message flow are direct Marked according to the event message, carry out corresponding business processing, such as select direct dropping packets.
Further, the event message can also include as produced by the particular service processing module of user's customized Special event message, now, the special event message can be assembled into and possess identical report with the currently pending message Literary form and the pseudo- message for including corresponding special event message mark, and the pseudo- message is inserted into the spy of the message queue Determine opening position, the embodiment of the present invention is not repeated this.
Further, in embodiment of the present invention, in the type according to the event message, the pseudo- message is inserted After entering among the relevant position of the message queue, methods described can also comprise the following steps:
If it is determined that the business processing operation executed carried out to the currently pending message finishes, then can be from the message Obtain next message in queue, and using next message as new currently pending message, and, to described new current Clear text performs above-mentioned determination Service Processing Module and carried out according to the Service Processing Module of determination at corresponding business The operation of reason.
Further, after it is determined that the business processing operation executed carried out to the currently pending message finishes, Methods described can also include:
If it is determined that the currently pending message is pseudo- message, then the currently pending message is abandoned;
If it is determined that the currently pending message is non-pseudo- message, then the currently pending message is sent to accordingly Message receiving device.
The embodiment of the present invention one provides a kind of message processing method, by by caused thing in message traffic processing procedure Part message is assembled into the pseudo- message for possessing identical message format with the message, and according to the type of the event message, by institute The mode among the relevant position of message queue where pseudo- message is inserted into the message is stated, to realize message and event message Unified management, so as to simplify the processing logic of message and event message, the processing effect for improving message and event message is reached Rate with processing flexibility and and then improve systematic function purpose;Simultaneously as any message in message queue, can Corresponding business processing is carried out to the message according to the Service Processing Module chain being pre-configured with, wherein, the business processing mould Each business module in block chain can be realized by way of simple additions and deletions, so as to further simplify message and event message Logic is handled, improves treatment effeciency and the processing flexibility of message and event message.
Embodiment two:
As shown in figure 5, it is the structural representation of message processor described in the embodiment of the present invention two, at the message Reason equipment can be the various separate networks for needing to perform multiple functions business such as Service Gateway, router and Network Security Device Equipment, or, integrated equipment being arranged in above-mentioned each standalone network device etc., the embodiment of the present invention does not make any limit to this It is fixed.
Specifically, the message processor can include Receive message unit 11, module determining unit 12 and message Processing unit 13, wherein:
The Receive message unit 11 is currently pending available for being obtained from the message queue including at least one message Message.
Specifically, the Receive message unit 11 can be used for when receiving the message from message transmission equipment, according to The parameter informations such as source IP address, purpose IP address, source port, destination interface and the host-host protocol of message, determine each message institute Belong to message flow, and according to institute's band timestamp, the information such as burst on the sequencing of each message received and each message, will be from Each message belonged in same message flow is buffered among same message queue successively, and, for any including at least one The message queue of message, according to the sequencing of each message among the message queue, among the message queue successively Each message is obtained as currently pending message.
The module determining unit 12 can be used for determining the currently pending report for getting the Receive message unit 11 At least one Service Processing Module and at least one Service Processing Module needed for text progress business processing is mutual Business execution sequence.
Specifically, the module determining unit 12 is particularly used in transports according to the Service Processing Module being pre-configured with and message The corresponding relation of row condition, it is determined that at least one business processing mould corresponding with the service condition of the currently pending message Block, and it is successively suitable according to execution of at least one Service Processing Module under the service condition of the currently pending message Sequence, determine the mutual business execution sequence of at least one Service Processing Module;Or
The corresponding relation according to the Service Processing Module being pre-configured with and message Run-time scenario is particularly used in, it is determined that and institute The corresponding at least one Service Processing Module of the Run-time scenario of currently pending message is stated, and according at least one business Execution sequencing of the processing module under the Run-time scenario of the currently pending message, is determined at least one business Manage the mutual business execution sequence of module.
Wherein, identified Service Processing Module can generally include protocol identification module, IPS modules, ADC, WOC Module and by the one or more in the particular service processing module of user's customized as needed, the embodiment of the present invention pair This is not limited in any way.
It should be noted that in embodiment of the present invention, for any message, due to identified to the message Required at least one Service Processing Module putting in order in the presence of setting between each other when carrying out business processing, therefore, can will At least one Service Processing Module required when carrying out business processing to the message determined is referred to as Service Processing Module chain, Correspondingly, it is identified to match respectively with any two message for any two message in same message queue Service Processing Module chain can be mutually identical or different, the embodiment of the present invention is not limited in any way to this.
It is further to note that for any two message in same message queue, when it is identified respectively with institute It is same Service Processing Module chain to state the Service Processing Module chain that any two message matches, as described same message queue In the Service Processing Module chain that is pre-configured with of each clear text when being same Service Processing Module chain, can be it is determined that described same After the Service Processing Module chain that first message in one message queue matches, directly using the Service Processing Module chain as with institute The Service Processing Module chain that other each messages in same message queue match is stated, to reach simplified subsequent packet business processing The purpose of flow.
The message process unit 13 can be used at least one business determined according to the module determining unit 12 Processing module and the mutual business execution sequence of at least one Service Processing Module are to the currently pending report Text carries out business processing, and caused event message in business procession is assembled into and possessed with the currently pending message The pseudo- message of identical message format, and, according to the type of the event message, the pseudo- message is inserted into the message team Among the relevant position of row.
Specifically, the message process unit 13 can be used for mutual according at least one Service Processing Module Business execution sequence, dispatches each Service Processing Module successively, and according to the Service Processing Module of scheduling to described currently pending Message carries out corresponding business processing.
Further, in embodiment of the present invention, currently pending message is being carried out to produce in business procession Raw event message can include link setup event message, link setup completes event message, chain rupture event message, request End Event disappear One or more in breath or affairs End Event message, the embodiment of the present invention are not limited in any way to this.
Specifically, when carrying out business processing to the currently pending message, if detecting the currently pending report Text can then produce correspondingly link setup event message, to establish new connection to carry the message of SYN marks;Further, with Exemplified by ICP/IP protocol, when determining three-way handshake success, then it can produce correspondingly link setup and complete event message, to represent this Secondary connection, which is established, to be completed;Further, when detecting FIN messages or RST messages, then it represents that current connection is over, can With the related resource of release, now, correspondingly chain rupture event message can be produced;Further, when detecting request end, When such as carrying the message of Request End marks, correspondingly request End Event message can be produced, to terminate to disappear to the request Event message corresponding to breath carries out end processing;When detecting the message for carrying Transaction End marks, can produce Correspondingly affairs End Event message, to notify network equipment corresponding event message is processed to finish.
Further, when the identified at least one business carried out to the currently pending message needed for business processing When also including the particular service processing module by user's customized in processing module, the event message can also include by institute Special event message, the embodiment of the present invention caused by particular service processing module is stated not to be limited in any way this.Additionally need It is bright, any event message can not be also produced during business processing is carried out to the clear text, the present invention is real Example is applied also not to be limited in any way this.
Further, caused event message includes link setup thing in currently pending message progress business procession Part message, link setup complete event message, chain rupture event message, request End Event message or affairs End Event message etc. When, the message process unit 13 is particularly used in the following manner to be assembled into the event message and currently waits to locate with described Reason message possesses the pseudo- message of identical message format, and according to the type of the event message, the pseudo- message is inserted into institute State among the relevant position of message queue:
When the event message is that link setup completes event message, the message process unit 13 is particularly used in will be described Event message, which is assembled into the currently pending message, to be possessed identical message format and completes event message mark comprising link setup Pseudo- message, and the pseudo- message is inserted into the header opening position of the message queue;
When the event message is link setup event message, request End Event message or affairs End Event message, institute Message process unit 13 is stated to be particularly used in respectively to the currently pending message progress link setup event message mark, request knot Beam event message marks or affairs End Event message mark, to obtain possessing identical message lattice with the currently pending message Formula and respectively comprising corresponding link setup event message mark, request End Event message mark or affairs End Event message mark Pseudo- message, and the pseudo- message is inserted at the currently pending message position in the message queue, i.e., Can be by the way that link setup event message mark, request End Event message mark or affairs be carried out to the currently pending message respectively The mode of End Event message mark, realize the pseudo- message assembling carried out to the event message and pseudo- message insert division Reason;
When the event message is chain rupture event message, the message process unit 13 is particularly used in the event Message is assembled into the pseudo- message for possessing identical message format with the currently pending message and including chain rupture event message mark, And the pseudo- message is inserted into the telegram end opening position of the message queue.
Further, in embodiment of the present invention, the Receive message unit 11 can be additionally used according to the thing The type of part message, after the pseudo- message is inserted among the relevant position of the message queue, however, it is determined that work as to described The business processing operation executed that preceding clear text is carried out is finished, then next message is obtained from the message queue, and will Next message is as new currently pending message, and triggers the module determining unit 12 and Message processing successively Unit 13 performs above-mentioned determination Service Processing Module and the business processing according to determination to the new currently pending message Module carries out the operation of corresponding business processing.
Further, the message process unit 13 can be additionally used in it is determined that the industry carried out to the currently pending message After business processing operation executed finishes, however, it is determined that the currently pending message is pseudo- message, then abandons and described currently wait to locate Message is managed, and, however, it is determined that the currently pending message is non-pseudo- message, then the currently pending message is sent into phase The message receiving device answered.
It should be noted that in embodiment of the present invention, the message processor can also include module and configure Unit 14, wherein:
The module dispensing unit 14 can be used for previously according to different message service conditions(And/or message Run-time scenario) Configure corresponding conditionses(And/or scene)The lower Service Processing Module for needing to perform, that is, be pre-configured with Service Processing Module and message Service condition(And/or Run-time scenario)Corresponding relation, so that the module determining unit 12 is according to the industry being pre-configured with Processing module of being engaged in and message service condition(And/or Run-time scenario)Corresponding relation, perform corresponding Service Processing Module really Fixed operation.
Wherein, by taking message Run-time scenario as an example, the scene can be subdivided into message entrance, outlet, the processing of L7 layers etc., this Inventive embodiments are not limited in any way to this.It is further to note that the module dispensing unit 14 can also be according to reality Situation, to the Service Processing Module being pre-configured with and message service condition(And/or Run-time scenario)Corresponding relation carry out Adjustment setting in real time, to be more flexibly adapted to the business procession of message, the embodiment of the present invention is not also appointed to this What is limited.
Explanation in need again, in embodiment of the present invention, each message in any message queue can generally have Standby unified message format as shown in Figure 4.Wherein, can possess in the unified message format for representing that message specifically counts According to the message data field of content, the message data length field for representing message data length, for representing that message is specific The type of message field of type and public data field etc., the embodiment of the present invention is not limited in any way to this.Further, May include in the public data field for represent message service condition and/or Run-time scenario flow table information, when message is First packet mark during first packet and the event message mark when message is caused event message in message traffic processing procedure Information etc., the embodiment of the present invention is not also limited in any way to this.
The embodiment of the present invention two provides a kind of message processor, by by caused thing in message traffic processing procedure Part message is assembled into the pseudo- message for possessing identical message format with the message, and according to the type of the event message, by institute The mode among the relevant position of message queue where pseudo- message is inserted into the message is stated, to realize message and event message Unified management, so as to simplify the processing logic of message and event message, the processing effect for improving message and event message is reached Rate with processing flexibility and and then improve systematic function purpose;Simultaneously as any message in message queue, can Corresponding business processing is carried out to the message according to the Service Processing Module chain being pre-configured with, wherein, the business processing mould Each business module in block chain can be realized by way of simple additions and deletions, so as to further simplify message and event message Logic is handled, improves treatment effeciency and the processing flexibility of message and event message.
Embodiment three:
The embodiment of the present invention three provides a kind of Message processing that can be used for realizing method shown in the embodiment of the present invention one and set It is standby, as shown in fig. 6, it is the structural representation of message processor described in the embodiment of the present invention three, for convenience of description, only The part related to the embodiment of the present invention three is shown, particular technique details does not disclose, refer to the sheet shown in Fig. 1 or Fig. 3 Invent each embodiment.
Specifically, it is various to generally can be Service Gateway, router and Network Security Device etc. for the message processor The standalone network device of execution multiple functions business is needed, or, the integrated equipment being arranged in above-mentioned each standalone network device Deng the embodiment of the present invention is not limited in any way to this.Specifically, the embodiment of the present invention three is using the message processor as route Illustrated exemplified by device, Fig. 6 is illustrated that the block diagram of the part-structure of the router 20 related to the embodiment of the present invention three.
As shown in fig. 6, the router 20 can include:Memory 21 and the grade part of processor 22.Art technology Personnel are appreciated that the structure of the router 20 shown in Fig. 6 does not form the restriction to router, can include than illustrating more More or less parts, either combines some parts or different parts arrangement, the embodiment of the present invention do not make any limit to this It is fixed.
Each component parts of the router 20 is specifically introduced with reference to Fig. 6:
The memory 21 can be used for each message that storage receives.Specifically, the memory 21 can be used for receiving To from message send equipment message when, according to the source IP address of message, purpose IP address, source port, destination interface and The parameter informations such as host-host protocol, determine the affiliated message flow of each message, and according to the sequencing of each message received and each The information such as the timestamp that is carried on message, burst, same message is buffered in by each message being subordinated in same message flow successively Among queue, i.e., described memory 21 is particularly used in each message that storage receives in the form of message queue.
It should be noted that the memory 21 can be cache(Cache)Or ROM(Read-only storage)Etc. form Storage device, the embodiment of the present invention are not limited in any way to this.
The processor 22 can be used for from the message queue including at least one message of the memory 21 storage, obtain Currently pending message is taken, and determines to carry out the currently pending message at least one business processing needed for business processing Module and the mutual business execution sequence of at least one Service Processing Module;And according to described at least one Service Processing Module and the mutual business execution sequence of at least one Service Processing Module currently are waited to locate to described Manage message and carry out business processing, and caused event message in business procession is assembled into and the currently pending message Possess the pseudo- message of identical message format, and, according to the type of the event message, the pseudo- message is inserted into the report Among the relevant position of literary queue.
Specifically, the processor 22 is particularly used according to the Service Processing Module being pre-configured with and message service condition Corresponding relation, it is determined that at least one Service Processing Module corresponding with the service condition of the currently pending message, and According to execution sequencing of at least one Service Processing Module under the service condition of the currently pending message, really The mutual business execution sequence of fixed at least one Service Processing Module;Or
The corresponding relation according to the Service Processing Module being pre-configured with and message Run-time scenario is particularly used in, it is determined that and institute The corresponding at least one Service Processing Module of the Run-time scenario of currently pending message is stated, at least one business Execution sequencing of the module under the Run-time scenario of the currently pending message is managed, determines at least one business processing The mutual business execution sequence of module.
Wherein, identified Service Processing Module can generally include protocol identification module, IPS modules, ADC, WOC Module and by the one or more in the particular service processing module of user's customized as needed, the embodiment of the present invention pair This is not limited in any way.
In addition, in embodiment of the present invention, for any message, business is carried out to the message due to identified Required at least one Service Processing Module putting in order in the presence of what is set between each other during processing, therefore, can be by pair of determination The message at least one Service Processing Module required when carrying out business processing is referred to as Service Processing Module chain, correspondingly, For any two message in same message queue, determined by the processor 22 respectively with any two message phase The Service Processing Module chain of matching can be mutually identical or different, and the embodiment of the present invention is not limited in any way to this.
It is further to note that for any two message in same message queue, when it is identified respectively with institute It is same Service Processing Module chain to state the Service Processing Module chain that any two message matches, as described same message queue In the Service Processing Module chain that is pre-configured with of each clear text when being same Service Processing Module chain, can be it is determined that described same After the Service Processing Module chain that first message in one message queue matches, directly using the Service Processing Module chain as with institute The Service Processing Module chain that other each messages in same message queue match is stated, to reach simplified subsequent packet business processing The purpose of flow.
Further, it is determined that currently pending message carry out business processing needed at least one Service Processing Module with And after the mutual business execution sequence of at least one Service Processing Module, the processor 22 is particularly used in root According to the mutual business execution sequence of at least one Service Processing Module, each Service Processing Module, and root are dispatched successively Corresponding business processing is carried out to the currently pending message according to the Service Processing Module of scheduling.
Further, according at least one Service Processing Module and at least one Service Processing Module phase Business execution sequence between mutually carries out business processing to the currently pending message, and is produced in the business procession Raw event message, as link setup event message, link setup complete event message, chain rupture event message, request End Event message or During affairs End Event message etc., the processor 22 is particularly used in when the event message is that link setup completes event message When, the event message is assembled into the currently pending message and possesses identical message format and completes event comprising link setup The pseudo- message of message mark, and the pseudo- message is inserted into the header opening position of the message queue;Or it is particularly used in When the event message is link setup event message, request End Event message or affairs End Event message, respectively to described Currently pending message carries out link setup event message mark, request End Event message mark or affairs End Event message mark Note, to obtain possessing identical message format with the currently pending message and include corresponding link setup event message mark respectively The pseudo- message of note, request End Event message mark or affairs End Event message mark, and the pseudo- message is inserted into institute State at the currently pending message position in message queue, you can by entering respectively to the currently pending message The mode of row link setup event message mark, request End Event message mark or affairs End Event message mark, is realized to institute State the assembling of pseudo- message and the pseudo- message insertion process that event message is carried out;Or it is particularly used in when the event message For chain rupture event message when, the event message is assembled into and possesses identical message format and bag with the currently pending message The pseudo- message of the mark of event message containing chain rupture, and the pseudo- message is inserted into the telegram end opening position of the message queue.
Further, in embodiment of the present invention, the processor 22 can be additionally used according to the event message Type, after the pseudo- message is inserted among the relevant position of the message queue, however, it is determined that currently wait to locate to described The business processing operation executed that reason message is carried out finishes, then is obtained from message queue corresponding to the currently pending message Next message, and using next message as new currently pending message, and the triggering processor 22 is to described new Currently pending message perform above-mentioned determination Service Processing Module and carried out according to the Service Processing Module of determination corresponding The operation of business processing.
Further, in embodiment of the present invention, the processor 22 can be additionally used in it is determined that currently being treated to described After the business processing operation executed that processing message is carried out finishes, however, it is determined that the currently pending message is pseudo- message, then The currently pending message is abandoned, and, however, it is determined that the currently pending message is non-pseudo- message, then is currently treated described Processing message is sent to corresponding message receiving device.
It should be noted that in embodiment of the present invention, the processor 22 can be additionally used in previously according to different Message service condition(And/or message Run-time scenario)Configure corresponding conditionses(And/or scene)The lower business processing mould for needing to perform Block, that is, it is pre-configured with Service Processing Module and message service condition(And/or Run-time scenario)Corresponding relation, so as to follow-up basis The Service Processing Module being pre-configured with and message service condition(And/or Run-time scenario)Corresponding relation, perform corresponding The determination operation of Service Processing Module.
Wherein, by taking message Run-time scenario as an example, the scene can be subdivided into message entrance, outlet, the processing of L7 layers etc., this Inventive embodiments are not limited in any way to this.It is further to note that the processor 22 can also be right according to actual conditions The Service Processing Module being pre-configured with and message service condition(And/or Run-time scenario)Corresponding relation adjusted in real time Whole setting, to be more flexibly adapted to the business procession of message, the embodiment of the present invention is not also limited in any way to this.
Explanation in need again, in embodiment of the present invention, each clear text in any message queue leads to Can often possess unified message format as shown in Figure 4.Wherein, can possess in the unified message format for representing message The message data field of specific data content, the message data length field for representing message data length, for representing to report The type of message field of literary particular type and public data field etc., the embodiment of the present invention is not limited in any way to this.Enter one Step ground, may include in the public data field for represent message service condition and/or Run-time scenario flow table information, work as report First packet mark when text is first packet and the event message when message is caused event message in message traffic processing procedure Label information etc., the embodiment of the present invention is not also limited in any way to this.
The embodiment of the present invention three provides a kind of message processor, by by caused thing in message traffic processing procedure Part message is assembled into the pseudo- message for possessing identical message format with the message, and according to the type of the event message, by institute The mode among the relevant position of message queue where pseudo- message is inserted into the message is stated, to realize message and event message Unified management, so as to simplify the processing logic of message and event message, the processing effect for improving message and event message is reached Rate with processing flexibility and and then improve systematic function purpose;Simultaneously as any message in message queue, can Corresponding business processing is carried out to the message according to the Service Processing Module chain being pre-configured with, wherein, the business processing mould Each business module in block chain can be realized by way of simple additions and deletions, so as to further simplify message and event message Logic is handled, improves treatment effeciency and the processing flexibility of message and event message.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, apparatus(Equipment)Or computer journey Sequence product.Therefore, in terms of the present invention can use complete hardware embodiment, complete software embodiment or combine software and hardware The form of embodiment.Moreover, the present invention can use the calculating for wherein including computer usable program code in one or more Machine usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program of upper implementation The form of product.
The present invention is with reference to method, apparatus according to embodiments of the present invention(Equipment)With the flow chart of computer program product And/or block diagram describes.It should be understood that can be by each flow in computer program instructions implementation process figure and/or block diagram And/or square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided to refer to The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is made to produce One machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for realizing The device for the function of being specified in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (10)

  1. A kind of 1. message processing method, it is characterised in that including:
    The network equipment obtains currently pending message from the message queue including at least one message, and determines to described current Clear text carries out at least one Service Processing Module and at least one Service Processing Module needed for business processing Mutual business execution sequence;
    Held according to the business that at least one Service Processing Module and at least one Service Processing Module are mutual Row order carries out business processing to the currently pending message, and caused event message in business procession is assembled into Possess the pseudo- message of identical message format with the currently pending message, and, according to the type of the event message, by institute Pseudo- message is stated to be inserted among the relevant position of the message queue.
  2. 2. message processing method as claimed in claim 1, it is characterised in that it is determined that entering industry to the currently pending message At least one Service Processing Module and the mutual business of at least one Service Processing Module needed for business processing are held Row order, including:
    According to the Service Processing Module being pre-configured with and the corresponding relation of message service condition, or the business processing mould being pre-configured with The corresponding relation of block and message Run-time scenario, it is determined that corresponding with the service condition or Run-time scenario of the currently pending message At least one Service Processing Module, and according at least one Service Processing Module the currently pending message fortune Execution sequencing under row condition or Run-time scenario, determine that the mutual business of at least one Service Processing Module is held Row order.
  3. 3. message processing method as claimed in claim 1, it is characterised in that it is determined that being carried out to the currently pending message Business processing operation executed finish after, methods described also includes:
    If it is determined that the currently pending message is pseudo- message, then the currently pending message is abandoned;
    If it is determined that the currently pending message is non-pseudo- message, then the currently pending message is sent into message reception sets It is standby.
  4. 4. the message processing method as described in claims 1 to 3 is any, it is characterised in that at least one business Module and the mutual business execution sequence of at least one Service Processing Module are managed to the currently pending message Business processing is carried out, including:
    According to the mutual business execution sequence of at least one Service Processing Module, each business processing mould is dispatched successively Block, and corresponding business processing is carried out to the currently pending message according to the Service Processing Module of scheduling.
  5. 5. the message processing method as described in claims 1 to 3 is any, it is characterised in that the event message includes link setup thing Part message, link setup are completed in event message, chain rupture event message, request End Event message and affairs End Event message It is one or more;
    It is described that the event message is assembled into the pseudo- message for possessing identical message format with the currently pending message, and root According to the type of the event message, the pseudo- message is inserted among the relevant position of the message queue, including:
    When the event message is that link setup completes event message, the event message is assembled into and the currently pending report Stationery is for identical message format and includes the pseudo- message that link setup completes event message mark, and the pseudo- message is inserted into described The header opening position of message queue;Or
    It is right respectively when the event message is link setup event message, request End Event message or affairs End Event message The currently pending message carries out link setup event message mark, request End Event message mark or affairs End Event message Mark, to obtain possessing identical message format with the currently pending message and include corresponding link setup event message mark respectively The pseudo- message of note, request End Event message mark or affairs End Event message mark, and the pseudo- message is inserted into institute State at the currently pending message position in message queue;Or
    When the event message is chain rupture event message, the event message is assembled into and had with the currently pending message For identical message format and the pseudo- message of chain rupture event message mark is included, and the pseudo- message is inserted into the message queue Telegram end opening position.
  6. A kind of 6. message processor, it is characterised in that including:
    Receive message unit, for obtaining currently pending message from the message queue including at least one message;
    Module determining unit, the currently pending message for determining to get the Receive message unit carry out business processing Required at least one Service Processing Module and the mutual business execution sequence of at least one Service Processing Module;
    Message process unit, at least one Service Processing Module determined according to the module determining unit and institute State at least one Service Processing Module mutual business execution sequence and business processing carried out to the currently pending message, And caused event message in business procession is assembled into and possesses identical message format with the currently pending message Pseudo- message, and, according to the type of the event message, the relevant position that the pseudo- message is inserted into the message queue is worked as In.
  7. 7. message processor as claimed in claim 6, it is characterised in that
    The module determining unit, specifically for being closed according to the Service Processing Module being pre-configured with is corresponding with message service condition System, or the corresponding relation of the Service Processing Module being pre-configured with and message Run-time scenario, it is determined that with the currently pending message Service condition or the corresponding at least one Service Processing Module of Run-time scenario, and according at least one business processing mould Execution sequencing of the block under the service condition of the currently pending message or Run-time scenario, determines at least one industry The mutual business execution sequence of processing module of being engaged in.
  8. 8. message processor as claimed in claim 6, it is characterised in that
    The message process unit, it is additionally operable to it is determined that the business processing carried out to the currently pending message operates executed After finishing, however, it is determined that the currently pending message is pseudo- message, then abandons the currently pending message, and, if really The fixed currently pending message is non-pseudo- message, then the currently pending message is sent into corresponding message reception sets It is standby.
  9. 9. the message processor as described in claim 6~8 is any, it is characterised in that
    The message process unit, it is suitable specifically for being performed according to the mutual business of at least one Service Processing Module Sequence, each Service Processing Module is dispatched successively, and phase is carried out to the currently pending message according to the Service Processing Module of scheduling The business processing answered.
  10. 10. the message processor as described in claim 6~8 is any, it is characterised in that the event message includes link setup thing Part message, link setup are completed in event message, chain rupture event message, request End Event message and affairs End Event message It is one or more;
    The message process unit, specifically for when the event message is that link setup completes event message, the event is disappeared Breath is assembled into possess identical message format with the currently pending message and complete the pseudo- of event message mark comprising link setup and reported Text, and the pseudo- message is inserted into the header opening position of the message queue;Or specifically for being when the event message When link setup event message, request End Event message or affairs End Event message, the currently pending message is entered respectively Row link setup event message mark, request End Event message mark or affairs End Event message mark, to obtain working as with described Preceding clear text possesses identical message format and respectively comprising corresponding link setup event message mark, request End Event message Mark or affairs End Event message mark pseudo- message, and by the pseudo- message be inserted into the message queue described in work as At preceding clear text position;Or specifically for when the event message is chain rupture event message, by the event Message is assembled into the pseudo- message for possessing identical message format with the currently pending message and including chain rupture event message mark, And the pseudo- message is inserted into the telegram end opening position of the message queue.
CN201310753775.1A 2013-12-30 2013-12-30 A kind of message processing method and equipment Active CN103684886B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310753775.1A CN103684886B (en) 2013-12-30 2013-12-30 A kind of message processing method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310753775.1A CN103684886B (en) 2013-12-30 2013-12-30 A kind of message processing method and equipment

Publications (2)

Publication Number Publication Date
CN103684886A CN103684886A (en) 2014-03-26
CN103684886B true CN103684886B (en) 2017-11-21

Family

ID=50321267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310753775.1A Active CN103684886B (en) 2013-12-30 2013-12-30 A kind of message processing method and equipment

Country Status (1)

Country Link
CN (1) CN103684886B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219238B (en) * 2014-08-30 2018-05-29 华为技术有限公司 Message processing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459583A (en) * 2007-12-13 2009-06-17 华为技术有限公司 Packet processing method and apparatus, packet sending method and apparatus
CN103458374A (en) * 2012-05-29 2013-12-18 华为软件技术有限公司 Method, device and system for implementing value added services

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2845544B1 (en) * 2002-10-03 2005-01-14 Cit Alcatel ACTIVE RESOURCE RESERVATION SUPPORT IN A COMMUNICATION NETWORK

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459583A (en) * 2007-12-13 2009-06-17 华为技术有限公司 Packet processing method and apparatus, packet sending method and apparatus
CN103458374A (en) * 2012-05-29 2013-12-18 华为软件技术有限公司 Method, device and system for implementing value added services

Also Published As

Publication number Publication date
CN103684886A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN104253820B (en) software defined network safety control system and control method
CN105052087B (en) A kind of list item addressing method, interchanger and controller based on flow table
CN109450936A (en) A kind of adaptation method and device of the hetero-com-munication agreement based on Kafka
CN102148727B (en) Method and system for testing performance of network equipment
CN105187331B (en) The system of dynamic resource management in the distributed control planes of interchanger
CN103957159B (en) A kind of method and path-calculating element for determining label switched path
CN105528254B (en) A kind of method for processing business and device
EP3720075B1 (en) Data transmission method and virtual switch
CN105119911B (en) A kind of safety certifying method and system based on SDN streams
WO2020083301A1 (en) Network slice method, computer device and storage medium
CN107846443A (en) Distributed treatment in network
CN112822037B (en) Flow arrangement method and system for security resource pool
CN101719850B (en) Device and method for carrying out statistics on Ethernet packet loss rate as well as message switching device
CN106357726A (en) Load balancing method and device
CN109413069A (en) The application method and device of virtual site firewall based on block chain
CN110351135A (en) Method for configuring network equipment and device in more DC
CN103684886B (en) A kind of message processing method and equipment
CN103685257B (en) A kind of DHCP network protection system and method
CN105471756B (en) A kind of data package processing method and device
CN105591967B (en) A kind of data transmission method and device
CN101355585B (en) System and method for protecting information of distributed architecture data communication equipment
CN110417687A (en) A kind of message sends and receives method and device
CN109391650A (en) A kind of method and device for establishing session
CN106330772B (en) Flow table sending method and OpenFlow controller in SDN
CN109842503A (en) Link-quality test method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200420

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 301, A building, room 3, building 301, foreshore Road, No. 310052, Binjiang District, Zhejiang, Hangzhou

Patentee before: Huawei Technologies Co.,Ltd.

TR01 Transfer of patent right