[go: up one dir, main page]

CN100370841C - A method for transmitting messages between communication interfaces - Google Patents

A method for transmitting messages between communication interfaces Download PDF

Info

Publication number
CN100370841C
CN100370841C CNB2004100866532A CN200410086653A CN100370841C CN 100370841 C CN100370841 C CN 100370841C CN B2004100866532 A CNB2004100866532 A CN B2004100866532A CN 200410086653 A CN200410086653 A CN 200410086653A CN 100370841 C CN100370841 C CN 100370841C
Authority
CN
China
Prior art keywords
message
measurement
messages
header
format
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
CNB2004100866532A
Other languages
Chinese (zh)
Other versions
CN1780409A (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 CNB2004100866532A priority Critical patent/CN100370841C/en
Publication of CN1780409A publication Critical patent/CN1780409A/en
Application granted granted Critical
Publication of CN100370841C publication Critical patent/CN100370841C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention discloses a method for transmitting messages between communication interfaces. When the present invention is used, firstly, message transmitting format is set; then, the messages of subscriber process, which arrive at transmitting time, are combined in accordance with the message transmitting format; finally, the messages combined in accordance with the message transmitting format are transmitted. The present invention greatly reduces the message interaction between interfaces by combining a plurality of messages arriving at the transmitting moment into one message to be transmitted. In addition, the buffer memory time of the messages in once calling flow at the interfaces is reduced with the reduction of the message interaction quantity, and thereby, the present invention has the advantages of message transfer acceleration and calling delay shortening.

Description

一种通信接口间消息的传输方法 A method for transmitting messages between communication interfaces

技术领域technical field

本发明涉及移动通信领域,具体涉及传输移动通信系统中各种接口间消息的方法。The invention relates to the field of mobile communication, in particular to a method for transmitting messages between various interfaces in a mobile communication system.

背景技术Background technique

WCDMA(Wideband Code Division Multiple Access,宽带码分多址)系统中,用户在建立连接过程中,RNC(Radio Network Controller,无线网络控制器)向NodeB发起建立无线链路的请求后,将启动一个或多个NodeB的周期性测量,每个周期性测量随之将生成一个周期性测量报告。处理一个周期性测量报告需要多个模块协同配合完成,如图1所示,周期测量请求通过Iub接口处理模块,下发给相应的信令处理模块,信令处理模块根据不同的测量类型,分别发送给对应的测量执行体进行测量、采样和执行;由测量执行体生成测量报告后再转发给信令处理模块,然后再由信令处理模块转发给IUB接口处理模块。以用户的Sir(Signal-to-Interference Ratio,信干比)测量为例,首先向作为测量执行体的NodeB的解调单元发送执行测量命令,由解调单元进行采样滤波等处理并生成测量报告后再通过信令处理模块转发给Iub接口处理模块。In the WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access) system, when the user is establishing a connection, after the RNC (Radio Network Controller, radio network controller) initiates a request for establishing a wireless link to the NodeB, it will start a or Periodic measurement of multiple NodeBs, each periodic measurement will generate a periodic measurement report. Processing a periodic measurement report requires the cooperation of multiple modules. As shown in Figure 1, the periodic measurement request is sent to the corresponding signaling processing module through the Iub interface processing module. It is sent to the corresponding measurement executive for measurement, sampling and execution; the measurement report is generated by the measurement executive and forwarded to the signaling processing module, and then forwarded to the IUB interface processing module by the signaling processing module. Taking the user's Sir (Signal-to-Interference Ratio, Signal-to-Interference Ratio) measurement as an example, firstly send the execution measurement command to the demodulation unit of NodeB as the measurement execution body, and the demodulation unit performs sampling filtering and other processing and generates a measurement report Then it is forwarded to the Iub interface processing module through the signaling processing module.

现有技术中,测量执行体向信令处理模块发送接口消息的方法为:系统首先判断测量执行体的每个用户进程的测量报告是否到达发送周期,如果到达发送周期,则立即向信令处理模块逐个发送到达发送时间的测量报告。所述测量报告即通过测量执行体和信令处理模块间接口发送的接口消息。In the prior art, the method for the measurement executive to send an interface message to the signaling processing module is as follows: the system first judges whether the measurement report of each user process of the measurement executive has reached the sending cycle, and if it reaches the sending cycle, it immediately sends a message to the signaling processing module. The module sends the measurement report of the arrival sending time one by one. The measurement report is an interface message sent through the interface between the measurement executive and the signaling processing module.

但是,上述现有技术存在问题:如图1所示,每个测量执行体可能承载多个用户,即包含多个用户进程,承载的用户数量越多,同一时刻可能发送的周期测量报告越多。假设某测量执行体能支持的用户数N=200个,且每个用户需要启动2个周期测量,所有测量报告周期均为100ms(即每秒钟10个测量报告),则每秒钟测量执行体和信令处理模块的总线接口需要发送的测量报告数为200*2*10=4000个/秒。由于测量执行体和信令处理模块的接口可能是不同的单板间或者同一单板的某类总线的接口,而总线接口的处理能力是一定的,因此,过于频繁的接口消息将导致消息队列拥塞,消息重传,消息丢弃等现象,严重时将导致系统崩溃。However, there is a problem with the above existing technologies: as shown in Figure 1, each measurement executive may carry multiple users, that is, contain multiple user processes, and the more users it carries, the more periodic measurement reports may be sent at the same time . Assuming that the number of users supported by a certain measurement execution body is N=200, and each user needs to start 2 periodic measurements, and all measurement report periods are 100ms (that is, 10 measurement reports per second), the measurement execution body per second The number of measurement reports to be sent by the bus interface with the signaling processing module is 200*2*10=4000/second. Since the interface between the measurement executive and the signaling processing module may be an interface between different boards or a certain type of bus on the same board, and the processing capacity of the bus interface is certain, therefore, too frequent interface messages will lead to message queue Phenomena such as congestion, message retransmission, and message discarding will lead to system crashes in severe cases.

发明内容Contents of the invention

本发明要解决的技术问题在于:提供一种传输通信接口间消息的方法,能够减少接口间消息的数量,减少模块间接口消息的交互。The technical problem to be solved by the present invention is to provide a method for transmitting messages between communication interfaces, which can reduce the number of messages between interfaces and reduce the interaction of interface messages between modules.

为解决上述技术问题,本发明提供一种传输通信接口间消息的方法,包括步骤:In order to solve the above technical problems, the present invention provides a method for transmitting messages between communication interfaces, comprising steps:

1)设定发送消息格式,所述消息格式包括消息头和消息体;1) Setting the sending message format, the message format includes a message header and a message body;

2)将到达发送时间的用户进程的消息按照所述发送消息格式组合,所述用户进程的消息为周期性消息;2) combining the message of the user process arriving at the sending time according to the sending message format, and the message of the user process is a periodic message;

3)将按照所述发送消息格式组合后的消息进行发送,所述组合后的消息包括消息头和消息体,所述组合后的消息的消息头包括消息报告数目,所述组合后的消息的消息体包括消息内容体。3) Send the message combined according to the sending message format, the combined message includes a message header and a message body, the message header of the combined message includes the number of message reports, and the combined message The message body includes a message content body.

其中,所述组合后的消息可以具体包括:消息报告数目、进程标识、消息长度、消息内容体;所述消息报告数目为消息头,所述进程标识、消息长度、消息内容体为消息体。Wherein, the combined message may specifically include: message report number, process ID, message length, and message content body; the message report number is a message header, and the process ID, message length, and message content body are a message body.

然后,根据所述消息报告数目对所述组合后的消息进行解析。Then, the combined message is parsed according to the number of message reports.

另外,所述组合后的消息还可以具体包括:消息报告数目、消息类型、进程标识、消息长度和消息内容体;所述消息报告数目、消息类型为消息头,所述进程标识、消息长度和消息内容体为消息体。In addition, the combined message may also specifically include: message report number, message type, process identifier, message length, and message content body; the message report number and message type are message headers, and the process identifier, message length, and The message content body is the message body.

然后,根据所述消息报告数目和消息类型对所述组合后的消息进行解析。Then, the combined message is parsed according to the message report number and message type.

进一步,所述发送时间为所述消息的发送周期。Further, the sending time is the sending period of the message.

并且,本发明所述接口可以为两个模块间的接口;或者为两个单板间的接口,还可以为两个产品间的接口。Moreover, the interface in the present invention may be an interface between two modules; or an interface between two single boards, or an interface between two products.

本发明实施例提供了另一种传输通信接口间消息的方法,包括步骤:The embodiment of the present invention provides another method for transmitting messages between communication interfaces, including steps:

1)设定发送消息格式,所述消息格式包括消息头和消息体;1) Setting the sending message format, the message format includes a message header and a message body;

2)将到达发送时间的用户进程的消息按照所述发送消息格式组合,所述用户进程的消息为具有相同发送时间的非周期性消息;2) combining the message of the user process arriving at the sending time according to the sending message format, and the message of the user process is an aperiodic message with the same sending time;

3)将按照所述发送消息格式组合后的消息进行发送,所述组合后的消息包括消息头和消息体,所述组合后的消息的消息头包括消息报告数目,所述组合后的消息的消息体包括消息内容体。3) Send the message combined according to the sending message format, the combined message includes a message header and a message body, the message header of the combined message includes the number of message reports, and the combined message The message body includes a message content body.

其中,所述组合后的消息可以具体包括:消息报告数目、进程标识、消息长度、消息内容体;所述消息报告数目为消息头,所述进程标识、消息长度、消息内容体为消息体。Wherein, the combined message may specifically include: message report number, process ID, message length, and message content body; the message report number is a message header, and the process ID, message length, and message content body are a message body.

然后,根据所述消息报告数目对所述组合后的消息进行解析。Then, the combined message is parsed according to the number of message reports.

另外,所述组合后的消息还可以具体包括:消息报告数目、消息类型、进程标识、消息长度和消息内容体;所述消息报告数目、消息类型为消息头,所述进程标识、消息长度和消息内容体为消息体。In addition, the combined message may also specifically include: message report number, message type, process identifier, message length, and message content body; the message report number and message type are message headers, and the process identifier, message length, and The message content body is the message body.

然后,根据所述消息报告数目和消息类型对所述组合后的消息进行解析。Then, the combined message is parsed according to the message report number and message type.

与现有技术相比,本发明的有益效果是:本发明通过将到达发送时刻的多条消息组合成一条消息发送,大大减少了接口间消息的交互,并且,随着消息交互数量的减少,一次呼叫流程中的消息在接口缓存的时间随之减少,从而加速了消息传递时间,缩短了呼叫延迟。Compared with the prior art, the beneficial effect of the present invention is that the present invention greatly reduces the interaction of messages between interfaces by combining multiple messages arriving at the time of sending into one message for transmission, and, with the reduction in the number of message interactions, The time for messages in a call flow to be cached on the interface is reduced accordingly, thereby speeding up the message delivery time and shortening the call delay.

进一步,本发明在对消息进行组合时记录每条消息的类型,然后通过消息类型和消息报告数目对组合后的消息进行解析,缩短了信息处理模块对接口信息的处理时间。Further, the present invention records the type of each message when combining the messages, and then analyzes the combined messages through the message type and the number of message reports, which shortens the processing time of the information processing module for interface information.

另外,本发明不仅适用于单板内的模块间接口消息,也适用于单板间或存在接口消息交互的产品间的接口消息;同时,本发明所述的接口消息不仅适用于周期性消息,而且也适用于需要某一时刻集中发送的一类消息。In addition, the present invention is not only applicable to interface messages between modules in a single board, but also applicable to interface messages between single boards or products with interface message interaction; at the same time, the interface messages described in the present invention are not only applicable to periodic messages, but also It is also applicable to a class of messages that need to be sent intensively at a certain time.

附图说明Description of drawings

图1是现有技术中传输接口消息的方法的原理框图;Fig. 1 is a functional block diagram of a method for transmitting an interface message in the prior art;

图2是第一实施例的大测量报告消息组合体的结构示意图;FIG. 2 is a schematic structural diagram of a large measurement report message assembly in the first embodiment;

图3是第一实施例的大测量报告消息组合体的应用实例图;Fig. 3 is an application example diagram of the large measurement report message assembly of the first embodiment;

图4是第一实施例的消息集中处理模块对测量报告的处理流程示意图。Fig. 4 is a schematic diagram of the processing flow of the measurement report by the centralized message processing module of the first embodiment.

具体实施方式Detailed ways

本发明的基本原理是:将多个某一时刻需要发送的消息按照一定的消息格式组合成一个大的消息体进行发送,达到减小接口消息的目的。The basic principle of the present invention is: multiple messages to be sent at a certain moment are combined into a large message body for sending according to a certain message format, so as to achieve the purpose of reducing interface messages.

使用本发明,首先需要设定发送消息格式;接着将到达发送时间的一个测量执行体的多个用户进程的消息按照所述发送消息格式组合;然后将按照所述发送消息格式组合后的消息发送到所述信令处理模块。To use the present invention, it is first necessary to set the sending message format; then combine the messages of multiple user processes arriving at a measurement execution body at the sending time according to the sending message format; then send the message combined according to the sending message format to the signaling processing module.

为了使信令处理模块能够对组合后的消息进行解析,在对到达发送时间的各条消息进行组合前,必须设置一定的发送消息格式,本发明将发送消息格式设置为消息头和消息体两部分。消息头的关键字段为消息报告数目,In order to enable the signaling processing module to analyze the combined message, before combining each message arriving at the sending time, a certain sending message format must be set. The present invention sets the sending message format as two parts of the message header and the message body. part. The key field of the message header is the number of message reports,

另外,组合消息的消息头部分除了需要包含消息报告数目作为关键字段之外,还可以包含消息类型字段。消息类型用来区分不同类型的消息以便于信令处理模块进行分类处理,加快信令处理模块的处理速度。信令处理模块收到组合后的消息后,根据消息报告数目显示的有效消息数目,同时结合消息类型分拆组合消息。常见的消息类型包括:公共消息类型、专用消息类型、特定消息类型、错误消息类型等。In addition, the message header of the combined message may include a message type field in addition to the message report number as a key field. The message type is used to distinguish different types of messages so that the signaling processing module can perform classified processing and speed up the processing speed of the signaling processing module. After receiving the combined message, the signaling processing module splits the combined message according to the number of valid messages displayed by the number of message reports, and at the same time combined with the message type. Common message types include: public message types, private message types, specific message types, error message types, etc.

WCDMA系统中,用户的建立连接过程中,RNC向NodeB发起建立无线链路的请求后,将启动一个或多个NodeB的周期性测量。处理一个周期测量报告过程中,测量执行体上报给信令处理模块的测量报告是一种较常见的接口消息,以下以此作为第一实施例详细说明本发明所述的传输方法的具体实施过程。In the WCDMA system, during the connection establishment process of the user, after the RNC initiates a request for establishing a wireless link to the NodeB, it will start periodic measurement of one or more NodeBs. In the process of processing a periodic measurement report, the measurement report reported by the measurement execution body to the signaling processing module is a relatively common interface message, and the specific implementation process of the transmission method described in the present invention will be described in detail below as the first embodiment .

第一实施例:在本实施例中,定义一个消息集中处理模块完成消息的组合功能。Embodiment 1: In this embodiment, a centralized message processing module is defined to complete the message combination function.

每个用户测量进程上报给信令处理模块的测量报告为周期性报告,多个用户测量进程共享一个周期定时器,当定时器时间到达时,则发送到达发送时刻的用户进程的周期性报告。判断是否到达发送周期的方法与现有技术相同,具体如下所述:系统启动时启动一个定时器Tc,该定时器能够保证为所有周期性测量报告的整数倍,即周期测量报告的最小粒度时间单元;然后针对每个用户的周期性测量进程,启动一个计数器Nj,时间每增长一个周期Tc,测量进程计数器加1,判断该计数器和Tc的乘积是否为当前测量进程周期T的整数倍,如果是,则判断为该用户测量进程到达发送时间。The measurement report reported by each user measurement process to the signaling processing module is a periodic report. Multiple user measurement processes share a periodic timer. When the timer expires, the periodic report of the user process at the sending time is sent. The method for judging whether the sending period is reached is the same as that of the prior art, specifically as follows: a timer Tc is started when the system starts, and the timer can be guaranteed to be an integer multiple of all periodic measurement reports, that is, the minimum granularity time of the periodic measurement reports unit; then for each user's periodic measurement process, start a counter Nj, the time increases a cycle Tc every time, the measurement process counter adds 1, and judges whether the product of this counter and Tc is an integer multiple of the current measurement process cycle T, if If yes, it is determined that the user measurement process has reached the sending time.

在本实施例中,当定时器达到时刻,由消息集中处理模块对各个活动的用户测量进程进行判断,当判断测量进程需要上报测量报告时,将所有该时刻需要上报的测量报告消息按照预定的发送消息格式进行组合,组合成大测量报告消息组合体后,发送给信令处理模块。信令处理模块收到大的测量消息组合体后,从消息体头部开始,从前往后逐个分拆所有的小测量报告消息,并立即逐个发送分拆后的测量报告消息。分拆的测量报告数目由该组合消息体头部的消息数目字段指明。In this embodiment, when the timer reaches the time, the centralized message processing module judges the user measurement process of each activity, and when it is judged that the measurement process needs to report the measurement report, all the measurement report messages that need to be reported at this time are sent according to the predetermined The sending message format is combined, and after being combined into a large measurement report message combination, it is sent to the signaling processing module. After receiving the large measurement message assembly, the signaling processing module splits all the small measurement report messages from the front to the back one by one from the head of the message body, and immediately sends the split measurement report messages one by one. The number of split measurement reports is indicated by the number of messages field in the header of the combined message body.

图2为上述按照预定的发送消息格式进行组合后的大测量报告消息组合体的结构示意图。如图所示,每个大测量报告消息体分为两部分,即消息头部分和消息体部分。本实施例中的消息头包含消息类型和消息报告数目两个字段。FIG. 2 is a schematic structural diagram of the large measurement report message assembly assembled according to the predetermined sending message format. As shown in the figure, the message body of each large measurement report is divided into two parts, that is, a message header part and a message body part. The message header in this embodiment includes two fields: message type and message report number.

消息类型用来区分不同的消息类型,便于信令处理模块进行分类处理,常见的消息类型有公共消息类型、专用消息类型、特定消息类型、错误消息类型等。消息报告数目指从消息头后第一个消息开始的有效的消息数目,消息数目指明了信令处理模块需要分拆的消息数目。The message type is used to distinguish different message types, which is convenient for the signaling processing module to classify and process. Common message types include public message types, dedicated message types, specific message types, and error message types. The number of message reports refers to the number of effective messages starting from the first message after the message header, and the number of messages indicates the number of messages to be split by the signaling processing module.

消息体部分包含所有有效的小消息报告,即到达发送时间的每个用户进程的消息报告。每个小消息报告包含的信息包括测量进程标识PID、小消息长度、小消息内容体三部分。测量进程标识PID用来区分每个测量进程ID,小消息长度指紧随其后的每个小消息内容体的长度,不同的用户进程的测量报告的内容体即每个小消息内容体可以不等长。The message body part contains all valid small message reports, that is, message reports for each user process up to the send time. The information contained in each small message report includes three parts: measurement process identifier PID, small message length, and small message content body. The measurement process identifier PID is used to distinguish each measurement process ID. The length of the small message refers to the length of the content body of each small message that follows it. The content body of the measurement report of different user processes, that is, the content body of each small message can be different. equal length.

图3为上述大测量报告体的应用实例,如图所示,某个测量执行体在某个时刻有四个用户测量进程需要上报测量报告,即测量报告数目N=4;消息类型为公共消息类型;四条消息的长度即四个测量报告的内容体长度依次为4、5、6、7个字节。Figure 3 is an application example of the above-mentioned large measurement report body. As shown in the figure, a certain measurement executive body has four user measurement processes at a certain moment that need to report measurement reports, that is, the number of measurement reports N=4; the message type is public message Type; the lengths of the four messages, that is, the lengths of the content bodies of the four measurement reports are 4, 5, 6, and 7 bytes in sequence.

上报的过程为:消息集中处理模块先初始化一块大的内存,并初始化一个变量记录下一个消息报告的填充位置。消息集中处理模块循环所有活动的测量报告进程,如果满足条件,则分别获取当前测量报告的测量进程PID,测量报告长度,填充到上一个消息报告的内容体后面,并根据测量报告长度内存复制整个测量报告消息体,每填充一个消息报告后,记录下一个消息报告的填充位置重新计算一次,并且消息头部的测量报告数目加1,遍历所有活动的用户测量进程后,将组合了多条预发送的测量报告的大测量消息体发送给信令处理模块。信令处理模块收到大的测量消息组合体后,按照约定的数据格式先从消息头中取出有效消息数目,然后从消息体头部开始,从前往后逐个分拆所有的小测量报告消息,并立即逐个发送分拆后的测量报告消息。The reporting process is as follows: the message centralized processing module first initializes a large memory, and initializes a variable to record the filling position of the next message report. The message centralized processing module cycles all active measurement report processes. If the conditions are met, the measurement process PID of the current measurement report and the length of the measurement report are obtained respectively, and filled to the back of the content body of the previous message report, and the entire memory is copied according to the length of the measurement report. The measurement report message body, after each message report is filled, the filling position of the next message report is recorded and recalculated, and the number of measurement reports in the message header is increased by 1. After traversing all active user measurement processes, multiple preset The large measurement message body of the measurement report sent is sent to the signaling processing module. After the signaling processing module receives the large measurement message assembly, it first takes out the number of valid messages from the message header according to the agreed data format, and then starts from the header of the message body and splits all the small measurement report messages one by one from front to back. And immediately send the split measurement report messages one by one.

另外,还可以在以上所述的在消息头部的测量报告数目加1的同时,记录下所复制的消息报告的类型,信令处理模块收到大的测量消息组合体后,根据消息头部分的消息报告数目指明的有效消息数目,然后根据消息类型发送给不同的子模块进行处理。In addition, it is also possible to record the type of the copied message report while adding 1 to the number of measurement reports in the message header as described above. After the signaling processing module receives a large measurement message assembly, it The number of effective messages indicated by the number of message reports is sent to different sub-modules for processing according to the message type.

图4为消息集中处理模块对测量报告的处理流程示意图。Fig. 4 is a schematic diagram of the processing flow of the measurement report by the message centralized processing module.

首先,当定时器时间到达,按照上述定义的发送消息格式,初始化一个大的测量消息体,并定义其长度(步骤一);First, when the timer time arrives, initialize a large measurement message body and define its length according to the sending message format defined above (step 1);

接着,判断是否已经遍历所有活动的用户测量进程(步骤二)。如果已遍历,则进一步判断当前的大测量消息体中的测量报告数目是否为0,如果为0,则等待定时器的下一个周期(步骤四),否则,将当前已经填充的大测量消息体发送出去(步骤五);如果尚未遍历,则继续进行下一步;Next, it is judged whether all active user measurement processes have been traversed (step 2). If traversed, then further judge whether the number of measurement reports in the current large measurement message body is 0, if it is 0, then wait for the next period of the timer (step 4), otherwise, replace the currently filled large measurement message body Send out (step 5); if not traversed yet, proceed to the next step;

步骤六,判断当前的测量进程计数器Nj和Tc的乘积是否已经为当前测量进程周期T的整数倍,即Nj×Tc=Tj;Step 6, judging whether the product of the current measurement process counter Nj and Tc has been an integer multiple of the current measurement process period T, that is, Nj×Tc=Tj;

如果满足步骤六所述的公式,则进一步判断当前测量报告加入是否会导致大测量消息体超过定义的最大长度(步骤七);If the formula described in step 6 is satisfied, it is further judged whether the addition of the current measurement report will cause the large measurement message body to exceed the defined maximum length (step 7);

如果未超出所定义的最大长度,则根据上述定义的消息发送格式将小的测量报告消息整个复制到大的消息结构体中(步骤八);If the defined maximum length is not exceeded, the entire small measurement report message is copied into a large message structure according to the message sending format defined above (step 8);

如果当前测量报告加入导致大测量消息体超过系统能支持的最大长度Lmax,则先发送大测量消息体(步骤九),并重新初始化一块大测量消息体(步骤十),将当前测量报告加入到新的大测量消息体中(步骤十一),继续下一步。If the addition of the current measurement report causes the large measurement message body to exceed the maximum length Lmax that the system can support, then first send the large measurement message body (step 9), and re-initialize a large measurement message body (step 10), and add the current measurement report to In the new large measurement message body (step eleven), continue to the next step.

步骤十二,将当前测量进程计数器加1,继续遍历活动的用户测量进程。In step 12, add 1 to the current measurement process counter, and continue to traverse active user measurement processes.

本发明不仅适用于周期性消息,同样也适用于某一时刻发送的某一类消息,例如,当某个小区删除后,需要删除与该小区对应的100个用户的消息,则可以使用本发明所述的传输方法,将100条消息组合成一个大消息体发送给信令处理模块。以下以此作为本发明的第二实施例说明传输过程。The present invention is not only applicable to periodic messages, but also applicable to a certain type of message sent at a certain moment. For example, when a certain cell is deleted and the messages of 100 users corresponding to the cell need to be deleted, the present invention can be used In the transmission method, 100 messages are combined into a large message body and sent to the signaling processing module. The transmission process will be described below as the second embodiment of the present invention.

第二实施例:由于删除某个小区是预知的行为,因此对于这种情况不必再设定定时器触发事件的发生。因此当删除一个小区后,如果考虑需要测量执行体连续发送数条消息到信令处理模块,则按照以下方式将所要发送的各条消息组合成大消息体:Embodiment 2: Since deleting a certain cell is a predictable behavior, it is not necessary to set a timer to trigger the occurrence of an event in this case. Therefore, after deleting a cell, if it is considered that the measurement executive needs to send several messages to the signaling processing module continuously, then combine the messages to be sent into a large message body in the following manner:

消息集中处理模块先初始化一块大的内存,并初始化一个变量记录下一个消息报告的填充位置。消息集中处理模块循环所有活动的测量报告进程,如果需要发送,则分别获取当前测量报告的测量进程PID,测量报告长度,填充到上一个消息报告的内容体后面,并根据测量报告长度内存复制整个测量报告消息体,每填充一个消息报告后,记录下一个消息报告的填充位置重新计算一次,并且消息头部的测量报告数目加1,遍历所有活动的用户测量进程后,将组合了多条预发送的测量报告的大测量消息体发送给信令处理模块。信令处理模块收到大的测量消息组合体后,按照约定的数据格式先从消息头部中取出有效消息数目,然后从消息体头部开始,从前往后逐个分拆所有的小测量报告消息,并立即逐个发送分拆后的测量报告消息。由于本实施例中发送的消息为同类消息,因此不必再在消息头部分记录消息类型字段。The message centralized processing module first initializes a large memory, and initializes a variable to record the filling position of the next message report. The message centralized processing module cycles all active measurement report processes, and if it needs to be sent, obtains the measurement process PID of the current measurement report and the length of the measurement report, fills them in the back of the content body of the previous message report, and copies the entire measurement report according to the length of the measurement report The measurement report message body, after each message report is filled, the filling position of the next message report is recorded and recalculated, and the number of measurement reports in the message header is increased by 1. After traversing all active user measurement processes, multiple preset The large measurement message body of the measurement report sent is sent to the signaling processing module. After receiving the large measurement message assembly, the signaling processing module first takes out the number of valid messages from the message header according to the agreed data format, and then splits all the small measurement report messages from the front to the back one by one starting from the message body header , and immediately send the split measurement report messages one by one. Since the messages sent in this embodiment are of the same type, there is no need to record the message type field in the message header.

消息集中处理模块的处理流程如下所述:The processing flow of the message centralized processing module is as follows:

首先,按照上述定义的发送消息格式,初始化一个大的测量消息体,并定义其长度(步骤一);First, according to the sending message format defined above, initialize a large measurement message body and define its length (step 1);

接着,判断是否已经遍历所有活动的用户测量进程(步骤二)。如果已遍历,则进一步判断当前的大测量消息体中的测量报告数目是否为0,如果为0,结束操作,否则,将当前已经填充的大测量消息体发送出去(步骤三);如果尚未遍历,则进一步判断当前测量报告加入是否会导致大测量消息体超过定义的最大长度(步骤四);Next, it is judged whether all active user measurement processes have been traversed (step 2). If it has been traversed, then further judge whether the number of measurement reports in the current large measurement message body is 0, if it is 0, end the operation, otherwise, send the currently filled large measurement message body (step 3); if it has not been traversed , then further judge whether adding the current measurement report will cause the large measurement message body to exceed the defined maximum length (step 4);

如果未超出所定义的最大长度,则根据上述定义的消息发送格式将小的测量报告消息整个复制到大的消息结构体中(步骤五);If the defined maximum length is not exceeded, the entire small measurement report message is copied into a large message structure according to the message sending format defined above (step 5);

如果当前测量报告加入导致大测量消息体超过系统能支持的最大长度Lmax,则先发送大测量消息体(步骤六),并重新初始化一块大测量消息体(步骤七),将当前测量报告加入到新的大测量消息体中(步骤八),继续遍历活动的用户测量进程(步骤九)。If the addition of the current measurement report causes the large measurement message body to exceed the maximum length Lmax that the system can support, then first send the large measurement message body (step 6), and re-initialize a large measurement message body (step 7), and add the current measurement report to In the new large measurement message body (step eight), continue to traverse the active user measurement process (step nine).

上述两个实施例中所述的接口信息传输方法不仅适用于单板内的模块间接口的消息转发,也适用于单板与单板间接口的消息转发,和存在接口消息交互的产品与产品间接口的消息转发,如图2中,测量执行体可以位于单板A,而信令处理模块可以位于单板B中,单板A向单板B的某些周期间隔发送的大量消息可以先通过本发明所述的组织发送信息格式的方法组合成一个大消息体后再发送。同理,测量执行体和信令处理模块也可以位于不同的产品间。The interface information transmission method described in the above two embodiments is not only applicable to the message forwarding of the interface between modules in a single board, but also applicable to the message forwarding of the interface between single boards and between products with interface message interaction. For the message forwarding of the inter-interface, as shown in Figure 2, the measurement executive body can be located in board A, while the signaling processing module can be located in board B, and a large number of messages sent by board A to board B at certain periodic intervals can be first The method for organizing the sending information format described in the present invention is combined into a large message body and then sent. Similarly, the measurement executive and the signaling processing module may also be located between different products.

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications should also be It is regarded as the protection scope of the present invention.

Claims (14)

1. the method for message between a transport communication interface is characterized in that, comprises step:
1) set the transmission message format, described message format comprises message header and message body;
2) message that will arrive the consumer process of transmitting time makes up according to described transmission message format, and the message of described consumer process is periodic message;
3) will send according to the message after the described transmission message format combination, message after the described combination comprises message header and message body, the message header of the message after the described combination comprises the message report number, and the message body of the message after the described combination comprises the message content body.
2. the method for message is characterized in that between transport communication interface according to claim 1, and the message after the described combination specifically comprises: message report number, process identification (PID), message-length, message content body; Described message report number is a message header, and described process identification (PID), message-length, message content body are message body.
3. the method for message is characterized in that between transport communication interface according to claim 1, and the message after the described combination specifically comprises: message report number, type of message, process identification (PID), message-length and message content body; Described message report number, type of message are message header, and described process identification (PID), message-length and message content body are message body.
4. the method for message is characterized in that between transport communication interface according to claim 2, also comprises step after the described step 3): resolve according to the message of described message report number after to described combination.
5. the method for message is characterized in that between transport communication interface according to claim 3, also comprises step after the described step 3): resolve according to described message report number and the type of message message after to described combination.
6. according to the method for message between any one described transport communication interface in the claim 1 to 5, it is characterized in that: described transmitting time is the transmission cycle of described message.
7. according to the method for message between claim 1 or 2 or 3 described transport communication interfaces, it is characterized in that: described interface is the interface of two intermodules.
8. according to the method for message between claim 1 or 2 or 3 described transport communication interfaces, it is characterized in that: described interface is two interfaces between veneer.
9. according to the method for message between claim 1 or 2 or 3 described transport communication interfaces, it is characterized in that: described interface is two interfaces between product.
10. the method for message between a transport communication interface is characterized in that, comprises step:
1) set the transmission message format, described message format comprises message header and message body;
2) message that will arrive the consumer process of transmitting time makes up according to described transmission message format, and the message of described consumer process is the aperiodicity message with identical transmitting time;
3) will send according to the message after the described transmission message format combination, message after the described combination comprises message header and message body, the message header of the message after the described combination comprises the message report number, and the message body of the message after the described combination comprises the message content body.
11. the method for message is characterized in that between transport communication interface according to claim 10, the message after the described combination specifically comprises: message report number, process identification (PID), message-length, message content body; Described message report number is a message header, and described process identification (PID), message-length, message content body are message body.
12. the method for message is characterized in that between transport communication interface according to claim 11, also comprises step after the described step 3): resolve according to the message of described message report number after to described combination.
13. the method for message is characterized in that between transport communication interface according to claim 10, the message after the described combination specifically comprises: message report number, type of message, process identification (PID), message-length and message content body; Described message report number, type of message are message header, and described process identification (PID), message-length and message content body are message body.
14. the method for message is characterized in that between transport communication interface according to claim 13, also comprises step after the described step 3): resolve according to described message report number and the type of message message after to described combination.
CNB2004100866532A 2004-11-19 2004-11-19 A method for transmitting messages between communication interfaces Expired - Fee Related CN100370841C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100866532A CN100370841C (en) 2004-11-19 2004-11-19 A method for transmitting messages between communication interfaces

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100866532A CN100370841C (en) 2004-11-19 2004-11-19 A method for transmitting messages between communication interfaces

Publications (2)

Publication Number Publication Date
CN1780409A CN1780409A (en) 2006-05-31
CN100370841C true CN100370841C (en) 2008-02-20

Family

ID=36770489

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100866532A Expired - Fee Related CN100370841C (en) 2004-11-19 2004-11-19 A method for transmitting messages between communication interfaces

Country Status (1)

Country Link
CN (1) CN100370841C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135742B (en) * 2014-07-14 2018-08-14 大唐移动通信设备有限公司 The generation of NBAP message and analysis method and device in TD-SCDMA network
CN104301930B (en) * 2014-10-27 2017-11-14 大唐移动通信设备有限公司 Method, radio network controller and the base station of public-measurement report transmission

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4849816A (en) * 1985-11-29 1989-07-18 Canon Kabushiki Kaisha Data communication apparatus for transmission with variable format
JPH03129946A (en) * 1989-10-16 1991-06-03 Nippon Telegr & Teleph Corp <Ntt> Electronic mail communication system
CN1183164A (en) * 1996-03-01 1998-05-27 三星电子株式会社 Method and apparatus for reducing latency time on an interface by overlapping transmitted packets
CN1252192A (en) * 1997-04-02 2000-05-03 西门子公司 Base station and receiver device for mobile communications system with TDMA subscriber separation
CN1304622A (en) * 1999-05-07 2001-07-18 皇家菲利浦电子有限公司 Radio communication system with randon access requests consisting of plurality of access packets
FR2837040A1 (en) * 2003-01-10 2003-09-12 Jean Michel Cour Mixed transmission any format messages sender/receiver having switching centre/distribution bureau message sending communications network and receive unit producing certified identical double/returning acknowledgement

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4849816A (en) * 1985-11-29 1989-07-18 Canon Kabushiki Kaisha Data communication apparatus for transmission with variable format
JPH03129946A (en) * 1989-10-16 1991-06-03 Nippon Telegr & Teleph Corp <Ntt> Electronic mail communication system
CN1183164A (en) * 1996-03-01 1998-05-27 三星电子株式会社 Method and apparatus for reducing latency time on an interface by overlapping transmitted packets
CN1252192A (en) * 1997-04-02 2000-05-03 西门子公司 Base station and receiver device for mobile communications system with TDMA subscriber separation
CN1304622A (en) * 1999-05-07 2001-07-18 皇家菲利浦电子有限公司 Radio communication system with randon access requests consisting of plurality of access packets
FR2837040A1 (en) * 2003-01-10 2003-09-12 Jean Michel Cour Mixed transmission any format messages sender/receiver having switching centre/distribution bureau message sending communications network and receive unit producing certified identical double/returning acknowledgement

Also Published As

Publication number Publication date
CN1780409A (en) 2006-05-31

Similar Documents

Publication Publication Date Title
RU2419226C2 (en) Memory control for high-speed control of access to environment
TWI392393B (en) Method and apparatus for performing buffer status reporting
CA1221757A (en) Method for operating a packet bus for transmission of asynchronous and pseudo-synchronous signals
CN104244324A (en) Wireless link transmission method and system
CN101657029B (en) Method and terminal for sending terminal polymerization media access control protocol data unit frames
Ho et al. Throughput and buffer analysis for GSM general packet radio service (GPRS)
CN104469855B (en) A kind of system of selection of time interval resource and device
TWI399048B (en) Method and apparatus for performing buffer status reporting
CA3076147A1 (en) Buffer status reporting method, terminal, and computer storage medium
CN109428801A (en) File transmitting method and device
KR20230129532A (en) Service display methods and devices
CN100411376C (en) Media access control device for use in channel overlay networks
CN107182105B (en) Information processing method, access point and site
WO2020007278A1 (en) Data transmitting method and device, and data receiving method and device
CN100370841C (en) A method for transmitting messages between communication interfaces
CN101686436A (en) Wireless communication system, wireless communication terminal, wireless communication station and wireless communication method
WO2024149009A1 (en) Beam scheduling method, apparatus and system, and communication device and storage medium
Krohn et al. TOMAC–real-time message ordering in wireless sensor networks using the MAC layer
CN103200620A (en) Method and device for accessing core network in long term evolution (LTE) system
CN101729345B (en) Message transmitting method and bus controller
Kumar et al. An access protocol for supporting multiple classes of service in a local wireless environment
CN107018567B (en) Method for node concurrent data transmission in wireless sensor network
CN115134935B (en) Data transmission method and system for avoiding channel communication conflict
CN101272597A (en) Method for parameter setting, access terminal and access network
CN114339886B (en) A method, device, storage medium and base station for sending data stream

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: 20080220

Termination date: 20131119