CN101420768A - Adaptive parsing method for network management monitoring protocol of repeater - Google Patents

Adaptive parsing method for network management monitoring protocol of repeater Download PDF

Info

Publication number
CN101420768A
CN101420768A CNA200810236652XA CN200810236652A CN101420768A CN 101420768 A CN101420768 A CN 101420768A CN A200810236652X A CNA200810236652X A CN A200810236652XA CN 200810236652 A CN200810236652 A CN 200810236652A CN 101420768 A CN101420768 A CN 101420768A
Authority
CN
China
Prior art keywords
protocol
network management
repeater
data
management monitoring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA200810236652XA
Other languages
Chinese (zh)
Other versions
CN101420768B (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.)
CICT Mobile Communication Technology Co Ltd
Original Assignee
Wuhan Hongxin Telecommunication 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 Wuhan Hongxin Telecommunication Technologies Co Ltd filed Critical Wuhan Hongxin Telecommunication Technologies Co Ltd
Priority to CN200810236652XA priority Critical patent/CN101420768B/en
Publication of CN101420768A publication Critical patent/CN101420768A/en
Application granted granted Critical
Publication of CN101420768B publication Critical patent/CN101420768B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a self-adaptive analysis method of a repeater network management monitoring protocol. The method comprises the following steps: a protocol class object receives a raw data flow transmitted from the outside, initializes all the external interfaces, and performs data format conversion processing after the initialization is successful; a protocol frame command header is analyzed after the data format conversion is successful; a protocol authentication processing is carried out after the analysis of the command header is successful; a command body is analyzed after the protocol authentication is successful; data update of the protocol object is performed after the analysis of the command body is successful; a protocol class output interface is generated after the protocol data update is successful, and finally the raw data flow is analyzed into the protocol class object. The method helps enhance independence and portability of the protocol analysis part, thus the analysis codes of the repeater network management monitoring protocol does not need change while adding, deleting and changing monitoring parameters in the repeater network management monitoring protocol.

Description

A kind of adaptive parsing method of network management monitoring protocol of repeater
Technical field
The present invention relates to Mobile communication direct base station network management monitoring field, be the method for utilizing Object oriented programming method and pattern programming idea that the network management monitoring protocol of repeater of complexity is analyzed, be specifically related to a kind of network management monitoring protocol of repeater adaptive parsing method.
Background technology
In the discharging-directly station network management monitoring software design, protocol analysis is the core of these software systems, traditional protocol analysis method all is processor-oriented: need each byte of careful processing protocol frame in the analysis protocol process, finish the operation that need finish client layer behind the analysis protocol.Mainly there is the problem of two aspects in this method: 1, because the analytic method of agreement is processor-oriented, protocol analysis is handled the close relation with client layer, make in this way that analysis protocol makes that the portability of code is not strong, when demand is changed, safeguard to become more and more difficult; 2, owing to data are not separated with operation, cause renewal, storage and the transmission of data to become loaded down with trivial details and redundant, caused problems such as entire system inefficiency thus.
In the discharging-directly station network management monitoring software design, protocol analysis is the core of these software systems, tackle the constantly demand of change of continuous client layer, must solve complicated network management monitoring protocol of repeater parsing, encapsulation and with the adaptive problem of client layer.
Summary of the invention
The objective of the invention is provides a kind of network management monitoring protocol of repeater adaptive parsing method in order to overcome the problem and shortage of above-mentioned existence, solved network management monitoring protocol of repeater resolving code transplantability bad with the problem autgmentability difference.
A kind of network management monitoring protocol of repeater adaptive parsing method, carry out according to the following steps: after the protocol class object receives the outside original data stream that transmits, elder generation's all external interfaces of initialization, if interface initialization mistake occurs and then error code is turned back to previous step, the laggard line data format conversion processing of interface initialization success; If Data Format Transform mistake occurs and then error code turned back to previous step, data shift the parsing of successfully laggard capable protocol frame command header; If the resolve command head mistake occurs and then error code turned back to previous step, carry out the agreement authentication process after the success of resolve command head; If the agreement authentication mistake occurs and then error code is turned back to previous step, the dissection process of the laggard line command body of agreement authentication success; If the resolve command body mistake occurs and then error code turned back to previous step, then carry out the Data Update of protocol object after the success of resolve command body and handle; Appearance is wrong to turn back to previous step with error code if protocol data upgrades, and protocol data upgrades and successfully then generates the protocol class output interface, resolves thereby finish protocol data, and original data stream is resolved and generated the protocol class object the most at last;
Client layer only needs the display interface of invocation protocol class to get final product when the display protocol data, and need not to understand the detailed information of protocol data, if increased the discharging-directly station network management monitoring parameter in the network management monitoring protocol of repeater, when resolving, import its parameter attribute into the protocol class object, the protocol class object can carry out adaptive analytic according to the attribute of parameter, the present invention has constructed a kind of adaptive parsing method, when making increase in network management monitoring protocol of repeater, deletion, modification monitoring parameter, the network management monitoring protocol of repeater resolving code need not to revise among the present invention.
Described Data Format Transform is handled and is to carry out the data inverible transform according to the requirement of network management monitoring protocol of repeater, for example some protocol requirement replaces to 0 x 5E and 0 x 5D with the 0 x 7E that removes frame head and postamble part in the protocol frame, and the Data Format Transform among the present invention strictly observes network management monitoring protocol of repeater and carries out.
Described resolve command header parsing is to carry out according to the requirement of network management monitoring protocol of repeater the analyzing and processing of protocol frame frame header divided data, because protocol frame frame header separation structure relative fixed, therefore in the protocol class object, be provided with protocol frame frame head structure member among the present invention, need during parsing to get final product according to the extraction that network management monitoring protocol of repeater requires to carry out data.
Described agreement authentication process is to carry out the agreement authentication process according to the requirement of network management monitoring protocol of repeater, whether the information of the protocol frame frame head part that judgement obtains when requiring to carry out the agreement authentication in network management monitoring protocol of repeater and the information of protocol requirement is consistent, if unanimity thinks that then authentication passes through, if inconsistently then judge failed authentication.
The dissection process of described command body is to carry out according to the requirement of network management monitoring protocol of repeater the dissection process of command body, the requirement of parsing in different network management monitoring protocol of repeater for the protocol frame command body is not necessarily identical, judge but all return, indicate the extraction of the data of carrying out follow-up monitoring parameter object by these according to some sign of protocol frame head part.
The Data Update of described protocol object is handled the data that are to extract from the original agreement frame data according to the requirement of network management monitoring protocol of repeater monitoring repeater parameter correspondence.
Described protocol encapsulation is handled the protocol data frame that is to use according to the requirement of network management monitoring protocol of repeater the network management monitoring protocol of repeater class object structure protocol compliant standard that has existed.
Protocol parameter among the present invention has taken into full account the otherness of different parameters when design, come out and be kept in the object of parameter self the various various boundary conditions of parameter are abstract, numerous and diverse parameter testing verification etc. is operated in self the method for parameter and realize, this kind method for designing has improved the independence of protocol analysis part, make that the portability of this part software is good and increase at network management monitoring protocol of repeater, deletion and energy adaptive analytic and need not to revise resolving code when revising the monitoring repeater parameter.
Description of drawings
Fig. 1 analysis protocol detailed data flow graph.
Fig. 2 tunneling detailed data flow graph.
Fig. 3 protocol analysis synoptic diagram.
Fig. 4 protocol encapsulation synoptic diagram.
Embodiment
A kind of network management monitoring protocol of repeater adaptive parsing method, carry out according to the following steps: after the protocol class object receives the outside original data stream that transmits, elder generation's all external interfaces of initialization, if interface initialization mistake occurs and then error code is turned back to previous step, the laggard line data format conversion processing of interface initialization success; If Data Format Transform mistake occurs and then error code turned back to previous step, data shift the parsing of successfully laggard capable protocol frame command header; If the resolve command head mistake occurs and then error code turned back to previous step, carry out the agreement authentication process after the success of resolve command head; If the agreement authentication mistake occurs and then error code is turned back to previous step, the dissection process of the laggard line command body of agreement authentication success; If the resolve command body mistake occurs and then error code turned back to previous step, then carry out the Data Update of protocol object after the success of resolve command body and handle; Appearance is wrong to turn back to previous step with error code if protocol data upgrades, and protocol data upgrades and successfully then generates the protocol class output interface, resolves thereby finish protocol data, and original data stream is resolved and generated the protocol class object the most at last;
Client layer only needs the display interface of invocation protocol class to get final product when the display protocol data, and need not to understand the detailed information of protocol data, if increased the discharging-directly station network management monitoring parameter in the network management monitoring protocol of repeater, when resolving, import its parameter attribute into the protocol class object, the protocol class object can carry out adaptive analytic according to the attribute of parameter, the present invention has constructed a kind of adaptive parsing method, when making increase in network management monitoring protocol of repeater, deletion, modification monitoring parameter, the network management monitoring protocol of repeater resolving code need not to revise among the present invention.
Described Data Format Transform is handled and is to carry out the data inverible transform according to the requirement of network management monitoring protocol of repeater, for example some protocol requirement replaces to 0 x 5E and 0 x 5D with the 0 x 7E that removes frame head and postamble part in the protocol frame, and the Data Format Transform among the present invention strictly observes network management monitoring protocol of repeater and carries out.
Described resolve command header parsing is to carry out according to the requirement of network management monitoring protocol of repeater the analyzing and processing of protocol frame frame header divided data, because protocol frame frame header separation structure relative fixed, therefore in the protocol class object, be provided with protocol frame frame head structure member among the present invention, need during parsing to get final product according to the extraction that network management monitoring protocol of repeater requires to carry out data.
Described agreement authentication process is to carry out the agreement authentication process according to the requirement of network management monitoring protocol of repeater, whether the information of the protocol frame frame head part that judgement obtains when requiring to carry out the agreement authentication in network management monitoring protocol of repeater and the information of protocol requirement is consistent, if unanimity thinks that then authentication passes through, if inconsistently then judge failed authentication.
The dissection process of described command body is to carry out according to the requirement of network management monitoring protocol of repeater the dissection process of command body, the requirement of parsing in different network management monitoring protocol of repeater for the protocol frame command body is not necessarily identical, judge but all return, indicate the extraction of the data of carrying out follow-up monitoring parameter object by these according to some sign of protocol frame head part.
The Data Update of described protocol object is handled the data that are to extract from the original agreement frame data according to the requirement of network management monitoring protocol of repeater monitoring repeater parameter correspondence.
Described protocol encapsulation is handled the protocol data frame that is to use according to the requirement of network management monitoring protocol of repeater the network management monitoring protocol of repeater class object structure protocol compliant standard that has existed.
In Fig. 1, the protocol class object receive outside transmit the original data stream of coming in after, elder generation's all external interfaces of initialization, the format conversion processing of the laggard line data of interface initialization success, carry out the parsing of protocol frame command header after the Data Format Transform success, command header is resolved successfully laggard capable agreement authentication process, the dissection process of the laggard line command body of agreement authentication process success, the data member that carries out protocol object after the dissection process success of command body upgrades to be handled, and the data member of protocol class object upgrades successfully back realization protocol class output interface.The protocol class object has not only comprised protocol monitor parameter member, a plurality of external interfaces have also been comprised, client layer only needs the display interface of invocation protocol class to get final product when the display protocol layer data, and need not to understand the detailed information of protocol data, if increase in the network management monitoring protocol of repeater or revised the discharging-directly station network management monitoring parameter, import its parameter attribute into the protocol class object during parsing, the protocol class object can carry out adaptive analytic according to the attribute of parameter, and this moment, the protocol analysis code need not to revise.Therefore client layer becomes easy to learn to calling of protocol class and need not to pay close attention to the realization and the change of protocol layer.
In Fig. 2, at first state a protocol class object, Data Update interface by protocol class imports more new data stream of monitoring parameter member into, the inspection of carrying out again after the data flow cache before the Data Update will be upgraded, check in the regular monitoring parameter object that is kept in advance in the protocol class, if then carrying out protocol frame after the Data Update inspection success encapsulates and realizes finally obtaining the protocol frame data flow by external passing interface.
In Fig. 3, initial data is flowed through after the parsing interface of protocol class resolves, and judges its analysis result, then returns error code if resolve failure, returns error code for analyzing reason usefulness, successfully then obtains the protocol class object if resolve.
In Fig. 4, the protocol class object is judged its encapsulated result after the protocol encapsulation interface encapsulation of protocol class, if error code is then returned in the encapsulation failure, returns error code for analyzing reason, successfully then obtains the protocol frame data flow if encapsulate.
In table 1, protocol class is by following member composition: the object member of monitoring parameter (can be basic data type in the agreement, the monitoring parameter class object of also abstract belt restraining), protocol class has two member methods the most basic: protocol analysis and protocol encapsulation, all operations all are encapsulated in these two member methods, protocol class also has four important interface: the one, and protocol frame data flow receiving interface, the one, protocol frame data flow output interface, the one, protocol class is to the coffret of client layer, and another is the Data Update interface of client layer to protocol class.These four interfaces with data respectively according to two kinds of forms: a kind of is that byte stream adds data length, another form is protocol frame to be carried out corresponding character string conversion generate a kind of new form, the data of transmitting in the agreement are directly come out with string representation, separated with decollator between monitoring parameter, identify (Unified coding when design) in the uniform data that adds monitoring parameter before the monitoring parameter, when client layer shows, reduced like this and protocol-dependent data transaction.
Table 1 protocol class is formed table.
<<metaclass〉〉 protocol class
+ monitoring parameter 1:unsigned char=0+monitoring parameter 2:float=0.0+monitoring parameter 3:wchar_t=0+monitoring parameter 4:short=0+monitoring parameter 5:unsigned long=0+monitoring parameter 6:unsigned char=0+monitoring parameter 7:bool=false
+ resolve (): bool+encapsulation (): bool<<signal _ protocol frame data flow receiving interface ()<<signal _ protocol frame data flow output interface ()<<signal _ protocol class to the coffret () of client layer<<signal _ client layer is to the Data Update interface () of protocol class

Claims (6)

1, a kind of network management monitoring protocol of repeater adaptive parsing method, carry out according to the following steps: after the protocol class object receives the outside original data stream that transmits, elder generation's all external interfaces of initialization, if interface initialization mistake occurs and then error code is turned back to previous step, the laggard line data format conversion processing of interface initialization success; If Data Format Transform mistake occurs and then error code turned back to previous step, data shift the parsing of successfully laggard capable protocol frame command header; If the resolve command head mistake occurs and then error code turned back to previous step, carry out the agreement authentication process after the success of resolve command head; If the agreement authentication mistake occurs and then error code is turned back to previous step, the dissection process of the laggard line command body of agreement authentication success; If the resolve command body mistake occurs and then error code turned back to previous step, then carry out the Data Update of protocol object after the success of resolve command body and handle; Appearance is wrong to turn back to previous step with error code if protocol data upgrades, and protocol data upgrades and successfully then generates the protocol class output interface, resolves thereby finish protocol data, and original data stream is resolved and generated the protocol class object the most at last.
2, network management monitoring protocol of repeater adaptive parsing method according to claim 1 is characterized in that: described Data Format Transform is handled and is to carry out the data inverible transform according to the requirement of network management monitoring protocol of repeater.
3, network management monitoring protocol of repeater adaptive parsing method according to claim 1, it is characterized in that: described command header is resolved the analyzing and processing that is to carry out according to the requirement of network management monitoring protocol of repeater protocol frame frame header divided data, because protocol frame frame header separation structure relative fixed, in the protocol class object, be provided with protocol frame frame head structure member, need during parsing to require to carry out the extraction of data according to network management monitoring protocol of repeater.
4, network management monitoring protocol of repeater adaptive parsing method according to claim 1, it is characterized in that: the dissection process of described command body indicates the extraction of the data of carrying out follow-up monitoring parameter object for to judge according to some sign of protocol frame head part by these.
5, network management monitoring protocol of repeater adaptive parsing method according to claim 1 is characterized in that: the Data Update of described protocol object is handled the data that are to extract from the original agreement frame data according to the requirement of network management monitoring protocol of repeater monitoring repeater parameter correspondence.
6, network management monitoring protocol of repeater adaptive parsing method according to claim 1 is characterized in that: described protocol encapsulation is handled the protocol data frame that is to use according to the requirement of network management monitoring protocol of repeater the network management monitoring protocol of repeater class object structure protocol compliant standard that has existed.
CN200810236652XA 2008-12-03 2008-12-03 Adaptive parsing method for network management monitoring protocol of repeater Active CN101420768B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810236652XA CN101420768B (en) 2008-12-03 2008-12-03 Adaptive parsing method for network management monitoring protocol of repeater

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810236652XA CN101420768B (en) 2008-12-03 2008-12-03 Adaptive parsing method for network management monitoring protocol of repeater

Publications (2)

Publication Number Publication Date
CN101420768A true CN101420768A (en) 2009-04-29
CN101420768B CN101420768B (en) 2010-11-03

Family

ID=40631295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810236652XA Active CN101420768B (en) 2008-12-03 2008-12-03 Adaptive parsing method for network management monitoring protocol of repeater

Country Status (1)

Country Link
CN (1) CN101420768B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114928662A (en) * 2022-04-22 2022-08-19 深圳市天陆海导航设备技术有限责任公司 Communication method for supporting multiple interfaces by user-defined protocol

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2872746Y (en) * 2005-05-12 2007-02-21 武汉虹信通信技术有限责任公司 Dry wire covering straight-amplification station indoor
CN1688117A (en) * 2005-05-12 2005-10-26 武汉虹信通信技术有限责任公司 Carrier dispatching mobile communication repeater

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114928662A (en) * 2022-04-22 2022-08-19 深圳市天陆海导航设备技术有限责任公司 Communication method for supporting multiple interfaces by user-defined protocol
CN114928662B (en) * 2022-04-22 2023-09-29 深圳市天陆海导航设备技术有限责任公司 Communication method for supporting multiple interfaces by custom protocol

Also Published As

Publication number Publication date
CN101420768B (en) 2010-11-03

Similar Documents

Publication Publication Date Title
CN102571732B (en) A kind of methods, devices and systems of processes sensor protocol information
CN105162673A (en) Data transmission interface and method
CN103428627A (en) Method for transferring data in internet of things, internet of things system and corresponding device
CN101651683B (en) Method for generating analysis source code of signaling message
CN101110029A (en) Hmi framework for extensible automation system engineering platforms
CN106375942B (en) Method and device for transmitting data information
CN105005471A (en) Method, device, server and system for modifying configuration parameters of BIOS
CN111176791B (en) Cross-virtual machine calling method based on multi-virtual machine blockchain platform
CN104679513A (en) Device driver architecture development method in intelligent terminal
CN104536746A (en) Software structure based on DLL
CN101795270A (en) Server control method based on serial port
CN109240835A (en) A kind of PLM system and ERP system interconnection method
US8683320B2 (en) Processing module, a device, and a method for processing of XML data
CN111683066A (en) Heterogeneous system integration method and device, computer equipment and storage medium
CN112306884A (en) Program test control and execution method and corresponding device, equipment and medium
CN103677788A (en) Reuse framework generating method, device and application system based on J2EE distributed architecture
CN102195895A (en) Message sending and receiving processing method and device
CN103176834A (en) Method and device for calling expansion interface
US8799350B2 (en) Method and device for establishing network communication compatibility of terminals
CN1973282A (en) System and method for managing a change to a cluster configuration
CN109861998A (en) A kind of plug-in type dynamic analysis system and method based on Big Dipper short message agreement
CN100505743C (en) Method for realizing general message interpreter
CN101312580B (en) Straight-forward station monitoring center and straight-forward station monitoring method
CN101420768B (en) Adaptive parsing method for network management monitoring protocol of repeater
CN110071839A (en) Support the CORBA communication device of digital signal processor

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
CP03 Change of name, title or address

Address after: 430205 Hubei city of Wuhan province Jiangxia Hidden Dragon Island Tan lake two Road No. 1

Patentee after: CITIC Mobile Communication Technology Co., Ltd

Address before: 430074 Wuhan, Hongshan Province District Road, Department of mail, No. 88 hospital

Patentee before: Wuhan Hongxin Telecommunication Technologies Co.,Ltd.

CP03 Change of name, title or address
CP01 Change in the name or title of a patent holder

Address after: 430205 No.1 tanhu 2nd Road, Canglong Island, Jiangxia District, Wuhan City, Hubei Province

Patentee after: CITIC Mobile Communication Technology Co.,Ltd.

Address before: 430205 No.1 tanhu 2nd Road, Canglong Island, Jiangxia District, Wuhan City, Hubei Province

Patentee before: CITIC Mobile Communication Technology Co., Ltd

CP01 Change in the name or title of a patent holder