CN100456753C - Message matching method and system - Google Patents

Message matching method and system Download PDF

Info

Publication number
CN100456753C
CN100456753C CN 200510083058 CN200510083058A CN100456753C CN 100456753 C CN100456753 C CN 100456753C CN 200510083058 CN200510083058 CN 200510083058 CN 200510083058 A CN200510083058 A CN 200510083058A CN 100456753 C CN100456753 C CN 100456753C
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
message
matching
network element
rule
processing
Prior art date
Application number
CN 200510083058
Other languages
Chinese (zh)
Other versions
CN1845535A (en )
Inventor
兵 钱
Original Assignee
华为技术有限公司
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
Grant date

Links

Abstract

本发明公开了一种通信系统,用以解决现有技术中使用不同版本协议的网元之间交互的消息存在不兼容的问题。 The present invention discloses a communication system to solve the incompatibility interactions between different versions of the protocol used in the network elements of the prior art problem of a message. 所述系统包括:核心处理模块与接口处理模块组成的网元,所述核心处理模块用于构造发送的消息和处理接收到的消息,所述接口处理模块用于对发送和接收的消息进行编解码;维护台,用于维护所述网元;所述系统还包括:消息匹配模块,连接于所述接口处理模块和核心处理模块之间,并且与所述维护台相连,用于存储通过所述维护台配置的匹配规则数据表,并根据所述数据表的内容对发送和接收的消息进行匹配。 Said system comprising: a core processing module and the interface processing module of the network element, the core processing module is configured for message transmission and processing of the received message, the interface processing module is configured to transmit and receive the messages compiled decoding; maintenance station for maintaining the network element; said system further comprising: a message matching module, connected between the interface processing module and the core processing module, and connected to the maintenance station for storing by the maintaining said match rule table configuration data table, and the transmission and reception of messages based on the contents of the matching data table.

Description

一种消息匹配的方法及系统 A method and system for matching a message

技术领域 FIELD

本发明涉及通信领域,特别是涉及一种通信系统及其网元以及匹配网元间传输消息的方法。 The present invention relates to communication field, particularly relates to a communication system and a network element and a method of matching the transmission of messages between network elements.

背景技术 Background technique

目前通信系统中存在各种不同的网元,通过技术规范、协议来规定各种网元之间接口消息的格式,以保证不同网元可正常对接,使不同网元之间交互的消息可被正常处理,并完成预定的功能。 Communication systems currently exist a variety of different network elements, through the specification, a predetermined protocol message format of the interface between the various network elements to ensure that the network elements can properly docked, so that the interaction between the different network elements message may be normal processing, and performing a predetermined function.

但是通讯系统的技术规范、协议在不断的变化、升级,某些变化、升级导 However, the technical specifications of communication systems, protocol is constantly changing, upgrading, some change, upgrade guide

致前后版本不能兼容,例如:版本之间取值范围不同导致信元取值范围变化; 某些信元从可选信元变为必选信元导致信元属性变化;增加或删除了某些信元等。 Induced before and after versions are not compatible, for example: in the range between different versions of the cell leads to a change in the range; optionally some cells from the cell results in the cell becomes mandatory attribute change cell; add or delete certain cell and so on. 此外还存在某些网元在接口消息处理上不符合协议规范的情况,例如:不支持技术规范、协议规定的信元取值范围;对协议规定的取值不能正常处理等。 In addition, there are some network elements in the interface message processing does not meet the protocol specification, for example: specification is not supported, a predetermined protocol information element range; the value of the agreement can not be processed normally and the like.

目前,通信系统中广泛存在使用不同实现、不同版本协议的网元,在这些网元之间进行消息交互时,经常出现接口不能兼容,不能正常处理消息的情况。 Currently, the widespread use of communication systems different implementations, network element of a different version of the protocol, when the message interaction between the network elements, is not compatible with the interface, the message can not be processed normally often the case.

当出现上述情况时,现有技术通过对发起对接一方网元当前所使用的协议进行升级来兼容对端网元。 When this occurs, the prior art protocol by initiating network element butt one currently used to upgrade compatible with the peer network element. 但是,由于存在部分网元协议版本很旧,某些硬件设备不能升级等原因,导致双方网元无法对接。 However, because there is some very old network element protocol version, certain hardware devices can not be upgraded and other reasons, leading to both network elements can not be docked.

为解决上述问题,现有技术还可通过对发起对接一方网元所用的实现进行修改来兼容对端网元。 To solve the above problems, the prior art may be implemented to initiate one network element butt used to modify compatible ends NE. 但是,由于修改实现要求设备提供商提交特殊的版本, 而对该版本的维护不具有普遍性,使得升级的风险加大。 However, due to the modification achieve the required equipment providers to submit a special version, the version of the maintenance has not been universal, making the upgrade increased risk.

发明内容 SUMMARY

本发明提供一种通信系统,用以解决现有技术中使用不同版本协议的网元之间交互的消息存在不兼容的问题。 The present invention provides a communication system to solve the incompatibility interactions between different versions of the protocol used in the network elements of the prior art problem of a message. 本发明还提供一种网元,其被用于上述通信系统中。 The present invention further provides a network element, which is used for the communication system. 本发明又提供一种基于上述通信系统的消息匹配方法。 The present invention further provides a method of matching a message based on the communication system.

本发明的网元,包括:接口处理模块,用于对发送和接收的消息进行编解码;核心处理模块,用于构造发送的消息和处理接收到的消息;所述网元还包括:消息匹配模块,连接于所述接口处理模块和核心处理4莫块之间,用于存储匹配规则数据表,并根据所述数据表的内容对发送和接收的消息进行匹配处理,所述消息为使用不同版本协议的网元交互的消息,若所述消息的消息流符合预设定的匹配规则,则按照所述匹配规则对该消息进行相应的匹配处理,所述匹配规则包括:关键字段、所述关键字段在所述消息流中的位置信息、匹配条件以及处理规则,所述匹配处理包括:根据所述处理MJ'j对所述消息的关键字段进行修改,使其取值落入本网元或对端网元的处理范围,以及根据所述处理规则和消息类型丟弃所述消息,使预定类型的消息不可发送和接收 The network element according to the present invention, comprises: an interface processing module, for sending and receiving messages codec; core processing module is configured for transmitting the message and process the received message; the network element further comprises: matching message module, connected to the processing module and the interface between the core processing block 4 Mo, matching rules for storing data, and performs a matching processing and transmission of the received message based on the contents of the data table, the message using a different NE interactive message protocol version, the message if the message stream conforming to preset matching rule is the matching rule in accordance with the corresponding message to the matching processing, the matching rule comprises: key fields, the position information, said processing rule matching condition and the key field in the message flow, the matching process comprising: MJ'j modified according to the processing key field of the message, so that the value falls processing range network element or the peer network element, and discarding the message according to the message type and message processing rules, so that not a predetermined type of transmission and reception

本发明的通信系统,包括:核心处理模块与接口处理^t块组成的网元,所述核心处理模块用于构造发送的消息和处理接收到的消息,所述接口处理模块用于对发送和接收的消息进行编解码;维护台,用于维护所述网元;所述系统还包括:消息匹配模块,连接于所述接口处理模块和核心处理才莫块之间,并且与所述维护台相连,用于存储通过所述维护台配置的匹配规则数据表,并根据所述数据表的内容对发送和接收的消息进行匹配处理,所述消息为使用不同版本协议的网元交互的消息,若所述消息的消息流符合预设定的匹配规则,则按照所述匹配规则对该消息进行相应的匹配处理,所述匹配规则包括:关键字段、 所述关键字段在所述消息流中的位置信息、匹配条件以及处理规则,所述匹配处理包括:根据所述处理规则对所述消息的关键字段进行修改 Communication system of the present invention, comprising: a core processing module and the interface process ^ NE, the core processing module for message t blocks transmitted message and processing the received configuration, the interface processing module is configured to send and the received message codec; maintenance station for maintaining the network element; said system further comprising: a message matching module, connected to the processing module and the interface between the core processing block only Mo, and the maintenance station connected by said service for storing a data table matching rule table configuration, the matching processing and the transmission and reception of messages based on the contents of the data table, the message is an interactive network element using a different version of the protocol message, message if the message stream conforms to a preset matching rule, the rule in accordance with the matching processing on the respective matching message, said matching rule comprises: a key field, the key field in the message flow the position information, and a processing rule matching condition, the matching process comprising: a key field to modify the message in accordance with the processing rule 使其取值落入本网元或对端网元的处理范围,以及根据所述处理规则和消息类型丟弃所述消息,使预定类型的消息不可发送和接收。 So that the value falls within the range of the local network element or process of the peer network element, and discarding the message according to the processing rule and message type, a predetermined type of message can not make transmission and reception. 所述的消息匹配模块被置于所述网元内,或者独立于所述网元。 The message matching module is placed within the network element, the network element or independently. 所述消息匹配模块独立于所述网元时,每一个网元 When the message matching module independent of the network element, each network element

对应一个消息匹配模块。 A message corresponding to the matching module.

本发明的消息匹配的方法,包括下列步骤:网元收到消息并对其解码后, 或者网元对待发送消息编码前,判断所述消息的消息流是否符合预设的匹配规则;若所述消息流符合所述匹配规则,则按照所述匹配规则对该消息进行相应的匹配处理;否则,不对该消息作匹配处理;所述消息为^f吏用不同版本协议的网元交互的消息。 The method of the present invention that matches the message, comprising the steps of: before the NE receives the message and its decoded, or element to be transmitted coded message, determining whether the message message flow meets a preset matching rule; if the message flow matching the matching rule, according to the matching rule matching processing corresponding to the message; otherwise, the message is not for matching process; the message is a network element with a different interaction ^ f official version of the protocol message. 所述匹配规则包括:关键字段,所述关键字段在所述消息流中的位置信息,匹配条件,以及处理失见则。 The matching rule comprising: a key field location information of the key fields in the message flow, the matching condition, and the processing is lost see.

所述关键字段是所述消息的消息类型和/或消息的信元。 The key field is a message type information element of the message and / or messages.

所述关键字段的位置信息以消息流中的偏移和长度来表示。 Location information of the key stream segment to the message to indicate the offset and length.

所述匹配条件是根据需要设定的取值范围。 The matching condition is a need to set the range.

所述消息流是否符合所述匹配规则的判断方法包括步骤:根据所述关键字段的位置信息在所述消息流中查找所述关键字段;以查找到的关键字段的取值与所述匹配条件进行对照,若所述关键字段的取值落入所述匹配条件设定的取值范围,则判定该消息流符合所述匹配规则;否则,判定不符合。 The method of determining the message flow meets the matching rule comprises the step of: searching for the key fields in the message flow according to the location information of the key field; with the value found in the key field said matching condition control, if the value of the key field falling within the range of the matching condition setting, it is determined that the message conforms to the matching rule flow; otherwise, it is determined not to comply.

所述相应的匹配处理包括:根据所述处理规则对所述消息的关键字段进行修改,使其取值落入本网元或对端网元的处理范围;以及才艮据所述处理规则和消息类型丢弃所述消息,使预定类型的消息不可发送和接收。 The respective matching processing comprises: processing rule according to the key field of the message is modified to fall within the value range of the local network element or process of the peer network element; and, according to the processing rule only Gen message type and discard the message, so that a predetermined type of message is not transmitted and received.

本发明有益效果如下:通过在网元的接口处理模块和核心处理模块之间连接一消息匹配模块,使所述网元具有消息匹配功能。 Advantageous effects of the present invention are as follows: a message by matching module connected between the network element interface processing module and the core processing module, the message having a matching network element. 将所述网元应用于通信系统中,当该网元收到其它网元发来的消息时,对其接收并解码后,先利用所述消息匹配模块中预设的匹配规则对其进行匹配,使该消息符合本网元的处理条件,再传输给核心处理模块进行后续处理;当所述网元向其它网元发送消息时, 先利用所述消息匹配模块中预设的匹配规则对其进行匹配,使该待发送消息符合对端网元的处理条件,再进行编码发送。 The network element is applied to the communication system, when the other network elements NE receives the message sent, after its receiving and decoding the message by using the first matching module preset matching rule match them , so that the message conforms network element processing conditions, and then transmitted to the core processing module for subsequent processing; and when the network element send messages to other network elements, the first message using the preset matching module to its matching rule matching the message to be sent to the coincidence processing conditions of the peer network element, and then transmits encoded. 通过上述处理,使使用不同版本协议的网元,以及不同实现的网元之间交互的消息可以相互兼容。 Through the above processing, the use of different protocol versions NE and interactive messages between network elements of different implementations may be mutually compatible. 本发明所述的消息匹配模块不局限于嵌入在所述网元中,也可与所述网元相互独立,将其置 The present invention is not limited to the embedded message matching module in the network element, the network element may be independent of each other, be set

于系统中,这样可为现有系统中的网元添加消息匹配功能,达到更好的消息匹配效果。 In the system, so that a message can be added to an existing system matching network element, to achieve better matching results message.

附图说明 BRIEF DESCRIPTION

图1为本发明网元的内部结构示意图; 图2为本发明通信系统组网示意图; 图3为本发明匹配接收到的消息流程图; 图4为消息结构示意图; 图5为本发明匹配待发送消息流程图。 1 a schematic view of the internal structure of the present invention, a network element; Figure 2 a schematic view of a communication network system of the present invention; matches the received message flow diagram in FIG. 3 of the present invention; FIG. 4 is a schematic message structure; FIG. 5 of the present invention to be matched sending a message flow diagram.

具体实施方式 detailed description

为了使使用不同版本协议的网元,以及不同实现的网元之间交互的消息能够相互兼容,本发明提供了一种具有消息匹配模块的网元。 In order to use different versions of protocols NE and interactive messages between network elements of different implementations can be compatible with each other, the present invention provides a network element having a message matching module.

如图1所示为本发明网元的内部结构示意图,从图中可见该网元包括:依次相连的接口处理模块、消息匹配模块和核心处理模块。 1 a schematic view of the internal structure of the present invention, network elements, seen from the figure the network element comprising: interface processing module connected in sequence, message matching module and a core processing module.

所述接口处理模块,用于对发送的消息进行编码并将编码后的消息发送给对端网元;以及接收其它网元发来的消息并对接收到的消息进行解码。 The message interface processing module, for transmitting the encoded message is sent to the encoded peer network element; and other network elements receiving the messages sent and received to decode the message.

所述核心处理模块,用于处理接收到的并且经所述接口处理模块解码后的消息,以及构造待发送消息并提供给所述接口处理模块。 The core processing module, and the message received after said decoding interface processing module for processing, and configured to provide a message to be sent, and the interface processing module.

所述消息匹配模块,用于存储匹配规则数据表。 The message matching module, configured to store the data table matching rules. 根据所述匹配规则数据表, 所述消息匹配模块对接收并解码后的消息进行匹配操作,使匹配后的消息可被本网元兼容,再将匹配后的消息传输给所述核心处理模块进行后续处理;以及根据所述匹配规则数据表,所述消息匹配模块对所述核心处理模块构造的待发送且编码前的消息进行匹配操作,使匹配后的消息可兼容对端网元,再将匹配后的消息传输给所述接口处理模块进行编码发送。 Data table, the message matching module receives and decodes the message matching operation according to the matching rule that matches the message may be compatible network element, the message transmission then matched to the core processing module subsequent processing; and a data table according to the matching rule, the message matches the module core processing module is configured to be transmitted and the encoded message before the matching operation, so that the message is compatible with the matched peer network element, and then the matched message transmission to the interface processing module for encoding the transmission.

如图2所示为本发明通信系统组网示意图,从图中可见其包括若干个所述 FIG Network 2 shown a schematic view of the communication system of the present invention, seen from the drawing that includes the plurality of

网元,所述每一个网元中的消息匹配模块都与维护台相连。 Network element, the network element in each message matching module are connected to the maintenance station.

所述维护台用于提供用户界面,通过所述界面可创建和编辑消息匹配规贝'J,并将所述消息匹配规下发到各个网元的消息匹配模块中。 The maintenance station for providing a user interface to create and edit messages matching rules shell 'J through said interface, and said matching message onward transport regulations NE message matching module. 所述维护台还提供常规的维护功能。 The table also provides the maintenance routine maintenance functions.

利用上述网元及通讯系统,本发明提供一种消息匹配方法,使使用不同协议版本的网元,以及不同实现的网元之间可正常交互消息。 Using the network element and the communication system, the present invention provides a method of matching message, so that the use of different protocol versions of network elements, as well as different messages can be normal interaction between the network element implementation. 该方法包括以下步 The method comprises the following steps

骤: Step:

-预设匹配MJ'J; - pre-match MJ'J;

-网元收到消息并对其解码后,或者网元对待发送消息编码前,以所述消息的消息流与预i殳的匹配规则进行对照; - before the NE receives the message and its decoded, or element encoded message to be sent, the message stream to the pre-matching rule i Shu collates the message;

-若所述消息流符合所述匹配规则,则按照所述匹配规则对所述消息进行相应的匹配处理;否则,不处理。 - if the message flow matching the matching rule, according to the matching rule matching processing corresponding to the message; otherwise, not processed.

以下分别通过所述网元接收消息流程及发送消息流程来具体描述本发明的消息匹配方法。 The following receive message flow through the network element sending a message flow and message matching method will be specifically described in the present invention.

例一:对所述网元接收到的消息进行匹配,其步骤流程如图3所示,从图中可见,包括以下具体实施步骤: Example: for the received message matches the network element, the process steps shown in Figure 3, seen from the figure, the specific embodiment comprises the steps of:

后通过维护台配置关键字段、匹配条件和处理规则,并下发到网元的匹配模块中,用以对发送和接收的消息进行匹配,使接口消息能够兼容。 Once configured maintenance console key field, the matching processing rules and conditions, and delivered to the matching module in network element for transmission and reception of the message matches the message interfaces compatible. 对于实际通信系统中的网元接口消息可采用不同的编码方式,网元中的所述接口处理模块用于完成消息的编码和解码工作。 For actual communication system, a network element interface message using different ways of coding, the network element interface processing module for encoding and decoding the message is completed. 所述接口消息在编码前或解码后是一个结构体,所述消息结构示意图,如图4所示。 The interface messages before encoding or after decoding is a structure, a schematic diagram of the message structure, as shown in FIG. 结合该图,若发送端网元发送的消息的消息体中,消息类型为1且对字段3的取值没有限制,而本端网元对消息类型为1的消息,限制其字段3的取值不能大于100,则可以在所述维护台中设置如下的匹配规则,并下发到本接收端网元的消息匹配模块中: In conjunction with the drawing, when the terminal sends a message sent by the network element in the message body, the message type field is 1 and the value of 3 is not limited, and the local network element a message of message type 1, limiting its field takes 3 not be larger than 100, the maintenance station may be provided in the following matching rules, and sent to the receiving end of the present message matching NE module:

由于本端和对端对于消息体中的字段3的取值范围不同,所以设置所述消 Since the local and peer ranges for different fields in the message body 3, so that the cancellation provided

息类型和字段3为关键字段; Type field information and key field 3;

所述关键字段的位置信息以消息流中的偏移和长度来表示,所以在匹配规则中还需设置上述确定的关键字段在消息流中的长度和偏移值,用于定位所述关键字段。 Location information of the key stream segment to the message to indicate the offset and length, so the need to set the length and the offset value of the determined key fields in the message flow in the matching rule for positioning the key fields. 所述长度和偏移值可以用字节或比特位来表示。 The length and offset values ​​may be used to represent bits or bytes. 参见图4,所述消息类型在0至1字节,所述字段3在6至7字节; Referring to Figure 4, the message type byte 0 to 1, the field is 3 bytes in the 6 to 7;

匹配条件设置为接收到的消息体中消息类型字段的取值为1,字段3的值为大于100; Matching condition is set in the received message body of the message type field value is 1, the field value is greater than 1003;

处理规则设置为将字段3修改为100; Processing rule 3 arranged to modify field 100;

在所述匹配规则预设完成后执行下述步骤: Performing the steps after the completion of the preset matching rule:

S1 、所述具有消息匹配功能的网元通过接口处理模块接收到系统中其它网元发来的消息后,由所述接口处理模块对该消息进行解码。 After Sl, the message having a matching network element receiving the other network elements in the system message sent by the interface processing module, decoding the message by the interface processing module.

52、 解码后,该消息被传输到所述消息匹配模块。 52, after decoding, the message is transmitted to the message matching module. 所述消息匹配模块首先根据其预设的关键字段(消息类型字段和字段3 ),以及其预设的所述关键字段在消息流中的特定位置信息,在接收到的消息的消息流中查找所述关键字段。 The matching module first message (message type field and field 3), according to its specific location information and a preset key of the key section of its preset section in the message flow, the message in the received message to stream Find the key fields. 所述的特定位置信息以消息流中的偏移和长度来表示(消息类型在0至1字节, 字段3在6至7字节)。 Said specific location information to the message stream to indicate the offset and length (message type byte in the 0-1, 6-7 in the field of 3 bytes).

53、 在找到所述关键字段后,将找到的关键字段与预设的匹配条件逐一进行对照,若所述关键字段的信元取值和/或消息类型落入匹配条件所限定的取值范围(消息类型为l,字段3取值大于100),则判定本条接收到的消息符合匹配规则,并转入步骤S4;否则判定为不符合匹配规则,不予进行匹配处理,直接按照现有技术进行后续操作。 53, after finding the key field, the key segments one by one to find the matching control condition preset value if the information element of the key fields and / or message type falls matching condition defined range (the message type is L, is greater than the value 3 field 100), it is determined that the received message conforming section matching rule, and proceeds to step S4; otherwise, it is determined not to meet the matching rule, not the matching process, according to the direct subsequent operations prior art.

54、 经过对照,关键字段的取值符合所述匹配条件时,例如:消息的信元取值符合某一个数值范围,则根据预设的处理规则对该消息执行相应的操作 54, after the control, the value of the key field in line with said matching criteria such as: cell value message meets a certain range of values, operation is performed according to a preset corresponding to the message processing rule

(修改字段3的取值为100)。 (Modification 3 field value is 100). 所述的处理规则具体包括两种方式: The processing rule comprises two modes:

方式一:将所述消息的关键字段取值修改为预定的值,使其落入本网元的处理范围。 Way: The key field value of the message is modified to a predetermined value, so that it falls within the scope of the processing of the local NE.

方式二:根据消息类型丢弃所迷消息,使预定类型的消息不被本网元接收。 Second way: The message type discards the message fans, so that a predetermined type of message is not received by network element.

利用该处理方式可对网元在完全丟弃某一类消息的情况进行测试。 With this processing manner of the test in the case of network elements completely discarding a certain type of message.

匹配处理操作完成后将该消息传输给所述核心处理才莫块进行后续处理。 After the completion of the matching process operation of the message to the core processing block only Mo for further processing.

例二:对所述网元发出的消息进行匹配。 Example II: a message sent to the network element matching. 由于通信系统中已经存在4艮多网元,这些网元中没有所述消息匹配模块,在这些没有所述消息匹配模块的网元与本发明的网元进行消息交互时,由本发明的网元在发出消息之前,先对该消息进行相应的匹配,使对端网元可直接处理接收到的消息。 Since the communication system already exists multiple Burgundy 4 NE NE which is not the message matching module performs message interaction with the network element according to the present invention in which the message does not match the network element module, by a network element of the present invention before issuing a message, the message corresponding to match the message peer network element may be processed directly received. 本例步骤流程如图5所示,从图中可见,包括以下具体实施步骤: This step of the flow shown in Figure 5 embodiment, seen from the figure, the specific embodiment comprises the steps of:

在流程开始之前,创建消息匹配规则,并下发到消息匹配模块中。 Before beginning the process, create message matches the rule, and the message delivered to the matching module. (原理与例一相同) (A principle identical with Example)

51、 所述具有消息匹配功能的网元通过核心处理才莫块创建待发送消息。 Network 51, the message having a matching process only through the core element Mo block created message to be sent.

52、 所述待发送消息被传输到所述消息匹配模块。 52, the message to be sent the message is transmitted to the matching module. 所述消息匹配模块首先根据其预设的匹配条件中的关键字段,以及其预设的所述关键字段在消息流中的特定位置信息,在待发送消息的消息流中查找所述关键字段,所述的特定位置信息以消息流中的偏移和长度来表示。 The first message matching module specific location information in a message stream, to find the key in a message to be sent in the message flow in accordance with its preset matching key field conditions, and the key fields its preset field, said specific location information to the message stream to indicate the offset and length.

53、 在找到所述关键字段后,将找到的关键字段与预设的匹配条件逐一进行对照,若所述关键字段的信元取值和/或消息类型落入匹配条件所限定的取值范围,则判定本条待发送消息符合匹配规则,并转入步骤S4;否则判定为不符合匹配规则,不予进行匹配处理,直接按照现有技术进行后续操作。 53, after finding the key field, the key segments one by one to find the matching control condition preset value if the information element of the key fields and / or message type falls matching condition defined range, it is determined that the matching section in line with the rules of message to be sent, and proceeds to step S4; otherwise, it is determined not to meet the matching rule, not the matching process, subsequent operations directly in accordance with the prior art.

54、 经过对照,关键字段的取值符合所述匹配条件时,例如:消息的信元取值符合某一个数值范围,则根据预设的处理规则对该消息执行相应的操作。 54, after the control, the value of the key field in line with said matching criteria such as: cell value message meets a certain range of values, operation is performed according to a preset corresponding to the message processing rule.

(与例一相同) (Same as in Example a)

匹配处理完成后将该消息传输给所述接口处理才莫块进行编码和发送。 After the completion of the matching process to transmit the message only Mo interface processing block is encoded and transmitted. 对应上述通信系统,若所述消息匹配模块与所述网元相互独立,则可使系 Corresponding to the communication system, if the message matches the network element module and independently of one another, the system can

统中现有的网元具有消息匹配功能。 In conventional systems having a message matching network elements. 更可使多个网元共用一个消息匹配模块。 More allows multiple network elements sharing a message matching module.

通过上述的消息发送及接收流程可达到更广泛的消息匹配。 Message transmission and reception by the above processes can reach a wider message match.

本发明可根据协议版本的不断升级,相应的对消息匹配规则进行更新,从而适应系统升级带来的各种变化。 According to the present invention may be escalating protocol version corresponding to the update message matches the rule, to accommodate variations in system upgrades.

明的精神和范围。 The spirit and scope of the Ming. 这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 Thus, if these modifications and variations of the present invention fall within the claims of the invention and the scope of equivalents thereof, the present invention intends to include these modifications and variations.

Claims (9)

  1. 1、一种网元,包括: 接口处理模块,用于对发送和接收的消息进行编解码; 核心处理模块,用于构造发送的消息和处理接收到的消息; 其特征在于,所述网元还包括: 消息匹配模块,连接于所述接口处理模块和核心处理模块之间,用于存储匹配规则数据表,并根据所述数据表的内容对发送和接收的消息进行匹配处理,所述消息为使用不同版本协议的网元交互的消息,若所述消息的消息流符合预设定的匹配规则,则按照所述匹配规则对该消息进行相应的匹配处理,所述匹配规则包括:关键字段、所述关键字段在所述消息流中的位置信息、匹配条件以及处理规则,所述匹配处理包括:根据所述处理规则对所述消息的关键字段进行修改,使其取值落入本网元或对端网元的处理范围,以及根据所述处理规则和消息类型丢弃所述消息,使预定类型的消息 A network element, comprising: an interface processing module, for sending and receiving messages codec; core processing module is configured for transmitting the message and processing the received message; wherein the network element further comprising: a message matching module, connected between the interface processing module and the core processing module for storing the matching rule data, and performs a matching process of sending and receiving messages according to the contents of the data table, the message message to the network element using a different version of the interactive protocol, if the message matches the message stream conforming to a preset rule, the rule according to the matching processing on the respective matching message, said matching rule comprises: keyword section, position information of the key fields in the message stream, and a processing rule matching condition, the matching process comprising: a modification of the key field of the message according to the processing rule that the value falls network element or the processing range of the peer network element, and discarding the message according to the processing rule and message type, a predetermined type of message that the 可发送和接收。 You may transmit and receive.
  2. 2、 一种通信系统,包括:核心处理模块与接口处理模块组成的网元,所述核心处理模块用于构造发送的消息和处理接收到的消息,所述接口处理模块用于对发送和接收的消息进行编解码;维护台,用于维护所述网元;其特征在于,所述系统还包括:消息匹配模块,连接于所述接口处理模块和核心处理模块之间,并且与所述维护台相连,用于存储通过所述维护台配置的匹配规则数据表,并根据所述数据表的内容对发送和接收的消息进行匹配处理,所述消息为使用不同版本协议的网元交互的消息,若所述消息的消息流符合预设定的匹配规则,则按照所述匹配规则对该消息进行相应的匹配处理,所述匹配规则包括:关键字段、所述关键字段在所述消息流中的位置信息、匹配条件以及处理规则,所述匹配处理包括:根据所述处理规则对所述消息的关键字 A communication system, comprising: a core processing module and the interface processing module of the network element, the core processing module is configured for message transmission and processing of the received message, the interface processing module is configured to transmit and receive the message encoding and decoding; maintenance station for maintaining the network element; wherein said system further comprises: a message matching module, connected between the interface processing module and the core processing module, and the maintenance and station is connected, for storing data by said rule matching table maintenance station configuration, and the matching process of sending and receiving messages according to the contents of the data table, the message using a different version of the interactive network element protocol message If the message is a message flow meets a preset matching rule, the rule in accordance with the matching processing on the respective matching message, said matching rule comprises: a key field, the key field in the message the location information processing rule matching condition and flow, the matching process comprising: a key to the message according to the processing rule 进行修改,使其取值落入本网元或对端网元的处理范围,以及根据所述处理规则和消息类型丢弃所述消息,使预定类型的消息不可发送和接收。 Be modified to fall within the value range of the local network element or process of the peer network element, and discarding the message according to the processing rule and message type, a predetermined type of message can not make transmission and reception.
  3. 3、 如权利要求2所述的系统,其特征在于,所述的消息匹配模块被置于所述网元内,或者独立于所述网元。 3. The system of claim 2, wherein said message matching module is placed within the network element, the network element or independently.
  4. 4、 如权利要求3所述的系统,其特征在于,所述消息匹配模块独立于所述网元时,每一个网元对应一个消息匹配模块。 4. The system of claim 3, wherein, when the message matching module independent of the network element, each network element a message corresponding to the matching module.
  5. 5、 一种消息匹配的方法,其特征在于,包括下列步骤: 网元收到消息并对其解码后,或者网元对待发送消息编码前,判断所述消息的消息流是否符合预设的匹配规则,所述消息为使用不同版本协议的网元交互的消息,所述匹配规则包括:关键字段、所述关键字段在所述消息流中的位置信息、匹配条件以及处理规则;若所述消息流符合所述匹配规则,则按照所述匹配规则对该消息进行相应的匹配处理,所述匹配处理包括:根据预设定的处理规则对所述消息的关键字段进行修改,使其取值落入本网元或对端网元的处理范围,以及根据所述处理规则和消息类型丟弃所述消息,使预定类型的消息不可发送和接收;否则,不对该消息作匹配处理。 5. A method for matching a message, characterized by comprising the steps of: the NE receives the message and its decoded, before it is sent to treat or element encoded message, the message is determined whether the message stream matches a preset rule, the message is a message of the interactive network element using a different version of the protocol, the matching rule comprises: key fields, position information of the key fields in the message stream, and the processing rule matching condition; if the said matching message flow conforms to the rule, according to the matching rule matching processing corresponding to the message, the matching process comprising: a key field to modify the message in accordance with a pre-set processing rules, so values ​​fall within the range of the local network element or process of the peer network element, and discarding the message according to the processing rule and message type, a predetermined type of message that the sending and receiving not; otherwise, the message is not for the matching process.
  6. 6、 如权利要求5所述的方法,其特征在于,所述关键字段是所述消息的消息类型和/或消息的信元。 6. The method as claimed in claim 5, wherein said cell is a key field of the message type of message and / or messages.
  7. 7、 如权利要求6所述的方法,其特征在于,所述关键字段的位置信息以消息流中的偏移和长度来表示。 7. The method as claimed in claim 6, characterized in that location information of the key stream segment to the message to indicate the offset and length.
  8. 8、 如权利要求7所述的方法,其特征在于,所述匹配条件是根据需要设定的取值范围。 8. A method as claimed in claim 7, wherein said matching condition is set according to the required range.
  9. 9、 如权利要求8所述的方法,其特征在于,所述消息流是否符合所述匹配规则的判断方法包括步骤:-根据所述关键字段的位置信息在所述消息流中查找所述关键字段;-以查找到的关4建字段的取值与所述匹配条件进行对照,若所述关键字段的取值落入所述匹配条件设定的取值范围,则判定该消息流符合所述匹配规则;否则,判定不符合。 9. A method as claimed in claim 8, wherein the message flow meets the matching rule determining method comprising the steps of: - searching the message flow according to the location information of the key field key fields; - the value found in the field of building and 4 off the matching condition control, if the value of the key field falling within the range matching the set conditions, the message is determined stream conforms to the matching rule; otherwise, it is determined not to comply.
CN 200510083058 2005-07-13 2005-07-13 Message matching method and system CN100456753C (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510083058 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 true CN100456753C (en) 2009-01-28

Family

ID=37064450

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN100456753C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717104B (en) * 2013-12-17 2018-07-03 中国航空工业集团公司第六三研究所 Species based on time-triggered Ethernet monitoring method
CN105677402A (en) * 2015-12-31 2016-06-15 华为技术有限公司 Message transforming method and device

Citations (6)

* 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
US5420916A (en) 1992-02-20 1995-05-30 Nec Corporation Signaling network having common signaling node for protocol conversion
US5740374A (en) 1994-07-11 1998-04-14 Koninklijke Ptt Nederland N.V. System for transferring messages via different sub-networks by converting control codes into reference code compatible with a reference protocol and encapsulating the code with the message
US5809028A (en) 1995-06-02 1998-09-15 Dsc Communications Corporation Protocol converter for a wireless telecommunications system
CN1267415A (en) 1997-08-14 2000-09-20 诺基亚网络有限公司 Centralized management of communication devices
CN1581803A (en) 2004-05-20 2005-02-16 中国科学院软件研究所 Safety platform for network data exchange

Patent Citations (6)

* 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
US5420916A (en) 1992-02-20 1995-05-30 Nec Corporation Signaling network having common signaling node for protocol conversion
US5740374A (en) 1994-07-11 1998-04-14 Koninklijke Ptt Nederland N.V. System for transferring messages via different sub-networks by converting control codes into reference code compatible with a reference protocol and encapsulating the code with the message
US5809028A (en) 1995-06-02 1998-09-15 Dsc Communications Corporation Protocol converter for a wireless telecommunications system
CN1267415A (en) 1997-08-14 2000-09-20 诺基亚网络有限公司 Centralized management of communication devices
CN1581803A (en) 2004-05-20 2005-02-16 中国科学院软件研究所 Safety platform for network data exchange

Also Published As

Publication number Publication date Type
CN1845535A (en) 2006-10-11 application

Similar Documents

Publication Publication Date Title
US7146422B1 (en) Method and apparatus for validating documents based on a validation template
US5931961A (en) Discovery of acceptable packet size using ICMP echo
Fielding et al. Hypertext transfer protocol (HTTP/1.1): Semantics and content
Mogul et al. Delta encoding in HTTP
US6819677B1 (en) Method and apparatus for recovering data that was transported utilizing multiple data transport protocols
US20020143971A1 (en) Session resumption in wireless packet data network
US7359920B1 (en) Communication protocol for synchronization of personal information management databases
US20010006512A1 (en) Data transfer method and radio terminal for executing transport layer protocol on radio network
US5706429A (en) Transaction processing system and method
US20060129631A1 (en) Method for controlling a media message upload through a wireless communication network
US6779050B2 (en) System and method for hardware based reassembly of a fragmented packet
US20050135395A1 (en) Method and system for pre-pending layer 2 (L2) frame descriptors
US20080307109A1 (en) File protocol for transaction based communication
US6711743B1 (en) Method and apparatus for improvement in set-top box network performance
US20060009150A1 (en) Method and system for providing a context for message compression
US5958024A (en) System having a receive data register for storing at least nine data bits of frame and status bits indicating the status of asynchronous serial receiver
CN101715209A (en) Method and system for multilink transmission data
US20070104220A1 (en) Methods and apparatus for fragmenting system information messages in wireless networks
US6023478A (en) Method and apparatus for communicating data byte streams
US20060274789A1 (en) Apparatus and methods for a high performance hardware network protocol processing engine
JP2004086800A (en) Data synchronization system and method therefor
US20070180173A1 (en) Method and system for efficient framing on addressed buses
US5751718A (en) Simultaneous transfer of voice and data information using multi-rate vocoder and byte control protocol
CN1249112A (en) Method and apparatus for remotely upgrading control software in a cellular telephone
US7054953B1 (en) Method and apparatus for sending and receiving a data structure in a constituting element occurrence frequency based compressed form

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted