[go: up one dir, main page]

CN1301018C - Information treatment method in communication system - Google Patents

Information treatment method in communication system Download PDF

Info

Publication number
CN1301018C
CN1301018C CNB031089054A CN03108905A CN1301018C CN 1301018 C CN1301018 C CN 1301018C CN B031089054 A CNB031089054 A CN B031089054A CN 03108905 A CN03108905 A CN 03108905A CN 1301018 C CN1301018 C CN 1301018C
Authority
CN
China
Prior art keywords
message
parameter
describe
description table
name
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.)
Expired - Fee Related
Application number
CNB031089054A
Other languages
Chinese (zh)
Other versions
CN1535035A (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 CNB031089054A priority Critical patent/CN1301018C/en
Publication of CN1535035A publication Critical patent/CN1535035A/en
Application granted granted Critical
Publication of CN1301018C publication Critical patent/CN1301018C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Communication Control (AREA)

Abstract

本发明公开了一种通信系统中的消息处理方法,该方法将一个消息集合中的每个消息的属性分别作为属性体存储;所述消息的属性包括:消息中需要编码发送的参数;在发送消息时,根据消息中的参数编码代码查找该消息对应的属性体,对所述属性体描述的参数进行编码后发送;在接收消息时,查找该消息对应的属性体,利用所述属性体描述的参数进行解码。采用上述方案,各个消息的编码和解码完全可以只使用一套公用的代码,因此会具有较好的代码可重用性和可移植性;而且会使得消息处理方法的开发周期短,稳定性好,并且具有较好的兼容性和可维护性。

Figure 03108905

The invention discloses a message processing method in a communication system. The method stores the attribute of each message in a message set as an attribute body; the attribute of the message includes: parameters that need to be coded and sent in the message; When sending a message, search for the attribute body corresponding to the message according to the parameter encoding code in the message, encode the parameters described in the attribute body and then send it; when receiving a message, search for the attribute body corresponding to the message, and use the attribute body description The parameters are decoded. With the above solution, only one set of common codes can be used for the encoding and decoding of each message, so it will have better code reusability and portability; and it will make the development cycle of the message processing method short and stable. And it has good compatibility and maintainability.

Figure 03108905

Description

一种通信系统中的消息处理方法A message processing method in a communication system

技术领域technical field

本发明涉及通信系统中的信息处理方法,尤其是涉及消息的发送和接收的处理方法。The invention relates to an information processing method in a communication system, in particular to a processing method for sending and receiving messages.

背景技术Background technique

在通信系统中的端对端通信过程中,有大量的消息需要进行发送和接收处理,例如,移动通信系统中的移动应用部分(MAP,Mobileapplication part)就负责大量的交换机中和移动相关的信令消息处理。由于通信系统中的数据传输协议和业务的发展较快,经常有许多新的业务操作和参数的产生或变换,因此,解决系统中消息处理过程中的代码量大、冗余、兼容性差等问题,同时提高代码的可重用性、可靠性、可维护性,就成为人们迫切需要解决的问题。In the end-to-end communication process in the communication system, a large number of messages need to be sent and received. For example, the mobile application part (MAP, Mobile application part) in the mobile communication system is responsible for a large number of mobile-related information in the switch. Make message processing. Due to the rapid development of data transmission protocols and services in the communication system, many new business operations and parameters are often generated or changed. Therefore, it is necessary to solve the problems of large amount of code, redundancy, and poor compatibility in the process of message processing in the system. , while improving the reusability, reliability, and maintainability of the code, it has become an urgent problem that people need to solve.

以移动通信系统中的MAP为例,包括全球移动通信系统(GSM)、码分多址系统(CDMA〕和宽待码分多址(WCDMA)系统,它们MAP中的代码结构都很相似,以发送一条位置登记消息为例,其处理方法为:Take the MAP in the mobile communication system as an example, including the Global System for Mobile Communications (GSM), Code Division Multiple Access (CDMA) and Wider Code Division Multiple Access (WCDMA) systems. The code structures in their MAPs are very similar to send Taking a location registration message as an example, the processing method is as follows:

位置登记消息处理函数Location registration message processing function

{编码用户的ESN(设备序列号);{encode user's ESN (Equipment Serial Number);

   编码交换机的MSCID(移动交换机识别号);The MSCID (mobile exchange identification number) of the encoding exchange;

   .........

   编码完位置登记的所有参数After encoding all the parameters of the location registration

   发送消息给HLR;Send a message to HLR;

   .....}.....}

这就是说,位置登记消息处理函数对该消息的所有具体参数都逐个编码后,再将编码后的消息发送到系统的归属位置寄存器(HLR)。与上述位置登记消息的处理方法类似,由于MAP中的每条消息的参数可能都有很多,而每个参数也都由单独的代码实现,必然导致代码结构复杂,冗余。一旦负责消息传输的协议发生变化,或者传输的参数需求发生变化,或者一些参数的属性发生变化,比如参数的长度发生变化,等等,就需要修改该消息处理方法中的源代码,维护起来很不方便。同时,如果由于业务发展需要增加新的消息和参数,比如监听功能,位置业务功能等等,就需要在原来方法的处理代码中增加很多源代码函数,这样就会导致消息处理方法性能的不稳定。That is to say, the location registration message processing function encodes all the specific parameters of the message one by one, and then sends the encoded message to the home location register (HLR) of the system. Similar to the processing method of the above-mentioned location registration message, because each message in the MAP may have many parameters, and each parameter is also implemented by a separate code, the code structure will inevitably be complicated and redundant. Once the protocol responsible for message transmission changes, or the parameter requirements for transmission change, or the attributes of some parameters change, such as the length of the parameter changes, etc., it is necessary to modify the source code in the message processing method, which is very difficult to maintain. inconvenient. At the same time, if new messages and parameters need to be added due to business development, such as monitoring functions, location business functions, etc., many source code functions need to be added to the processing code of the original method, which will lead to unstable performance of the message processing method .

由上可知,现有的消息处理方法采用的是针对具体消息的每个参数进行编码处理的方式,由于每条消息都有很多参数,这样对众多的消息而言,如果存在参数编码的方法相同的情况,就会出现完成相同功能操作的代码冗余和实现的方式的多样化,从而使得代码复杂不清晰。比如上述位置登记消息的处理方法中,编码ESN,MSCID等的函数是公共的,很多消息都可能采用,这样在其它消息的处理方法也需要上述公共编码函数时,依据现有的消息处理方式,必然使得整个MAP部分的代码冗余,复杂,代码结构不清晰。同时也导致代码不易维护,共享性很差。比如GSM系统的MAP和CDMA系统的MAP参数定义完全不一样,所以各自的代码都完全不一样,这不但使代码无法共享,还提高了维护成本。It can be seen from the above that the existing message processing method adopts the method of encoding each parameter of a specific message. Since each message has many parameters, for many messages, if there are parameter encoding methods, the same In some cases, there will be code redundancy to complete the same functional operation and diversification of implementation methods, which will make the code complicated and unclear. For example, in the processing method of the above-mentioned position registration message, the functions of encoding ESN, MSCID, etc. are public, and many messages may be used, so when other message processing methods also need the above-mentioned public encoding function, according to the existing message processing method, It will inevitably make the code of the entire MAP part redundant and complicated, and the code structure is not clear. At the same time, the code is not easy to maintain and the sharing is very poor. For example, the MAP parameter definitions of the GSM system and the MAP system of the CDMA system are completely different, so the respective codes are completely different, which not only prevents code sharing, but also increases maintenance costs.

发明内容Contents of the invention

本发明的目的在于提供一种代码简单、冗余少、易于维护且共享性好通信系统中的消息处理方法。The purpose of the present invention is to provide a message processing method in a communication system with simple code, less redundancy, easy maintenance and good shareability.

为达到上述目的,本发明提供的一种通信系统中的消息处理方法,包括:In order to achieve the above purpose, the present invention provides a message processing method in a communication system, including:

将一个消息集合中的每个消息的属性分别作为属性体存储;所述消息的属性包括:消息中需要编码发送的参数;Store the attributes of each message in a message set as an attribute body; the attributes of the message include: parameters that need to be encoded and sent in the message;

在发送消息时,根据消息中的参数编码代码查找该消息对应的属性体,对所述属性体描述的参数进行编码后发送。When sending a message, the attribute body corresponding to the message is searched according to the parameter encoding code in the message, and the parameters described in the attribute body are encoded and then sent.

可选地,所述方法还包括:在接收消息时,查找该消息对应的属性体,利用所述属性体描述的参数进行解码。Optionally, the method further includes: when receiving a message, searching for an attribute body corresponding to the message, and using the parameters described in the attribute body to decode.

优选地,建立消息描述表,用于作为存储消息属性的载体;所述消息描述表包括下述字段:Preferably, a message description table is established as a carrier for storing message attributes; the message description table includes the following fields:

参数名称,用于描述参数的名称;Parameter name, used to describe the name of the parameter;

参数类型,用于描述参数的性质;Parameter type, used to describe the nature of the parameter;

参数长度,用于描述参数的长度;Parameter length, used to describe the length of the parameter;

在发送消息时,根据消息中的参数编码代码从消息描述表中查找该消息对应的属性体。When sending a message, look up the attribute body corresponding to the message from the message description table according to the parameter encoding code in the message.

可选地,将每个消息的属性体分别存储在各自的消息描述表中。Optionally, the attribute body of each message is stored in its own message description table.

优选地,建立消息描述表的索引表,用于定位消息描述表。Preferably, an index table of the message description table is established for locating the message description table.

可选地,所述索引表包括下述字段:Optionally, the index table includes the following fields:

消息名称,用于描述消息的名称;Message name, used to describe the name of the message;

消息类型,用于描述消息参数的调用关系;Message type, used to describe the call relationship of message parameters;

描述表名称,用于描述消息描述表的名称。Description table name, used to describe the name of the message description table.

优选地,所述消息描述表通过系统的操作维护控制台后台维护。Preferably, the message description table is maintained in the background through the operation and maintenance console of the system.

可选地,建立消息描述表,用于作为存储消息属性的载体;所述消息描述表包括下述字段:Optionally, a message description table is established as a carrier for storing message attributes; the message description table includes the following fields:

消息名称,用于描述消息的名称;Message name, used to describe the name of the message;

消息类型,用于描述消息参数的调用关系;Message type, used to describe the call relationship of message parameters;

参数名称,用于描述参数的名称;Parameter name, used to describe the name of the parameter;

参数类型,用于描述参数的性质;Parameter type, used to describe the nature of the parameter;

参数长度,用于描述参数的长度。Parameter length, used to describe the length of the parameter.

优选地,将所有消息的属性体统一存储在一个消息描述表中。Preferably, attribute bodies of all messages are uniformly stored in a message description table.

由于本发明将一个消息集合中的每个消息的属性存储为属性体,在发送消息时,只要找到该消息对应的属性体,就可以对所述属性体描述的参数进行编码后发送;同样,在接收消息时,也可以根据找到的该消息的属性体辅助对消息参数的解码;采用上述方法,各个消息的编码和解码完全可以只使用一套公用的代码,因此会具有较好的代码可重用性和可移植性;另外,采用上述方法,对于任何业务,无论是新业务还是老业务,只要根据该业务消息的属性建立消息描述表,利用一套公用的编码方法即可实现消息的处理,使得消息处理方法的开发周期短,稳定性好;同时,对不同消息处理方式的改变,只需通过对消息描述表进行动态修改就可以实现,因此该方法具有较好的兼容性和可维护性。Since the present invention stores the attributes of each message in a message set as an attribute body, when sending a message, as long as the attribute body corresponding to the message is found, the parameters described by the attribute body can be encoded and then sent; similarly, When receiving a message, it is also possible to assist in decoding the message parameters according to the found attribute body of the message; using the above method, the encoding and decoding of each message can only use a set of common codes, so it will have better code reliability. Reusability and portability; in addition, using the above method, for any business, whether it is a new business or an old business, as long as a message description table is established according to the attributes of the business message, a set of common coding methods can be used to realize the processing of the message , so that the development cycle of the message processing method is short and the stability is good; at the same time, the change of different message processing methods can be realized only by dynamically modifying the message description table, so this method has good compatibility and maintainability sex.

附图说明Description of drawings

图1是本发明发送消息的流程示意图;Fig. 1 is a schematic flow chart of sending messages in the present invention;

图2是本发明所述方法的消息描述表的动态维护原理图。Fig. 2 is a schematic diagram of the dynamic maintenance of the message description table of the method of the present invention.

具体实施方式Detailed ways

下面以移动通信系统中的MAP的实现为例,结合附图对本发明作进一步详细的描述。Taking the implementation of MAP in the mobile communication system as an example, the present invention will be further described in detail in conjunction with the accompanying drawings.

通信系统的MAP事实上是一个消息和消息处理过程的集合。由于每一个消息都包含了很多参数,对这些消息的参数进行编码和发送处理即是实现MAP。以ANSI41D(汉语)协议中的特性请求(FeatureRequest)消息为例,它是从系统的移动交换中心(MSC)发送到归属位置寄存器(HLR)的消息,该消息包含了很多必选和可选的参数,为将该消息发送到HLR,就需要对该消息的包含的相应参数进行编码才能发送。由于现有方法的每条发送的消息都有各自的处理过程,每个处理过程的实现都有自己的代码,使得整个MAP变得既庞大,实现起来又麻烦。产生这些问题的原因实际上很简单,在不同消息的处理过程中,有很多消息的参数编码的代码是公用或相同的。在不同参数的处理过程中,可能很多过程都需要调用这些不同的参数编码代码,这必然导致调用参数的一套编码代码的过程在整个MAP中多次出现,从而引发MAP的代码冗余、不易维护、共享性差以及升级困难等问题。事实上,产生现有方法问题的原因在于其处理过程,现有方法的处理过程是以具体消息的参数为核心的,这样在消息的处理过程中需要根据该消息的参数决定对该参数编码代码的调用,假设在两个消息的处理过程中,分别有一个参数需要调用相同的编码代码,则一套完全相同的编码代码就需要被调用两次,相同的调用代码在整个MAP中就会重复出现。如果由于业务的增加,如MAP中增加了新的控制消息,就要为该消息利用已有的参数编码代码构建一个处理过程。The MAP of the communication system is actually a collection of messages and message processing procedures. Since each message contains many parameters, encoding and sending the parameters of these messages is to realize MAP. Take the feature request (FeatureRequest) message in the ANSI41D (Chinese) protocol as an example. It is a message sent from the mobile switching center (MSC) of the system to the home location register (HLR). Parameters, in order to send the message to the HLR, it is necessary to encode the corresponding parameters included in the message before sending. Since each sent message in the existing method has its own processing procedure, the realization of each processing procedure has its own code, which makes the whole MAP both huge and cumbersome to implement. The reason for these problems is actually very simple. During the processing of different messages, the parameter encoding codes of many messages are common or the same. In the process of processing different parameters, many processes may need to call these different parameter encoding codes, which will inevitably lead to the process of calling a set of encoding codes for parameters appearing multiple times in the entire MAP, thus causing MAP code redundancy and difficulty Maintenance, poor sharing, and difficulty in upgrading. In fact, the reason for the problem of the existing method lies in its processing process. The processing process of the existing method is based on the parameters of the specific message. In this way, it is necessary to determine the encoding code for the parameter according to the parameter of the message during the processing of the message. Assuming that during the processing of two messages, there is a parameter that needs to call the same encoding code, then a set of exactly the same encoding code needs to be called twice, and the same calling code will be repeated in the entire MAP Appear. If a new control message is added in the MAP due to the increase of the service, a processing procedure shall be constructed for the message using the existing parameter encoding code.

由上可知,如果将MAP中的消息处理方法改变为以消息参数的编码代码为核心,利用一套编码代码构建的过程,即利用一个参数编码代码的集合,无论处理哪个消息,都用该消息的需要编码的参数来适应该处理过程,这样就会解决现有方法的问题。例如,在对MAP进行升级,即增加新的消息时,不用再考虑处理该消息的过程和该过程需要采用的代码。It can be seen from the above that if the message processing method in MAP is changed to use the encoding code of the message parameter as the core, and use a set of encoding codes to construct the process, that is, to use a set of parameter encoding codes, no matter which message is processed, the message will be used The parameters that need to be encoded to adapt to the process will solve the problem of existing methods. For example, when upgrading the MAP, that is, adding a new message, it is no longer necessary to consider the process of processing the message and the codes that need to be used in the process.

本发明具体是这样实现的:如果将MAP中的消息看作是一个消息的集合,则将该消息集合中的每个消息的属性分别作为属性体存储,这里所述消息的属性即为消息中需要编码发送的参数;这样,在对该消息进行处理时,如发送消息时,利用已有的参数编码代码,查找该消息对应的属性体,对所述属性体描述的参数进行编码后发送。在接收消息时,可以直接对接收到的消息的参数进行解码,也可以查找该消息对应的属性体,利用所述属性体描述的参数进行解码,以使参数解码更准确。The present invention is specifically implemented in this way: if the messages in the MAP are regarded as a collection of messages, then the attributes of each message in the message collection are stored as attribute bodies respectively, and the attributes of the messages described here are the The parameters to be sent need to be encoded; in this way, when processing the message, such as when sending a message, use the existing parameter encoding code to search for the attribute body corresponding to the message, encode the parameters described in the attribute body and send it. When receiving a message, the parameter of the received message can be directly decoded, or the attribute body corresponding to the message can be searched, and the parameter described by the attribute body can be used to decode the parameter to make the parameter decoding more accurate.

为使对需要处理消息的参数查找更快捷,实际中可以建立消息描述表,用于作为存储消息属性或参数的载体;所述消息描述表包括下述字段:In order to make searching for parameters that need to process messages faster, a message description table can be established in practice as a carrier for storing message attributes or parameters; the message description table includes the following fields:

参数名称,用于描述参数的名称;Parameter name, used to describe the name of the parameter;

参数类型,用于描述参数的性质;Parameter type, used to describe the nature of the parameter;

参数长度,用于描述参数的长度。Parameter length, used to describe the length of the parameter.

也可以包括其它的辅助管理字段,如参数的描述字段。如下述表1本发明在处理MAP消息时采用的实际消息描述表,在该消息描述表中,列举的是ANSI41D协议的FeatureRequest消息,其中的长度字段包括两部分:最小长度和最大长度。It can also include other auxiliary management fields, such as a parameter description field. The actual message description table that the present invention adopts when processing MAP message as following table 1, in this message description table, enumerates the FeatureRequest message of ANSI41D agreement, and the length field wherein comprises two parts: minimum length and maximum length.

表1:   参数名   参数类型   长度   描述   Digits(dialed)   必选   最小长度   最大长度   该参数作用的描述   BILLID   可选   最小长度   最大长度   该参数作用的描述   ...   ...   ...   ...   ... Table 1: parameter name Parameter Type length describe Digits (dialed) required minimum length The maximum length Description of what this parameter does BILLID optional minimum length The maximum length Description of what this parameter does ... ... ... ... ...

在上表中,描述了FeatureRequest消息的具体参数名,如Digits(dialed);其类型的性质即为该参数的性质,如:可选,必选等;长度字段描述了该参数的最小长度和最大长度值;描述字段用于对该参数作用的进行表述。In the above table, the specific parameter name of the FeatureRequest message is described, such as Digits (dialed); the nature of its type is the nature of the parameter, such as: optional, mandatory, etc.; the length field describes the minimum length and The maximum length value; the description field is used to describe the function of this parameter.

在本发明的具体实施中,需要将每个消息的属性体分别存储在各自的类似上述的消息描述表中,即把该消息的所有参数都填写在上面的描述表中。In the specific implementation of the present invention, it is necessary to store the attribute body of each message in its own message description table similar to the above, that is, fill in all the parameters of the message in the above description table.

图1是本发明发送消息的流程示意图。图1所示,当应用程序在步骤1向远端发起一条消息时,就要查找该消息的消息描述表,以获取该消息的需要编码发送的参数。因此在步骤2根据该消息提供的信息查找相应的参数描述表,然后在步骤3将找到的该消息的需要编码的参数传送给应用程序,然后,在步骤4由该程序对参数编码后发出。可见,实际中的应用程序将消息参数的查询和消息参数的编码发送统一成一个整体,形成一个公共操作,这个公共操作的对象或参数就是具体的消息描述表,无论消息描述表的个数、内容如何变化,都不会影响这个公共操作。只要为这个公共的应用程序提供需要发送消息的消息名,就能够找到该消息的消息描述表,从而编码发送消息描述表中的参数,实现消息的传送。FIG. 1 is a schematic flow chart of sending messages in the present invention. As shown in Fig. 1, when the application program sends a message to the remote end in step 1, it needs to search the message description table of the message to obtain the parameters of the message that need to be encoded and sent. Therefore, in step 2, the corresponding parameter description table is searched according to the information provided by the message, and then in step 3, the found parameters of the message to be encoded are transmitted to the application program, and then in step 4, the program encodes the parameters and sends them out. It can be seen that the actual application program unifies the query of message parameters and the encoding and sending of message parameters into a whole to form a common operation. The object or parameter of this common operation is the specific message description table, regardless of the number of message description tables, How the content changes will not affect this public operation. As long as the public application program provides the message name of the message to be sent, the message description table of the message can be found, so as to encode the parameters in the message description table and realize the transmission of the message.

在图1所示的流程的具体实现中,把消息参数的查找和编码参数两个过程统合到一个统一的过程中。假设该过程的名字为“发送消息”,则发送消息(消息名),就可以将括号中消息名提供的消息的参数编码发送出去。同样,接收消息的实现方式和发送消息的实现方式可以一样,最终形成的是一个统一的过程。可见,采用本发明的方法,新增加消息时比较简单,只是增加固定模版的消息描述表,然后调用一下公共的发送消息和接收消息两个统一的过程,就可以实现了。由于发送和接收消息的操作过程是公共的,这样可能使这个用于信令交互的公共操作由于稳定而做得更加可靠,从而有效提高消息处理方法的稳定度、可靠性;也使新业务的开发简单易行,缩短开发周期,主要工作只是完成一张描述表就可以完成。In the specific implementation of the process shown in FIG. 1 , the two processes of searching for message parameters and encoding parameters are integrated into a unified process. Assuming that the name of the process is "send message", then sending a message (message name) can send out the parameter code of the message provided by the message name in brackets. Similarly, the implementation of receiving a message can be the same as that of sending a message, and finally a unified process is formed. It can be seen that by adopting the method of the present invention, it is relatively simple to add a new message, just increase the message description table of the fixed template, and then call the two unified processes of sending a message and receiving a message, which can be realized. Since the operation process of sending and receiving messages is public, this may make the public operation for signaling interaction more reliable due to its stability, thereby effectively improving the stability and reliability of the message processing method; The development is simple and easy, and the development cycle is shortened. The main work can be completed only by completing a description table.

在本发明具体实现时,为了提高定位一个消息集合中的消息描述表的速度,可以建立该消息集合中的所有消息描述表的索引表,所述索引表可以包括下述字段:When the present invention is implemented, in order to improve the speed of locating a message description table in a message collection, an index table of all message description tables in the message collection can be established, and the index table can include the following fields:

消息名称,用于描述消息的名称;Message name, used to describe the name of the message;

消息类型,用于描述消息参数的调用关系;Message type, used to describe the call relationship of message parameters;

描述表名称,用于描述消息描述表的名称。Description table name, used to describe the name of the message description table.

当然上表中也可以增加其它辅助管理的字段,如描述表说明。这样通过为消息的发送过程或接收过程提供消息名和类型,就能得到相应的消息描述表以及反馈的参数。Of course, other auxiliary management fields can also be added in the above table, as explained in the description table. In this way, by providing the message name and type for the sending or receiving process of the message, the corresponding message description table and feedback parameters can be obtained.

需要说明的是,由于在处理一个消息时可能需要对不同的参数进行处理,因此需要提供消息类型,即调用关系来决定每次发送或接收消息时需要得到的参数集合。例如:在对FeatureRequest消息进行发送处理时,为应用程序同时也提供了调用消息类型(Invoke),则在对该消息进行发送处理时,就会发送与提供其它消息类型不同的参数集合构成的消息。为实现上述操作,可以按照一个消息的不同类型将一个消息的参数存储成不同的消息描述表,以方便对不同的参数集合进行处理。例如对FeatureRequest消息Invoke类型的发送处理过程:It should be noted that since different parameters may need to be processed when processing a message, it is necessary to provide the message type, that is, the call relationship to determine the set of parameters that need to be obtained each time a message is sent or received. For example: when sending and processing the FeatureRequest message, the application also provides the call message type (Invoke), then when sending and processing the message, it will send a message composed of different parameter sets than those provided by other message types . In order to realize the above operations, the parameters of a message can be stored in different message description tables according to different types of a message, so as to facilitate the processing of different parameter sets. For example, the process of sending the Invoke type of FeatureRequest message:

发起消息(FeatureRequest,Invoke)Initiate a message (FeatureRequest, Invoke)

  {{

    根据FeatureRequest和Invoke查找相应的描述表,从描述表中得到消息操作的全部参数;Find the corresponding description table according to FeatureRequest and Invoke, and get all the parameters of the message operation from the description table;

    for(ii=0;ii<描述表的最大参数个数;ii++)for(ii=0; ii<the maximum number of parameters describing the table; ii++)

    {对每个参数的类型,长度进行判断;{Judge the type and length of each parameter;

     针对每个参数进行编码;}Encode for each parameter; }

    }}

上述FeatureRequest即为消息操作码,表明每条具体的消息操作;消息类型为Invoke,用于指明具体的消息描述表。The above-mentioned FeatureRequest is the message operation code, which indicates the operation of each specific message; the message type is Invoke, which is used to indicate the specific message description table.

在具体实现本发明时,如果不采用按照一个消息的不同类型将一个消息的参数存储成不同的消息描述表的方案,就需要在对具体参数的编码操作前进行判断等方法即可,只是这样花费的时间较多。When implementing the present invention, if the scheme of storing the parameters of a message into different message description tables according to the different types of a message is not adopted, it is necessary to judge and other methods before the encoding operation of the specific parameters, just like this It takes more time.

在本发明具体实现时,也可以建立下述结构的消息描述表,用于作为存储消息属性的载体;所述消息描述表包括下述字段:When the present invention is implemented, a message description table with the following structure can also be set up as a carrier for storing message attributes; the message description table includes the following fields:

消息名称,用于描述消息的名称;Message name, used to describe the name of the message;

消息类型,用于描述消息参数的调用关系;Message type, used to describe the call relationship of message parameters;

参数名称,用于描述参数的名称;Parameter name, used to describe the name of the parameter;

参数类型,用于描述参数的性质,如可选或必选等;Parameter type, used to describe the nature of the parameter, such as optional or mandatory;

参数长度,用于描述参数的长度;Parameter length, used to describe the length of the parameter;

描述,用于说明消息或参数的作用。A description that explains what the message or parameter does.

如果采用上述结构的消息描述表,就可以将所有消息的属性体,即所有消息的所有参数及说明统一存储在一个消息描述表中。这样图1所述的流程不会有变化,只是在具体的消息查找和参数编码步骤中略有调整。If the message description table with the above structure is adopted, the attribute bodies of all messages, that is, all parameters and descriptions of all messages can be stored in one message description table. In this way, the process described in FIG. 1 will not change, but there are slight adjustments in the specific steps of message search and parameter encoding.

在本发明中,无论一个消息集合中的各个消息的参数存储在一张一张的独立描述表中,还是存储在一个描述表中,在交换设备,如交换机或路由器正常运行中,如果消息需要增加,或已有的消息参数需要改动,可以通过后台的操作维护控制台OMC对这些消息描述表进行动态的修改、删除、添加等操作,以保证消息的兼容,具体的维护原理图参考图2,图2是以交换机为例描述的。假设一个消息集合中的各个消息的参数存储在一张一张的独立描述表中,则在对需要维护的消息描述表进行维护时,可以通过OMC操作维护台下发如下述表2形式的命令:In the present invention, no matter the parameters of each message in a message set are stored in separate description tables one by one, or stored in a description table, in the normal operation of switching equipment, such as switches or routers, if the message needs To add or modify existing message parameters, you can dynamically modify, delete, and add these message description tables through the background operation and maintenance console OMC to ensure message compatibility. For the specific maintenance schematic diagram, refer to Figure 2 , Figure 2 is described by taking the switch as an example. Assuming that the parameters of each message in a message set are stored in separate description tables one by one, when maintaining the message description tables that need to be maintained, the commands in the form of Table 2 below can be issued through the OMC operation and maintenance desk :

表2:   消息   操作类型   修改类型   参数名   参数类型   长度   描述 Table 2: information operation type modification type parameter name Parameter Type length describe

其中字段的含义参考下述说明:For the meaning of the fields, refer to the following description:

消息,具体消息,比如上面的FeatureReqeust。Message, specific message, such as FeatureReqeust above.

操作类型:即参数的调用关系,如Invoke,返回(Return)、结果(Result〕等。Operation type: the calling relationship of parameters, such as Invoke, Return, Result, etc.

修改类型:修改,添加,还是删除。Modification type: modify, add, or delete.

参数名:具体的参数名称,比如上述表1的Digits(Dialed)等。Parameter name: a specific parameter name, such as Digits (Dialed) in Table 1 above.

参数类型:可选,必选等。Parameter type: optional, required, etc.

长度:该参数的最大,最小长度值Length: the maximum and minimum length value of this parameter

描述:规定该参数作用的表述。Description: The expression that specifies the function of this parameter.

交换机收到该命令后,通过内部函数调用,更新参数描述表中的内容,从而起到动态更新交换机内的消息。这对于提高网上设备的兼容性是一个非常好的设计思路。After the switch receives the command, it updates the content in the parameter description table through an internal function call, thereby dynamically updating the information in the switch. This is a very good design idea for improving the compatibility of online devices.

Claims (9)

1、一种通信系统中的消息处理方法,包括:1. A message processing method in a communication system, comprising: 将一个消息集合中的每个消息的属性分别作为属性体存储;所述消息的属性包括:消息中需要编码发送的参数;Store the attributes of each message in a message set as an attribute body; the attributes of the message include: parameters that need to be encoded and sent in the message; 在发送消息时,根据消息中的参数编码代码查找该消息对应的属性体,对所述属性体描述的参数进行编码后发送。When sending a message, the attribute body corresponding to the message is searched according to the parameter encoding code in the message, and the parameters described in the attribute body are encoded and then sent. 2、根据权利要求1所述的消息处理方法,其特征在于,所述方法还包括:在接收消息时,查找该消息对应的属性体,利用所述属性体描述的参数进行解码。2. The message processing method according to claim 1, further comprising: when receiving a message, searching for an attribute body corresponding to the message, and using the parameters described in the attribute body to decode. 3、根据权利要求1或2所述的消息处理方法,其特征在于:建立消息描述表,用于作为存储消息属性的载体;所述消息描述表包括下述字段:3. The message processing method according to claim 1 or 2, characterized in that: a message description table is established as a carrier for storing message attributes; the message description table includes the following fields: 参数名称,用于描述参数的名称;Parameter name, used to describe the name of the parameter; 参数类型,用于描述参数的性质;Parameter type, used to describe the nature of the parameter; 参数长度,用于描述参数的长度;Parameter length, used to describe the length of the parameter; 在发送消息时,根据消息中的参数编码代码从消息描述表中查找该消息对应的属性体。When sending a message, look up the attribute body corresponding to the message from the message description table according to the parameter encoding code in the message. 4、根据权利要求3所述的消息处理方法,其特征在于:将每个消息的属性体分别存储在各自的消息描述表中。4. The message processing method according to claim 3, characterized in that: the attribute body of each message is stored in its own message description table. 5、根据权利要求4所述的消息处理方法,其特征在于:建立消息描述表的索引表,用于定位消息描述表。5. The message processing method according to claim 4, characterized in that an index table of the message description table is established for locating the message description table. 6、根据权利要求5所述的消息处理方法,其特征在于:所述索引表包括下述字段:6. The message processing method according to claim 5, wherein the index table includes the following fields: 消息名称,用于描述消息的名称;Message name, used to describe the name of the message; 消息类型,用于描述消息参数的调用关系;Message type, used to describe the call relationship of message parameters; 描述表名称,用于描述消息描述表的名称。Description table name, used to describe the name of the message description table. 7、根据权利要求3所述的消息处理方法,其特征在于:所述消息描述表通过系统的操作维护控制台后台维护。7. The message processing method according to claim 3, characterized in that: the message description table is maintained through the background of the system's operation and maintenance console. 8、根据权利要求1或2所述的消息处理方法,其特征在于:建立消息描述表,用于作为存储消息属性的载体;所述消息描述表包括下述字段:8. The message processing method according to claim 1 or 2, characterized in that: a message description table is established as a carrier for storing message attributes; the message description table includes the following fields: 消息名称,用于描述消息的名称;Message name, used to describe the name of the message; 消息类型,用于描述消息参数的调用关系;Message type, used to describe the call relationship of message parameters; 参数名称,用于描述参数的名称;Parameter name, used to describe the name of the parameter; 参数类型,用于描述参数的性质;Parameter type, used to describe the nature of the parameter; 参数长度,用于描述参数的长度。Parameter length, used to describe the length of the parameter. 9、根据权利要求8所述的消息处理方法,其特征在于:将所有消息的属性体统一存储在一个消息描述表中。9. The message processing method according to claim 8, characterized in that: the attribute bodies of all messages are uniformly stored in a message description table.
CNB031089054A 2003-04-02 2003-04-02 Information treatment method in communication system Expired - Fee Related CN1301018C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB031089054A CN1301018C (en) 2003-04-02 2003-04-02 Information treatment method in communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB031089054A CN1301018C (en) 2003-04-02 2003-04-02 Information treatment method in communication system

Publications (2)

Publication Number Publication Date
CN1535035A CN1535035A (en) 2004-10-06
CN1301018C true CN1301018C (en) 2007-02-14

Family

ID=34283226

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB031089054A Expired - Fee Related CN1301018C (en) 2003-04-02 2003-04-02 Information treatment method in communication system

Country Status (1)

Country Link
CN (1) CN1301018C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621847B (en) * 2009-08-06 2011-12-07 中兴通讯股份有限公司 Method and terminal for acquiring 3G radio resource management information

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020029300A1 (en) * 1999-07-29 2002-03-07 Fujitsu Limited Object collaboration apparatus using message type
US20020087584A1 (en) * 2001-01-02 2002-07-04 Yat-Sang Hung Method and system for managing messages
WO2002093959A1 (en) * 2001-05-11 2002-11-21 Nokia Corporation Mobile instant messaging and presence service

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020029300A1 (en) * 1999-07-29 2002-03-07 Fujitsu Limited Object collaboration apparatus using message type
US20020087584A1 (en) * 2001-01-02 2002-07-04 Yat-Sang Hung Method and system for managing messages
WO2002093959A1 (en) * 2001-05-11 2002-11-21 Nokia Corporation Mobile instant messaging and presence service

Also Published As

Publication number Publication date
CN1535035A (en) 2004-10-06

Similar Documents

Publication Publication Date Title
CN1882173A (en) Method for sending paging information
CN101064630A (en) Data synchronization method and system
CN1223995C (en) Method for optimzing quality of voice in mobile radio system
CN1816170A (en) Code-conversion method for shortmessage receiving and transmitting and network apparatus used thereof
CN1301018C (en) Information treatment method in communication system
CN1777123A (en) SNMP-based IPv6 sensor network node management method
CN101056275A (en) A setting method for group message receiving mode in the instant communication system
CN1138381C (en) Method for implementing interface between workstation and operating system of telecommunication management network
CN1756387A (en) Method for realizing mobile data service unification route in communication system
CN1722870A (en) A method for identifying different cluster groups
CN101035367A (en) Method for the mobile communication back transfer interface to realize information source integrated access interaction
CN1933479A (en) Method for transmitting data in communication system and system thereof
CN101047971A (en) Method for trigging intelligent service at attatching area when intelligent user roaming
CN1595929A (en) A method for coding-decoding communication system message
CN1845535A (en) Message matching method and system
CN1753514A (en) Method of transmitting multimedia short message
CN1287278C (en) String manipulation command method
CN1324910C (en) Realizing method for short message sending and short message intelligent service
CN1662075A (en) Method for implementing transfer of short message
CN1595386A (en) A method for implementing database access
CN1852106A (en) Dynamic content transmitting method and dynamic content transmission server
CN1602080A (en) Positioning method of mobile communication system
CN1278521C (en) Implement method for adapting multinational user&#39;s part in integrated services degital network (ISDN)
CN1852552A (en) Method for renewing sharing network zone information in wireless network controller
CN1882008A (en) Method for realizing supplementary service attribute arrangement

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070214

Termination date: 20130402