WO2015154444A1 - Network operation and maintenance system and method for same to be compatible with change in packet of network management system - Google Patents

Network operation and maintenance system and method for same to be compatible with change in packet of network management system Download PDF

Info

Publication number
WO2015154444A1
WO2015154444A1 PCT/CN2014/090072 CN2014090072W WO2015154444A1 WO 2015154444 A1 WO2015154444 A1 WO 2015154444A1 CN 2014090072 W CN2014090072 W CN 2014090072W WO 2015154444 A1 WO2015154444 A1 WO 2015154444A1
Authority
WO
WIPO (PCT)
Prior art keywords
asn
packet
network management
management system
standard
Prior art date
Application number
PCT/CN2014/090072
Other languages
French (fr)
Chinese (zh)
Inventor
李汉敏
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015154444A1 publication Critical patent/WO2015154444A1/en

Links

Images

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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a network operation and maintenance system and a method for changing a message of a compatible network management system.
  • the network management system may have different versions in different places, and the network operation and maintenance system (higher-level network management system) needs to access these different versions of the network management system to obtain data (to achieve intelligent health check on these network management systems).
  • ASN Abstract Syntax Notation
  • the ASN packet change problem specifically, a certain function module of the network management system is implemented in the A version with the message a1, in the B version.
  • a field is added, and both the A and B versions are used, and the network operation and maintenance system T needs to access the versions A and B to acquire data.
  • the usual treatment is:
  • Two versions of T are provided, corresponding to two versions of A and B respectively;
  • T only provides one version, but there are two sets of ASN packets. Before accessing A and B, there are different options for users to choose. Users need to specify whether they are currently accessing version A or version B, thus confirming the corresponding options. T loads different ASN packets according to user options. The two ASN packets are the same except for the a1 packet.
  • the above method 1 can solve the problem, providing multiple versions of T makes maintenance troublesome.
  • the method 2 has only one version T, two sets of ASN packets are required. Except for the message a1, other packets are duplicated, resulting in a large amount of redundancy.
  • the operation requires the user to confirm whether the access is A version or B version. It is troublesome. Once the network management system version is more, how to confirm the version will be a very troublesome thing. Once the error is confirmed, the network management system may be connected. Failure, etc.
  • the embodiment of the invention provides a network operation and maintenance system and a method for adapting the network management system to change packets, which is used to automatically adapt to packet differences between different versions of the network management system.
  • the present invention provides a method for the network operation and maintenance system to be compatible with the network management system packet change, and communicates with the network management system through the ASN message, including:
  • the first ASN packet is created, and the same field value of the first ASN packet and the corresponding standard ASN packet are processed according to the same processing procedure as the standard ASN packet.
  • the method as described above preferably further comprises:
  • mapping relationship between the version of the storage network management system, the identifier of the ASN packet corresponding to the version and the standard ASN packet, and the identifier of the standard ASN packet;
  • the identifier of the first ASN packet that is different from the corresponding standard ASN packet in the network management system is:
  • the method as described above preferably further comprises:
  • the standard ASN packet is processed.
  • the first ASN packet is created, and the same field value of the first ASN packet and the corresponding standard ASN packet is processed according to the same processing flow as the standard ASN packet. for:
  • the first ASN packet is created, and the first ASN packet is decoded, and the value of the same field in the first ASN packet corresponding to the corresponding standard ASN packet is copied and copied to the corresponding field in the corresponding standard ASN packet.
  • Standard ASN messages are processed.
  • the present invention further provides a network operation and maintenance system, including a receiving module, configured to receive an ASN message sent by the network management system, and further includes:
  • the version obtaining module is configured to obtain the version of the network management system after receiving the ASN packet sent by the network management system.
  • the identifier obtaining module is configured to obtain, according to the version, an identifier of the first ASN packet that has a different field from the corresponding standard ASN packet of the network management system;
  • the first processing module is configured to create a first ASN packet, and the same field value of the first ASN packet and the corresponding standard ASN packet is processed according to the same processing procedure as the standard ASN packet.
  • the network operation and maintenance system as described above preferably further includes:
  • a storage module configured to store a mapping between a version of the network management system, an identifier of the ASN packet corresponding to the version and having a different field from the standard ASN packet, and an identifier of the standard ASN packet;
  • the identifier obtaining module is configured to query, according to the version, whether the mapping relationship includes the identifier of the standard ASN packet corresponding to the first ASN packet, and if yes, obtain the first ASN packet from the mapping relationship. logo.
  • the network operation and maintenance system as described above preferably further includes:
  • the second processing module is configured to: if the mapping relationship does not include the identifier of the standard ASN packet corresponding to the second ASN packet of the network management system, create a standard ASN packet corresponding to the second ASN packet, where The standard ASN packet is processed to obtain a processed second ASN packet.
  • the first processing module is configured to create a first ASN packet, and decode the first ASN packet, and copy the first ASN packet with the corresponding standard ASN packet. The value of the same field is copied to the corresponding field in the corresponding standard ASN packet, and the corresponding standard ASN packet is processed.
  • the network management system after receiving the ASN packet sent by the network management system, obtaining the version of the network management system, and then acquiring, according to the version, the first field of the network management system that has a different field from the corresponding standard ASN packet.
  • the ASN packet is created, and the first ASN packet is created, and the same field value of the first ASN packet and the corresponding standard ASN packet are processed according to the same processing procedure as the standard ASN packet. Therefore, only one system can be automatically compatible with the packet difference of the network management system of different versions.
  • the network management system When the network management system is connected to the network management system, the user can automatically complete the connection and obtain the corresponding data, and the technical solution of the present invention does not need to change the processing of the ASN message.
  • the application layer coding overcomes the defects in the prior art that the system is not easy to maintain, requires manual intervention, and has a large amount of redundant messages.
  • FIG. 1 is a flow chart 1 showing a method for changing a packet of a network operation and maintenance system compatible with a network management system according to an embodiment of the present invention
  • FIG. 2 is a second flowchart of a method for changing a packet of a network operation and maintenance system compatible with a network management system according to an embodiment of the present invention
  • FIG. 3 is a block diagram showing the composition of a network operation and maintenance system in an embodiment of the present invention.
  • the present invention provides a network operation and maintenance system and a method for changing the packet of the network management system.
  • the version of the network management system After receiving the ASN message sent by the network management system, the version of the network management system is obtained.
  • the identifier of the first ASN packet of the network management system that has a different field from the corresponding standard ASN packet is obtained, and the first ASN packet is created, and the first ASN packet and the corresponding standard are created.
  • the same field value of the ASN packet is processed according to the same processing procedure as the standard ASN packet. Therefore, only one system can be automatically compatible with the packet difference of the network management system of different versions.
  • the application layer coding overcomes the defects in the prior art that the system is not easy to maintain, requires manual intervention, and has a large amount of redundant messages.
  • a method for changing a packet of a network operation and maintenance system compatible with a network management system is provided in the embodiment of the present invention. After receiving an ASN message sent by the network management system, the method includes:
  • Step 100 Obtain a version of the network management system.
  • Step 101 Obtain, according to the version, an identifier of the first ASN packet of the network management system that has a different field from the corresponding standard ASN packet.
  • Step 102 Create a first ASN packet, and process the same field value of the first ASN packet and the corresponding standard ASN packet according to the same processing procedure as the standard ASN packet.
  • the invention can be compatible with the packet difference of the network management system of different versions. After receiving the ASN packet sent by the network management system, the version of the network management system is automatically obtained, and no manual intervention is required. When the ASN packet used by the network management system changes, the same field value of the ASN packet and the corresponding standard ASN packet are processed according to the same processing procedure as the standard ASN packet, and the application layer is not added. Encoding does not cause a lot of redundancy in the message. At the same time, only one operation and maintenance system is needed to maintain different versions of the network management system to facilitate system maintenance.
  • the first ASN packet identifier may be represented by a
  • the corresponding standard message identifier ASN may be represented by a
  • the first ASN message a 1 may be increased or decreased with respect to the standard ASN message a.
  • the standard ASN message a includes two fields a 00 and a 01
  • the first ASN message a 1 includes a 00 , a 01 , a 02 three fields.
  • the version of the network management system, the version corresponding to the version, and the standard ASN may be configured in advance on the network operation and maintenance system side.
  • the packet has a mapping relationship between the identifier of the ASN packet and the identifier of the standard ASN packet. That is, as shown in FIG. 2, the method for adapting the network operation and maintenance system to the network management system packet change in the embodiment of the present invention further includes:
  • Step 200 The mapping between the version of the storage network management system, the identifier of the ASN packet corresponding to the version and the standard ASN packet, and the identifier of the standard ASN packet.
  • the mapping relationship includes Aaa 1 .
  • the step 101 of acquiring the identifier of the first ASN packet of the network management system that has a different field from the corresponding standard ASN packet is specifically:
  • mapping relationship includes the identifier of the standard ASN packet corresponding to the first ASN packet, and if yes, obtaining the identifier of the first ASN packet from the mapping relationship.
  • the technical solution of the present invention is that the first ASN packet name of the different version of the network management system is different from the corresponding standard ASN packet.
  • the specific ASN packet and the standard ASN packet have different fields, for example, the first ASN.
  • the ASN packet of the network management system includes not only the first ASN packet having a different field from the corresponding standard ASN packet, but also the second ASN having the exact same field as the corresponding standard ASN packet. Message.
  • the method for adapting the operation and maintenance system to the network management system packet change includes:
  • the standard ASN packet is processed.
  • the processing of the second ASN packet of the network management system can be completed by the process of processing the corresponding standard ASN packet, and the packet redundancy is not caused.
  • step 102 ASN creating a first packet of a same as the corresponding standard message ASN ASN first packet field values a, be processed in accordance with the same standard ASN message processing flow , Specifically:
  • the first ASN packet is created, and the first ASN packet is decoded, and the value of the same field in the first ASN packet corresponding to the corresponding standard ASN packet is copied and copied to the corresponding field in the corresponding standard ASN packet.
  • Standard ASN messages are processed.
  • the first ASN message a 1 includes three fields a 00 , a 01 , and a 02 .
  • ASN first copy packet in a 1 a 00, 01 a value of two fields the packet is copied to a standard ASN in a 00, a 01 two fields, is a recursive process copies, until a copy of the required layers The final copy of the two fields 00 and a 01 is completed.
  • the standard ASN message a is then processed, and the a 02 field is not processed. Since it is only a copy of the value, there will be no duplication and no redundancy of the message.
  • a first packet identifier ASN used is a 1, the corresponding standard message ASN identified as a, the method specifically described in the embodiment of the present invention, comprising:
  • the first packet ASN step S1 the network storage system version A, version A with the corresponding standard and ASN have different packet identification field mapping relationship between a standard and an identifier of a packet ASN, specifically :Aaa 1 ;
  • Step S2 After receiving the ASN packet sent by the network management system, obtain the version A of the network management system;
  • Step S3 Querying, according to the version A, whether the mapping relationship includes the identifier a of the standard ASN packet corresponding to the received ASN packet, and if yes, obtaining the identifier a 1 of the first ASN packet from the mapping relationship, Step S4 is performed, if no, step S5 is performed;
  • Step S4 Create a first ASN packet, and decode the first ASN packet, and copy the value of the same field in the first ASN packet with the corresponding standard ASN packet, and copy the value to the corresponding field in the corresponding standard ASN packet. And processing the corresponding standard ASN packet to obtain the processed first ASN packet;
  • Step S5 Processing the standard ASN packet.
  • the first ASN packet having a different field from the corresponding standard ASN packet a in the embodiment of the present invention is not limited to one.
  • each The first ASN message corresponding to the version is also different, and is represented by a 1 , a 2 , and a 3 respectively .
  • the stored mapping relationship includes: Aaa 1 , Baa 2 , Caa 3 .
  • the standard ASN packet corresponding to the first ASN packet may also include multiple, for example, the standard ASN packet c and the standard ASN packet d.
  • the first ASN message corresponding to each version is also different, using c 1 , c 2 , c 3 , d 1 , d 2 , d 3 respectively .
  • the stored mapping relationship also includes: Acc 1 , Bcc 2 , Cca 3 , Add 1 , Bdd 2 , Cdd 3 .
  • the processing procedure for the first ASN messages a 2 , a 3 , c 1 , c 2 , c 3 , d 1 , d 2 , d 3 is the same as the first ASN message a 1 .
  • the present invention further provides a network operation and maintenance system, including a receiving module 40, a version obtaining module 10, an identifier obtaining module 20, and a first processing module 30.
  • the receiving module 40 is configured to receive an ASN message sent by the network management system.
  • the version obtaining module 10 is configured to obtain the version of the network management system after receiving the ASN message sent by the network management system.
  • the identifier obtaining module 20 is configured to obtain, according to the version, an identifier of the first ASN packet of the network management system that has a different field from the corresponding standard ASN packet.
  • the first processing module 30 is configured to create a first ASN packet, and the same field value of the first ASN packet and the corresponding standard ASN packet is processed according to the same processing procedure as the standard ASN packet.
  • the network operation and maintenance system of the present invention automatically acquires the version of the network management system without manual intervention.
  • the ASN packet used by the network management system changes, the same field value of the ASN packet and the corresponding standard ASN packet are processed according to the same processing procedure as the standard ASN packet, and the application layer is not added. Encoding does not cause a lot of redundancy in the message.
  • only one operation and maintenance system is needed to maintain different versions of the network management system to facilitate system maintenance.
  • the first ASN packet identifier may be represented by a
  • the corresponding standard message identifier ASN may be represented by a
  • the first ASN message a 1 may be increased or decreased with respect to the standard ASN message a.
  • the standard ASN message a includes two fields a 00 and a 01
  • the first ASN message a 1 includes a 00 , a 01 , a 02 three fields.
  • the different versions of the network management system and the versions corresponding to the network management system may be configured in advance on the network operation and maintenance system side.
  • the mapping between the identifier of the ASN packet and the identifier of the standard ASN packet is different from the standard ASN packet. That is, the network management operation and maintenance system in the embodiment of the present invention further includes:
  • the storage module 50 is configured to store a mapping between the version of the network management system, the identifier of the ASN packet corresponding to the version and the identifier of the standard ASN packet, and the identifier of the standard ASN packet.
  • the mapping relationship includes Aaa 1 .
  • the identifier obtaining module 20 is configured to query, according to the version of the network management system, whether the mapping relationship includes the identifier of the standard ASN packet corresponding to the first ASN packet, and if yes, obtain the first ASN report from the mapping relationship.
  • the logo of the text is configured to query, according to the version of the network management system, whether the mapping relationship includes the identifier of the standard ASN packet corresponding to the first ASN packet, and if yes, obtain the first ASN report from the mapping relationship.
  • the logo of the text is configured to query, according to the version of the network management system, whether the mapping relationship includes the identifier of the standard ASN packet corresponding to the first ASN packet, and if yes, obtain the first ASN report from the mapping relationship.
  • the logo of the text is configured to query, according to the version of the network management system, whether the mapping relationship includes the identifier of the standard ASN packet corresponding to the first ASN packet, and if yes, obtain the first ASN report from the mapping relationship.
  • the technical solution of the present invention is that the first ASN packet name of the different version of the network management system is different from the corresponding standard ASN packet.
  • the specific ASN packet and the standard ASN packet have different fields, for example, the first ASN.
  • the ASN packet of the network management system includes not only the first ASN packet having a different field from the corresponding standard ASN packet a, but also the second field having the exact same field as the corresponding standard ASN packet.
  • ASN message includes not only the first ASN packet having a different field from the corresponding standard ASN packet a, but also the second field having the exact same field as the corresponding standard ASN packet.
  • the network management system of the different version includes the second ASN packet with the same identifier as the corresponding standard ASN packet, specifically, the second ASN packet and the standard ASN packet have identical fields
  • the network in the embodiment of the present invention also includes:
  • the second processing module 60 is configured to process the standard ASN packet if the mapping does not include the identifier of the standard ASN packet corresponding to the second ASN packet of the network management system.
  • the second processing module 60 is configured to process the second ASN packet by processing the standard ASN packet, and does not cause redundancy of the packet.
  • the first processing module 30 to create a first packet after an ASN, and the ASN first packet decoding a 1, a copy of the first packet in ASN 1 and ASN packets corresponding standard The value of the same field in the text a is copied to the corresponding field in the corresponding standard ASN packet a, and the corresponding standard ASN packet a is processed to obtain the processed first ASN packet a 1 .
  • the first ASN message a 1 includes three fields a 00 , a 01 , and a 02 .
  • ASN first copy packet in a 1 a 00, 01 a value of two fields the packet is copied to a standard ASN in a 00, a 01 two fields, is a recursive process copies, until a copy of the required layers The final copy of the two fields 00 and a 01 is completed.
  • the standard ASN message a is then processed, and the a 02 field is not processed. Since it is only a copy of the value, there will be no duplication and no redundancy of the message.
  • the technical solution of the present invention can automatically adapt to the difference of the packets of different versions of the network management system, and the user can automatically complete the connection without the user intervention to obtain the corresponding data, and the technical solution of the present invention does not need to change the ASN report.
  • Any application layer coding of the text overcomes the defects in the prior art that the system is not easy to maintain, requires manual intervention, and has a large amount of redundant messages.
  • the network operation and maintenance system and the method for changing the message of the compatible network management system have the following beneficial effects: only one system can automatically be compatible with packet differences of different versions of the network management system, When the network management is performed, the user does not need to intervene to complete the connection, obtain the corresponding data, and do not need to change any application layer code for processing the ASN message, which overcomes the defects in the prior art that the system is difficult to maintain, requires manual intervention, and has a large number of redundant messages.

Abstract

The present invention relates to the technical field of communications. Disclosed are a network operation and maintenance system and a method for same to be compatible with a change in a packet of a network management system. The method comprises: after an ASN packet sent by a network management system is received, acquiring the version of the network management system; then acquiring, according to the version, an identifier of a first ASN packet which has a field different from that of a corresponding standard ASN packet; and creating the first ASN packet, and processing a field value of the first ASN packet which is the same as that of the corresponding standard ASN packet in accordance with a processing flow which is the same as that of the standard ASN packet. Thus, only one system is needed to be automatically compatible with differences in packets of network management systems of different versions, which automatically completes docking during access to the network management system without user intervention, and acquires corresponding data. In addition, the technical solution of the present invention overcomes the deficiencies in the prior art that the system is difficult to maintain, manual intervention is needed, and a large amount of packets are redundant, without changing codes of any application layer processing the ASN packet.

Description

网络运维系统及其兼容网管系统报文变化的方法Network operation and maintenance system and its compatible network management system message change method 技术领域Technical field
本发明涉及通信技术领域,特别是涉及一种网络运维系统及其兼容网管系统报文变化的方法。The present invention relates to the field of communications technologies, and in particular, to a network operation and maintenance system and a method for changing a message of a compatible network management system.
背景技术Background technique
网管系统在不同的地方可能有不同的版本,而网络运维系统(更高层次的网管系统)需要接入这些不同版本的网管系统来获取数据(实现对这些网管系统的智能健康检查),这就涉及到网络运维系统与不同网管系统之间如何通讯的问题,这个问题当前已经有了很好的解决方案—通过抽象文法标记(Abstract Syntax Notation,简称ASN)报文来通讯。The network management system may have different versions in different places, and the network operation and maintenance system (higher-level network management system) needs to access these different versions of the network management system to obtain data (to achieve intelligent health check on these network management systems). As for how to communicate between network operation and maintenance systems and different network management systems, this problem has a good solution at present - communication through Abstract Syntax Notation (ASN) messages.
在实际使用的过程中,我们还发现另外一个问题,那就是ASN报文变化的问题,具体来说就是,网管系统的某个功能模块在A版本用了报文a1来实现,在B版本的时候报文a1增加了一个字段,A和B版本都在使用,而网络运维系统T需要接入版本A和B来获取数据,这时候T如何兼容A和B版本报文变化的差异呢?通常的处理办法是:In the actual use process, we also found another problem, that is, the ASN packet change problem, specifically, a certain function module of the network management system is implemented in the A version with the message a1, in the B version. At the time of the message a1, a field is added, and both the A and B versions are used, and the network operation and maintenance system T needs to access the versions A and B to acquire data. How is the T compatible with the difference between the A and B versions of the message change? The usual treatment is:
1、提供两个版本T,分别对应A和B两个版本;1. Two versions of T are provided, corresponding to two versions of A and B respectively;
2、T只提供一个版本,但是ASN报文有两套,接入A和B之前有不同的选项供用户选择,用户需要明确当前接入的是A版本还是B版本,从而确认相应的选项,T根据用户选项加载不同的ASN报文,这两套ASN报文除了a1报文外,其他都是相同的;2. T only provides one version, but there are two sets of ASN packets. Before accessing A and B, there are different options for users to choose. Users need to specify whether they are currently accessing version A or version B, thus confirming the corresponding options. T loads different ASN packets according to user options. The two ASN packets are the same except for the a1 packet.
上述办法1虽然能解决问题,但是提供多个版本的T使得维护很麻烦。而办法2虽然只有一个版本T,但是需要两套ASN报文,除报文a1之外,其他报文重复,造成报文大量冗余。而且操作上需要用户来确认接入的究竟是A版本还是B版本,比较麻烦,一旦网管系统版本多了,如何确认版本将是一件非常麻烦的事情,一旦确认错误也可能导致网管系统接入失败等。 Although the above method 1 can solve the problem, providing multiple versions of T makes maintenance troublesome. Although the method 2 has only one version T, two sets of ASN packets are required. Except for the message a1, other packets are duplicated, resulting in a large amount of redundancy. Moreover, the operation requires the user to confirm whether the access is A version or B version. It is troublesome. Once the network management system version is more, how to confirm the version will be a very troublesome thing. Once the error is confirmed, the network management system may be connected. Failure, etc.
发明内容Summary of the invention
本发明实施例提供了一种网络运维系统及其兼容网管系统报文变化的方法,用以自动兼容不同版本网管系统之间的报文差异。The embodiment of the invention provides a network operation and maintenance system and a method for adapting the network management system to change packets, which is used to automatically adapt to packet differences between different versions of the network management system.
为解决上述技术问题,本发明提供一种网络运维系统兼容网管系统报文变化的方法,通过ASN报文与网管系统进行通讯,包括:To solve the above technical problem, the present invention provides a method for the network operation and maintenance system to be compatible with the network management system packet change, and communicates with the network management system through the ASN message, including:
获取所述网管系统的版本;Obtaining a version of the network management system;
根据所述版本,获取所述网管系统的、与对应的标准ASN报文具有不相同字段的第一ASN报文的标识;Obtaining, according to the version, an identifier of the first ASN packet of the network management system that has a different field from the corresponding standard ASN packet;
创建第一ASN报文,对第一ASN报文与对应的标准ASN报文相同的字段值,按照与所述标准ASN报文相同的处理流程进行处理。The first ASN packet is created, and the same field value of the first ASN packet and the corresponding standard ASN packet are processed according to the same processing procedure as the standard ASN packet.
如上所述的方法,优选的是,还包括:The method as described above preferably further comprises:
存储网管系统的版本、所述版本对应的且与标准ASN报文具有不相同字段的ASN报文的标识以及所述标准ASN报文的标识之间的映射关系;a mapping relationship between the version of the storage network management system, the identifier of the ASN packet corresponding to the version and the standard ASN packet, and the identifier of the standard ASN packet;
根据所述版本,获取所述网管系统的、与对应的标准ASN报文具有不相同字段的第一ASN报文的标识具体为:According to the version, the identifier of the first ASN packet that is different from the corresponding standard ASN packet in the network management system is:
根据所述版本,查询所述映射关系中是否包括第一ASN报文对应的标准ASN报文的标识,若是,则从所述映射关系中获取第一ASN报文的标识。And determining, according to the version, the identifier of the standard ASN packet corresponding to the first ASN packet, and if yes, obtaining the identifier of the first ASN packet from the mapping relationship.
如上所述的方法,优选的是,还包括:The method as described above preferably further comprises:
若所述映射关系中不包括所述网管系统的第二ASN报文对应的标准ASN报文的标识,则对所述标准ASN报文进行处理。And if the mapping relationship does not include the identifier of the standard ASN packet corresponding to the second ASN packet of the network management system, the standard ASN packet is processed.
如上所述的方法,优选的是,创建第一ASN报文,对第一ASN报文与对应的标准ASN报文相同的字段值,按照与所述标准ASN报文相同的处理流程进行处理具体为:The method as described above, preferably, the first ASN packet is created, and the same field value of the first ASN packet and the corresponding standard ASN packet is processed according to the same processing flow as the standard ASN packet. for:
创建第一ASN报文,并对第一ASN报文解码,复制第一ASN报文中与对应的标准ASN报文相同字段的值,拷贝至对应的标准ASN报文中对应的字段,对对应的标准ASN报文进行处理。 The first ASN packet is created, and the first ASN packet is decoded, and the value of the same field in the first ASN packet corresponding to the corresponding standard ASN packet is copied and copied to the corresponding field in the corresponding standard ASN packet. Standard ASN messages are processed.
本发明还提供一种网络运维系统,包括接收模块,设置为接收网管系统发送的ASN报文,还包括:The present invention further provides a network operation and maintenance system, including a receiving module, configured to receive an ASN message sent by the network management system, and further includes:
版本获取模块,设置为在接收网管系统发送的ASN报文之后,获取网管系统的版本;The version obtaining module is configured to obtain the version of the network management system after receiving the ASN packet sent by the network management system.
标识获取模块,设置为根据所述版本,获取所述网管系统的、与对应的标准ASN报文具有不相同字段的第一ASN报文的标识;The identifier obtaining module is configured to obtain, according to the version, an identifier of the first ASN packet that has a different field from the corresponding standard ASN packet of the network management system;
第一处理模块,设置为创建第一ASN报文,对第一ASN报文与对应的标准ASN报文相同的字段值,按照与所述标准ASN报文相同的处理流程进行处理。The first processing module is configured to create a first ASN packet, and the same field value of the first ASN packet and the corresponding standard ASN packet is processed according to the same processing procedure as the standard ASN packet.
如上所述的网络运维系统,优选的是,还包括:The network operation and maintenance system as described above preferably further includes:
存储模块,设置为存储网管系统的版本、所述版本对应的且与标准ASN报文具有不相同字段的ASN报文的标识以及所述标准ASN报文的标识之间的映射关系;a storage module, configured to store a mapping between a version of the network management system, an identifier of the ASN packet corresponding to the version and having a different field from the standard ASN packet, and an identifier of the standard ASN packet;
所述标识获取模块设置为根据所述版本,查询所述映射关系中是否包括第一ASN报文对应的标准ASN报文的标识,若是,则从所述映射关系中获取第一ASN报文的标识。The identifier obtaining module is configured to query, according to the version, whether the mapping relationship includes the identifier of the standard ASN packet corresponding to the first ASN packet, and if yes, obtain the first ASN packet from the mapping relationship. Logo.
如上所述的网络运维系统,优选的是,还包括:The network operation and maintenance system as described above preferably further includes:
第二处理模块,设置为若所述映射关系中不包括所述网管系统的第二ASN报文对应的标准ASN报文的标识,则创建与第二ASN报文对应的标准ASN报文,对所述标准ASN报文进行处理,得到处理后的第二ASN报文。And the second processing module is configured to: if the mapping relationship does not include the identifier of the standard ASN packet corresponding to the second ASN packet of the network management system, create a standard ASN packet corresponding to the second ASN packet, where The standard ASN packet is processed to obtain a processed second ASN packet.
如上所述的网络运维系统,优选的是,所述第一处理模块设置为创建第一ASN报文,并对第一ASN报文解码,复制第一ASN报文中与对应的标准ASN报文相同字段的值,拷贝至对应的标准ASN报文中对应的字段,对对应的标准ASN报文进行处理。In the network operation and maintenance system as described above, the first processing module is configured to create a first ASN packet, and decode the first ASN packet, and copy the first ASN packet with the corresponding standard ASN packet. The value of the same field is copied to the corresponding field in the corresponding standard ASN packet, and the corresponding standard ASN packet is processed.
本发明的上述技术方案的有益效果如下:The beneficial effects of the above technical solution of the present invention are as follows:
上述技术方案中,在接收网管系统发送的ASN报文之后,获取所述网管系统的版本,然后根据所述版本获取所述网管系统的、与对应的标准ASN报文具有不相同字段的第一ASN报文的标识,创建第一ASN报文,并对第一ASN报文与对应的标准ASN报文相同的字段值,按照与所述标准ASN报文相同的处理流程进行处理。从而只需要一个系统就能够自动兼容不同版本网管系统的报文差异,在接入网管时无需用户干预自动完成对接,获取相应的数据,而且本发明的技术方案无需改变处理ASN报文的任 何应用层编码,克服了现有技术中系统不易维护、需要人工介入、报文大量冗余的缺陷。In the foregoing technical solution, after receiving the ASN packet sent by the network management system, obtaining the version of the network management system, and then acquiring, according to the version, the first field of the network management system that has a different field from the corresponding standard ASN packet. The ASN packet is created, and the first ASN packet is created, and the same field value of the first ASN packet and the corresponding standard ASN packet are processed according to the same processing procedure as the standard ASN packet. Therefore, only one system can be automatically compatible with the packet difference of the network management system of different versions. When the network management system is connected to the network management system, the user can automatically complete the connection and obtain the corresponding data, and the technical solution of the present invention does not need to change the processing of the ASN message. The application layer coding overcomes the defects in the prior art that the system is not easy to maintain, requires manual intervention, and has a large amount of redundant messages.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1表示本发明实施例中网络运维系统兼容网管系统报文变化的方法的流程图一;1 is a flow chart 1 showing a method for changing a packet of a network operation and maintenance system compatible with a network management system according to an embodiment of the present invention;
图2表示本发明实施例中网络运维系统兼容网管系统报文变化的方法的流程图二;2 is a second flowchart of a method for changing a packet of a network operation and maintenance system compatible with a network management system according to an embodiment of the present invention;
图3表示本发明实施例中网络运维系统的组成框图。FIG. 3 is a block diagram showing the composition of a network operation and maintenance system in an embodiment of the present invention.
具体实施方式detailed description
为了兼容不同版本网管系统的报文差异,本发明提供一种网络运维系统及其兼容网管系统报文变化的方法,在接收网管系统发送的ASN报文之后,获取所述网管系统的版本,然后根据所述版本获取所述网管系统的、与对应的标准ASN报文具有不相同字段的第一ASN报文的标识,创建第一ASN报文,并对第一ASN报文与对应的标准ASN报文相同的字段值,按照与所述标准ASN报文相同的处理流程进行处理。从而只需要一个系统就能够自动兼容不同版本网管系统的报文差异,在接入网管系统时无需用户干预自动完成对接,获取相应的数据,而且本发明的技术方案无需改变处理ASN报文的任何应用层编码,克服了现有技术中系统不易维护、需要人工介入、报文大量冗余的缺陷。In order to be compatible with the packet difference of the network management system of different versions, the present invention provides a network operation and maintenance system and a method for changing the packet of the network management system. After receiving the ASN message sent by the network management system, the version of the network management system is obtained. Then, according to the version, the identifier of the first ASN packet of the network management system that has a different field from the corresponding standard ASN packet is obtained, and the first ASN packet is created, and the first ASN packet and the corresponding standard are created. The same field value of the ASN packet is processed according to the same processing procedure as the standard ASN packet. Therefore, only one system can be automatically compatible with the packet difference of the network management system of different versions. When accessing the network management system, the user can automatically complete the connection without obtaining user intervention, and obtain corresponding data, and the technical solution of the present invention does not need to change any processing of the ASN message. The application layer coding overcomes the defects in the prior art that the system is not easy to maintain, requires manual intervention, and has a large amount of redundant messages.
下面将结合附图和实施例,对本发明的具体实施方式作进一步详细描述。以下实施例用于说明本发明,但不用来限制本发明的范围。Specific embodiments of the present invention will be further described in detail below with reference to the drawings and embodiments. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
实施例一Embodiment 1
如图1所示,本发明实施例中提供一种网络运维系统兼容网管系统报文变化的方法,在接收网管系统发送的ASN报文之后包括: As shown in FIG. 1 , a method for changing a packet of a network operation and maintenance system compatible with a network management system is provided in the embodiment of the present invention. After receiving an ASN message sent by the network management system, the method includes:
步骤100、获取所述网管系统的版本;Step 100: Obtain a version of the network management system.
步骤101、根据所述版本,获取所述网管系统的、与对应的标准ASN报文具有不相同字段的第一ASN报文的标识;Step 101: Obtain, according to the version, an identifier of the first ASN packet of the network management system that has a different field from the corresponding standard ASN packet.
步骤102、创建第一ASN报文,对第一ASN报文与对应的标准ASN报文相同的字段值,按照与所述标准ASN报文相同的处理流程进行处理。Step 102: Create a first ASN packet, and process the same field value of the first ASN packet and the corresponding standard ASN packet according to the same processing procedure as the standard ASN packet.
本发明通过上述步骤可以兼容不同版本网管系统的报文差异:在接收网管系统发送的ASN报文之后,自动获取所述网管系统的版本,不需要人工介入。当网管系统使用的ASN报文发生变化时,对所述ASN报文与对应的标准ASN报文相同的字段值,按照与所述标准ASN报文相同的处理流程进行处理,不会增加应用层编码,也不会造成报文的大量冗余。同时,只需要一个运维系统就可以对不同版本的网管系统进行维护,方便系统的维护。The invention can be compatible with the packet difference of the network management system of different versions. After receiving the ASN packet sent by the network management system, the version of the network management system is automatically obtained, and no manual intervention is required. When the ASN packet used by the network management system changes, the same field value of the ASN packet and the corresponding standard ASN packet are processed according to the same processing procedure as the standard ASN packet, and the application layer is not added. Encoding does not cause a lot of redundancy in the message. At the same time, only one operation and maintenance system is needed to maintain different versions of the network management system to facilitate system maintenance.
其中,第一ASN报文的标识可以用a1表示,对应的标准ASN报文的标识可以用a表示。第一ASN报文a1相对于标准ASN报文a可以增加或减少了字段,例如:标准ASN报文a包括a00、a01两个字段,第一ASN报文a1包括a00、a01、a02三个字段。Wherein the first ASN packet identifier may be represented by a, the corresponding standard message identifier ASN may be represented by a. The first ASN message a 1 may be increased or decreased with respect to the standard ASN message a. For example, the standard ASN message a includes two fields a 00 and a 01 , and the first ASN message a 1 includes a 00 , a 01 , a 02 three fields.
在获取网管系统的版本后,为了根据所述版本获取所述网管系统的第一ASN报文的标识,可以预先在网络运维系统侧配置网管系统的版本、所述版本对应的且与标准ASN报文具有不相同字段的ASN报文的标识以及所述标准ASN报文的标识之间的映射关系。即,如图2所示,本发明实施例中的网络运维系统兼容网管系统报文变化的方法还包括:After obtaining the version of the network management system, in order to obtain the identifier of the first ASN packet of the network management system according to the version, the version of the network management system, the version corresponding to the version, and the standard ASN may be configured in advance on the network operation and maintenance system side. The packet has a mapping relationship between the identifier of the ASN packet and the identifier of the standard ASN packet. That is, as shown in FIG. 2, the method for adapting the network operation and maintenance system to the network management system packet change in the embodiment of the present invention further includes:
步骤200、存储网管系统的版本、所述版本对应的且与标准ASN报文具有不相同字段的ASN报文的标识以及所述标准ASN报文的标识之间的映射关系。例如:对于A版本的网管系统,所述映射关系包括A-a-a1Step 200: The mapping between the version of the storage network management system, the identifier of the ASN packet corresponding to the version and the standard ASN packet, and the identifier of the standard ASN packet. For example, for the network management system of the A version, the mapping relationship includes Aaa 1 .
则,如图2所示,根据网管系统的版本,获取所述网管系统的、与对应的标准ASN报文具有不相同字段的第一ASN报文的标识的步骤101具体为:Then, as shown in FIG. 2, according to the version of the network management system, the step 101 of acquiring the identifier of the first ASN packet of the network management system that has a different field from the corresponding standard ASN packet is specifically:
根据网管系统的版本,查询所述映射关系中是否包括第一ASN报文对应的标准ASN报文的标识,若是,则从所述映射关系中获取第一ASN报文的标识。And determining, according to the version of the network management system, whether the mapping relationship includes the identifier of the standard ASN packet corresponding to the first ASN packet, and if yes, obtaining the identifier of the first ASN packet from the mapping relationship.
本发明的技术方案针对不同版本网管系统的第一ASN报文名称与对应的标准ASN报文名称不同(具体为第一ASN报文和标准ASN报文具有不相同的字段,例如:第一ASN报文相对标准ASN报文增加了字段)时,实现了对报文差异的自动兼容。 The technical solution of the present invention is that the first ASN packet name of the different version of the network management system is different from the corresponding standard ASN packet. The specific ASN packet and the standard ASN packet have different fields, for example, the first ASN. When the message is added to the standard ASN packet, the automatic compatibility of the packet difference is achieved.
在实际应用过程中,网管系统的ASN报文不仅包括与对应的标准ASN报文具有不相同字段的第一ASN报文,还可以包括与对应的标准ASN报文具有完全相同字段的第二ASN报文。In the actual application process, the ASN packet of the network management system includes not only the first ASN packet having a different field from the corresponding standard ASN packet, but also the second ASN having the exact same field as the corresponding standard ASN packet. Message.
当不同版本网管系统包括与对应的标准ASN报文的标识相同的第二ASN报文(具体为第二ASN报文和标准ASN报文具有完全相同的字段)时,本发明实施例中的网络运维系统兼容网管系统报文变化的方法还包括:When the network management system of the different version includes the second ASN packet with the same identifier as the corresponding standard ASN packet, specifically, the second ASN packet and the standard ASN packet have identical fields, the network in the embodiment of the present invention The method for adapting the operation and maintenance system to the network management system packet change includes:
若所述映射关系中不包括所述网管系统的第二ASN报文对应的标准ASN报文的标识,则对所述标准ASN报文进行处理。And if the mapping relationship does not include the identifier of the standard ASN packet corresponding to the second ASN packet of the network management system, the standard ASN packet is processed.
通过上述步骤,可以通过对对应的标准ASN报文的处理流程完成对网管系统的第二ASN报文的处理,不会造成报文的冗余。Through the above steps, the processing of the second ASN packet of the network management system can be completed by the process of processing the corresponding standard ASN packet, and the packet redundancy is not caused.
在一个具体的实施方式中,步骤102:创建第一ASN报文,对第一ASN报文a1与对应的标准ASN报文相同的字段值,按照与标准ASN报文相同的处理流程进行处理,具体为:In a specific embodiment, step 102: ASN creating a first packet of a same as the corresponding standard message ASN ASN first packet field values a, be processed in accordance with the same standard ASN message processing flow ,Specifically:
创建第一ASN报文,并对第一ASN报文解码,复制第一ASN报文中与对应的标准ASN报文相同字段的值,拷贝至对应的标准ASN报文中对应的字段,对对应的标准ASN报文进行处理。The first ASN packet is created, and the first ASN packet is decoded, and the value of the same field in the first ASN packet corresponding to the corresponding standard ASN packet is copied and copied to the corresponding field in the corresponding standard ASN packet. Standard ASN messages are processed.
例如:当标准ASN报文a包括a00、a01两个字段,第一ASN报文a1包括a00、a01、a02三个字段时。复制第一ASN报文a1中a00、a01两个字段的值,拷贝至标准ASN报文a中a00、a01两个字段,拷贝是一个递归过程,需要一层层拷贝直至a00、a01两个字段最终拷贝完成。然后对标准ASN报文a进行处理,对于a02字段则不用处理。由于仅是值的拷贝,不会有重复,不会造成报文的冗余。For example, when the standard ASN message a includes two fields a 00 and a 01 , the first ASN message a 1 includes three fields a 00 , a 01 , and a 02 . ASN first copy packet in a 1 a 00, 01 a value of two fields, the packet is copied to a standard ASN in a 00, a 01 two fields, is a recursive process copies, until a copy of the required layers The final copy of the two fields 00 and a 01 is completed. The standard ASN message a is then processed, and the a 02 field is not processed. Since it is only a copy of the value, there will be no duplication and no redundancy of the message.
下面以网管系统的版本为A,使用的第一ASN报文的标识为a1,对应的标准ASN报文的标识为a,来具体说明本发明实施例中的方法,包括:Below is a version of the network management system A, a first packet identifier ASN used is a 1, the corresponding standard message ASN identified as a, the method specifically described in the embodiment of the present invention, comprising:
步骤S1、存储网管系统的版本A、版本A对应的且与标准ASN报文具有不相同字段的第一ASN报文的标识a1以及标准ASN报文的标识a之间的映射关系,具体为:A-a-a1The first packet ASN step S1, the network storage system version A, version A with the corresponding standard and ASN have different packet identification field mapping relationship between a standard and an identifier of a packet ASN, specifically :Aaa 1 ;
步骤S2、在接收到网管系统发送的ASN报文之后,获取网管系统的版本A; Step S2: After receiving the ASN packet sent by the network management system, obtain the version A of the network management system;
步骤S3、根据版本A,查询所述映射关系中是否包括接收的ASN报文对应的标准ASN报文的标识a,若是,则从所述映射关系中获取第一ASN报文的标识a1,执行步骤S4,若否,则执行步骤S5;Step S3: Querying, according to the version A, whether the mapping relationship includes the identifier a of the standard ASN packet corresponding to the received ASN packet, and if yes, obtaining the identifier a 1 of the first ASN packet from the mapping relationship, Step S4 is performed, if no, step S5 is performed;
步骤S4、创建第一ASN报文,并对第一ASN报文解码,复制第一ASN报文中与对应的标准ASN报文相同字段的值,拷贝至对应的标准ASN报文中对应的字段,对对应的标准ASN报文进行处理,得到处理后的第一ASN报文;Step S4: Create a first ASN packet, and decode the first ASN packet, and copy the value of the same field in the first ASN packet with the corresponding standard ASN packet, and copy the value to the corresponding field in the corresponding standard ASN packet. And processing the corresponding standard ASN packet to obtain the processed first ASN packet;
步骤S5、对所述标准ASN报文进行处理。Step S5: Processing the standard ASN packet.
本发明实施例中与对应的标准ASN报文a具有不相同字段的第一ASN报文并不局限于一个,对于多个版本的网管系统,例如:A版本、B版本、C版本,每个版本对应的第一ASN报文也不同,分别用a1、a2、a3表示。则存储的映射关系包括:A-a-a1、B-a-a2、C-a-a3The first ASN packet having a different field from the corresponding standard ASN packet a in the embodiment of the present invention is not limited to one. For multiple versions of the network management system, for example, the A version, the B version, and the C version, each The first ASN message corresponding to the version is also different, and is represented by a 1 , a 2 , and a 3 respectively . The stored mapping relationship includes: Aaa 1 , Baa 2 , Caa 3 .
当然,第一ASN报文对应的标准ASN报文也可以包括多个,如:标准ASN报文c、标准ASN报文d,对于多个版本的网管系统,例如:A版本、B版本、C版本,每个版本对应的第一ASN报文也不同,分别用c1、c2、c3、d1、d2、d3。则存储的映射关系还包括:A-c-c1、B-c-c 2、C-c-a3、A-d-d 1、B-d-d 2、C-d-d 3。对于第一ASN报文a2、a3、c1、c2、c3、d1、d2、d3的处理过程与第一ASN报文a1相同。Of course, the standard ASN packet corresponding to the first ASN packet may also include multiple, for example, the standard ASN packet c and the standard ASN packet d. For multiple versions of the network management system, for example, the A version, the B version, and the C The version, the first ASN message corresponding to each version is also different, using c 1 , c 2 , c 3 , d 1 , d 2 , d 3 respectively . The stored mapping relationship also includes: Acc 1 , Bcc 2 , Cca 3 , Add 1 , Bdd 2 , Cdd 3 . The processing procedure for the first ASN messages a 2 , a 3 , c 1 , c 2 , c 3 , d 1 , d 2 , d 3 is the same as the first ASN message a 1 .
实施例二Embodiment 2
基于同一发明构思,如图3所示,本发明还提供一种网络运维系统,包括接收模块40、版本获取模块10、标识获取模块20和第一处理模块30。其中,接收模块40设置为接收网管系统发送的ASN报文。版本获取模块10设置为在接收网管系统发送的ASN报文之后,获取网管系统的版本。标识获取模块20设置为根据所述版本,获取所述网管系统的、与对应的标准ASN报文具有不相同字段的第一ASN报文的标识。第一处理模块30设置为创建第一ASN报文,对第一ASN报文与对应的标准ASN报文相同的字段值,按照与所述标准ASN报文相同的处理流程进行处理。Based on the same inventive concept, as shown in FIG. 3, the present invention further provides a network operation and maintenance system, including a receiving module 40, a version obtaining module 10, an identifier obtaining module 20, and a first processing module 30. The receiving module 40 is configured to receive an ASN message sent by the network management system. The version obtaining module 10 is configured to obtain the version of the network management system after receiving the ASN message sent by the network management system. The identifier obtaining module 20 is configured to obtain, according to the version, an identifier of the first ASN packet of the network management system that has a different field from the corresponding standard ASN packet. The first processing module 30 is configured to create a first ASN packet, and the same field value of the first ASN packet and the corresponding standard ASN packet is processed according to the same processing procedure as the standard ASN packet.
本发明的网络运维系统不需要人工介入,自动获取网管系统的版本。当网管系统使用的ASN报文发生变化时,对所述ASN报文与对应的标准ASN报文相同的字段值,按照与所述标准ASN报文相同的处理流程进行处理,不会增加应用层编码,也不会造成报文的大量冗余。同时,只需要一个运维系统就可以对不同版本的网管系统进行维护,方便系统的维护。 The network operation and maintenance system of the present invention automatically acquires the version of the network management system without manual intervention. When the ASN packet used by the network management system changes, the same field value of the ASN packet and the corresponding standard ASN packet are processed according to the same processing procedure as the standard ASN packet, and the application layer is not added. Encoding does not cause a lot of redundancy in the message. At the same time, only one operation and maintenance system is needed to maintain different versions of the network management system to facilitate system maintenance.
其中,第一ASN报文的标识可以用a1表示,对应的标准ASN报文的标识可以用a表示。第一ASN报文a1相对于标准ASN报文a可以增加或减少了字段,例如:标准ASN报文a包括a00、a01两个字段,第一ASN报文a1包括a00、a01、a02三个字段。Wherein the first ASN packet identifier may be represented by a, the corresponding standard message identifier ASN may be represented by a. The first ASN message a 1 may be increased or decreased with respect to the standard ASN message a. For example, the standard ASN message a includes two fields a 00 and a 01 , and the first ASN message a 1 includes a 00 , a 01 , a 02 three fields.
在获取网管系统的版本后,为了根据所述版本获取所述网管系统的第一ASN报文的标识a1,可以预先在网络运维系统侧配置网管系统的不同版本、所述版本对应的且与标准ASN报文具有不相同字段的ASN报文的标识以及所述标准ASN报文的标识之间的映射关系。即,本发明实施例中的网络管理运维系统还包括:After obtaining the version of the network management system, in order to obtain the identifier A 1 of the first ASN packet of the network management system, the different versions of the network management system and the versions corresponding to the network management system may be configured in advance on the network operation and maintenance system side. The mapping between the identifier of the ASN packet and the identifier of the standard ASN packet is different from the standard ASN packet. That is, the network management operation and maintenance system in the embodiment of the present invention further includes:
存储模块50,设置为存储网管系统的版本、所述版本对应的且与标准ASN报文具有不相同字段的ASN报文的标识以及所述标准ASN报文的标识之间的映射关系。例如:对于A版本的网管系统,所述映射关系包括A-a-a1The storage module 50 is configured to store a mapping between the version of the network management system, the identifier of the ASN packet corresponding to the version and the identifier of the standard ASN packet, and the identifier of the standard ASN packet. For example, for the network management system of the A version, the mapping relationship includes Aaa 1 .
则,标识获取模块20设置为根据网管系统的版本,查询所述映射关系中是否包括第一ASN报文对应的标准ASN报文的标识,若是,则从所述映射关系中获取第一ASN报文的标识。The identifier obtaining module 20 is configured to query, according to the version of the network management system, whether the mapping relationship includes the identifier of the standard ASN packet corresponding to the first ASN packet, and if yes, obtain the first ASN report from the mapping relationship. The logo of the text.
本发明的技术方案针对不同版本网管系统的第一ASN报文名称与对应的标准ASN报文名称不同(具体为第一ASN报文和标准ASN报文具有不相同的字段,例如:第一ASN报文相对标准ASN报文增加了字段)时,实现了对报文差异的自动兼容。The technical solution of the present invention is that the first ASN packet name of the different version of the network management system is different from the corresponding standard ASN packet. The specific ASN packet and the standard ASN packet have different fields, for example, the first ASN. When the message is added to the standard ASN packet, the automatic compatibility of the packet difference is achieved.
在实际应用过程中,网管系统的ASN报文不仅包括与对应的标准ASN报文a具有不相同字段的第一ASN报文,还可以包括与对应的标准ASN报文具有完全相同字段的第二ASN报文。In the actual application process, the ASN packet of the network management system includes not only the first ASN packet having a different field from the corresponding standard ASN packet a, but also the second field having the exact same field as the corresponding standard ASN packet. ASN message.
当不同版本网管系统包括与对应的标准ASN报文的标识相同的第二ASN报文(具体为第二ASN报文和标准ASN报文具有完全相同的字段)时,本发明实施例中的网络运维系统还包括:When the network management system of the different version includes the second ASN packet with the same identifier as the corresponding standard ASN packet, specifically, the second ASN packet and the standard ASN packet have identical fields, the network in the embodiment of the present invention The operation and maintenance system also includes:
第二处理模块60,设置为若所述映射关系中不包括所述网管系统的第二ASN报文对应的标准ASN报文的标识,则对所述标准ASN报文进行处理。The second processing module 60 is configured to process the standard ASN packet if the mapping does not include the identifier of the standard ASN packet corresponding to the second ASN packet of the network management system.
第二处理模块60设置为通过对标准ASN报文的处理来完成对第二ASN报文的处理,不会造成报文的冗余。The second processing module 60 is configured to process the second ASN packet by processing the standard ASN packet, and does not cause redundancy of the packet.
在一个具体的实施方式中,第一处理模块30在创建第一ASN报文a1后,并对第一ASN报文a1解码,复制第一ASN报文a1中与对应的标准ASN报文a相同字段的 值,拷贝至对应的标准ASN报文a中对应的字段,对对应的标准ASN报文a进行处理,得到处理后的第一ASN报文a1In a specific embodiment, the first processing module 30 to create a first packet after an ASN, and the ASN first packet decoding a 1, a copy of the first packet in ASN 1 and ASN packets corresponding standard The value of the same field in the text a is copied to the corresponding field in the corresponding standard ASN packet a, and the corresponding standard ASN packet a is processed to obtain the processed first ASN packet a 1 .
例如:当标准ASN报文a包括a00、a01两个字段,第一ASN报文a1包括a00、a01、a02三个字段时。复制第一ASN报文a1中a00、a01两个字段的值,拷贝至标准ASN报文a中a00、a01两个字段,拷贝是一个递归过程,需要一层层拷贝直至a00、a01两个字段最终拷贝完成。然后对标准ASN报文a进行处理,对于a02字段则不用处理。由于仅是值的拷贝,不会有重复,不会造成报文的冗余。For example, when the standard ASN message a includes two fields a 00 and a 01 , the first ASN message a 1 includes three fields a 00 , a 01 , and a 02 . ASN first copy packet in a 1 a 00, 01 a value of two fields, the packet is copied to a standard ASN in a 00, a 01 two fields, is a recursive process copies, until a copy of the required layers The final copy of the two fields 00 and a 01 is completed. The standard ASN message a is then processed, and the a 02 field is not processed. Since it is only a copy of the value, there will be no duplication and no redundancy of the message.
本发明的技术方案只需要一个系统就能够自动兼容不同版本网管系统的报文差异,在接入网管时无需用户干预自动完成对接,获取相应的数据,而且本发明的技术方案无需改变处理ASN报文的任何应用层编码,克服了现有技术中系统不易维护、需要人工介入、报文大量冗余的缺陷。The technical solution of the present invention can automatically adapt to the difference of the packets of different versions of the network management system, and the user can automatically complete the connection without the user intervention to obtain the corresponding data, and the technical solution of the present invention does not need to change the ASN report. Any application layer coding of the text overcomes the defects in the prior art that the system is not easy to maintain, requires manual intervention, and has a large amount of redundant messages.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明技术原理的前提下,还可以做出若干改进和替换,这些改进和替换也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can make several improvements and substitutions without departing from the technical principles of the present invention. It should also be considered as the scope of protection of the present invention.
工业实用性Industrial applicability
如上所述,本发明实施例提供的一种网络运维系统及其兼容网管系统报文变化的方法具有以下有益效果:只需要一个系统就能够自动兼容不同版本网管系统的报文差异,在接入网管时无需用户干预自动完成对接,获取相应的数据,而且无需改变处理ASN报文的任何应用层编码,克服了现有技术中系统不易维护、需要人工介入、报文大量冗余的缺陷。 As described above, the network operation and maintenance system and the method for changing the message of the compatible network management system provided by the embodiments of the present invention have the following beneficial effects: only one system can automatically be compatible with packet differences of different versions of the network management system, When the network management is performed, the user does not need to intervene to complete the connection, obtain the corresponding data, and do not need to change any application layer code for processing the ASN message, which overcomes the defects in the prior art that the system is difficult to maintain, requires manual intervention, and has a large number of redundant messages.

Claims (8)

  1. 一种网络运维系统兼容网管系统报文变化的方法,在接收到网管系统发送的ASN报文之后包括:A network operation and maintenance system is compatible with the packet change of the network management system. After receiving the ASN packet sent by the network management system, the method includes:
    获取所述网管系统的版本;Obtaining a version of the network management system;
    根据所述版本,获取所述网管系统的、与对应的标准ASN报文具有不相同字段的第一ASN报文的标识;Obtaining, according to the version, an identifier of the first ASN packet of the network management system that has a different field from the corresponding standard ASN packet;
    创建第一ASN报文,对第一ASN报文与对应的标准ASN报文相同的字段值,按照与所述标准ASN报文相同的处理流程进行处理。The first ASN packet is created, and the same field value of the first ASN packet and the corresponding standard ASN packet are processed according to the same processing procedure as the standard ASN packet.
  2. 根据权利要求1所述的方法,其中,还包括:The method of claim 1 further comprising:
    存储网管系统的版本、所述版本对应的且与标准ASN报文具有不相同字段的ASN报文的标识以及所述标准ASN报文的标识之间的映射关系;a mapping relationship between the version of the storage network management system, the identifier of the ASN packet corresponding to the version and the standard ASN packet, and the identifier of the standard ASN packet;
    根据所述版本,获取所述网管系统的、与对应的标准ASN报文具有不相同字段的第一ASN报文的标识具体为:According to the version, the identifier of the first ASN packet that is different from the corresponding standard ASN packet in the network management system is:
    根据所述版本,查询所述映射关系中是否包括第一ASN报文对应的标准ASN报文的标识,若是,则从所述映射关系中获取第一ASN报文的标识。And determining, according to the version, the identifier of the standard ASN packet corresponding to the first ASN packet, and if yes, obtaining the identifier of the first ASN packet from the mapping relationship.
  3. 根据权利要求2所述的方法,其中,还包括:The method of claim 2, further comprising:
    若所述映射关系中不包括所述网管系统的第二ASN报文对应的标准ASN报文的标识,则对所述标准ASN报文进行处理。And if the mapping relationship does not include the identifier of the standard ASN packet corresponding to the second ASN packet of the network management system, the standard ASN packet is processed.
  4. 根据权利要求1至3中任一项所述的方法,其中,创建第一ASN报文,对第一ASN报文与对应的标准ASN报文相同的字段值,按照与所述标准ASN报文相同的处理流程进行处理具体为:The method according to any one of claims 1 to 3, wherein the first ASN message is created, and the same field value of the first ASN message and the corresponding standard ASN message is used according to the standard ASN message. The same processing flow is processed as follows:
    创建第一ASN报文,并对第一ASN报文解码,复制第一ASN报文中与对应的标准ASN报文相同字段的值,拷贝至对应的标准ASN报文中对应的字段,对对应的标准ASN报文进行处理。The first ASN packet is created, and the first ASN packet is decoded, and the value of the same field in the first ASN packet corresponding to the corresponding standard ASN packet is copied and copied to the corresponding field in the corresponding standard ASN packet. Standard ASN messages are processed.
  5. 一种网络运维系统,包括:接收模块,设置为接收网管系统发送的ASN报文,所述系统还包括: A network operation and maintenance system includes: a receiving module, configured to receive an ASN message sent by the network management system, where the system further includes:
    版本获取模块,设置为在接收网管系统发送的ASN报文之后,获取网管系统的版本;The version obtaining module is configured to obtain the version of the network management system after receiving the ASN packet sent by the network management system.
    标识获取模块,设置为根据所述版本,获取所述网管系统的、与对应的标准ASN报文具有不相同字段的第一ASN报文的标识;The identifier obtaining module is configured to obtain, according to the version, an identifier of the first ASN packet that has a different field from the corresponding standard ASN packet of the network management system;
    第一处理模块,设置为创建第一ASN报文,对第一ASN报文与对应的标准ASN报文相同的字段值,按照与所述标准ASN报文相同的处理流程进行处理。The first processing module is configured to create a first ASN packet, and the same field value of the first ASN packet and the corresponding standard ASN packet is processed according to the same processing procedure as the standard ASN packet.
  6. 根据权利要求5所述网络运维系统,其中,还包括:The network operation and maintenance system according to claim 5, further comprising:
    存储模块,设置为存储网管系统的版本、所述版本对应的且与标准ASN报文具有不相同字段的ASN报文的标识以及所述标准ASN报文的标识之间的映射关系;a storage module, configured to store a mapping between a version of the network management system, an identifier of the ASN packet corresponding to the version and having a different field from the standard ASN packet, and an identifier of the standard ASN packet;
    所述标识获取模块设置为根据所述版本,查询所述映射关系中是否包括第一ASN报文对应的标准ASN报文的标识,若是,则从所述映射关系中获取第一ASN报文的标识。The identifier obtaining module is configured to query, according to the version, whether the mapping relationship includes the identifier of the standard ASN packet corresponding to the first ASN packet, and if yes, obtain the first ASN packet from the mapping relationship. Logo.
  7. 根据权利要求6所述网络运维系统,其中,还包括:The network operation and maintenance system according to claim 6, further comprising:
    第二处理模块,设置为若所述映射关系中不包括所述网管系统的第二ASN报文对应的标准ASN报文的标识,则对所述标准ASN报文进行处理。The second processing module is configured to process the standard ASN packet if the mapping does not include the identifier of the standard ASN packet corresponding to the second ASN packet of the network management system.
  8. 根据权利要求5至7中任一项所述网络运维系统,其中,所述第一处理模块设置为创建第一ASN报文,并对第一ASN报文解码,复制第一ASN报文中与对应的标准ASN报文相同字段的值,拷贝至对应的标准ASN报文中对应的字段,对对应的标准ASN报文进行处理。 The network operation and maintenance system according to any one of claims 5 to 7, wherein the first processing module is configured to create a first ASN message, decode the first ASN message, and copy the first ASN message. The value of the same field as the corresponding standard ASN packet is copied to the corresponding field in the corresponding standard ASN packet, and the corresponding standard ASN packet is processed.
PCT/CN2014/090072 2014-08-01 2014-10-31 Network operation and maintenance system and method for same to be compatible with change in packet of network management system WO2015154444A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410376665.2 2014-08-01
CN201410376665.2A CN105323103B (en) 2014-08-01 2014-08-01 Network O&M system and its method of compatible network management system message variation

Publications (1)

Publication Number Publication Date
WO2015154444A1 true WO2015154444A1 (en) 2015-10-15

Family

ID=54287205

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/090072 WO2015154444A1 (en) 2014-08-01 2014-10-31 Network operation and maintenance system and method for same to be compatible with change in packet of network management system

Country Status (2)

Country Link
CN (1) CN105323103B (en)
WO (1) WO2015154444A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6330574B1 (en) * 1997-08-05 2001-12-11 Fujitsu Limited Compression/decompression of tags in markup documents by creating a tag code/decode table based on the encoding of tags in a DTD included in the documents
CN101197818A (en) * 2006-12-08 2008-06-11 中兴通讯股份有限公司 ASN.1 packet object oriented processing method
CN101335648A (en) * 2008-07-25 2008-12-31 中兴通讯股份有限公司 Automatic converting method for packets of different interfaces and apparatus thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202739A (en) * 2006-12-11 2008-06-18 中兴通讯股份有限公司 Device for processing ASN.1 message OO
CN101123535B (en) * 2007-09-14 2012-07-11 中兴通讯股份有限公司 ANS.1 packet comparison method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6330574B1 (en) * 1997-08-05 2001-12-11 Fujitsu Limited Compression/decompression of tags in markup documents by creating a tag code/decode table based on the encoding of tags in a DTD included in the documents
CN101197818A (en) * 2006-12-08 2008-06-11 中兴通讯股份有限公司 ASN.1 packet object oriented processing method
CN101335648A (en) * 2008-07-25 2008-12-31 中兴通讯股份有限公司 Automatic converting method for packets of different interfaces and apparatus thereof

Also Published As

Publication number Publication date
CN105323103B (en) 2019-11-05
CN105323103A (en) 2016-02-10

Similar Documents

Publication Publication Date Title
US20190116114A1 (en) Packet forwarding method and apparatus
WO2015131537A1 (en) Bidirectional forwarding detection method, device, and system, and computer storage medium
US8379645B2 (en) Link data transmission method, node and system
RU2015117520A (en) APPLICABILITY OF THE BIT SUB-FLOW TO NESTED SEI MESSAGES IN VIDEO ENCODING
US20210075711A1 (en) Cluster wide packet tracing
FI125109B (en) Method for administering network device data and a network management system
US20200067774A1 (en) Secure mechanism to manage network device configuration and audit with a blockchain
CN103001804A (en) Device-independent alarm processing method and device and network management system corresponding to device-independent alarm processing device
WO2020048488A1 (en) Data storage method and storage device
WO2019056693A1 (en) Interface proxying method and application server
JP5851034B2 (en) HSS failure recovery in non-3GPP access
BR112021006006A2 (en) methods and apparatus implemented on a server and on a network device, storage media, and computer program product
WO2016090764A1 (en) Short message transmitting method and device and computer storage medium
TWI704825B (en) Indication method and identification method of SS Block, base station and terminal
US20160105348A1 (en) Mep configuration method and network device
WO2015154444A1 (en) Network operation and maintenance system and method for same to be compatible with change in packet of network management system
EP3289712A1 (en) Bundled forward error correction (fec) for multiple sequenced flows
US11792095B1 (en) Computer network architecture mapping using metadata
CN109299053B (en) File operation method, device and computer storage medium
US20170034005A1 (en) Flow Entry Management Method and Device
WO2017045473A1 (en) Business process operation method and apparatus
EP3352418A1 (en) Data processing status monitoring method and device
US11595245B1 (en) Computer network troubleshooting and diagnostics using metadata
CN110830271A (en) Method and device for realizing automatic association and update of homer and guest resource data
CN105681367A (en) Method, server and client for sharing file contents

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14889036

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14889036

Country of ref document: EP

Kind code of ref document: A1