CN106330519A - Communication method and system for messages among network management systems - Google Patents
Communication method and system for messages among network management systems Download PDFInfo
- Publication number
- CN106330519A CN106330519A CN201510379818.3A CN201510379818A CN106330519A CN 106330519 A CN106330519 A CN 106330519A CN 201510379818 A CN201510379818 A CN 201510379818A CN 106330519 A CN106330519 A CN 106330519A
- Authority
- CN
- China
- Prior art keywords
- message
- configuration file
- network management
- management system
- target network
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
Abstract
The invention discloses a communication method and system for messages among network management systems. The method comprises the following steps: reading a configuration file; when a command stored in the configuration file is received, generating a corresponding message according to processing information corresponding to the command in the configuration file, converting the message into a message conforming to a message format of a target network management system, and issuing the converted message to the target network management system; and converting a result message returned by the target network management system into a message conforming to a message format of a source network management system. Through adoption of the communication method and system for different messages among the network management systems, the defects of message compatibility and efficiency in the prior art can be overcome.
Description
Technical field
The present invention relates to computer communication field, particularly relate to the communication means of message between a kind of network management system
And system.
Background technology
The different spin-offs of same software product, along with respective evolution process, its internal communication report
The literary composition continuous evolution of meeting, but the when of needing communication between these homogenous prods, the compatibility between message
Property can be increasingly becoming a serious problem so that the communication between different product becomes the most fragile and low
Effect, between webmaster product, this situation is especially prominent.
In practice, webmaster product generally uses abstract syntax notation one (ASN, Abstract Syntax
Notation) message communicates, and the field among ASN message often changes, but its change have with
Lower feature: (1) message field (MFLD) is the most all incremented by, and seldom deletes;(2) solution is compiled between message
Code agreement generally will not change, the simply quantities of messages of change;(3) message name seldom changes,
Even if change also be limited, literal on have mark to follow;(4) the most frequently used and most significant field is protected
Hold constant.When higher level network management system (such as network O&M system) needs to access the net of different editions
When guard system obtains data (such as, it is achieved the intelligent health inspection to these network management systems), different
The diversity of edition system message can increase along with the version of the network management system of management and quickly increase.
For the problems referred to above, current processing mode is to be ready for portion for different editions network management system to have difference
The copy of message version of the opposite sex, and between different levels when of conversion, by hand coding form by
Field copies.But, above-mentioned processing mode there is problems in that (1) exists the most unnecessary copying
Shellfish action;(2) hand-coding easily goes wrong;(3) each difference message solves one by one, causes
Sizable workload;(4) if there being different sub-messages to be nested into, then in the message of same names
This message entirety needs to carry out word for word section transcoding operation, and actual being often difficult to finds, when causing operation
Report an error, more very become potential system hidden trouble.
In view of the above circumstances, along with the development of each system, it is desirable to provide a kind of new Message processing mechanism,
With form easy to use, process any of the above existing message compatibility and efficiency drawback.
Summary of the invention
In order to solve above-mentioned technical problem, the present invention provides the communication party of different messages between a kind of network management system
Method and system, it is possible to solve message compatibility and efficiency drawback present in prior art.
In order to reach above-mentioned technical purpose, the present invention provides the communication means of message between a kind of network management system,
Including: read configuration file;When receiving the order of described configuration file storage, according to described configuration
The process information that in file, this order is corresponding, generates corresponding message, is converted to meet mesh by described message
The message of mark network management system message format, and the message after conversion is handed down to target network guard system;By mesh
The result message that mark network management system returns is converted to meet the message of source network management system message format.
Further, before described reading configuration file, also include: configuration file is set, wherein, institute
State the process information that configuration file includes that command name, command name are corresponding.
Further, the process information that described command name is corresponding includes: command code, input/output argument
Message name, other miscellaneous functions, the concern field of message and the processing mode of respective field.
Further, described when receiving the order of described configuration file storage, according to described configuration literary composition
The process information that this order is corresponding in part, after generating corresponding message, described is converted to described message
Before meeting the message of target network guard system message format, also include: manage the life cycle of described message.
Further, the described result message by the return of target network guard system is converted to meet source network management system
After the message of message format, also include: when with big data mode returned packet, call the place of encapsulation
Reason function, processes the message returning to source network management system.
The present invention also provides for the communication system of message between a kind of network management system, including: read module, it is used for
Read configuration file;First message processing module (MPM), for when the order receiving the storage of described configuration file
Time, according to the process information that this order in described configuration file is corresponding, generate corresponding message, by described
Message is converted to meet the message of target network guard system message format, and the message after conversion is handed down to mesh
Mark network management system;Second message processing module (MPM), for the result message conversion returned by target network guard system
For meeting the message of source network management system message format.
Further, said system also includes: arrange module, is used for arranging configuration file, wherein, and institute
State the process information that configuration file includes that command name, command name are corresponding.
Further, the process information that described command name is corresponding includes: command code, input/output argument
Message name, other miscellaneous functions, the concern field of message and the processing mode of respective field.
Further, described first message processing module (MPM), it is additionally operable to manage the life cycle of described message.
Further, described second message processing module (MPM), it is additionally operable to the result returned by target network guard system
After message is converted to meet the message of the message format of source network management system, when returning report with big data mode
Wen Shi, calls the process function of encapsulation, processes the message returning to source network management system.
In the present invention, configuration file is read;When receiving the order of configuration file storage, according to joining
Put the process information that file this order interior is corresponding, generate corresponding message, be converted to meet by described message
The message of target network guard system message format, and the message after conversion is handed down to target network guard system;Will
The result message that target network guard system returns is converted to meet the message of source network management system message format.As
This so that between different editions network management system, communication message process performance, stability, safety all reach
Higher level, and, it is simple to safeguard.Network O&M system access different editions network management system time without
User intervention, automatically processes the compatibility of communication message, and the implementor of network O&M system only need to be by joining
Put the message communication that file is compatible with between different network management system, thus greatly save exploitation, survey
Try, safeguard and extend cost.And, the present invention carries message content conversion, greatly reduces ASN
Message is adaptive and changes the workload brought.
Accompanying drawing explanation
The flow chart of the communication means of message between the network management system that Fig. 1 provides for the embodiment of the present invention;
The flow process of the communication means of message between the network management system that Fig. 2 provides for the present invention one specific embodiment
Figure.
Detailed description of the invention
Below in conjunction with accompanying drawing, embodiments of the invention are described in detail, it will be appreciated that described below
Embodiment be merely to illustrate and explain the present invention, be not intended to limit the present invention.
The flow chart of the communication means of message between the network management system that Fig. 1 provides for the embodiment of the present invention.Such as figure
Shown in 1, between the network management system that the present embodiment provides, the communication means of message comprises the following steps:
Step 11: read configuration file.
Before step 11, the method also includes: arrange configuration file, and wherein, configuration file includes
The process information that command name, command name are corresponding.Wherein, the process information that command name is corresponding includes:
Command code, the message name of input/output argument, other miscellaneous functions, the concern field of message and phase
Answer the processing mode of field.
Specifically, configuration file Part I is that the title of every kind of processing mode is (that is, user-defined
Command name) and the command code of correspondence.So so that after the message that command code correspondence returns can be used
Continuous different processing mode processes, and in other words, makes reading order code corresponding with the particular content of message
Relation can become the relation of one-to-many.Configuration file Part II is the message name of input/output argument
And other miscellaneous functions (such as, filter, screen, enter database).By this configuration condition,
Make user can be clearly described input and the return of message by coding.Configuration file the 3rd
Part is concern field and the processing mode of corresponding each field of message, and above-mentioned processing mode is such as wrapped
Include reservation, get rid of, filter, conversion etc..
Step 12: when receiving the order of configuration file storage, right according to this order in configuration file
The process information answered, generates corresponding message, is converted to described message meet target network guard system message
The message of form, and the message after conversion is handed down to target network guard system.
Specifically, when configuration file comprises process information corresponding to the corresponding command, configuration file is performed
Interior process information, generates corresponding message.Such as, use reflection to generate the required message of configuration, and lead to
Cross internal memory reference counter the life cycle of message is managed automatically.Wherein, in switching message field (MFLD)
While, process the diversity in the content of message field (MFLD) between each network management system, and by after conversion
Message is handed down to target network guard system.
It addition, when configuration file does not comprise process information corresponding to the corresponding command, use and target network
The Message processing mode of the acquiescence of guard system coupling, to ensure the downward compatibility of processing mode.
Step 13: be converted to meet source network management system message by the result message that target network guard system returns
The message of form.
Specifically, when after the content information receiving target network guard system, reverse process network management system field
Message content, be converted to the content format information of source network management system.
Wherein, after step 13, the method also includes: when described message is for return with big data mode
During the message returned, call the process function of encapsulation, the message returning to source network management system is processed.
Specifically, when the data volume that order needs inquiry is bigger, message is from application layer network management system to target
Passing time between network management system and take resource and become can not ignore, now, uses the wrapper should
The process function encapsulation called with layer, calls this wrapper after message is changed, makes application layer network management system
Without waiting for the message with duplication target network guard system passback.
The flow process of the communication means of message between the network management system that Fig. 2 provides for the present invention one specific embodiment
Figure.As in figure 2 it is shown, the communication means of message between the network management system of the present embodiment offer, it is applied to source net
Guard system, comprises the following steps:
Step 101: reading configuration file, wherein, configuration file such as includes command name, command name
Claim the command code of correspondence, the message name of input/output argument, other miscellaneous functions (as filtered), report
Literary composition issues the information such as mode;
Step 102: judge in the record whether command name received exists configuration file;
Step 103: if no record in configuration file, then perform according to original manual implementation, to hold concurrently
Hold the compatible processing mode of message communication between original network management system;
Step 104: if there being the record of this command name in configuration file, then check that configuration parameter (includes
Command name, parameter and action) legitimacy;
Step 105: after validity checking, obtains the message name of input/output argument and lower originating party
Formula;
Step 106: generate corresponding message, and carry out the life cycle management of message;
Step 107: change automatically according to target network guard system message format, and revise message content
For target network guard system message;
Step 108: whether automatic decision need to be with big data mode returned packet;
Step 109: if the message after conversion need to be issued with big data mode returned packet, source network management system
To target network guard system, target network guard system returns result message;
Step 110: change and correction result message content is source network management system message format, perform simultaneously
Other miscellaneous functions such as packet filtering in configuration file;
Step 111: call user-defined processing method, such as, call the process function of encapsulation, if
Message returns and remains unfulfilled, and returns step 109;
Step 112: if without with big data mode returned packet, source network management system issues the report after conversion
Target network guard system given in literary composition, and target network guard system returns result message;
Step 113: change and correction result message content is source network management system message format, perform simultaneously
Other miscellaneous functions such as packet filtering in configuration file;
Step 114: result is switched to the message pointer of user's transmission, it is achieved return result without copy.
Additionally, the embodiment of the present invention also provides for the communication system of message between a kind of network management system, including: read
Delivery block, is used for reading configuration file;First message processing module (MPM), for when receiving described configuration literary composition
During the order that part stores, according to the process information that this order in described configuration file is corresponding, generate correspondence
Message, is converted to meet the message of target network guard system message format by described message, and by after conversion
Message is handed down to target network guard system;Second message processing module (MPM), for return target network guard system
Result message is converted to meet the message of source network management system message format.
In an embodiment, this system also includes arranging module, is used for arranging configuration file, wherein, and institute
State the process information that configuration file includes that command name, command name are corresponding.Wherein, command name is corresponding
Process information include: command code, the message name of input/output argument, other miscellaneous functions, message
Concern field and the processing mode of respective field.
In an embodiment, the first message processing module (MPM), it is additionally operable to manage the life cycle of message.
In an embodiment, the second message processing module (MPM), it is additionally operable to the result returned by target network guard system
After message is converted to meet the message of the message format of source network management system, when returning report with big data mode
Wen Shi, calls the process function of encapsulation, processes the message returning to source network management system.
In this, this system is such as applied to source network management system.But, this is not limited by the present invention.Should
System also can be independently arranged.
Additionally, the concrete handling process of said system is with described in said method, therefore repeat no more in this.
In sum, in embodiments of the present invention, between network management system, Message processing only needs configuration file i.e.
Can, eliminate exploitation testing procedure, it is simple to safeguard;Message is decoupling with order, the most not upper layer demand
Configurable identical order, but define different titles by user and processing mode obtains different knots
Really;Message by encapsulation, reaches the effect of transparent transmission in network management system, efficiency is greatly improved and reduces internal memory
Peak value;For different network management systems, automatically change message content into the discernible form of target network guard system;
Message adds filtration and extra process interface, not only improves efficiency, the most greatly enhances extensibility;And
And, it is provided that multiple readjustment scheme, it is greatly improved the iterative processing efficiency to big data.
The ultimate principle of the present invention and principal character and advantages of the present invention have more than been shown and described.This
Bright it is not restricted to the described embodiments, the simply explanation present invention's described in above-described embodiment and description
Principle, without departing from the spirit and scope of the present invention, the present invention also has various changes and modifications,
These changes and improvements both fall within scope of the claimed invention.
Claims (10)
1. the communication means of message between a network management system, it is characterised in that including:
Read configuration file;
When receiving the order of described configuration file storage, corresponding according to this order in described configuration file
Process information, generate corresponding message, be converted to described message meet target network guard system message lattice
The message of formula, and the message after conversion is handed down to target network guard system;
The result message that target network guard system returns is converted to meet the report of source network management system message format
Literary composition.
2. the method for claim 1, it is characterised in that before described reading configuration file,
Also including: arrange configuration file, wherein, described configuration file includes that command name, command name are corresponding
Process information.
3. method as claimed in claim 2, it is characterised in that the process that described command name is corresponding
Information includes: command code, the message name of input/output argument, other miscellaneous functions, the concern of message
Field and the processing mode of respective field.
4. the method for claim 1, it is characterised in that described when receiving described configuration literary composition
During the order that part stores, according to the process information that this order in described configuration file is corresponding, generate correspondence
After message, before the described message that described message is converted to meet target network guard system message format,
Also include: manage the life cycle of described message.
5. the method for claim 1, it is characterised in that described by the return of target network guard system
Result message be converted to meet source network management system message format message after, also include: when with big number
During according to form returned packet, call the process function of encapsulation, the message returning to source network management system is carried out
Process.
6. the communication system of message between a network management system, it is characterised in that including:
Read module, is used for reading configuration file;
First message processing module (MPM), for when receiving the order of described configuration file storage, according to institute
State the process information that configuration file this order interior is corresponding, generate corresponding message, described message is converted to
Meet the message of target network guard system message format, and the message after conversion is handed down to target network piping
System;
Second message processing module (MPM), for being converted to meet source by the result message that target network guard system returns
The message of network management system message format.
7. system as claimed in claim 6, it is characterised in that also include: module is set, be used for
Arranging configuration file, wherein, described configuration file includes the process letter that command name, command name are corresponding
Breath.
8. system as claimed in claim 7, it is characterised in that the process that described command name is corresponding
Information includes: command code, the message name of input/output argument, other miscellaneous functions, the concern of message
Field and the processing mode of respective field.
9. system as claimed in claim 6, it is characterised in that described first message processing module (MPM),
It is additionally operable to manage the life cycle of described message.
10. system as claimed in claim 6, it is characterised in that described second message processing module (MPM),
It is additionally operable to be converted to meet by the result message that target network guard system returns the message format of source network management system
Message after, when with big data mode returned packet, call the process function of encapsulation, to returning to
The message of source network management system processes.
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 true CN106330519A (en) | 2017-01-11 |
CN106330519B 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) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109729117A (en) * | 2017-10-30 | 2019-05-07 | 华为技术有限公司 | A kind of method of Message processing, chip system and computer storage medium |
CN113296745A (en) * | 2021-05-21 | 2021-08-24 | 中国邮政储蓄银行股份有限公司 | Data processing method and device, computer readable storage medium and processor |
CN114398322A (en) * | 2021-12-07 | 2022-04-26 | 中国船舶重工集团公司第七0七研究所 | Network file management method suitable for underwater equipment |
Citations (5)
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 |
-
2015
- 2015-07-01 CN CN201510379818.3A patent/CN106330519B/en active Active
-
2016
- 2016-05-11 WO PCT/CN2016/081762 patent/WO2017000678A1/en active Application Filing
Patent Citations (5)
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 |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109729117A (en) * | 2017-10-30 | 2019-05-07 | 华为技术有限公司 | A kind of method of Message processing, chip system and computer storage medium |
CN109729117B (en) * | 2017-10-30 | 2020-10-27 | 华为技术有限公司 | Message processing method, chip system and computer storage medium |
CN113296745A (en) * | 2021-05-21 | 2021-08-24 | 中国邮政储蓄银行股份有限公司 | Data processing method and device, computer readable storage medium and processor |
CN113296745B (en) * | 2021-05-21 | 2024-04-09 | 中国邮政储蓄银行股份有限公司 | Data processing method and device, computer readable storage medium and processor |
CN114398322A (en) * | 2021-12-07 | 2022-04-26 | 中国船舶重工集团公司第七0七研究所 | Network file management method suitable for underwater equipment |
CN114398322B (en) * | 2021-12-07 | 2023-10-03 | 中国船舶重工集团公司第七0七研究所 | Network file management method suitable for underwater equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2017000678A1 (en) | 2017-01-05 |
CN106330519B (en) | 2019-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10831826B2 (en) | Validation of schema and schema conformance verification | |
US8615580B2 (en) | Message publication feedback in a publish/subscribe messaging environment | |
US20120215872A1 (en) | Criteria-based message publication control and feedback in a publish/subscribe messaging environment | |
CN111258559B (en) | Hybrid application multi-level page routing skip method based on fact Native | |
US20130117319A1 (en) | Objects in a storage environment for connected applications | |
TW201520813A (en) | Anti-malware mobile content data management apparatus and method | |
US20120215873A1 (en) | Failure-controlled message publication and feedback in a publish/subscribe messaging environment | |
CN106330519A (en) | Communication method and system for messages among network management systems | |
CN101674295A (en) | Method, device and system for processing service conflict | |
CN101631041A (en) | Service configuration processing method and configuration relation management module | |
CN101667156A (en) | Visual service flow debugging method and system | |
CN101697119A (en) | JavaBean class leading-in form based realization method of replacing traditional URL access address | |
CN101951604A (en) | Value added service processing method and device | |
CN105577480A (en) | Monitoring method and device of network connection performances | |
Ural et al. | Regression test suite selection using dependence analysis | |
CN103646015B (en) | Transmission, the method and system for receiving and transmitting XML message | |
KR20160138498A (en) | System and method for supporting data type conversion in a heterogeneous computing environment | |
KR101888131B1 (en) | Method for Performing Real-Time Changed Data Publish Service of DDS-DBMS Integration Tool | |
CN102707956B (en) | Probabilistic method is returned results for the treatment of trigger | |
CN111652580B (en) | Method and device for processing data of nodes | |
CN111143450B (en) | Method and device for importing data | |
CN112148299A (en) | Byte code object copying method, device, equipment and storage medium | |
CN105260193A (en) | Self healing frame and healing method of large software | |
CN102902541B (en) | The method and apparatus of capturing system message on ios platform | |
CN102486747B (en) | Statistical method for conventional functions of software system and engineering |
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 |