CN1845535A - Message matching method and system - Google Patents

Message matching method and system Download PDF

Info

Publication number
CN1845535A
CN1845535A CN 200510083058 CN200510083058A CN1845535A CN 1845535 A CN1845535 A CN 1845535A CN 200510083058 CN200510083058 CN 200510083058 CN 200510083058 A CN200510083058 A CN 200510083058A CN 1845535 A CN1845535 A CN 1845535A
Authority
CN
China
Prior art keywords
message
network element
processing module
critical field
module
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.)
Granted
Application number
CN 200510083058
Other languages
Chinese (zh)
Other versions
CN100456753C (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
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2005100830588A priority Critical patent/CN100456753C/en
Publication of CN1845535A publication Critical patent/CN1845535A/en
Application granted granted Critical
Publication of CN100456753C publication Critical patent/CN100456753C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosed communication system for compatibility comprises: the net element with a core process module to construct information for transmission and process received information and an interface process module to code and decode information, a maintenance platform for former element, an information matching module connected between said modules in net element as well as the maintenance platform to store match rule list and match information.

Description

A kind of method and system of match messages
Technical field
The present invention relates to the communications field, particularly relate to the method for message transfer between a kind of communication system and network element thereof and coupling network element.
Background technology
There is various network element in the communication system at present, stipulate the form of interface message between the various network elements by technical specification, agreement, to guarantee that different network elements can normally dock, make that interactive messages can be normally processed between the different network elements, and finish intended function.
But the technical specification of communication system, agreement are constantly changing, are upgrading, and version can not be compatible before and after some variation, upgrading caused, and for example: the span difference causes the cell span to change between the version; Some cell becomes essential cell from optional cell and causes the cell attribute change; Increase or deleted some cell etc.Exist some network element on interface message is handled, not meet the situation of protocol specification in addition, for example: the cell span of supporting technology standard, agreement regulation not; Can not normal process to the value of agreement regulation etc.
At present, extensively exist in the communication system use differently realize, the network element of different editions agreement, when carrying out interacting message between these network elements, interface often occurring can not be compatible, situation that can not normal process message.
When above-mentioned situation occurring, prior art is come compatible opposite end network element by the presently used agreement of initiation butt joint one side's network element is upgraded.But owing to exist part network element protocol version very old, some hardware device reason such as can not upgrade causes both sides' network element to dock.
For addressing the above problem, prior art also can be by making amendment compatible opposite end network element to initiating the used realization of butt joint one side's network element.But, realize requiring the equipment supplier to submit special version to owing to revise, and the maintenance of this version is not had generality, make the risk of upgrading strengthen.
Summary of the invention
The invention provides a kind of communication system, there is incompatible problem in interactive messages between the network element that uses the different editions agreement in the prior art in order to solve.
The present invention also provides a kind of network element, and it is used in the above-mentioned communication system.
The present invention provides a kind of match messages method based on above-mentioned communication system again.
Network element of the present invention comprises: the interface processing module is used for the message that sends and receive is carried out encoding and decoding; Core processing module is used to construct the message of transmission and handles the message that receives; Described network element also comprises: the match messages module, be connected between described interface processing module and the core processing module, and be used to store the matched rule tables of data, and the message that sends and receive mated according to the content of described tables of data.
Communication system of the present invention, comprise: the network element that core processing module and interface processing module are formed, described core processing module is used to construct the message of transmission and handles the message that receives, and described interface processing module is used for the message that sends and receive is carried out encoding and decoding; Maintenance console is used to safeguard described network element; Described system also comprises: the match messages module, be connected between described interface processing module and the core processing module, and link to each other with described maintenance console, be used to store matched rule tables of data, and the message that sends and receive mated according to the content of described tables of data by described maintenance console configuration.
Described match messages module is placed in the described network element, perhaps is independent of described network element.
When described match messages module is independent of described network element, the corresponding match messages module of each network element.
The method of match messages of the present invention, comprise the following steps: network element receive message and to its decoding after, perhaps network element to message coding to be sent before, judge whether the message flow of described message meets default matched rule; If described message flow meets described matched rule, then this message is carried out corresponding matching treatment according to described matched rule; Otherwise, this message is not made matching treatment.
Described matched rule comprises: critical field, the positional information of described critical field in described message flow, matching condition, and processing rule.
Described critical field is the type of message of described message and/or the cell of message.
The positional information of described critical field is represented with skew in the message flow and length.
Described matching condition is the span of setting as required.
The determination methods whether described message flow meets described matched rule comprises step: the positional information according to described critical field is searched described critical field in described message flow; Value and described matching condition with the critical field that finds contrast, if the value of described critical field falls into the span that described matching condition is set, judge that then this message flow meets described matched rule; Otherwise judgement does not meet.
Corresponding matching treatment comprises: according to described processing rule the critical field of described message is made amendment, make its value fall into the process range of this network element or opposite end network element; And abandon described message according to described processing rule and type of message, the message of predefined type can not be sent and receive.
Beneficial effect of the present invention is as follows: by connect a match messages module between the interface processing module of network element and core processing module, make described network element have the match messages function.Described network element is applied in the communication system, when this network element is received the message that other network element sends, after its reception and decoding, utilize matched rule default in the described match messages module that it is mated earlier, make this message meet the treatment conditions of this network element, be transferred to core processing module again and carry out subsequent treatment; When described network element when other network element sends message, utilize matched rule default in the described match messages module that it is mated earlier, make this message to be sent meet the treatment conditions of opposite end network element, the transmission of encoding again.By above-mentioned processing, use the network element of different editions agreement, and interactive messages can be compatible between the different network element of realizing.Match messages module of the present invention is not limited to and is embedded in the described network element, also can be separate with described network element, be placed in the system, and the network element that can be like this in the existing system adds the match messages function, reaches better match messages effect.
Description of drawings
Fig. 1 is the internal structure schematic diagram of network element of the present invention;
Fig. 2 is a networking communication system schematic diagram of the present invention;
The message flow chart that Fig. 3 receives for the present invention's coupling;
Fig. 4 is the message structure schematic diagram;
Fig. 5 mates message flow chart to be sent for the present invention.
Embodiment
For the network element of use different editions agreement, and interactive messages can be compatible between the different network element of realizing, the invention provides a kind of network element with match messages module.
Be illustrated in figure 1 as the internal structure schematic diagram of network element of the present invention, this network element comprises as seen from the figure: the interface processing module of Xiang Lianing, match messages module and core processing module successively.
Message after described interface processing module is used for the message that sends encoded and will encode sends to the opposite end network element; And receive message that other network element sends and the message that receives is decoded.
Described core processing be used to handle receive and through the decoded message of described interface processing module, and construct message to be sent and offer described interface processing module.
Described match messages module is used to store the matched rule tables of data.According to described matched rule tables of data, described match messages module is to receiving and decoded message is carried out matching operation, makes the message after the coupling can be by this network element compatibility, and the transmission of messages after will mate is again carried out subsequent treatment to described core processing module; And according to described matched rule tables of data, described match messages module is carried out matching operation to the message to be sent and that coding is preceding of described core processing module structure, make the message after the coupling can compatible opposite end network element, the transmission of messages after will mating be again given the transmission of encoding of described interface processing module.
Be illustrated in figure 2 as networking communication system schematic diagram of the present invention, it comprises several described network elements as seen from the figure, and the match messages module in described each network element all links to each other with maintenance console.
Described maintenance console is used to provide user interface, can create and the edit messages matched rule by described interface, and described match messages rule are issued in the match messages module of each network element.Described maintenance console also provides conventional maintenance function.
Utilize said network element and communication system, the invention provides a kind of match messages method, use the network element of diversity of protocol versions, and normal interaction message between the different network element of realizing.This method may further comprise the steps:
-preset matching rule;
-network element is received message and to after its decoding, perhaps network element to message coding to be sent before, contrast with the message flow of described message and default matched rule;
The described message flow of-Ruo meets described matched rule, then according to described matched rule described message is carried out corresponding matching treatment; Otherwise, do not handle.
Below receive message flow and send message flow by described network element respectively and specifically describe match messages method of the present invention.
Example one: the message that described network element receives is mated, and its steps flow chart as seen from the figure, comprises following concrete implementation step as shown in Figure 3:
At first find out place incompatible between the network element of butt joint by protocal analysis and network element interoperability test, then by maintenance console configuration critical field, matching condition and processing rule, and be issued in the matching module of network element, in order to the message that sends and receive is mated, make the interface message can be compatible.Can adopt different coded systems for the network element interface message in the practical communication system, the described interface processing module in the network element is used to finish the Code And Decode work of message.Described interface message is a structure before coding or after the decoding, described message structure schematic diagram, as shown in Figure 4.In conjunction with this figure, if in the message body of the message that the transmitting terminal network element sends, type of message is 1 and to the value of field 3 without limits, and the local terminal network element is 1 message to type of message, the value that limits its field 3 can not be greater than 100, then following matched rule can be set in described maintenance console, and be issued in the match messages module of this receiving terminal network element:
Because local terminal is different for the span of the field in the message body 3 with the opposite end, so described type of message is set and field 3 is critical field;
The positional information of described critical field is represented with skew in the message flow and length, so above-mentioned definite length and the deviant of critical field in message flow also need be set in matched rule, is used to locate described critical field.Described length and deviant can be represented with byte or bit.Referring to Fig. 4, described type of message is in 0 to 1 byte, and described field 3 is in 6 to 7 bytes;
The value of message type field is 1 in the message body that matching condition is set to receive, and the value of field 3 is greater than 100;
Processing rule is set to field 3 is revised as 100;
In the default following step of back execution of finishing of described matched rule:
After S1, described network element with match messages function receive the message that other network element is sent in the system by the interface processing module, this message is decoded by described interface processing module.
After S2, the decoding, this message is transferred to described match messages module.Described match messages module is at first according to its preset keyword section (message type field and field 3), with and the default specific location information of described critical field in message flow, in the message flow of the message that receives, search described critical field.Described specific location information is represented (type of message is in 0 to 1 byte, and field 3 is in 6 to 7 bytes) with skew in the message flow and length.
S3, after finding described critical field, critical field that finds and the matching condition of presetting are contrasted one by one, (type of message is 1 if the cell value of described critical field and/or type of message fall into the span that matching condition limits, field 3 values are greater than 100), judge that then this message that receives meets matched rule, and change step S4 over to; Do not meet matched rule otherwise be judged to be, will not carry out matching treatment, directly carry out subsequent operation according to prior art.
S4, through contrast, when the value of critical field met described matching condition, for example: the cell value of message met some number ranges, then according to default processing rule this message was carried out corresponding operation (value of revising field 3 is 100).Described processing rule specifically comprises dual mode:
Mode one: the critical field value of described message is revised as predetermined value, makes it fall into the process range of this network element.
Mode two: abandon described message according to type of message, the message of predefined type is not received by this network element.Utilize this processing mode to test in the situation that abandons a certain class message fully to network element.
After finishing, the matching treatment operation carries out subsequent treatment for described core processing module this transmission of messages.
Example two: the message that described network element sends is mated.Owing to had a lot of network elements in the communication system, there is not described match messages module in these network elements, when these do not have the network element of described match messages module and network element of the present invention to carry out interacting message, by network element of the present invention before initiating a message, earlier this message is mated accordingly, make the opposite end network element can directly handle the message that receives.This routine steps flow chart as seen from the figure, comprises following concrete implementation step as shown in Figure 5:
Before flow process begins, create message matches rule, and be issued in the match messages module.(principle is identical with example one)
S1, described network element with match messages function are created message to be sent by core processing module.
S2, described message to be sent are transferred to described match messages module.Described match messages module is at first according to the critical field in its default matching condition, with and the default specific location information of described critical field in message flow, search described critical field in the message flow of message to be sent, described specific location information is represented with skew in the message flow and length.
S3, after finding described critical field, critical field that finds and the matching condition of presetting are contrasted one by one, if the cell value and/or the type of message of described critical field fall into the span that matching condition limits, judge that then this message to be sent meets matched rule, and change step S4 over to; Do not meet matched rule otherwise be judged to be, will not carry out matching treatment, directly carry out subsequent operation according to prior art.
S4, through contrast, when the value of critical field met described matching condition, for example: the cell value of message met some number ranges, then according to default processing rule this message was carried out corresponding operation.(identical) with example one
Encode and send after matching treatment is finished this transmission of messages for described interface processing module.
Corresponding above-mentioned communication system if described match messages module and described network element are separate, can make then that existing elements has the match messages function in the system.More can make match messages module of a plurality of network-element shares.Send and receive flow process by above-mentioned message and can reach match messages widely.
The present invention can upgrade message matches rule accordingly according to the continuous upgrading of protocol version, thus the various variations that the adaptive system upgrading brings.
In a word, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (11)

1, a kind of network element comprises:
The interface processing module is used for the message that sends and receive is carried out encoding and decoding;
Core processing module is used to construct the message of transmission and handles the message that receives;
It is characterized in that described network element also comprises:
The match messages module is connected between described interface processing module and the core processing module, is used to store the matched rule tables of data, and according to the content of described tables of data the message that sends and receive is mated.
2, a kind of communication system comprises:
The network element that core processing module and interface processing module are formed, described core processing module are used to construct the message of transmission and handle the message that receives, and described interface processing module is used for the message that sends and receive is carried out encoding and decoding;
Maintenance console is used to safeguard described network element;
It is characterized in that described system also comprises:
The match messages module, be connected between described interface processing module and the core processing module, and link to each other with described maintenance console, be used to store matched rule tables of data, and the message that sends and receive is mated according to the content of described tables of data by described maintenance console configuration.
3, system as claimed in claim 2 is characterized in that, described match messages module is placed in the described network element, perhaps is independent of described network element.
4, system as claimed in claim 3 is characterized in that, when described match messages module is independent of described network element, and the corresponding match messages module of each network element.
5, a kind of method of match messages is characterized in that, comprises the following steps:
Network element receive message and to its decoding after, perhaps network element to message coding to be sent before, judge whether the message flow of described message meets default matched rule;
If described message flow meets described matched rule, then this message is carried out corresponding matching treatment according to described matched rule; Otherwise, this message is not made matching treatment.
6, method as claimed in claim 5 is characterized in that, described matched rule comprises: critical field, the positional information of described critical field in described message flow, matching condition, and processing rule.
7, method as claimed in claim 6 is characterized in that, described critical field is the type of message of described message and/or the cell of message.
8, method as claimed in claim 7 is characterized in that, the positional information of described critical field is represented with skew in the message flow and length.
9, method as claimed in claim 8 is characterized in that, described matching condition is the span of setting as required.
10, method as claimed in claim 9 is characterized in that, the determination methods whether described message flow meets described matched rule comprises step:
-in described message flow, search described critical field according to the positional information of described critical field;
-contrast with the value and the described matching condition of the critical field that finds, if the value of described critical field falls into the span that described matching condition is set, judge that then this message flow meets described matched rule; Otherwise judgement does not meet.
11, method as claimed in claim 10 is characterized in that, corresponding matching treatment comprises: according to described processing rule the critical field of described message is made amendment, make its value fall into the process range of this network element or opposite end network element; And
Abandon described message according to described processing rule and type of message, the message of predefined type can not be sent and receive.
CNB2005100830588A 2005-07-13 2005-07-13 Message matching method and system Expired - Fee Related CN100456753C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100830588A CN100456753C (en) 2005-07-13 2005-07-13 Message matching method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100830588A CN100456753C (en) 2005-07-13 2005-07-13 Message matching method and system

Publications (2)

Publication Number Publication Date
CN1845535A true CN1845535A (en) 2006-10-11
CN100456753C CN100456753C (en) 2009-01-28

Family

ID=37064450

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100830588A Expired - Fee Related CN100456753C (en) 2005-07-13 2005-07-13 Message matching method and system

Country Status (1)

Country Link
CN (1) CN100456753C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717104A (en) * 2013-12-17 2015-06-17 中国航空工业集团公司第六三一研究所 Monitoring method based on time triggering Ethernet
CN105677402A (en) * 2015-12-31 2016-06-15 华为技术有限公司 Message transforming method and device
CN105704562A (en) * 2016-03-29 2016-06-22 Tcl集团股份有限公司 Multi-version compatible method and multi-version compatible device for Internet protocol television cloud service platform
CN106790201A (en) * 2016-12-31 2017-05-31 中国移动通信集团江苏有限公司 A kind of method and apparatus for transmitting data
CN108667710A (en) * 2017-03-28 2018-10-16 腾讯科技(深圳)有限公司 A kind of information processing method and equipment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4943978A (en) * 1985-11-27 1990-07-24 Hughes Aircraft Company Digital interface unit
JPH05236138A (en) * 1992-02-20 1993-09-10 Nec Corp Electronic exchange
NL9401142A (en) * 1994-07-11 1996-02-01 Nederland Ptt Transfer of messages over different subnetworks.
GB2301754B (en) * 1995-06-02 1999-12-29 Dsc Communications A protocol converter for a telecommunications system
FI973327A (en) * 1997-08-14 1999-02-15 Nokia Telecommunications Oy Centralized management of telecommunications equipment
JP2002163164A (en) * 2000-11-27 2002-06-07 Matsushita Electric Ind Co Ltd Multi-protocol corresponding agent system
US7206862B2 (en) * 2002-04-24 2007-04-17 Microsoft Corporation Method and apparatus for efficiently matching responses to requests previously passed by a network node
EP1535157A4 (en) * 2002-07-08 2010-09-08 Precache Inc Packet routing via payload inspection for alert services, for digital content delivery and for quality of service management and caching with selective multicasting in a publish-subscribe network
WO2004095197A2 (en) * 2003-04-22 2004-11-04 Voice Genesis, Inc. Omnimodal messaging system
CN1298141C (en) * 2004-05-20 2007-01-31 中国科学院软件研究所 Safety platform for network data exchange

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717104A (en) * 2013-12-17 2015-06-17 中国航空工业集团公司第六三一研究所 Monitoring method based on time triggering Ethernet
CN104717104B (en) * 2013-12-17 2018-07-03 中国航空工业集团公司第六三一研究所 A kind of monitoring method based on time triggered Ethernet
CN105677402A (en) * 2015-12-31 2016-06-15 华为技术有限公司 Message transforming method and device
CN105677402B (en) * 2015-12-31 2019-06-11 华为技术有限公司 A kind of message conversion method and device
CN105704562A (en) * 2016-03-29 2016-06-22 Tcl集团股份有限公司 Multi-version compatible method and multi-version compatible device for Internet protocol television cloud service platform
CN105704562B (en) * 2016-03-29 2020-01-03 Tcl集团股份有限公司 Multi-version compatible method and device for network television cloud service platform
CN106790201A (en) * 2016-12-31 2017-05-31 中国移动通信集团江苏有限公司 A kind of method and apparatus for transmitting data
CN106790201B (en) * 2016-12-31 2019-10-22 中国移动通信集团江苏有限公司 A kind of method and apparatus for transmitting data
CN108667710A (en) * 2017-03-28 2018-10-16 腾讯科技(深圳)有限公司 A kind of information processing method and equipment

Also Published As

Publication number Publication date
CN100456753C (en) 2009-01-28

Similar Documents

Publication Publication Date Title
CN1197281C (en) Header compression in real time services
CN1171153C (en) System and method for managing connections between clients and server with independent connection and data buffers
CN1174584C (en) Method for realizing multiple point communication by using serial bus
CN1845535A (en) Message matching method and system
CN1928850A (en) Method and apparatus for compressing data based on digital dictionary picture-representing data
EP2219117A1 (en) A processing module, a device, and a method for processing of XML data
CN101056275A (en) A setting method for group message receiving mode in the instant communication system
CN101051990A (en) Medium type matching method and system based on downloading service
CN101052031A (en) Data interaction method for Apple computer and radio communication terminal
CN1849003A (en) Method for right discrimination to user
CN1748369A (en) Method and device for text data compression
CN104767710B (en) The transmission payload extracting method of HTTP block transmissions coding based on DFA
CN101043353A (en) Process for improving data-handling efficiency of network management system
CN1666549A (en) Avoidance of an invalid functioning of a media gateway controller or a media gateway
CN1225691C (en) Method for dynamic loading program
CN1710856A (en) Information interaction system and method
CN1243431C (en) Analysis of universal route platform command lines
CN1761211A (en) Method and system for managing and controlling network device of supporting wireless mobile communication
CN1286309C (en) A method and system for H.248 message processing in distributed processing gateway
CN1430860A (en) Personal digital assistant, wireless communication system and method of link establishment
CN101056321A (en) A method for improving the performance of the radio application protocol gateway
CN1798147A (en) Method for matching uniform resource locator
CN1630286A (en) A high-efficiency electric data transmission coding decoding method
CN1248476C (en) Development service access equipment and processing method thereof
CN1753405A (en) Coding and decoding method of information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090128

CF01 Termination of patent right due to non-payment of annual fee