WO2008052389A1 - A method and system for realizing universal interfaces in the network management system - Google Patents

A method and system for realizing universal interfaces in the network management system Download PDF

Info

Publication number
WO2008052389A1
WO2008052389A1 PCT/CN2006/002935 CN2006002935W WO2008052389A1 WO 2008052389 A1 WO2008052389 A1 WO 2008052389A1 CN 2006002935 W CN2006002935 W CN 2006002935W WO 2008052389 A1 WO2008052389 A1 WO 2008052389A1
Authority
WO
WIPO (PCT)
Prior art keywords
parameter
interface
information
type
message
Prior art date
Application number
PCT/CN2006/002935
Other languages
French (fr)
Chinese (zh)
Inventor
Qingfei Nian
Original Assignee
Zte Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zte Corporation filed Critical Zte Corporation
Priority to CN2006800562002A priority Critical patent/CN101529807B/en
Priority to PCT/CN2006/002935 priority patent/WO2008052389A1/en
Publication of WO2008052389A1 publication Critical patent/WO2008052389A1/en

Links

Classifications

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

Definitions

  • the present invention relates to an interface of a network management system, and more particularly to an interface implementation method and system for a network management system in the field of telecommunications. Background technique
  • Telecom operators and equipment manufacturers monitor and manage telecommunication equipment through centralized telecommunication network management.
  • the telecommunications network management is divided into a workstation management function (MF), an operating system function (OSF), a network element function (NEF), and a Q interface adaptation function (QAF), each of which functions. It is composed of a plurality of sub-function modules, which are connected between the workstation function (WFS) and the operating system function (OSF) defined by the Telecommunication Management Network (TMN), between different telecommunication management networks or non-telecom management.
  • MF workstation management function
  • OSF operating system function
  • NEF network element function
  • Q interface adaptation function Q interface adaptation function
  • the interface (Qx) between QAFs interacts.
  • Each sub-function module must define and organize the interface in order to interact with other functions.
  • the implementation of the interface between systems or within the system is pre-defined or agreed within the application.
  • the parameter types and parameters of the interface are fixed.
  • the interface needs to be recompiled (internal convention) The way it is not needed) and the upgrade of the application, this change may introduce new problems and increase the complexity of system maintenance.
  • the implementation principle is to replace the original interface with a new derived interface.
  • the technical problem to be solved by the present invention is to provide a general interface implementation method and system for the network management system, which can enhance the interface expansion capability of the network management system, and can save development and maintenance costs of the network management system.
  • the present invention provides a method for implementing a common interface of a network management system, including the following steps:
  • the packet transmitted by the interface operation is defined as a general operation interface structure, and the operation information to be filled in the structure includes an operation identifier and an operation parameter, and the operation parameter is embodied in the form of a list, including a parameter name and a parameter value item.
  • Parameter values can be of any data type;
  • the operation information is configured and saved in the system, and the operation identifier used by the operation interface and the parameter name of the operation parameter are defined in the operation information;
  • the sending side function interface fills in the operation information according to the defined common operation interface structure, and generates a message to be sent to the receiving side function interface;
  • the receiving side function interface determines whether the function module is the processing module of the operation, and if yes, performs step (d), otherwise sends to the function interface of the function module that processes the operation, and then performs the step (d);
  • the function interface that receives the packet parses the packet, and determines whether the operation identifier and the name of some or all of the operation parameters have matching items in the configured operation information. If yes, execute the next step, otherwise , returning an error message to the sending side function interface, and ending;
  • the function interface parses the parameter value of the parameter that matches the success, and performs subsequent processing.
  • the foregoing interface implementation method may further have the following features:
  • the function function of the transmitting side in the step (b) is to send a message to another function interface inside the system, or to a function interface sent to another system.
  • the foregoing interface implementation method may further have the following features:
  • the operation parameter list of the general operation interface structure defined in the step (a) further includes a parameter The number type item; the parameter type of the operation parameter is defined in the operation information configured in the system; in the step (d), the function interface determines whether the operation parameter has a matching item in the configured operation information, and is also filled in. Whether the parameter type of the operation parameter is consistent with the configured parameter type. If the parameter name and the parameter type are the same, the two match. Otherwise, they do not match.
  • the foregoing interface implementation method may further have the following features:
  • the defined operation parameter list includes an entry parameter list, an exit parameter list, and a return value parameter list; the operation information configured in the system is also divided into an entry parameter, an exit parameter, and Return value parameters, and define the parameter names and parameter types of each operation parameter included in the three types of parameters.
  • the foregoing interface implementation method may further have the following features:
  • the operation processing information is further configured in the system, including the module name and the operation identifier, and each module may correspond to multiple operations;
  • the receiving side function interface finds the corresponding processing module according to the operation identifier parsed from the message to the configured operation processing information, and then sends the message or performs local processing.
  • the foregoing interface implementation method may further have the following features:
  • the operation operation information is further included in the general operation interface structure defined in the step (a); accordingly, the operation version information is also defined in the operation information configured in the system;
  • step (d) After the function interface of the step (d) parses the operation version information from the message, it also finds whether there is a matching item in the configured operation version information, and if yes, performs step (e), otherwise, an error message is returned. End.
  • the foregoing interface implementation method may further have the following features:
  • the step (a) further configures version compatibility information in the system, and defines a compatibility relationship between the versions;
  • the step (d) is considered to match if the operation version in the message is the same as or compatible with the configured operation version.
  • the foregoing interface implementation method may further have the following features:
  • the step (a) further configures type information in the system, and defines a custom parameter type name supported by the interface language and a corresponding system internal type or internal structure;
  • the step (e) function interface analyzes the custom parameter according to the type information of the configuration.
  • the foregoing interface implementation method may further have the following features:
  • the operation parameter defined by the general operation interface structure defined in the step (a) further includes the type version information; at the same time, the type version information corresponding to the custom parameter type is also defined in the type information also configured in the system;
  • the function interface of the step (d) parses the type version information of the operation parameter from the message, and finds whether the version information of the operation parameter is the same or compatible in the configured type information. If yes, the operation parameter is considered to be Matches the item, otherwise, the action parameter is considered to have no matching item.
  • the foregoing interface implementation method may further have the following features:
  • the system has a functional interface with one or more functional modules responsible for processing, and a functional interface of a functional module responsible for distributing operations, and the function of distributing the first to the receiving system when the system issues an operation between the systems.
  • the functional interface of the module which then determines the processing module of the operation for distribution.
  • the network management system with a universal operation interface includes a storage module and a plurality of functional modules, wherein the functional modules have functional interfaces that can communicate with each other, and the storage module stores the configured operation information.
  • the operation identifier used in the operation interface and the parameter name and parameter type of the operation parameter are defined in the operation information;
  • the message transmitted by the function interface is defined as a general operation interface structure, and the operation information to be filled in the structure includes an operation identifier and an operation parameter, and the parameter is represented in the form of a list, including a parameter name, a parameter type, and a parameter value.
  • the parameter value can adopt any data type;
  • the sending unit is configured to fill in the operation according to the general operation interface structure when transmitting Information, the generated message is sent to the function interface on the receiving side;
  • the receiving unit the processing module for determining the operation, distributing or forwarding the operations processed by the other function modules, parsing the message processed by the function module, determining the operation identifier and the name and type of the at least one operation parameter are configured Whether there is a matching item in the operation information, and if yes, parsing the parameter value of the parameter that matches the success, otherwise returning the error message.
  • the above network management system can also have the following features:
  • the storage module further stores operation processing information, including a module name and an operation identifier, and each module may correspond to multiple operations;
  • the above network management system can also have the following features:
  • the operation parameter adopts a structure of an entry parameter list, an exit parameter list, and a return value parameter list, and at least three fields of a parameter name, a parameter type, and a parameter value are defined in each list;
  • the operation information saved by the storage module is also divided into an entry parameter, an exit parameter, and a return value parameter, and respectively defines a parameter name and a parameter type of each operation parameter included in the three types of parameters.
  • the above network management system can also have the following features:
  • the operation version information is also saved in the storage module
  • the operation interface information is also included in the general operation interface structure defined by the function interface, and the receiving unit of the function interface further parses out the operation version information from the message, and finds whether there is a matching item in the configured operation version information. If so, continue to parse other information, otherwise an error message is returned.
  • the above network management system can also have the following features:
  • the receiving unit of the function interface determines that the operation version in the message is the same as or compatible with the configured operation version, it is considered that the two match.
  • the above network management system can also have the following features:
  • the storage module further stores type information, where the name of the custom parameter type supported by the interface language and the corresponding internal type or internal structure of the system are defined;
  • the receiving unit of the function interface parses the custom parameter in the packet according to the type information of the configuration.
  • the interface is flexible. You can add, modify, or delete interfaces through configuration files. You can increase or decrease the number of parameters on the interface and change the type of parameters through the configuration file.
  • the interface processing is more flexible.
  • the module that processes the interface can be configured to make the application and the interface loosely coupled, which facilitates the upgrade and debugging of the network management system. Drawing fan
  • Figure 1 is a schematic view showing the implementation of the method of the first embodiment of the present invention.
  • the implementation method of the present invention will be further described below with reference to the accompanying drawings and specific embodiments.
  • the implementation of the interface between the internal modules and the interface between the external modules implements two embodiments.
  • the telecommunication management network (TMN) specifies the workstation function (WFS).
  • WFS workstation function
  • the interface between the foreground and operating system functions (OSF), the interface (F), the different telecommunication management networks, or the interface (X) between the non-telecom management network and the operating system function (OSF) can be used.
  • FIG. 1 is a schematic diagram of an implementation of an interface between internal modules of a background system in this embodiment, and related functional modules are also shown.
  • the system includes a plurality of background function modules and a storage module.
  • the background function module only the operation interface portion, that is, the background function interface 1 to the background function interface n are shown.
  • the background system described above may be a back-end system of the telecommunications network management, but is not limited thereto.
  • the background function interface 1 is mainly used for the distribution of operation data, and other background function interfaces can also realize the operation data forwarding between internal modules.
  • the storage module stores the necessary configuration information, including type information, operation information, operation processing information, and version compatibility information.
  • the back-end function module can read the required configuration information from the storage module to complete the analysis of the data.
  • the background function module may also be replaced with a foreground function module, which is applicable to the internal function modules.
  • the method of this embodiment first defines a general interface operation structure to transmit messages and required configuration information, including the following contents:
  • the message transmitted by the function interface is defined as a general operation interface structure according to the specific interface language used, so that it can transmit various operation information.
  • the message between the internal module and the external module is the message with the above-mentioned general operation interface structure, but the same or different interface definition language can be used.
  • the ASN.1 definition can be used between the internal modules, and the external module can use the IDL.
  • the interface definition language can also be in the same language.
  • the operation interface structure definition in this embodiment includes an operation name, an operation version, an entry parameter list, an exit parameter list, and a return value parameter list; each list has the same format, and includes a parameter name, a parameter type, a type version, and a parameter.
  • the value is 4 fields, and the parameter value field can be represented by any type.
  • the configuration information includes operation processing information, operation information, version compatibility information, and type information, and can be saved in a file manner. among them:
  • the configured operational processing information is used to define the operations that the internal modules of the system can handle, including the module name and operation name. Each module can correspond to multiple operations.
  • the configured operation information defines the operation name, operation version, and operation parameters used by the operation interface of the interaction information between the internal modules of the system.
  • the operation parameters are divided into an entry parameter, an exit parameter, and a return value parameter, and parameters of each parameter are defined. Name and parameter type.
  • the compatibility between the operational version and the type version is defined in the configured version compatibility information.
  • the configured type information defines the custom parameter type name supported by the interface language, the corresponding system internal type or internal structure, and the type version.
  • the function interface can further parse the custom parameters according to this configuration. This definition is mainly to avoid parsing errors caused by changes in internal types or internal structure definitions. There is no version incompatibility or type change problem for the types provided by the interface language itself, so no definition is needed.
  • the operation name is used as an operation identifier.
  • the operation identifier can also be replaced with a command code or other flag.
  • the functional interface can be further divided into:
  • a sending unit configured to fill in the operation information according to the general operation interface and the structure, and generate a function interface that is sent to the receiving side;
  • the receiving unit is configured to find a corresponding processing module according to the operation identifier parsed from the message to the configured operation processing information, and then process the packet locally, or distribute or forward the message to the corresponding processing module.
  • parse the message and determine whether the operation identifier, the operation version (optional), and at least one operation parameter have matching items in the configured operation information (the operation version matching refers to the same or compatible, operation)
  • Parameter matching means that the parameter name and parameter type are the same, the type version is the same or compatible. If yes, the parameter value of the matching operation parameter is parsed. Otherwise, the error information is returned to the sending side.
  • the type information can be reported according to the configuration.
  • the custom parameters in the text are parsed.
  • the flow of the operation of the background function interface 1 to the background function interface n is taken as an example, that is, the background function interface 1 is the operation sending side, and the background function interface n is the operation receiving side, to explain the interface dynamic analysis and scheduling in the specific operation process. And processing methods, but other background functions are connected
  • the following process can also be implemented between the ports, and the process includes the following steps:
  • Step 101 The background function interface 1 fills in operation information according to the defined common operation interface structure, including an operation name and an operation version, and an entry parameter list, an exit parameter list, and a return value list, and each list includes a parameter name, a type, a version, and Value 4 items;
  • Step 102 the background function interface 1 finds the corresponding processing module as the background function interface n according to the filled operation name to the configured operation processing information, and sends the data of the operation information to the background function interface n;
  • the transmission can be either a distribution or a forwarding.
  • Step 103 After obtaining the operation data, the background function interface n parses out the operation name and the operation version to find the operation information in the configuration, and if it matches the operation with the same operation name and the same version or compatibility, the next step is performed, otherwise the transmission is performed. The side returns the corresponding error message and ends;
  • the configured version compatibility information it can be determined whether the currently used operation version is compatible with the operation version in the operation information. The same is true for the judgment of the type version below. If the operation name is different or the version is incompatible and forced to resolve, it may cause the system to crash.
  • Step 104 The background function interface II parses the entry parameter, the exit parameter, and the return parameter in the operation information, and performs matching on each parameter obtained according to the configured operation information and type information to determine whether the match name is the same and the type version is the same. Or compatible parameters, if any, go to the next step, otherwise, return the corresponding error message to the sending side, and end;
  • the receiver can only parse the matched parameters and not process the other parameters. It is also possible to require all matches to proceed down, otherwise an error message is returned.
  • Step 105 The background function interface n parses the parameter values with the same name and the same version or compatibility, and performs subsequent processing.
  • the parameter name, the parameter type, the type version, the parameter value, and the like are filled in the packet (such as an ASN packet) according to the general operation interface structure defined by the operator.
  • the application layer analyzes the configuration information locally by the receiver. The message does not parse the incompatible or unrecognized message and returns the corresponding error message.
  • the packet structure of this processing method is flat, the interface changes do not need to be recompiled, the number of parameters can be increased or decreased, and the parameter type is variable. Since the parsing of the entire packet is controlled by the application layer, it does not occur due to The problem of system crash caused by different definitions of the message structure.
  • the parameter types are all types defined by the system, you can also configure the above type information without using the configured operation information to determine whether the operation parameters can be resolved.
  • the operation processing information does not have to be written in a file, and in another embodiment, it can be directly written in the program, and the program judges the branch judgment to determine the distributed module, which is also feasible.
  • the operation version information may also be configured in the operation processing information, so that the distributed function interface first determines whether the operation version in the operation is the same as or compatible with the current configuration. If yes, redistribute, otherwise, the operation error message can be directly returned.
  • the return value parameter is incorporated into the exit parameter, in which case the return value parameter can be omitted.
  • some of the entry parameters and the exit parameters are combined into one class.
  • it is not important to classify the operation parameters as long as the operation parameter names and types used by the operation interface are defined, and correspondingly, in the general operation interface.
  • the structure also does not limit the number and type of parameter lists defined.
  • the above operation version and type version information may not be set.
  • only operations and parameters having the same name and the same version may be parsed, and 'the basic function of the present invention may be implemented.
  • the parameter type may not be added to the list of operating parameters.
  • FIG. 2 is an interface implementation of an external interface between a foreground system and a background system in this embodiment.
  • the structure of the foreground system and the configured information are the same as those of the first embodiment.
  • the back-end system and the foreground system have similar functional structures, including the front-end function interface 1 to the front-end function interface 1, and the front-end function interface is connected to the foreground device of the telecommunication network management system. , is responsible for information interaction with the background function interface, and has an external communication connection between the front function interface 1 and the background function interface 1.
  • the operation sending side and the operation receiving side are the foreground function interface or the background function interface
  • the dynamic analysis, scheduling, and processing methods of the foreground function interface are the same as the background function interface.
  • the following takes the foreground function interface 1 to send the operation to the background as an example, and the specific implementation steps of the method in this embodiment are described with reference to FIG. 2:
  • the front-end function interface 1 fills in the operation information according to the defined common operation interface structure, including the operation name, the operation version, the entry parameter list, the exit parameter list, and the return value list, and then generates a message according to the filled information to the background function interface 1
  • the operation data is sent.
  • the processing after the background function interface 1 receives the operation data is the same as the step 102 105 of the first embodiment, and belongs to the interface implementation between the internal modules, and is not repeated here.
  • the background function interface 1 in Figure 2 may also be the functional interface of the functional module to handle the operation, and thus it is not necessary to distribute it. However, if it is not the function interface of the function module that handles the operation, it needs to be forwarded to the corresponding function interface according to the configured processing module.
  • NE network element
  • GraphicString, GraphicString 5 GeneralizedTime and other types are ASN types. If you want to change the original structure during system upgrade, such as modifying CreateNE-T as follows:
  • operationName is the operation name
  • version is the version
  • inputParam, outputParam, and returnParam are the ingress parameter, the exit parameter, and the return value parameter, respectively.
  • the entry parameters, exit parameters, and return value parameters are all populated in the following list format:
  • ParamList-T SEQUENCE OF Param-T
  • N-T and Error-T are structures defined internally by the system, and the function modules can be parsed.
  • Type information profile definition :
  • the above NE refers to the network element
  • the EMS refers to the network management system, which is only an example.
  • the parameter name, parameter type, type version, parameter value, etc. are filled in the ASN message enemlOperationInterface-T according to the general operation interface structure defined by the operator.
  • the packet is parsed one by one, and the incompatible or unrecognized message is not parsed, and the corresponding error information is returned.
  • the present invention provides a network management system for data interaction in a network such as a Telecommunication Management Network (TMN) and a method for implementing the common interface thereof, including a general structure definition of a data packet and a specific packet information configuration.
  • TTN Telecommunication Management Network
  • the configuration of the function interface module of the system through the general conversion processing process of the message structure, completes the parsing of the message, and can achieve good compatibility, overcomes the lack of common, difficult to expand, interface and application of the existing interface processing technology
  • the shortcoming of coupling is too tight, the interface expansion capability of the network management system is enhanced, and the development and maintenance costs of the network management system can be saved.
  • the general interface processing method and system proposed by the present invention have universality, strong expansion capability, and no dependence on specific technologies, and can well solve the problem of interface expansion.
  • the method and system for implementing the universal interface according to the present invention when the interface needs to be upgraded for some reason, only the configuration information definition (type information, operation information, operation processing information) needs to be modified, and the corresponding foreground or The background function interface module has very good maintainability and can effectively reduce development and maintenance costs.

Abstract

A network management system for interacting data in the telecommunication management network (TMN) or the like networks and the method for realizing universal interfaces thereof are disclosed. The present invention includes define of the universal architecture for the data massages, configuration of the specific data massage information and configuration of the function interface module of the system. By transforming the data massages to universal architecture, the present invention could accomplish analyze of the data message and realize good compatibility, and therefore overcome the disadvantage of lacking university, not easy to expand and the disadvantage that the coupling between the interfaces and the application is too compact in the current interfaces processing technology, enhance the interfaces expand ability of the network management system, and save the cost of developing and maintenance of the network management.

Description

一种网管系统通用的接口实现方法及其系统 技术领域  Universal interface implementation method and system thereof for network management system
本发明涉及一种网管系统的接口, 尤其涉及电信领域中一种网管系 统通用的接口实现方法及其系统。 背景技术  The present invention relates to an interface of a network management system, and more particularly to an interface implementation method and system for a network management system in the field of telecommunications. Background technique
随着电信网的发展, 电信网管系统越来越受到电信运营商和设备制 造商的重视, 电信运营商和设备制造商通过电信网管对电信设备进行维 护操作和集中化的监控和管理。  With the development of telecommunication networks, telecom network management systems are increasingly valued by telecom operators and equipment manufacturers. Telecom operators and equipment manufacturers monitor and manage telecommunication equipment through centralized telecommunication network management.
在电信管理网 (TMN)规范中, 将电信网管划分为工作站管理功 能(MF) 、 操作系统功能(OSF) 、 网元功能(NEF) 、 和 Q接口适配 功能(QAF) , 其中每个功能又由多个子功能模块组成, 这些子功能模 块间通过电信管理网 (TMN)规定的工作站功能(WFS)和操作系统功 能(OSF)之间接口 (F) 、 不同电信管理网之间或非电信管理网同操作 系统功能(OSF)之间的接口 (X) 、 操作系统功能(OSF)和网元功能 (NEF)之间的接口 (Q3)或操作系统功能(OSF)和 Q接口适配功能 (QAF)之间的接口 (Qx)进行交互, 每个子功能模块为了和其它功能 进行交互, 必须进行接口的定义和组织。  In the Telecommunications Management Network (TMN) specification, the telecommunications network management is divided into a workstation management function (MF), an operating system function (OSF), a network element function (NEF), and a Q interface adaptation function (QAF), each of which functions. It is composed of a plurality of sub-function modules, which are connected between the workstation function (WFS) and the operating system function (OSF) defined by the Telecommunication Management Network (TMN), between different telecommunication management networks or non-telecom management. The interface (X) between the network and the operating system function (OSF), the interface between the operating system function (OSF) and the network element function (NEF) (Q3) or the operating system function (OSF) and the Q interface adaptation function ( The interface (Qx) between QAFs interacts. Each sub-function module must define and organize the interface in order to interact with other functions.
在现有的网管系统中, 系统间或系统内部的接口的实现是预先定义 好或在应用程序内部约定的, 接口的参数类型和参数个数是固定的, 接 口变化时需要重新编译接口 (内部约定方式不需要)和升级应用程序, 这种变化可能会引入新的问题, 增加系统维护的复杂度。 目前也有一些 接口扩展方法, 比如采用派生接口或对象的方法, 其实现原理是使用新 的派生接口替代原来的接口, 由于派生接口继承了原有的接口, 新旧接 口直接可以互通, 但是这种方法的出发点是在现有的特定接口上进行扩 展, 没有实现接口和应用的松偶合, 并且与具体的实现技术有一定的依 赖关系, 因此不能普遍适用和从根本上解决问题。 发明内容 In the existing network management system, the implementation of the interface between systems or within the system is pre-defined or agreed within the application. The parameter types and parameters of the interface are fixed. When the interface changes, the interface needs to be recompiled (internal convention) The way it is not needed) and the upgrade of the application, this change may introduce new problems and increase the complexity of system maintenance. At present, there are also some interface extension methods, such as the method of using a derived interface or an object. The implementation principle is to replace the original interface with a new derived interface. Since the derived interface inherits the original interface, the old and new interfaces can directly communicate with each other, but this method The starting point is to expand on the existing specific interface, without the loose coupling of the interface and the application, and has certain dependence on the specific implementation technology, so it cannot be universally applied and fundamentally solved. Summary of the invention
本发明要解决的技术问题是提供一种网管系统通用的接口实现方法 及其系统, 可增强网管系统的接口扩展能力, 并可以节省网管系统的开 发维护费用。  The technical problem to be solved by the present invention is to provide a general interface implementation method and system for the network management system, which can enhance the interface expansion capability of the network management system, and can save development and maintenance costs of the network management system.
为实现上述目的 ,本发明提供了一种网管系统通用的接口实现方法, 包括以下步骤:  To achieve the above objective, the present invention provides a method for implementing a common interface of a network management system, including the following steps:
( a )将接口操作传递的报文定义为一种通用操作接口结构, 该结构 中要填写的操作信息包括操作标识和操作参数, 操作参数以列表的形式 体现, 包括参数名称和参数值项, 参数值可采用任意数据类型;  (a) The packet transmitted by the interface operation is defined as a general operation interface structure, and the operation information to be filled in the structure includes an operation identifier and an operation parameter, and the operation parameter is embodied in the form of a list, including a parameter name and a parameter value item. Parameter values can be of any data type;
同时, 在系统中对操作信息进行配置和保存, 该操作信息中定义了 操作接口使用的操作标识以及操作参数的参数名称;  At the same time, the operation information is configured and saved in the system, and the operation identifier used by the operation interface and the parameter name of the operation parameter are defined in the operation information;
( b )发送侧功能接口根据定义的通用操作接口结构填写所述操作信 息, 生成报文发送到接收侧功能接口;  (b) The sending side function interface fills in the operation information according to the defined common operation interface structure, and generates a message to be sent to the receiving side function interface;
( C )接收侧功能接口收到报文后, 判断本功能模块是否为该操作的 处理模块, 如果是, 执行步骤(d ), 否则发送到处理该操作的功能模块 的功能接口, 再执行步驟(d ) ;  (C) After receiving the message, the receiving side function interface determines whether the function module is the processing module of the operation, and if yes, performs step (d), otherwise sends to the function interface of the function module that processes the operation, and then performs the step (d);
( d )收到报文的功能接口对报文进行解析, 并判断是否其中的操作 标识及部分或全部操作参数的名称在配置的操作信息中有匹配的项, 如 有, 执行下一步, 否则, 向发送侧功能接口返回错误信息, 结束;  (d) The function interface that receives the packet parses the packet, and determines whether the operation identifier and the name of some or all of the operation parameters have matching items in the configured operation information. If yes, execute the next step, otherwise , returning an error message to the sending side function interface, and ending;
( e )所述功能接口解析匹配成功的参数的参数值, 进行后续处理。  (e) The function interface parses the parameter value of the parameter that matches the success, and performs subsequent processing.
进一步地, 上述接口实现方法还可具有以下特点: Further, the foregoing interface implementation method may further have the following features:
所述步骤( b )中发送侧功能接口是将报文发送到系统内部的另一功 能接口, 或者是发送到另一系统的功能接口。  The function function of the transmitting side in the step (b) is to send a message to another function interface inside the system, or to a function interface sent to another system.
进一步地, 上述接口实现方法还可具有以下特点:  Further, the foregoing interface implementation method may further have the following features:
所述步骤(a )中定义的通用操作接口结构的操作参数列表还包括参 数类型项; 在系统中配置的操作信息中定义了操作参数的参数类型; 所述步骤(d )中, 功能接口判断操作参数在配置的操作信息是否有 匹配的项时, 还要比较填写的该操作参数的参数类型与配置的参数类型 是否一致, 如参数名称和参数类型均一致, 则两者匹配, 否则, 不匹配。 The operation parameter list of the general operation interface structure defined in the step (a) further includes a parameter The number type item; the parameter type of the operation parameter is defined in the operation information configured in the system; in the step (d), the function interface determines whether the operation parameter has a matching item in the configured operation information, and is also filled in. Whether the parameter type of the operation parameter is consistent with the configured parameter type. If the parameter name and the parameter type are the same, the two match. Otherwise, they do not match.
进一步地, 上述接口实现方法还可具有以下特点:  Further, the foregoing interface implementation method may further have the following features:
所述步骤(a ) 中定义的通用操作接口结构中, 定义的操作参数列表 包括入口参数列表、 出口参数列表和返回值参数列表; 在系统中配置的 操作信息也分为入口参数、 出口参数和返回值参数, 并分别定义该三类 参数所包含的每个操作参数的参数名称和参数类型。  In the general operation interface structure defined in the step (a), the defined operation parameter list includes an entry parameter list, an exit parameter list, and a return value parameter list; the operation information configured in the system is also divided into an entry parameter, an exit parameter, and Return value parameters, and define the parameter names and parameter types of each operation parameter included in the three types of parameters.
进一步地, 上述接口实现方法还可具有以下特点:  Further, the foregoing interface implementation method may further have the following features:
所述步骤(a ) 中, 还在系统中配置了操作处理信息, 包括模块名称 和操作标识, 每个模块可对应于多个操作;  In the step (a), the operation processing information is further configured in the system, including the module name and the operation identifier, and each module may correspond to multiple operations;
所述步骤( c ) 中, 接收侧功能接口根据从报文解析出的操作标识到 配置的操作处理信息中找到相应的处理模块, 再对报文进行发送或在本 地进行处理。  In the step (c), the receiving side function interface finds the corresponding processing module according to the operation identifier parsed from the message to the configured operation processing information, and then sends the message or performs local processing.
进一步地, 上述接口实现方法还可具有以下特点:  Further, the foregoing interface implementation method may further have the following features:
所述步骤(a ) 中定义的通用操作接口结构中还包括操作版本信息; 相应地, 在系统中配置的操作信息中也定义了操作版本信息;  The operation operation information is further included in the general operation interface structure defined in the step (a); accordingly, the operation version information is also defined in the operation information configured in the system;
所述步骤(d )功能接口从报文解析出其中的操作版本信息后, 还到 配置的操作版本信息中查找是否有匹配的项, 如果有,再执行步骤(e ) , 否则返回错误信息, 结束。  After the function interface of the step (d) parses the operation version information from the message, it also finds whether there is a matching item in the configured operation version information, and if yes, performs step (e), otherwise, an error message is returned. End.
进一步地, 上述接口实现方法还可具有以下特点: Further, the foregoing interface implementation method may further have the following features:
所述步骤(a )在系统中还配置了版本兼容信息, 定义了版本之间的 兼容关系;  The step (a) further configures version compatibility information in the system, and defines a compatibility relationship between the versions;
所述步骤( d )如果报文中的操作版本与配置的操作版本相同或者兼 容, 都认为两者相匹配。 进一步地, 上述接口实现方法还可具有以下特点: The step (d) is considered to match if the operation version in the message is the same as or compatible with the configured operation version. Further, the foregoing interface implementation method may further have the following features:
所述步骤(a )在系统中还配置了类型信息, 定义了接口语言支持的 自定义参数类型名称和对应的系统内部类型或内部结构;  The step (a) further configures type information in the system, and defines a custom parameter type name supported by the interface language and a corresponding system internal type or internal structure;
所述步骤(e )功能接口根据该配置的类型信息对自定义参数进行解 析。  The step (e) function interface analyzes the custom parameter according to the type information of the configuration.
进一步地, 上述接口实现方法还可具有以下特点:  Further, the foregoing interface implementation method may further have the following features:
所述步驟(a )中定义的通用操作接口结构定义的操作参数还包括类 型版本信息; 同时, 在系统中还配置的类型信息中也定义了自定义参数 类型所对应的类型版本信息;  The operation parameter defined by the general operation interface structure defined in the step (a) further includes the type version information; at the same time, the type version information corresponding to the custom parameter type is also defined in the type information also configured in the system;
所述步骤(d )功能接口从报文解析出其中操作参数的类型版本信息 后,还到配置的类型信息中查找该操作参数的版本信息是否相同或兼容, 如果是, 则认为该操作参数有匹配的项, 否则, 认为该操作参数没有匹 配的项。  The function interface of the step (d) parses the type version information of the operation parameter from the message, and finds whether the version information of the operation parameter is the same or compatible in the configured type information. If yes, the operation parameter is considered to be Matches the item, otherwise, the action parameter is considered to have no matching item.
进一步地, 上述接口实现方法还可具有以下特点:  Further, the foregoing interface implementation method may further have the following features:
所述系统具有和一个或多个负责处理的功能模块的功能接口, 以及 一个负责分发操作的功能模块的功能接口, 系统之间下发操作时, 先发 送到接收方系统的该负责分发的功能模块的功能接口, 再由该功能接口 确定该操作的处理模块进行分发。  The system has a functional interface with one or more functional modules responsible for processing, and a functional interface of a functional module responsible for distributing operations, and the function of distributing the first to the receiving system when the system issues an operation between the systems. The functional interface of the module, which then determines the processing module of the operation for distribution.
本发明提供的具有通用操作接口的网管系统包括存储模块和多个功 能模块, 所述功能模块上具有可相互通信的功能接口, 其特征在于: 所述存储模块中保存了配置的操作信息, 该操作信息中定义了操作 接口使用的操作标识以及操作参数的参数名称和参数类型; The network management system with a universal operation interface provided by the present invention includes a storage module and a plurality of functional modules, wherein the functional modules have functional interfaces that can communicate with each other, and the storage module stores the configured operation information. The operation identifier used in the operation interface and the parameter name and parameter type of the operation parameter are defined in the operation information;
所述功能接口传递的报文定义为一种通用操作接口结构, 该结构中 要填写的操作信息包括操作标识和操作参数, 搡作参数以列表的形式体 现, 包括参数名称、 参数类型和参数值项, 参数值可采用任意数据类型; 发送单元, 用于在发送时, 根据该通用操作接口结构填写所述操作 信息, 生成报文发送到接收侧的功能接口; The message transmitted by the function interface is defined as a general operation interface structure, and the operation information to be filled in the structure includes an operation identifier and an operation parameter, and the parameter is represented in the form of a list, including a parameter name, a parameter type, and a parameter value. Item, the parameter value can adopt any data type; the sending unit is configured to fill in the operation according to the general operation interface structure when transmitting Information, the generated message is sent to the function interface on the receiving side;
接收单元, 用于判断操作的处理模块, 对其它功能模块处理的操作 进行分发或转发, 对本功能模块处理的操作, 解析报文并判断其中的操 作标识及至少一个操作参数的名称和类型在配置的操作信息中是否有匹 配的项, 如有, 再解析匹配成功的参数的参数值, 否则返回错误信息。  The receiving unit, the processing module for determining the operation, distributing or forwarding the operations processed by the other function modules, parsing the message processed by the function module, determining the operation identifier and the name and type of the at least one operation parameter are configured Whether there is a matching item in the operation information, and if yes, parsing the parameter value of the parameter that matches the success, otherwise returning the error message.
进一步地, 上述网管系统还可具有以下特点: Further, the above network management system can also have the following features:
所述存储模块中还保存了操作处理信息, 包括模块名称和操作标识, 每个模块可对应于多个操作;  The storage module further stores operation processing information, including a module name and an operation identifier, and each module may correspond to multiple operations;
所述功能接口的接收单元根据从报文解析出的操作标识到所述操作 处理信息中找到相应的处理模块, 再在本地对 ^=艮文进行处理, 或者将该 报文分发或转发到相应的处理模块。  The receiving unit of the function interface finds a corresponding processing module according to the operation identifier parsed from the message to the operation processing information, and then processes the ^=艮 text locally, or distributes or forwards the message to the corresponding Processing module.
进一步地, 上述网管系统还可具有以下特点:  Further, the above network management system can also have the following features:
所述功能接口定义的通用操作接口结构中, 操作参数采用入口参数 列表、 出口参数列表和返回值参数列表的结构, 每个列表中都至少定义 了参数名称、 参数类型和参数值三个字段;  In the general operation interface structure defined by the function interface, the operation parameter adopts a structure of an entry parameter list, an exit parameter list, and a return value parameter list, and at least three fields of a parameter name, a parameter type, and a parameter value are defined in each list;
所述存储模块保存的操作信息也分为入口参数、 出口参数和返回值 参数, 并分别定义了该三类参数所包含的每个操作参数的参数名称和参 数类型。  The operation information saved by the storage module is also divided into an entry parameter, an exit parameter, and a return value parameter, and respectively defines a parameter name and a parameter type of each operation parameter included in the three types of parameters.
进一步地, 上述网管系统还可具有以下特点:  Further, the above network management system can also have the following features:
所述存储模块中还保存了操作版本信息;  The operation version information is also saved in the storage module;
所述功能接口定义的通用操作接口结构中也包括操作版本信息, 所 述功能接口的接收单元还从报文解析出其中的操作版本信息, 到配置的 操作版本信息中查找是否有匹配的项, 如果有, 再继续解析其它信息, 否则返回错误信息。  The operation interface information is also included in the general operation interface structure defined by the function interface, and the receiving unit of the function interface further parses out the operation version information from the message, and finds whether there is a matching item in the configured operation version information. If so, continue to parse other information, otherwise an error message is returned.
进一步地, 上述网管系统还可具有以下特点:  Further, the above network management system can also have the following features:
所述存储模块中还保存了版本兼容信息, 定义了版本之间的兼容关 系; Version compatibility information is also saved in the storage module, and compatibility between versions is defined. Department
所述功能接口的接收单元如果判断报文中的操作版本与配置的操作 版本相同或者兼容, 则认为两者相匹配。  If the receiving unit of the function interface determines that the operation version in the message is the same as or compatible with the configured operation version, it is considered that the two match.
进一步地, 上述网管系统还可具有以下特点:  Further, the above network management system can also have the following features:
所述存储模块中还保存了类型信息, 该信息中定义了接口语言支持 的自定义参数类型名称和对应的系统内部类型或内部结构;  The storage module further stores type information, where the name of the custom parameter type supported by the interface language and the corresponding internal type or internal structure of the system are defined;
所述功能接口的接收单元根据该配置的类型信息对报文中的自定义 参数进行解析。  The receiving unit of the function interface parses the custom parameter in the packet according to the type information of the configuration.
采用本发明所述方法, 与现有技术相比, 优点在于: With the method of the present invention, compared with the prior art, the advantages are:
1 )使现有的接口处理更具通用性, 不同技术实现的接口都可以采用 本发明提供的方法;  1) making the existing interface processing more versatile, and the interfaces implemented by different technologies can adopt the method provided by the present invention;
2 )对接口的变更灵活, 可以通过配置文件增加、 修改、 删除接口; 可以通过配置文件增加或减少接口的参数数目和改变参数的类型;  2) The interface is flexible. You can add, modify, or delete interfaces through configuration files. You can increase or decrease the number of parameters on the interface and change the type of parameters through the configuration file.
3 )对接口的处理更灵活, 可以配置处理接口的模块, 使得应用与接 口实现松偶合, 方便网管系统的升級和调试。 附图概迷  3) The interface processing is more flexible. The module that processes the interface can be configured to make the application and the interface loosely coupled, which facilitates the upgrade and debugging of the network management system. Drawing fan
图 1 是本发明第一实施例方法的实施示意图。  BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a schematic view showing the implementation of the method of the first embodiment of the present invention.
图 2是本发明第二实施例方法的实施示意图。 本发明的较佳实施方式  2 is a schematic view showing the implementation of the method of the second embodiment of the present invention. Preferred embodiment of the invention
下面结合附图和具体实施例进一步说明本发明的实施方法, 分成内 部模块之间的接口实现和外部模块之间的接口实现两个实施例, 电信管 理网 (TMN )规定的工作站功能(WFS )前台和操作系统功能(OSF ) 后台之间接口 (F )、 不同电信管理网之间或非电信管理网同操作系统功 能(OSF )之间的接口 (X )等等均可采用。 第一实施例 The implementation method of the present invention will be further described below with reference to the accompanying drawings and specific embodiments. The implementation of the interface between the internal modules and the interface between the external modules implements two embodiments. The telecommunication management network (TMN) specifies the workstation function (WFS). The interface between the foreground and operating system functions (OSF), the interface (F), the different telecommunication management networks, or the interface (X) between the non-telecom management network and the operating system function (OSF) can be used. First embodiment
图 1是本实施例后台系统内部模块之间的接口实现方法的实施示意 图, 同时也示出了相关的功能模块。 如图所示, 该系统包括多个后台功 能模块和一存储模块, 对于后台功能模块, 图中仅出了其操作接口部分, 即后台功能接口 1〜后台功能接口 n。 上述后台系统可以是电信网管的后 台系统, 但不局限于此。  FIG. 1 is a schematic diagram of an implementation of an interface between internal modules of a background system in this embodiment, and related functional modules are also shown. As shown in the figure, the system includes a plurality of background function modules and a storage module. For the background function module, only the operation interface portion, that is, the background function interface 1 to the background function interface n are shown. The background system described above may be a back-end system of the telecommunications network management, but is not limited thereto.
其中后台功能接口 1主要用于操作数据的分发, 其它后台功能接口 也可以实现内部模块之间操作数据的转发。 存储模块中保存了必要的配 置信息, 包括类型信息、 操作信息、 操作处理信息和版本兼容信息。 后 台功能模块可以从该存储模块中读取所需的配置信息来完成对数据的解 析。 在本实施例, 上述后台功能模块也可以替换为前台功能模块, 对于 内部功能模块之间都是适用的。 本实施例方法首先定义通用的接口操作结构传递报文和所需的配置 信息, 包括以下内容:  The background function interface 1 is mainly used for the distribution of operation data, and other background function interfaces can also realize the operation data forwarding between internal modules. The storage module stores the necessary configuration information, including type information, operation information, operation processing information, and version compatibility information. The back-end function module can read the required configuration information from the storage module to complete the analysis of the data. In this embodiment, the background function module may also be replaced with a foreground function module, which is applicable to the internal function modules. The method of this embodiment first defines a general interface operation structure to transmit messages and required configuration information, including the following contents:
功能接口传递的报文根据具体使用的接口语言, 定义为一种通用操 作接口结构, 使之可以传递各种操作信息。 内部模块和外部模块之间传 递的都是具有上述通用操作接口结构的报文, 但是可以使用相同或不同 的接口定义语言, 比如, 内部模块之间可以使用 ASN. 1定义, 外部模块 可以使用 IDL接口定义语言, 也可以使用同一种语言。  The message transmitted by the function interface is defined as a general operation interface structure according to the specific interface language used, so that it can transmit various operation information. The message between the internal module and the external module is the message with the above-mentioned general operation interface structure, but the same or different interface definition language can be used. For example, the ASN.1 definition can be used between the internal modules, and the external module can use the IDL. The interface definition language can also be in the same language.
本实施例的该操作接口结构定义中包括操作名、 操作版本、 入口参 数列表、 出口参数列表和返回值参数列表; 各个列表的格式是相同的, 均包含参数名称、 参数类型、 类型版本和参数值 4个字段, 参数值字段 可以使用任意一种类型表示。  The operation interface structure definition in this embodiment includes an operation name, an operation version, an entry parameter list, an exit parameter list, and a return value parameter list; each list has the same format, and includes a parameter name, a parameter type, a type version, and a parameter. The value is 4 fields, and the parameter value field can be represented by any type.
配置信息包括操作处理信息、操作信息、 版本兼容信息和类型信息, 可以文件的方式保存。 其中:  The configuration information includes operation processing information, operation information, version compatibility information, and type information, and can be saved in a file manner. among them:
配置的操作处理信息用来定义系统内部模块可以处理的操作, 包括 模块名称和操作名称, 每个模块可对应于多个操作。 配置的操作信息中定义了系统内部模块之间交互信息的操作接口使 用的操作名称、 操作版本和操作参数, 操作参数分为入口参数、 出口参 数和返回值参数, 并且定义了每一参数的参数名称和参数类型。 The configured operational processing information is used to define the operations that the internal modules of the system can handle, including the module name and operation name. Each module can correspond to multiple operations. The configured operation information defines the operation name, operation version, and operation parameters used by the operation interface of the interaction information between the internal modules of the system. The operation parameters are divided into an entry parameter, an exit parameter, and a return value parameter, and parameters of each parameter are defined. Name and parameter type.
配置的版本兼容信息中定义了操作版本和类型版本之间的兼容关 系。  The compatibility between the operational version and the type version is defined in the configured version compatibility information.
配置的类型信息中定义了接口语言支持的自定义参数类型名称、 对 应的系统内部类型或内部结构及类型版本。 功能接口可根据该配置对自 定义参数进行进一步地解析。 这种定义主要是避免因内部类型或内部结 构定义的变化引发的解析错误, 对接口语言本身提供的类型不存在版本 不兼容或类型改动问题, 因此不需要定义。  The configured type information defines the custom parameter type name supported by the interface language, the corresponding system internal type or internal structure, and the type version. The function interface can further parse the custom parameters according to this configuration. This definition is mainly to avoid parsing errors caused by changes in internal types or internal structure definitions. There is no version incompatibility or type change problem for the types provided by the interface language itself, so no definition is needed.
操作名称是作为一种操作标识, 在本发明, 操作标识也可以用命令 代码或其它标志来代替。  The operation name is used as an operation identifier. In the present invention, the operation identifier can also be replaced with a command code or other flag.
功能接口可进一步分为: The functional interface can be further divided into:
发送单元, 用于在发送时, 根据该通用操作接口 ·结构填写所述操作 信息, 生成报文发送到接收侧的功能接口;  a sending unit, configured to fill in the operation information according to the general operation interface and the structure, and generate a function interface that is sent to the receiving side;
接收单元, 用于根据从报文解析出的操作标识到配置的操作处理信 息中找到相应的处理模块, 再在本地对报文进行处理, 或者将该 4艮文分 发或转发到相应的处理模块; 对本功能模块处理的操作, 解析报文并判 断其中的操作标识、 操作版本(可选)及至少一个操作参数在配置的操 作信息中是否有匹配的项 (操作版本匹配指相同或兼容, 操作参数匹配 指参数名称、 参数类型相同, 类型版本相同或兼容) , 如有, 再解析匹 配到的操作参数的参数值, 否则向发送侧返回错误信息; 此外, 还可根 据配置的类型信息对报文中的自定义参数进行解析。  The receiving unit is configured to find a corresponding processing module according to the operation identifier parsed from the message to the configured operation processing information, and then process the packet locally, or distribute or forward the message to the corresponding processing module. For the operation processed by this function module, parse the message and determine whether the operation identifier, the operation version (optional), and at least one operation parameter have matching items in the configured operation information (the operation version matching refers to the same or compatible, operation) Parameter matching means that the parameter name and parameter type are the same, the type version is the same or compatible. If yes, the parameter value of the matching operation parameter is parsed. Otherwise, the error information is returned to the sending side. In addition, the type information can be reported according to the configuration. The custom parameters in the text are parsed.
下面以后台功能接口 1向后台功能接口 n下发操作的流程为例, 即 后台功能接口 1为操作发送侧, 后台功能接口 n为操作接收侧, 来说明 具体操作过程中的接口动态分析、 调度和处理方法, 但其它后台功能接 口之间也可以实现下述流程, 该流程包括以下步骤: The flow of the operation of the background function interface 1 to the background function interface n is taken as an example, that is, the background function interface 1 is the operation sending side, and the background function interface n is the operation receiving side, to explain the interface dynamic analysis and scheduling in the specific operation process. And processing methods, but other background functions are connected The following process can also be implemented between the ports, and the process includes the following steps:
步驟 101,后台功能接口 1根据定义的通用操作接口结构填写操作信 息, 包括操作名称和操作版本, 以及入口参数列表、 出口参数列表和返 回值列表, 每个列表又包括参数名称、 类型、 版本和值 4项;  Step 101: The background function interface 1 fills in operation information according to the defined common operation interface structure, including an operation name and an operation version, and an entry parameter list, an exit parameter list, and a return value list, and each list includes a parameter name, a type, a version, and Value 4 items;
步骤 102,后台功能接口 1根据填写的操作名称到配置的操作处理信 息中查找到相应的处理模块为后台功能接口 n, 将所述操作信息的数据 发送到后台功能接口 n; Step 102, the background function interface 1 finds the corresponding processing module as the background function interface n according to the filled operation name to the configured operation processing information, and sends the data of the operation information to the background function interface n;
该发送可以是分发, 也可以是转发。  The transmission can be either a distribution or a forwarding.
步骤 103 ,后台功能接口 n获得操作数据后,解析出其中的操作名称 和操作版本到配置的操作信息中查找, 如匹配到操作名称相同且版本相 同或兼容的操作, 执行下一步, 否则向发送侧返回相应的错误信息, 结 束;  Step 103: After obtaining the operation data, the background function interface n parses out the operation name and the operation version to find the operation information in the configuration, and if it matches the operation with the same operation name and the same version or compatibility, the next step is performed, otherwise the transmission is performed. The side returns the corresponding error message and ends;
根据配置的版本兼容信息可以判断出目前使用的操作版本是否可以 兼容操作信息中的操作版本。 以下对于类型版本的判断也是如此。 如果 操作名称不同或版本不兼容而强行解析的话, 就可能引起系统崩溃。  According to the configured version compatibility information, it can be determined whether the currently used operation version is compatible with the operation version in the operation information. The same is true for the judgment of the type version below. If the operation name is different or the version is incompatible and forced to resolve, it may cause the system to crash.
步骤 104,后台功能接口 II解析出操作信息中的入口参数、 出口参数 和返回参数, 对得到的每个参数, 根据配置的操作信息和类型信息进行 匹配,判断是否匹配到名称相同且类型版本相同或兼容的参数,如果有, 执行下一步, 否则, 向发送侧返回相应的错误信息, 结束;  Step 104: The background function interface II parses the entry parameter, the exit parameter, and the return parameter in the operation information, and performs matching on each parameter obtained according to the configured operation information and type information to determine whether the match name is the same and the type version is the same. Or compatible parameters, if any, go to the next step, otherwise, return the corresponding error message to the sending side, and end;
注意, 这里如果有名称不相同, 类型版本不相同或不兼容的参数的 话, 接收方可以只解析匹配到的参数, 而对其它参数不作处理。 也可以 要求全部匹配才向下进行, 否则, 返回错误信息。  Note that if there are parameters with different names and different version versions or incompatible parameters, the receiver can only parse the matched parameters and not process the other parameters. It is also possible to require all matches to proceed down, otherwise an error message is returned.
步骤 105,后台功能接口 n对名称相同且版本相同或兼容的参数,解 析其参数值, 进行后续的处理。  Step 105: The background function interface n parses the parameter values with the same name and the same version or compatibility, and performs subsequent processing.
在上述流程中, 在发送侧, 根据操作方本地定义的通用操作接口结 构, 将参数名称、 参数类型、 类型版本、 参数值等填入报文(如 ASN报 文) 。 在接收侧, 根据接收方本地定义的配置信息, 由应用层逐个解析 报文, 对不兼容的或不识别的报文不解析, 返回相应的错误信息。 这种 处理方法报文结构是扁平化的, 接口变化不需要重新编译, 参数的数目 可以增加、 减少, 参数类型可变, 由于整个报文的解析是由应用层控制 的, 因此不会出现由于报文结构定义的不同而造成系统崩溃的问题。 In the above process, on the transmitting side, the parameter name, the parameter type, the type version, the parameter value, and the like are filled in the packet (such as an ASN packet) according to the general operation interface structure defined by the operator. On the receiving side, the application layer analyzes the configuration information locally by the receiver. The message does not parse the incompatible or unrecognized message and returns the corresponding error message. The packet structure of this processing method is flat, the interface changes do not need to be recompiled, the number of parameters can be increased or decreased, and the parameter type is variable. Since the parsing of the entire packet is controlled by the application layer, it does not occur due to The problem of system crash caused by different definitions of the message structure.
应当说明的是, 上述实施例仅是一个示例, 本发明并不局限于一些 具体的配置和定义。  It should be noted that the above embodiment is merely an example, and the present invention is not limited to some specific configurations and definitions.
例如, 如果参数类型均为一些系统已定义过的类型的话, 也可以不 用配置上述的类型信息, 可以直接用配置的操作信息来判断操作参数是 否可以解析就可以了。  For example, if the parameter types are all types defined by the system, you can also configure the above type information without using the configured operation information to determine whether the operation parameters can be resolved.
又如, 对于操作处理信息, 不一定要写在一个文件中保存起来, 在 另一实施例中, 可以直接写在程序, 由程序进行条件判断分支判断来确 定分发的模块, 也是可行的。  For another example, the operation processing information does not have to be written in a file, and in another embodiment, it can be directly written in the program, and the program judges the branch judgment to determine the distributed module, which is also feasible.
又如, 对于操作版本信息, 也可以配置在操作处理信息中, 这样由 分发的功能接口先判断该操作中的操作版本是否与当前配置相同或兼 容。 如果是, 再分发, 否则, 直接可返回操作错误信息。  For another example, the operation version information may also be configured in the operation processing information, so that the distributed function interface first determines whether the operation version in the operation is the same as or compatible with the current configuration. If yes, redistribute, otherwise, the operation error message can be directly returned.
又如, 对于有些系统语言来说, 是将返回值参数并入到出口参数, 在这种情况下可以略去返回值参数。 而也有的把入口参数和出口参数合 为一类, 对于本发明来说, 如何分类并不重要, 只要对操作接口使用的 操作参数名称和类型进行定义就可以了, 相应地, 在通用操作接口结构 也不限定定义的参数列表的数目和种类。  As another example, for some system languages, the return value parameter is incorporated into the exit parameter, in which case the return value parameter can be omitted. However, some of the entry parameters and the exit parameters are combined into one class. For the present invention, it is not important to classify the operation parameters, as long as the operation parameter names and types used by the operation interface are defined, and correspondingly, in the general operation interface. The structure also does not limit the number and type of parameter lists defined.
另外, 对于一些系统可以不设置上述的操作版本和类型版本信息, 这时可以只对名称相同且版本相同的操作和参数进行解析, '也是可以实 现本发明的基本功能的。 而对于不考虑对参数类型升级的系统来说, 在 操作参数的列表中也可以不加入参数类型。  In addition, for some systems, the above operation version and type version information may not be set. In this case, only operations and parameters having the same name and the same version may be parsed, and 'the basic function of the present invention may be implemented. For systems that do not consider upgrading the parameter type, the parameter type may not be added to the list of operating parameters.
第二实施例 Second embodiment
图 2为本实施例为包含前台系统与后台系统间外部接口的接口实现 方法的实施示意图。 前台系统的结构以及所配置的信息都与第一实施例 相同, 后台系统与前台系统的功能结构是相似的, 包括前台功能接口 1〜 前台功能接口 1 , 前台功能接口连接到电信网管的前台设备, 负责与后 台功能接口之间进行信息交互, 前台功能接口 1和后台功能接口 1之间 具有外部通信连接。 2 is an interface implementation of an external interface between a foreground system and a background system in this embodiment. A schematic diagram of the implementation of the method. The structure of the foreground system and the configured information are the same as those of the first embodiment. The back-end system and the foreground system have similar functional structures, including the front-end function interface 1 to the front-end function interface 1, and the front-end function interface is connected to the foreground device of the telecommunication network management system. , is responsible for information interaction with the background function interface, and has an external communication connection between the front function interface 1 and the background function interface 1.
本实施例中, 操作发送侧、 操作接收侧是前台功能接口或后台功能 接口, 并且前台功能接口的动态分析、 调度和处理方法与后台功能接口 相同。 下面以前台功能接口 1向后台下发操作为例, 结合图 2说明本实 施例方法的具体实施步骤:  In this embodiment, the operation sending side and the operation receiving side are the foreground function interface or the background function interface, and the dynamic analysis, scheduling, and processing methods of the foreground function interface are the same as the background function interface. The following takes the foreground function interface 1 to send the operation to the background as an example, and the specific implementation steps of the method in this embodiment are described with reference to FIG. 2:
首先,前台功能接口 1根据定义的通用操作接口结构填写操作信息, 包括操作名称、 操作版本以及入口参数列表、 出口参数列表和返回值列 表, 然后根据填写的信息生成报文, 向后台功能接口 1发送操作数据; 后台功能接口 1接收到操作数据后的处理与第一实施例步驟 102 105相 同, 属于内部模块间的接口实现, 这里不再重复。  First, the front-end function interface 1 fills in the operation information according to the defined common operation interface structure, including the operation name, the operation version, the entry parameter list, the exit parameter list, and the return value list, and then generates a message according to the filled information to the background function interface 1 The operation data is sent. The processing after the background function interface 1 receives the operation data is the same as the step 102 105 of the first embodiment, and belongs to the interface implementation between the internal modules, and is not repeated here.
在一些情况下, 系统内部不一定有专门负责分发的功能接口, 图 2 中的后台功能接口 1也可能就是要处理该操作的功能模块的功能接口, 此时就不必分发了。 但是, 如果不是处理该操作的功能模块的功能接口 就需要根据配置的处理模块转发到相应的功能接口。  In some cases, there is not necessarily a functional interface dedicated to distribution within the system. The background function interface 1 in Figure 2 may also be the functional interface of the functional module to handle the operation, and thus it is not necessary to distribute it. However, if it is not the function interface of the function module that handles the operation, it needs to be forwarded to the corresponding function interface according to the configured processing module.
为了更直观的理解本发明的效果, 下面将以一个配置的实例对按现 有方式配置和按本发明配置进行对比, 来说明本发明的优点。 In order to more intuitively understand the effects of the present invention, the advantages of the present invention will be described below by comparing the configuration in a conventional manner with the configuration of the present invention in a configuration example.
传统的处理方法:  Traditional treatment method:
假设原来创建网元(NE ) 的操作是这样定义的:  Assume that the original operation of creating a network element (NE) is defined as follows:
CreateNE-T: := SEQUENCE {  CreateNE-T: := SEQUENCE {
userLabel GraphicString,—用户标识  userLabel GraphicString, - user ID
deviceType GraphicString,—设备类型  deviceType GraphicString, - device type
ipAddress GraphicString, -IP地址 createTime GeneralizedTime—生成时间 ipAddress GraphicString, -IP address createTime GeneralizedTime—Generate time
NE-T:: = SEQUENCE { NE-T:: = SEQUENCE {
neld INTEGER, —网元标识  Neld INTEGER, — network element identifier
userLabel GraphicString, 用户标签  userLabel GraphicString, user tag
deviceType GraphicString, --设备类型  deviceType GraphicString, --device type
ipAddress GraphicString, -IP地址  ipAddress GraphicString, -IP address
createTime GeneralizedTime --创建时间  createTime GeneralizedTime -- create time
}  }
其中:  among them:
入口参数: CreateNE-T  Entry parameters: CreateNE-T
出口参数: NE-T  Export parameters: NE-T
返回参数: Error-T  Return parameters: Error-T
GraphicString,GraphicString5GeneralizedTime等类型为 ASN类型, 系统升级时如想对原来的结构进行改动, 如修改 CreateNE-T为如下 形式: GraphicString, GraphicString 5 GeneralizedTime and other types are ASN types. If you want to change the original structure during system upgrade, such as modifying CreateNE-T as follows:
CreateNE-T:" SEQUENCE {  CreateNE-T: " SEQUENCE {
—userLabel GraphicString, -这种改动可能直 接会造成系统崩溃(减少字段)  —userLabel GraphicString, -This change may directly cause a system crash (reduced fields)
deviceType INTEGER, -这种改动直接会 造成系统崩溃(类型变化)  deviceType INTEGER, - This change will directly cause the system to crash (type change)
ipAddress GraphicString,  ipAddress GraphicString,
createTime GeneralizedTime ,  createTime GeneralizedTime ,
coordination [0]GraphicString OPTIONAL -这种改动会造成 某些系统崩溃, 跟编译环境相关 (增加字段) } Coordination [0]GraphicString OPTIONAL - This change will cause some system crashes, related to the build environment (add fields) }
以上改动直接带来兼容性问题,其它模块将无法使用新的报文结构。 因为传统的方法要求结构是固定的, 对结构的扩展要求比较严格, 其本 质是接口编译器控制接口的解析过程, 直接限制了接口的扩展。 按照本发明提供的方法, 假设使用 ASN结构定义通用的接口, 应用 程序中编译使用的 ASN.1为如下形式:  The above changes directly lead to compatibility issues, other modules will not be able to use the new message structure. Because the traditional method requires the structure to be fixed, the extension of the structure is strict, and its essence is the parsing process of the interface compiler control interface, which directly limits the extension of the interface. According to the method provided by the present invention, it is assumed that the ASN structure is used to define a common interface, and the ASN.1 compiled in the application is in the following form:
GeneralOperationlnterface-T: :=SEQUENCE {  GeneralOperationlnterface-T: :=SEQUENCE {
operationName GraphicString, —操作名称  operationName GraphicString, — operation name
version GraphicString, --操作版本  Version GraphicString, --operation version
inputParam ParamList-T, —入口参数列表  inputParam ParamList-T, - entry parameter list
outputParam ParamList-T, --出口参数列表  outputParam ParamList-T, --export parameter list
returnParam ParamList-T -返回值列表  returnParam ParamList-T - list of return values
}  }
operationName为操作名称, version为版本, inputParam、 outputParam 和 returnParam分别为入口参数、 出口参数和返回值参数。 入口参数、 出口参数和返回值参数均采用以下列表格式来填写: operationName is the operation name, version is the version, inputParam, outputParam, and returnParam are the ingress parameter, the exit parameter, and the return value parameter, respectively. The entry parameters, exit parameters, and return value parameters are all populated in the following list format:
Param-T: -SEQUENCE { Param-T: -SEQUENCE {
name GraphicString, —名称  Name GraphicString, — name
typeName GraphicString, —类型  typeName GraphicString, — type
version GraphicString, —版本  Version GraphicString, — version
value ANY ―参数值  Value ANY - parameter value
}  }
ParamList-T: := SEQUENCE OF Param-T  ParamList-T: := SEQUENCE OF Param-T
应用中所有使用的操作均使用 GeneralOperationlnterface-T来表示, 也就是用这个结构来构成一个通用的操作数据传送通道, 具体每个操作 传递的内容在配置信息的文件中定义。 操作信息定义文件中的定义如下: All operations used in the application are represented by GeneralOperationlnterface-T. That is to say, this structure is used to construct a general operation data transmission channel, and the content of each operation is defined in the file of the configuration information. The definitions in the operational information definition file are as follows:
操作名称: "Create E"  Operation name: "Create E"
操作版本: "V2.01R2"  Operation version: "V2.01R2"
入口参数: 参数名称 参数类型  Entry parameters: Parameter name Parameter type
[0]"UserLabel", "GraphicString"  [0]"UserLabel", "GraphicString"
[l]"DeviceType", "INTETER",  [l]"DeviceType", "INTETER",
[2] "Coordination", "GraphicString"  [2] "Coordination", "GraphicString"
[3]"CreateTime"5 "GeneralizedTime [3]"CreateTime" 5 "GeneralizedTime
[4]'ΊΡ Address", "NetAddress"  [4]'ΊΡ Address", "NetAddress"
出口参数:  Export parameters:
[0]"ΝΕ-Τ' "NE-T"  [0]"ΝΕ-Τ" "NE-T"
返回值参数:  Return value parameter:
[0]"ErrorInfo" "Error-T"  [0]"ErrorInfo" "Error-T"
"NE-T"和 "Error-T"是系统内部定义的结构, 功能模块可以完成解析 处理。  "NE-T" and "Error-T" are structures defined internally by the system, and the function modules can be parsed.
类型信息配置文件的定义:  Type information profile definition:
名称 类型 版本  Name Type Version
NetAddress, GraphicString, V1.0  NetAddress, GraphicString, V1.0
NE-T, Internal, VI.0  NE-T, Internal, VI.0
Error-T, Internal, VI.0  Error-T, Internal, VI.0
注: GraphicString,GraphicString,GeneralizedTime等类型为 ASN类型, 不需要定义在类型定义文件。 操作处理信息配置文件的定义: 模块名称、 操作名称 Note: GraphicString, GraphicString, GeneralizedTime, etc. are of type ASN and do not need to be defined in the type definition file. The definition of the operation processing information configuration file: Module name, operation name
NEMgr CreateNE  NEMgr CreateNE
DeleteNE  DeleteNE
ModifyNE  ModifyNE
QueryNE  QueryNE
EMSMgr CreateEMS  EMSMgr CreateEMS
DeleteEMS  DeleteEMS
ModifyEMS  ModifyEMS
QueryEMS  QueryEMS
上述 NE指网元, EMS指网管系统, 仅为一示例。 实际在系统中传递的报文内容的一个例子:  The above NE refers to the network element, and the EMS refers to the network management system, which is only an example. An example of the actual message content passed in the system:
操作名称 "CreateNE  Operation name "CreateNE
操作版本 "V2.01R2"  Operation version "V2.01R2"
入口参数  Entry parameter
参数名称 参数类型 类型版本 参数值 [0]"UserLabel", "GraphicString", " , 主通讯站网元" [l]"DeviceType", "INTETER", "", 2  Parameter name Parameter type Type version Parameter value [0]"UserLabel", "GraphicString", " , Main communication station network element" [l]"DeviceType", "INTETER", "", 2
[2] "Coordination" "GraphicString", ", "x=1003 =300" [3]"CreateTime"5 "GeneralizedTime", "20061010120010' [4]'ΊΡ Address", "NetAddress", "VI.0", [2] "Coordination""GraphicString",","x=100 3 =300"[3]"CreateTime" 5 "GeneralizedTime", "20061010120010'[4]'ΊΡAddress","NetAddress","VI.0",
"IP=10.30.1.1,Mast=255.0.0.0" "IP=10.30.1.1, Mast=255.0.0.0"
出口参数:  Export parameters:
[0]"NE-T", "NE-T", 'VI.0", NE-T 返回值参数:  [0]"NE-T", "NE-T", 'VI.0", NE-T Return Value Parameters:
[0]"ErrorInfo", "Error-T" 'VI.0", "Duplicate [0]"ErrorInfo", "Error-T" 'VI.0", "Duplicate
IP Address" 在发送方, 根据操作方本地定义的通用操作接口结构, 将参数名称、 参数类型、类型版本、参数值等填入 ASN报文 enemlOperationInterface-T。 IP Address" On the sender side, the parameter name, parameter type, type version, parameter value, etc. are filled in the ASN message enemlOperationInterface-T according to the general operation interface structure defined by the operator.
在接收方, 根据接收方本地定义的操作定义文件的定义, 逐个解析 报文, 对不兼容的或不识别的报文不解析, 返回相应的错误信息。  On the receiving side, according to the definition of the operation definition file defined by the receiver, the packet is parsed one by one, and the incompatible or unrecognized message is not parsed, and the corresponding error information is returned.
这种处理方法报文结构是扁平化的, 接口变化不需要重新编译, 参 数的数目可以增加、 减少, 参数类型可变, 由于整个^ =艮文的解析是由应 用控制的, 因此不会出现由于^文结构定义的不同而造成系统崩溃的问 题。  The message structure of this processing method is flat, the interface changes do not need to be recompiled, the number of parameters can be increased and decreased, and the parameter type is variable. Since the resolution of the whole ^=艮 text is controlled by the application, it does not appear. The problem of system crash due to the different definition of the structure of the ^ text.
可以看出, 本发明提出了在电信管理网 (TMN )等网络中进行数据 交互的一种网管系统及其通用接口的实现方法, 包含对数据报文的通用 结构定义、 具体的报文信息配置及系统的功能接口模块的配置, 通过对 报文结构的通用转换处理过程, 完成报文的解析, 并且能够很好的实现 兼容, 克服了现有接口处理技术缺乏通用、 不易扩展、 接口与应用偶合 过紧的缺点, 增强网管系统的接口扩展能力, 并可以节省网管系统的开 发维护费用。  It can be seen that the present invention provides a network management system for data interaction in a network such as a Telecommunication Management Network (TMN) and a method for implementing the common interface thereof, including a general structure definition of a data packet and a specific packet information configuration. And the configuration of the function interface module of the system, through the general conversion processing process of the message structure, completes the parsing of the message, and can achieve good compatibility, overcomes the lack of common, difficult to expand, interface and application of the existing interface processing technology The shortcoming of coupling is too tight, the interface expansion capability of the network management system is enhanced, and the development and maintenance costs of the network management system can be saved.
以上所述仅为本发明较佳的具体实现方式, 但本发明的保护范围并 不局限于此, 任何熟悉该技术的人在本发明所揭露的技术范围内, 可轻 易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 工业实用性  The above description is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. All should be covered by the scope of the present invention. Industrial applicability
- 本发明提出的通用的接口处理方法及系统具有通用性,扩展能力强, 与具体技术没有依赖关系, 可以很好的解决接口扩展问题。 采用本发明 所述的通用接口实现方法及系统, 当由于某种原因需要升级接口时, 则 只需要修改配置信息定义(类型信息、 操作信息、 操作处理信息) , 并 升级或增加相应的前台或后台功能接口模块, 具有非常好的可维护性, 能够有效的降低开发、 维护成本。  - The general interface processing method and system proposed by the present invention have universality, strong expansion capability, and no dependence on specific technologies, and can well solve the problem of interface expansion. The method and system for implementing the universal interface according to the present invention, when the interface needs to be upgraded for some reason, only the configuration information definition (type information, operation information, operation processing information) needs to be modified, and the corresponding foreground or The background function interface module has very good maintainability and can effectively reduce development and maintenance costs.

Claims

权 利 要 求 书 Claim
1、 一种网管系统通用的接口实现方法, 包括以下步骤: 1. A general interface implementation method for a network management system, comprising the following steps:
( a )将接口操作传递的报文定义为一种通用操作接口结构, 该结构 中要填写的操作信息包括操作标识和操作参数, 操作参数以列表的形式 体现, 包括参数名称和参数值项, 参数值可采用任意数据类型;  (a) The packet transmitted by the interface operation is defined as a general operation interface structure, and the operation information to be filled in the structure includes an operation identifier and an operation parameter, and the operation parameter is embodied in the form of a list, including a parameter name and a parameter value item. Parameter values can be of any data type;
同时, 在系统中对操作信息进行配置和保存, 该操作信息中定义了 操作接口使用的操作标识以及操作参数的参数名称;  At the same time, the operation information is configured and saved in the system, and the operation identifier used by the operation interface and the parameter name of the operation parameter are defined in the operation information;
( b )发送侧功能接口根据定义的通用操作接口结构填写所述操作信 息, 生成报文发送到接收侧功能接口;  (b) The sending side function interface fills in the operation information according to the defined common operation interface structure, and generates a message to be sent to the receiving side function interface;
( c )接收侧功能接口收到报文后, 判断本功能模块是否为该操作的 处理模块, 如果是, 执行步骤(d ) , 否则发送到处理该操作的功能模块 的功能接口, 再执行步骤(d ) ;.  (c) After receiving the message, the receiving side function interface determines whether the function module is the processing module of the operation, and if yes, performs step (d), otherwise sends to the function interface of the function module that processes the operation, and then performs the step (d) ;.
( d )收到报文的功能接口对报文进行解析, 并判断是否其中的操作 标识及部分或全部操作参数的名称在配置的操作信息中有匹配的项, 如 有, 执行下一步, 否则, 向发送侧功能接口返回错误信息, 结束;  (d) The function interface that receives the packet parses the packet, and determines whether the operation identifier and the name of some or all of the operation parameters have matching items in the configured operation information. If yes, execute the next step, otherwise , returning an error message to the sending side function interface, and ending;
( e )所述功能接口解析匹配成功的参数的参数值, 进行后续处理。 (e) The function interface parses the parameter value of the parameter that matches the success, and performs subsequent processing.
2、 如权利要求 1所述的接口实现方法, 其特征在于: 2. The interface implementation method according to claim 1, wherein:
所述步骤(b ) 中发送侧功能接口是将报文发送到系统内部的另一功 能接口, 或者是发送到另一系统的功能接口。  The transmitting side function interface in the step (b) is another function interface that sends a message to the internal system, or a function interface that is sent to another system.
3、 如权利要求 1所述的接口实现方法, 其特征在于:  3. The interface implementation method according to claim 1, wherein:
所述步骤(a ) 中定义的通用操作接口结构的操作参数列表还包括参 数类型项; 在系统中配置的操作信息中定义了操作参数的参数类型; 所述步骤(d ) 中, 功能接口判断操作参数在配置的操作信息是否有 匹配的项时, 还要比较填写的该操作参数的参数类型与配置的参数类型 是否一致, 如参数名称和参数类型均一致, 则两者匹配, 否则, 不匹配。  The operation parameter list of the general operation interface structure defined in the step (a) further includes a parameter type item; the parameter type of the operation parameter is defined in the operation information configured in the system; in the step (d), the function interface judges If there is a matching item in the configured operation information, it is also necessary to compare whether the parameter type of the operation parameter is the same as the configured parameter type. If the parameter name and the parameter type are the same, the two match, otherwise, match.
4、 如权利要求 1所述的接口实现方法, 其特征在于:  4. The interface implementation method according to claim 1, wherein:
所述步驟(a ) 中定义的通用操作接口结构 '中, 定义的操作参数列表 包括入口参数列表、 出口参数列表和返回值参数列表; 在系统中配置的 操作信息也分为入口参数、 出口参数和返回值参数, 并分别定义该三类 参数所包含的每个操作参数的参数名称和参数类型。 a list of operational parameters defined in the general operation interface structure defined in step (a) Including the entry parameter list, the exit parameter list, and the return value parameter list; the operation information configured in the system is also divided into an entry parameter, an exit parameter, and a return value parameter, and respectively define parameters of each operation parameter included in the three types of parameters. Name and parameter type.
5、 如权利要求 1所述的接口实现方法, 其特征在于:  5. The interface implementation method according to claim 1, wherein:
所述步骤 ) 中, 还在系统中配置了操作处理信息, 包括模块名称 和操作标识, 每个模块可对应于多个操作;  In the step, the operation processing information is also configured in the system, including the module name and the operation identifier, and each module may correspond to multiple operations;
所述步驟(c ) 中, 接收侧功能接口根据从报文解析出的操作标识到 配置的操作处理信息中找到相应的处理模块, 再对报文进行发送或在本 地进行处理。  In the step (c), the receiving side function interface finds a corresponding processing module according to the operation identifier parsed from the message to the configured operation processing information, and then sends the message or performs local processing.
6、 如权利要求 1所述的接口实现方法, 其特征在于:  6. The interface implementation method according to claim 1, wherein:
所述步骤(a ) 中定义的通用操作接口结构中还包括操作版本信息; 相应地, 在系统中配置的操作信息中也定义了操作版本信息;  The operation operation information is further included in the general operation interface structure defined in the step (a); accordingly, the operation version information is also defined in the operation information configured in the system;
所述步骤(d )功能接口从报文解析出其中的操作版本信息后, 还到 配置的操作版本信息中查找是否有匹配的项, 如果有, 再执行步骤(e ), 否则返回错误信息, 结束。  After the function interface of the step (d) parses the operation version information from the message, it also finds whether there is a matching item in the configured operation version information, and if yes, performs step (e), otherwise, returns an error message. End.
7、 如权利要求 6所述的接口实现方法, 其特征在于:  7. The interface implementation method according to claim 6, wherein:
所述步骤(a )在系统中还配置了版本兼容信息, 定义了版本之间的 兼容关系;  The step (a) further configures version compatibility information in the system, and defines a compatibility relationship between the versions;
所述步驟(d )如果报文中的操作版本与配置的操作版本相同或者兼 容, 都认为两者相匹配。  The step (d) is considered to match if the operation version in the message is the same as or compatible with the configured operation version.
8、 如权利要求 1所述的接口实现方法, 其特征在于:  8. The interface implementation method according to claim 1, wherein:
所述步骤(a )在系统中还配置了类型信息, 定义了接口语言支持的 自定义参数类型名称和对应的系统内部类型或内部结构;  The step (a) further configures type information in the system, and defines a custom parameter type name supported by the interface language and a corresponding system internal type or internal structure;
所述步骤(e )功能接口根据该配置的类型信息对自定义参数进行解 析。  The step (e) function interface analyzes the custom parameter according to the type information of the configuration.
9、 如权利要求 8所述的接口实现方法, 其特征在于:  9. The interface implementation method according to claim 8, wherein:
所述步骤(a ) 中定义的通用操作接口结构定义的操作参数还包括类 型版本信息; 同时, 在系统中还配置的类型信息中也定义了自定义参数 类型所对应的类型版本信息; The operational parameters defined by the general operation interface structure defined in the step (a) further include a class Type version information; at the same time, the type information of the custom parameter type is also defined in the type information also configured in the system;
所述步骤(d )功能接口从报文解析出其中操作参数的类型版本信息 后, 还到配置的类型信息中查找该操作参数的版本信息是否相同或兼容, 如果是, 则认为该操作参数有匹配的项, 否则, 认为该操作参数没有匹 配的项。  After the function interface of the step (d) parses out the type version information of the operation parameter from the message, it also finds whether the version information of the operation parameter is the same or compatible in the configured type information, and if yes, the operation parameter is considered to have Matches the item, otherwise, the action parameter is considered to have no matching item.
10、 如权利要求 1所述的接口实现方法, 其特征在于:  10. The interface implementation method according to claim 1, wherein:
所述系统具有和一个或多个负责处理的功能模块的功能接口, 以及 一个负责分发操作的功能模块的功能接口, 系统之间下发操作时, 先发 送到接收方系统的该负责分发的功能模块的功能接口, 再由该功能接口 确定该操作的处理模块进行分发。  The system has a functional interface with one or more functional modules responsible for processing, and a functional interface of a functional module responsible for distributing operations, and the function of distributing the first to the receiving system when the system issues an operation between the systems. The functional interface of the module, which then determines the processing module of the operation for distribution.
11、 如权利要求 1所述的接口实现方法, 其特征在于:  11. The interface implementation method according to claim 1, wherein:
所述操作标识为操作名称或命令代码。  The operation identifier is an operation name or a command code.
12、 一种具有通用操作接口的网管系统, 包括存储模块和多个功能 模块, 所述功能模块上具有可相互通信的功能接口, 其特征在于: 12. A network management system having a universal operation interface, comprising a storage module and a plurality of functional modules, wherein the functional modules have functional interfaces that can communicate with each other, and are characterized by:
所述存储模块中保存了配置的操作信息, 该操作信息中定义了操作 接口使用的操作标识以及操作参数的参数名称和参数类型;  The storage module stores the configured operation information, where the operation identifier used by the operation interface and the parameter name and parameter type of the operation parameter are defined in the operation information;
所述功能接口传递的报文定义为一种通用操作接口结构, 该结构中 要填写的操作信息包括操作标识和操作参数, 操作参数以列表的形式体 现, 包括参数名称、 参数类型和参数值项, 参数值可采用任意数据类型; 发送单元, 用于在发送时, 根据该通用操作接口结构填写所述操作 信息, 生成报文发送到接收侧的功能接口;  The message transmitted by the function interface is defined as a general operation interface structure, and the operation information to be filled in the structure includes an operation identifier and an operation parameter, and the operation parameter is embodied in the form of a list, including a parameter name, a parameter type, and a parameter value item. The parameter value may be any data type; the sending unit is configured to fill in the operation information according to the general operation interface structure when transmitting, and generate a function interface for sending the message to the receiving side;
接收单元, 用于判断操作的处理模块, 对其它功能模块处理的操作 进行分发或转发, 对本功能模块处理的操作, 解析报文并判断其中的操 作标识及至少一个操作参数的名称和类型在配置的操作信息中是否有匹 配的项, 如有, 再解析匹配成功的参数的参数值, 否则返回错误信息。  The receiving unit, the processing module for determining the operation, distributing or forwarding the operations processed by the other function modules, parsing the message processed by the function module, determining the operation identifier and the name and type of the at least one operation parameter are configured Whether there is a matching item in the operation information, and if yes, parsing the parameter value of the parameter that matches the success, otherwise returning the error message.
13、 如权利要求 12所述的网管系统, 其特征在于: 所述存储模块中还保存了操作处理信息, 包括模块名称和操作标识, 每个模块可对应于多个操作; 13. The network management system of claim 12, wherein: The storage module further stores operation processing information, including a module name and an operation identifier, and each module may correspond to multiple operations;
所述功能接口的接收单元根据从报文解析出的操作标识到所述操作 处理信息中找到相应的处理模块, 再在本地对报文进行处理, 或者将该 报文分发或转发到相应的处理模块。  The receiving unit of the function interface finds a corresponding processing module according to the operation identifier parsed from the message to the operation processing information, and then processes the message locally, or distributes or forwards the message to the corresponding processing. Module.
14、 如权利要求 12所述的网管系统, 其特征在于:  14. The network management system of claim 12, wherein:
所述功能接口定义的通用操作接口结构中, 操作参数采用入口参数 列表、 出口参数列表和返回值参数列表的结构, 每个列表中都至少定义 了参数名称、 参数类型和参数值三个字段;  In the general operation interface structure defined by the function interface, the operation parameter adopts a structure of an entry parameter list, an exit parameter list, and a return value parameter list, and at least three fields of a parameter name, a parameter type, and a parameter value are defined in each list;
所述存储模块保存的操作信息也分为入口参数、 出口参数和返回值 参数, 并分别定义了该三类参数所包含的每个操作参数的参数名称和参 数类型。  The operation information saved by the storage module is also divided into an entry parameter, an exit parameter, and a return value parameter, and respectively defines a parameter name and a parameter type of each operation parameter included in the three types of parameters.
15、 如权利要求 12所述的网管系统, 其特征在于:  15. The network management system of claim 12, wherein:
所述存储模块中还保存了操作版本信息;  The operation version information is also saved in the storage module;
所述功能接口定义的通用操作接口结构中也包括操作版本信息, 所 述功能接口的接收单元还从报文解析出其中的操作版本信息, 到配置的 操作版本信息中查找是否有匹配的项, 如果有, 再继续解析其它信息, 否则返回错误信息。  The operation interface information is also included in the general operation interface structure defined by the function interface, and the receiving unit of the function interface further parses out the operation version information from the message, and finds whether there is a matching item in the configured operation version information. If so, continue to parse other information, otherwise an error message is returned.
16、 如权利要求 15所述的网管系统, 其特征在于:  16. The network management system of claim 15 wherein:
所述存储模块中还保存了版本兼容信息, 定义了版本之间的兼容关 系;  Version compatibility information is also stored in the storage module, and a compatibility relationship between the versions is defined;
所述功能接口的接收单元如果判断报文中的操作版本与配置的操作 版本相同或者兼容, 则认为两者相匹配。  If the receiving unit of the function interface determines that the operation version in the message is the same as or compatible with the configured operation version, it is considered that the two match.
17、 如权利要求 12所述的网管系统, 其特征在于:  17. The network management system of claim 12, wherein:
. 所述存储模块中还保存了类型信息, 该信息中定义了接口语言支持 的自定义参数类型名称和对应的系统内部类型或内部结构;  The storage module further stores type information, where the name of the custom parameter type supported by the interface language and the corresponding internal type or internal structure of the system are defined;
所述功能接口的接收单元根据该配置的类型信息对报文中的自定义 参数进行解析。  The receiving unit of the function interface parses the custom parameter in the packet according to the type information of the configuration.
PCT/CN2006/002935 2006-11-02 2006-11-02 A method and system for realizing universal interfaces in the network management system WO2008052389A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2006800562002A CN101529807B (en) 2006-11-02 2006-11-02 A method and system for realizing universal interfaces in the network management system
PCT/CN2006/002935 WO2008052389A1 (en) 2006-11-02 2006-11-02 A method and system for realizing universal interfaces in the network management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2006/002935 WO2008052389A1 (en) 2006-11-02 2006-11-02 A method and system for realizing universal interfaces in the network management system

Publications (1)

Publication Number Publication Date
WO2008052389A1 true WO2008052389A1 (en) 2008-05-08

Family

ID=39343787

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/002935 WO2008052389A1 (en) 2006-11-02 2006-11-02 A method and system for realizing universal interfaces in the network management system

Country Status (2)

Country Link
CN (1) CN101529807B (en)
WO (1) WO2008052389A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102651696A (en) * 2011-02-28 2012-08-29 中兴通讯股份有限公司 Method and system for managing network management system interfaces in various versions
WO2017000678A1 (en) * 2015-07-01 2017-01-05 中兴通讯股份有限公司 Packet communication method and system between network management systems
CN110865854A (en) * 2019-11-11 2020-03-06 科大国创软件股份有限公司 Interface calling and arranging method supporting hot deployment
CN111078968A (en) * 2019-12-26 2020-04-28 山东浪潮通软信息科技有限公司 Cross-system data interaction method and system for visual configuration
CN112329415A (en) * 2020-10-27 2021-02-05 江苏华邦网络科技有限公司 Java web based access and participation processing method and system
WO2022166718A1 (en) * 2021-02-04 2022-08-11 大唐移动通信设备有限公司 Information processing method and apparatus, and processor-readable storage medium

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
CN1549510A (en) * 2003-05-16 2004-11-24 中国移动通信集团公司 Method for proxy accessing informatin at Log-on interface of managed system
CN1751442A (en) * 2003-02-14 2006-03-22 捷讯研究有限公司 System and method for compression of wireless applications expressed in a structured definition language

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
CN1751442A (en) * 2003-02-14 2006-03-22 捷讯研究有限公司 System and method for compression of wireless applications expressed in a structured definition language
CN1549510A (en) * 2003-05-16 2004-11-24 中国移动通信集团公司 Method for proxy accessing informatin at Log-on interface of managed system

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102651696B (en) * 2011-02-28 2017-03-29 中兴通讯股份有限公司 The method and system that a kind of network management system interface coexisted to multi version is managed
CN102651696A (en) * 2011-02-28 2012-08-29 中兴通讯股份有限公司 Method and system for managing network management system interfaces in various versions
WO2017000678A1 (en) * 2015-07-01 2017-01-05 中兴通讯股份有限公司 Packet communication method and system between network management systems
CN106330519A (en) * 2015-07-01 2017-01-11 中兴通讯股份有限公司 Communication method and system for messages among network management systems
CN106330519B (en) * 2015-07-01 2019-12-17 中兴通讯股份有限公司 Method and system for communication of messages between network management systems
CN110865854B (en) * 2019-11-11 2023-03-31 科大国创软件股份有限公司 Interface calling and arranging method supporting hot deployment
CN110865854A (en) * 2019-11-11 2020-03-06 科大国创软件股份有限公司 Interface calling and arranging method supporting hot deployment
CN111078968A (en) * 2019-12-26 2020-04-28 山东浪潮通软信息科技有限公司 Cross-system data interaction method and system for visual configuration
CN111078968B (en) * 2019-12-26 2024-03-08 浪潮通用软件有限公司 Cross-system data interaction method and system for visual configuration
CN112329415A (en) * 2020-10-27 2021-02-05 江苏华邦网络科技有限公司 Java web based access and participation processing method and system
WO2022166718A1 (en) * 2021-02-04 2022-08-11 大唐移动通信设备有限公司 Information processing method and apparatus, and processor-readable storage medium
CN114938496A (en) * 2021-02-04 2022-08-23 大唐移动通信设备有限公司 Information processing method and device and processor readable storage medium
CN114938496B (en) * 2021-02-04 2023-03-31 大唐移动通信设备有限公司 Information processing method and device and processor readable storage medium
US11910206B1 (en) 2021-02-04 2024-02-20 Datang Mobile Communications Equipment Co., Ltd. Information processing method, device and processor-readable storage medium

Also Published As

Publication number Publication date
CN101529807B (en) 2011-02-02
CN101529807A (en) 2009-09-09

Similar Documents

Publication Publication Date Title
US20190268225A1 (en) Service distribution method, device and system
CN100499510C (en) Method for positioning fault and service maintenance platform
US10003405B2 (en) Data over cable service interface specification (DOCSIS) over passive optical network (PON)
CN1968134B (en) Middleware-based multimedia consolidation service realizing method and system
CN109840155B (en) Method and device for realizing remote procedure call
US9083648B2 (en) Method and system for performing remote network management on a voice home gateway terminal
WO2008052389A1 (en) A method and system for realizing universal interfaces in the network management system
WO2017162089A1 (en) Service configuration method and device for network service
WO2007059665A1 (en) A system and a method for the configuration of the network device
CN102891785B (en) error code conversion method, system, PPPoE server and mobile terminal
CN100499473C (en) Method for realizing business request and on-line instruction system
CN106487538B (en) Service acceleration method, strategy control platform and system
CN101997721B (en) A kind of telecommunication network management system, method and accordingly device
JP5717504B2 (en) Method and device for generating an XML expressed management transaction including an XPath expression
CN111954100A (en) Interface upgrading method and device and optical network unit management method and device
CN113285816B (en) Control request sending method, device and system based on key value configuration
CN117176633A (en) Bus cross-device communication method, device, equipment and storage medium
WO2012119340A1 (en) Method and apparatus for implementing north interface
CN100452793C (en) Business transmitting method based on soft exchange network
CN101753330B (en) Method for managing equipment based on VRF interface
CN101621528B (en) Conversation system based on Ethernet switch cluster management and method for realizing conversation passage
CN109274715A (en) The platform resource management system of vehicle-mounted multi-channel communication systems
WO2014083561A1 (en) Telecommunication network node supporting hybrid management
CN106789266A (en) A kind of Network Management Equipment, network element device and network management system
JP2002055892A (en) Network managing method and virtual network equipment system

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 200680056200.2

Country of ref document: CN

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

Ref document number: 06805136

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

Country of ref document: EP

Kind code of ref document: A1