CN106330519B - Method and system for communication of messages between network management systems - Google Patents

Method and system for communication of messages between network management systems Download PDF

Info

Publication number
CN106330519B
CN106330519B CN201510379818.3A CN201510379818A CN106330519B CN 106330519 B CN106330519 B CN 106330519B CN 201510379818 A CN201510379818 A CN 201510379818A CN 106330519 B CN106330519 B CN 106330519B
Authority
CN
China
Prior art keywords
message
network management
management system
configuration file
command
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.)
Active
Application number
CN201510379818.3A
Other languages
Chinese (zh)
Other versions
CN106330519A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510379818.3A priority Critical patent/CN106330519B/en
Priority to PCT/CN2016/081762 priority patent/WO2017000678A1/en
Publication of CN106330519A publication Critical patent/CN106330519A/en
Application granted granted Critical
Publication of CN106330519B publication Critical patent/CN106330519B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a system for message communication between network management systems, wherein the method comprises the following steps: reading a configuration file; when receiving a command for storing a configuration file, generating a corresponding message according to processing information corresponding to the command in the configuration file, converting the message into a message in accordance with a message format of a target network management system, and sending the converted message to the target network management system; and converting the result message returned by the target network management system into a message in accordance with the message format of the source network management system. The communication method and the communication system for different messages between network management systems provided by the invention can overcome the defects of message compatibility and efficiency in the prior art.

Description

Method and system for communication of messages between network management systems
Technical Field
the present invention relates to the field of computer communications, and in particular, to a method and system for communicating messages between network management systems.
background
different derivatives of the same software product have communication messages therein evolving continuously along with the evolution process of each derivative, but when the homologous products need to communicate with each other, the compatibility between the messages gradually becomes a serious problem, so that the communication between different products becomes very fragile and inefficient, which is particularly the case among network management products.
in actual application, a network management product usually uses an Abstract Syntax Notation (ASN) message for communication, and fields in the ASN message often change, but the change has the following characteristics: (1) most of the message fields are increased progressively, and deletion is seldom performed; (2) the coding and decoding protocol between messages usually does not change, and the change is only the message quantity; (3) the message name is rarely changed, even if the message name is changed, the message name is limited, and the character surface has traces which can be traced; (4) the most common and meaningful fields remain unchanged. When a higher-level network management system (such as a network operation and maintenance system) needs to access network management systems of different versions to obtain data (for example, to implement intelligent health check on these network management systems), the differences of system messages of different versions will increase rapidly as the versions of managed network management systems increase.
In order to solve the above problems, the current processing method is to prepare a copy of different message versions for different versions of network management systems, and copy the copies field by field in a manual coding mode when switching between different layers. However, the above processing method has the following problems: (1) there are many unnecessary copy actions; (2) problems easily occur in manual writing; (3) each difference message is solved one by one, which causes considerable workload; (4) if different sub-messages are embedded in the messages with the same name, the whole message needs to be subjected to field-by-field coding conversion operation, which is often difficult to find in practice, thereby causing error reporting during operation and even becoming a potential system hidden danger.
In view of the above, with the development of various systems, it is necessary to provide a new message processing mechanism to process the above existing message compatibility and efficiency disadvantages in a simple and easy-to-use manner.
Disclosure of Invention
In order to solve the above technical problems, the present invention provides a method and a system for communicating different messages between network management systems, which can solve the problems of message compatibility and efficiency in the prior art.
In order to achieve the technical purpose, the invention provides a method for communicating messages between network management systems, which comprises the following steps: reading a configuration file; when receiving a command stored in the configuration file, generating a corresponding message according to processing information corresponding to the command in the configuration file, converting the message into a message conforming to the message format of a target network management system, and sending the converted message to the target network management system; and converting the result message returned by the target network management system into a message in accordance with the message format of the source network management system.
further, before reading the configuration file, the method further includes: and setting a configuration file, wherein the configuration file comprises a command name and processing information corresponding to the command name.
further, the processing information corresponding to the command name includes: command codes, message names of input and output parameters, other auxiliary functions, concerned fields of the messages and processing modes of corresponding fields.
further, after the step of generating a corresponding message according to the processing information corresponding to the command in the configuration file when the command for storing the configuration file is received, and before the step of converting the message into a message conforming to the message format of the target network management system, the method further includes: and managing the life cycle of the message.
further, after the converting the result message returned by the target network management system into a message conforming to the message format of the source network management system, the method further includes: when returning the message in the form of big data, calling the packaged processing function to process the message returned to the source network management system.
The invention also provides a communication system of messages between network management systems, which comprises: the reading module is used for reading the configuration file; the first message processing module is used for generating a corresponding message according to the processing information corresponding to the command in the configuration file when receiving the command stored in the configuration file, converting the message into a message in accordance with the message format of a target network management system, and sending the converted message to the target network management system; and the second message processing module is used for converting the result message returned by the target network management system into a message conforming to the message format of the source network management system.
further, the above system further comprises: the device comprises a setting module and a configuration module, wherein the setting module is used for setting a configuration file, and the configuration file comprises a command name and processing information corresponding to the command name.
Further, the processing information corresponding to the command name includes: command codes, message names of input and output parameters, other auxiliary functions, concerned fields of the messages and processing modes of corresponding fields.
Further, the first message processing module is further configured to manage a life cycle of the message.
further, the second message processing module is further configured to, after converting a result message returned by the target network management system into a message in accordance with the message format of the source network management system, call the encapsulated processing function when returning the message in the form of big data, and process the message returned to the source network management system.
In the invention, a configuration file is read; when receiving a command for storing a configuration file, generating a corresponding message according to processing information corresponding to the command in the configuration file, converting the message into a message in accordance with a message format of a target network management system, and sending the converted message to the target network management system; and converting the result message returned by the target network management system into a message in accordance with the message format of the source network management system. Therefore, the processing performance, stability and safety of the communication messages between network management systems of different versions can reach higher levels, and the maintenance is convenient. The network operation and maintenance system does not need user intervention when accessing network management systems of different versions, automatically processes the compatibility of communication messages, and an implementer of the network operation and maintenance system can be compatible with message communication among different network management systems only through a configuration file, thereby greatly saving development, test, maintenance and extension costs. Moreover, the invention has self message content conversion, thus greatly reducing the workload brought by ASN message adaptation and conversion.
drawings
Fig. 1 is a flowchart of a method for communicating messages between network management systems according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for communicating messages between network management systems according to an embodiment of the present invention.
Detailed Description
the embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the embodiments described below are only for illustrating and explaining the present invention and are not intended to limit the present invention.
fig. 1 is a flowchart of a method for communicating messages between network management systems according to an embodiment of the present invention. As shown in fig. 1, the method for communicating messages between network management systems provided in this embodiment includes the following steps:
step 11: and reading the configuration file.
Before step 11, the method further comprises: and setting a configuration file, wherein the configuration file comprises a command name and processing information corresponding to the command name. Wherein, the processing information corresponding to the command name comprises: command codes, message names of input and output parameters, other auxiliary functions, concerned fields of the messages and processing modes of corresponding fields.
Specifically, the first part of the configuration file is the name of each process (i.e., the user-defined command name) and its corresponding command code. In this way, the returned message corresponding to the command code can be processed in different subsequent processing manners, in other words, the corresponding relationship between the read command code and the specific content of the message can be a one-to-many relationship. The second part of the configuration file is the message name of the input and output parameters and other auxiliary functions (e.g., filtering, screening, entering a database, etc.). By the configuration condition, the user can clearly describe the input and return of the message without encoding. The third part of the configuration file is the concerned fields of the message and the processing modes corresponding to each field, and the processing modes comprise retention, exclusion, filtration, conversion and the like.
Step 12: when receiving a command for storing a configuration file, generating a corresponding message according to processing information corresponding to the command in the configuration file, converting the message into a message in accordance with the message format of a target network management system, and sending the converted message to the target network management system.
Specifically, when the configuration file contains the processing information corresponding to the corresponding command, the processing information in the configuration file is executed, and the corresponding message is generated. For example, a message required by configuration is generated by using reflection, and the life cycle of the message is automatically managed by using a memory reference counter. When switching message fields, the difference of the content of the message fields between each network management system is processed, and the converted message is sent to a target network management system.
In addition, when the configuration file does not contain the processing information corresponding to the corresponding command, a default message processing mode matched with the target network management system is adopted to ensure the downward compatibility of the processing mode.
Step 13: and converting the result message returned by the target network management system into a message in accordance with the message format of the source network management system.
Specifically, after receiving the content information of the target network management system, the message content of the field of the network management system is reversely processed and converted into the content format information of the source network management system.
Wherein, after step 13, the method further comprises: and when the message is returned in a big data form, calling a packaged processing function to process the message returned to the source network management system. Specifically, when the data volume required to be inquired by the command is large, the transmission time and occupied resources of the message from the application layer network management system to the target network management system become non-negligible, at the moment, the processing function called by the application layer is packaged by adopting a packaging device, and the packaging device is called after the message is converted, so that the application layer network management system does not need to wait and copy the message returned by the target network management system.
fig. 2 is a flowchart of a method for communicating messages between network management systems according to an embodiment of the present invention. As shown in fig. 2, the method for communicating messages between network management systems provided in this embodiment is applied to a source network management system, and includes the following steps:
Step 101: reading a configuration file, wherein the configuration file comprises information such as a command name, a command code corresponding to the command name, a message name of an input/output parameter, other auxiliary functions (such as filtering), a message issuing mode and the like;
Step 102: judging whether the name of the received command is stored in a record of a configuration file;
Step 103: if no record exists in the configuration file, executing according to the original manual implementation mode so as to be compatible with the original compatible processing mode of message communication between network management systems;
Step 104: if the record of the command name exists in the configuration file, checking the validity of the configuration parameters (including the command name, the parameters and the action);
step 105: after passing the validity check, acquiring the message name and the issuing mode of the input and output parameters;
step 106: generating a corresponding message and managing the life cycle of the message;
Step 107: automatically converting according to the message format of the target network management system, and correcting the message content into the message of the target network management system;
Step 108: automatically judging whether a message needs to be returned in a big data form;
Step 109: if the message needs to be returned in a big data form, the source network management system transmits the converted message to the target network management system, and the target network management system returns a result message;
step 110: converting and correcting the content of the result message into a message format of a source network management system, and simultaneously executing other auxiliary functions such as message filtering in a configuration file;
Step 111: calling a processing method defined by a user, for example, calling a packaged processing function, and returning to step 109 if the message return is not completed;
Step 112: if the message does not need to be returned in a big data form, the source network management system transmits the converted message to the target network management system, and the target network management system returns a result message;
Step 113: converting and correcting the content of the result message into a message format of a source network management system, and simultaneously executing other auxiliary functions such as message filtering in a configuration file;
Step 114: and switching the result to a message pointer transmitted by a user, and realizing the result return without copying.
In addition, an embodiment of the present invention further provides a communication system for messages between network management systems, including: the reading module is used for reading the configuration file; the first message processing module is used for generating a corresponding message according to the processing information corresponding to the command in the configuration file when receiving the command stored in the configuration file, converting the message into a message in accordance with the message format of a target network management system, and sending the converted message to the target network management system; and the second message processing module is used for converting the result message returned by the target network management system into a message conforming to the message format of the source network management system.
In an embodiment, the system further includes a setting module, configured to set a configuration file, where the configuration file includes a command name and processing information corresponding to the command name. Wherein, the processing information corresponding to the command name comprises: command codes, message names of input and output parameters, other auxiliary functions, concerned fields of the messages and processing modes of corresponding fields.
In an embodiment, the first message processing module is further configured to manage a life cycle of the message.
In an embodiment, the second message processing module is further configured to, after converting the result message returned by the target network management system into a message conforming to the message format of the source network management system, call the encapsulated processing function when returning the message in the form of big data, and process the message returned to the source network management system.
Here, the system is applied to, for example, a source network management system. However, the present invention is not limited thereto. The system can also be independently arranged.
in addition, the specific processing flow of the system is the same as that of the method, and thus is not described herein again.
in summary, in the embodiment of the present invention, only configuration files are needed for message processing between network management systems, which omits the development and testing steps and facilitates maintenance; the message is decoupled from the command, namely the same command can be configured for different upper layer requirements, but different results are obtained by defining different names and processing modes by a user; the message is packaged in the network management system, so that the effect of transparent transmission is achieved, the efficiency is greatly improved, and the memory peak value is reduced; aiming at different network management systems, automatically converting message contents into a format which can be identified by a target network management system; the filtering and extra processing interfaces are added to the message, so that the efficiency is improved, and the expandability is greatly enhanced; moreover, various callback schemes are provided, and the iteration processing efficiency of the big data is greatly improved.
The foregoing shows and describes the general principles and broad features of the present invention and advantages thereof. The present invention is not limited to the above-described embodiments, which are described in the specification and illustrated only for illustrating the principle of the present invention, but various changes and modifications may be made within the scope of the present invention as claimed without departing from the spirit and scope of the present invention.

Claims (8)

1. A communication method of messages between network management systems is characterized by comprising the following steps:
Reading a configuration file;
When receiving a command stored in the configuration file, generating a corresponding message according to processing information corresponding to the command in the configuration file, converting the message into a message conforming to the message format of a target network management system, and sending the converted message to the target network management system;
Converting a result message returned by the target network management system into a message conforming to the message format of the source network management system;
Wherein, after converting the result message returned by the target network management system into a message conforming to the message format of the source network management system, the method further comprises the following steps:
when returning the message in the form of big data, calling the packaged processing function to process the message returned to the source network management system.
2. the method of claim 1, wherein prior to reading the configuration file, further comprising: and setting a configuration file, wherein the configuration file comprises a command name and processing information corresponding to the command name.
3. The method of claim 2, wherein the processing information corresponding to the command name comprises: command codes, message names of input and output parameters, other auxiliary functions, concerned fields of the messages and processing modes of corresponding fields.
4. The method according to claim 1, wherein after the step of generating the corresponding message according to the processing information corresponding to the command in the configuration file when receiving the command for storing the configuration file, and before the step of converting the message into a message conforming to a message format of a target network management system, the method further comprises:
And managing the life cycle of the message.
5. a communication system for messages between network management systems, comprising:
the reading module is used for reading the configuration file;
The first message processing module is used for generating a corresponding message according to the processing information corresponding to the command in the configuration file when receiving the command stored in the configuration file, converting the message into a message in accordance with the message format of a target network management system, and sending the converted message to the target network management system;
The second message processing module is used for converting a result message returned by the target network management system into a message conforming to the message format of the source network management system;
The second message processing module is further configured to, after converting a result message returned by the target network management system into a message conforming to the message format of the source network management system, call the encapsulated processing function when returning the message in the form of big data, and process the message returned to the source network management system.
6. the system of claim 5, further comprising:
The device comprises a setting module and a configuration module, wherein the setting module is used for setting a configuration file, and the configuration file comprises a command name and processing information corresponding to the command name.
7. The system of claim 6, wherein the processing information corresponding to the command name comprises:
command codes, message names of input and output parameters, other auxiliary functions, concerned fields of the messages and processing modes of corresponding fields.
8. the system of claim 5, wherein the first message processing module is further configured to manage a lifecycle of the message.
CN201510379818.3A 2015-07-01 2015-07-01 Method and system for communication of messages between network management systems Active CN106330519B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510379818.3A CN106330519B (en) 2015-07-01 2015-07-01 Method and system for communication of messages between network management systems
PCT/CN2016/081762 WO2017000678A1 (en) 2015-07-01 2016-05-11 Packet communication method and system between network management systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510379818.3A CN106330519B (en) 2015-07-01 2015-07-01 Method and system for communication of messages between network management systems

Publications (2)

Publication Number Publication Date
CN106330519A CN106330519A (en) 2017-01-11
CN106330519B true CN106330519B (en) 2019-12-17

Family

ID=57607744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510379818.3A Active CN106330519B (en) 2015-07-01 2015-07-01 Method and system for communication of messages between network management systems

Country Status (2)

Country Link
CN (1) CN106330519B (en)
WO (1) WO2017000678A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109729117B (en) * 2017-10-30 2020-10-27 华为技术有限公司 Message processing method, chip system and computer storage medium
CN113296745B (en) * 2021-05-21 2024-04-09 中国邮政储蓄银行股份有限公司 Data processing method and device, computer readable storage medium and processor
CN114398322B (en) * 2021-12-07 2023-10-03 中国船舶重工集团公司第七0七研究所 Network file management method suitable for underwater equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094104A (en) * 2007-07-30 2007-12-26 中兴通讯股份有限公司 Method and device for carrying out device management through proxy of security network management
WO2008052389A1 (en) * 2006-11-02 2008-05-08 Zte Corporation A method and system for realizing universal interfaces in the network management system
CN101325514A (en) * 2008-07-21 2008-12-17 中兴通讯股份有限公司 Communication network management adapter frame with configurable flow and implementing method
CN101335648A (en) * 2008-07-25 2008-12-31 中兴通讯股份有限公司 Automatic converting method for packets of different interfaces and apparatus thereof
WO2012106938A1 (en) * 2011-07-27 2012-08-16 华为技术有限公司 Method and apparatus for implementing service based on northbound interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008052389A1 (en) * 2006-11-02 2008-05-08 Zte Corporation A method and system for realizing universal interfaces in the network management system
CN101094104A (en) * 2007-07-30 2007-12-26 中兴通讯股份有限公司 Method and device for carrying out device management through proxy of security network management
CN101325514A (en) * 2008-07-21 2008-12-17 中兴通讯股份有限公司 Communication network management adapter frame with configurable flow and implementing method
CN101335648A (en) * 2008-07-25 2008-12-31 中兴通讯股份有限公司 Automatic converting method for packets of different interfaces and apparatus thereof
WO2012106938A1 (en) * 2011-07-27 2012-08-16 华为技术有限公司 Method and apparatus for implementing service based on northbound interface

Also Published As

Publication number Publication date
CN106330519A (en) 2017-01-11
WO2017000678A1 (en) 2017-01-05

Similar Documents

Publication Publication Date Title
JP5052568B2 (en) Method, system, and program for managing devices in a network
CN104133772B (en) Automatic test data generation method
CN111061678B (en) Service data processing method, device, computer equipment and storage medium
CN106330519B (en) Method and system for communication of messages between network management systems
CN108446105B (en) Lightweight API Server development framework and development method
CN109710238A (en) A kind of code generating method based on Spring Cloud
CN101795270A (en) Server control method based on serial port
CN111246406A (en) Short message sending method, system, storage medium and terminal equipment
CN111414261B (en) Cross-network calling method and device of distributed system and related components
US8997116B2 (en) Event logging application programming interface (API)
CN114047970A (en) Configuration method and system of AUTOSAR (automotive open system architecture) architecture software
CN112579049A (en) Customized software productization management method and device based on cloud platform
CN111078213A (en) Code generation method and code generation device
CN110990000B (en) Data request processing method, device and equipment of MVC pattern design model layer
CN111324645B (en) Block chain data processing method and device
CN115658788A (en) Real-time data query method and system for Internet of things
CN112148299A (en) Byte code object copying method, device, equipment and storage medium
CN109241158B (en) Data source definition method and device for rule management
CN114092211A (en) Processing method of accounting data, electronic device and readable storage medium
CN111190607B (en) Task plugin processing method and device, task scheduling server and storage medium
KR20210042407A (en) Application interface implementation method, device, equipment and media in the host platform layer
CN111723036A (en) Data processing method, related device and computer storage medium
CN113190264B (en) JPA-based automatic data version generation and application device and method
CN115378996B (en) Method, device, equipment and storage medium for data transmission between systems
KR20200081657A (en) Platform of Smart Factory

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant