CN101500343B - Method for semi-automatically implementing interface in telecommunication managing network management - Google Patents
Method for semi-automatically implementing interface in telecommunication managing network management Download PDFInfo
- Publication number
- CN101500343B CN101500343B CN2008100071656A CN200810007165A CN101500343B CN 101500343 B CN101500343 B CN 101500343B CN 2008100071656 A CN2008100071656 A CN 2008100071656A CN 200810007165 A CN200810007165 A CN 200810007165A CN 101500343 B CN101500343 B CN 101500343B
- Authority
- CN
- China
- Prior art keywords
- parameter
- xml file
- network element
- interface
- action
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
本发明公开了一种半自动化实现电信管理网网管中接口的方法,在网管上配置可扩展标识语言XML文件表示所述网管和网元的统一的动作接口信息,定义不同的动作信息类和动作返回结果类XML文件表示不同的动作,并采用一套代码进行编码,所述网管通过读取所述XML文件的信息自动适配不同动作,完成与网元的交互。本发明的方法可以半自动化的实现TNN网管中的复杂接口,将接口定义和实现方法分开,接口定义通过XML实现,方便用户的认识和测试人员。该方法既能有效降低编码和测试的难度,又能加快代码的实现。
The invention discloses a method for semi-automatically realizing the interface in the network management of the telecommunication management network. An extensible markup language XML file is configured on the network management to represent the unified action interface information of the network management and network elements, and different action information classes and actions are defined. The returned result XML file represents different actions, and is coded with a set of codes. The network manager automatically adapts to different actions by reading the information in the XML file, and completes the interaction with the network element. The method of the invention can semi-automatically realize the complex interface in the TNN network management, separates the interface definition from the implementation method, and realizes the interface definition through XML, which is convenient for users to understand and test personnel. This method can not only effectively reduce the difficulty of coding and testing, but also speed up the realization of the code.
Description
技术领域technical field
本发明涉及无线通讯技术领域,尤其涉及一种半自动化实现电信管理网(TNN)网管中接口的方法。The invention relates to the technical field of wireless communication, in particular to a semi-automatic method for realizing the interface in the network management of a telecommunication management network (TNN).
背景技术Background technique
TMN网管中某些管理对象类具有动作功能,动作操作要求管理对象执行指定的动作,并指示动作的结果。在管理对象定义中要定义动作和相应的信息。其接口格式基本上是一致的,但是由于动作很多,不同的动作其参数、输入对象信息、操作信息以及动作返回的数据结构都有所不同,造成实际的接口实现复杂,调试/测试容易出错且麻烦耗时。一般在编码时开发人员都是按不同的操作分别编码,造成代码冗余,参数设置容易出错,需要开发人员和测试人员花很大的精力进行调试和测试。Certain management object classes in TMN network management have action functions, and action operations require management objects to perform specified actions and indicate the results of the actions. Actions and corresponding information should be defined in the management object definition. The interface formats are basically the same, but due to many actions, different actions have different parameters, input object information, operation information, and data structures returned by actions, which makes the actual interface implementation complicated, debugging/testing error-prone and Hassle and time consuming. Generally, when coding, developers code according to different operations, resulting in code redundancy and error-prone parameter settings, requiring developers and testers to spend a lot of energy on debugging and testing.
发明内容Contents of the invention
本发明提供一种半自动化实现电信管理网网管中接口的方法,以解决TNN网管中接口实现复杂,调试/测试容易出错且麻烦耗时的问题。The invention provides a semi-automatic method for realizing the interface in the network management of the telecommunication management network, so as to solve the problems that the interface in the TNN network management is complicated to realize, debugging/testing is easy to make mistakes, and is troublesome and time-consuming.
为了解决上述技术问题,本发明提供一种半自动化实现电信管理网网管中接口的方法,在网管上配置可扩展标识语言XML文件表示所述网管和网元的统一的动作接口信息,定义不同的动作信息类和动作返回结果类XML文件表示不同的动作,并采用一套代码进行编码,所述网管通过读取所述XML文件的信息自动适配不同动作,完成与网元的交互。In order to solve the above-mentioned technical problems, the present invention provides a semi-automatic method for realizing the interface in the network management of the telecommunication management network. An Extensible Markup Language (XML) file is configured on the network management to represent the unified action interface information of the network management and network elements, and define different The XML files of the action information class and the action return result class represent different actions, and are encoded with a set of codes. The network manager automatically adapts to different actions by reading the information in the XML file, and completes the interaction with the network element.
本发明所述方法,其中,包括如下步骤:The method of the present invention, wherein, comprises the following steps:
(1)根据网管和网元的动作接口配置XML文件结构表示所述网管和网元的统一的动作接口信息,定义不同的动作信息类和动作返回结果类XML文件表示不同的动作,所述网管的服务器端针对所有动作的参数取值,编写XML文件,并采用一套代码进行编码,然后发布到所述网管和网元的动作接口上;(1) According to the action interface configuration XML file structure of the network management and network elements, the unified action interface information of the network management and network elements is represented, and different action information classes and action return result class XML files are defined to represent different actions. The server end writes XML files for the parameter values of all actions, and uses a set of codes to encode, and then publishes them to the action interfaces of the network management and network elements;
(2)当所述服务器端收到从所述网管的客户端发送来的动作消息,该服务器端根据所述消息中的动作名称在所述XML文件中增加该动作对应的内容,发往网元;(2) When the server end receives the action message sent from the client of the network manager, the server end adds the content corresponding to the action in the XML file according to the action name in the message, and sends it to the network Yuan;
(3)所述网元收到并处理所述动作后,对于该动作的结果通过所述网管的网元适配层适配成XML文件,然后通过所述服务器端向所述客户端返回该动作的结果信息。(3) After the network element receives and processes the action, the result of the action is adapted into an XML file through the network element adaptation layer of the network management, and then the server returns the result to the client through the server. Action result information.
本发明所述方法,其中,所述XML文件结构分为发送消息结构类和回应消息结构类;发送到网元的不同的动作信息类XML文件为发送消息结构类;发送到客户端的动作返回结果类XML文件为回应消息结构类。The method of the present invention, wherein, the XML file structure is divided into a sending message structure class and a response message structure class; the different action information XML files sent to the network element are the sending message structure class; the action return result sent to the client The class XML file is the response message structure class.
本发明所述方法,其中,步骤(1)中,所述网管和网元的动作接口分为客户端和服务器端接口、服务器端和网元适配层接口、网元适配层接口和网元接口;在发送和接收信息时,这三个接口通过读取所述XML文件的信息自动适配不同动作。The method of the present invention, wherein, in step (1), the action interfaces of the network management and network elements are divided into client and server interfaces, server and network element adaptation layer interfaces, network element adaptation layer interfaces and network Meta-interface; when sending and receiving information, these three interfaces automatically adapt to different actions by reading the information of the XML file.
本发明所述方法,其中,步骤(1)中,根据网管和网元的动作接口配置XML文件结构表示所述统一的动作接口信息,定义不同的动作信息类和动作返回结果类XML文件表示不同的动作,包括如下步骤:The method of the present invention, wherein, in step (1), the unified action interface information is represented according to the action interface configuration XML file structure of the network management and network elements, and different action information classes and action return result class XML files are defined to represent different action, including the following steps:
(1.1)分析客户端和服务器端接口的各个参数信息;(1.1) Analyze the various parameter information of the client and server interfaces;
(1.2)判断各参数是否所有动作共有:如果参数是所有动作共有,且此参数所有的动作取值不一样则加入XML文件中;如果参数非所有动作共有,则权衡一下如果需要加入XML文件中,则加入XML文件中;(1.2) Determine whether each parameter is shared by all actions: if the parameter is shared by all actions, and all actions of this parameter have different values, then add it to the XML file; if the parameter is not shared by all actions, weigh it if you need to add it to the XML file , then add it to the XML file;
(1.3)分析服务器端和网元适配层接口的各个参数信息;(1.3) analyzing the various parameter information of the server end and the network element adaptation layer interface;
(1.4)判断各参数是否所有动作共有:如果参数是所有动作共有,且此参数所有的动作取值不一样则加入XML文件中;如果参数非所有动作共有,则权衡一下如果需要加入XML文件中,则加入XML文件中;(1.4) Determine whether each parameter is shared by all actions: if the parameter is shared by all actions, and all actions of this parameter have different values, then add it to the XML file; if the parameter is not shared by all actions, weigh it if you need to add it to the XML file , then add it to the XML file;
(1.5)分析网元适配层和网元接口的各个参数信息;(1.5) analyzing each parameter information of the network element adaptation layer and the network element interface;
(1.6)判断各参数是否所有动作共有:如果参数是所有动作共有,且此参数所有的动作取值不一样则加入XML文件中;如果参数非所有动作共有,则权衡一下如果需要加入XML文件中,则加入XML文件中;(1.6) Determine whether each parameter is shared by all actions: if the parameter is shared by all actions, and all actions of this parameter have different values, then add it to the XML file; if the parameter is not shared by all actions, weigh it if you need to add it to the XML file , then add it to the XML file;
(1.7)整理所有接口信息,配置XML文件结构表示所述统一的动作接口信息,定义不同的动作信息类和动作返回结果类XML文件表示不同的动作。(1.7) Organize all interface information, configure the XML file structure to represent the unified action interface information, define different action information classes and action return result class XML files to represent different actions.
进一步地,步骤(1.2)中,当分析客户端和服务器端接口的各个参数信息时,如果参数是所有动作共有,且此参数所有的动作取值都一样,则由客户端的公共处理函数统一处理;如果参数非所有动作共有,且权衡后如果不需要加入XML文件中,则由客户端的公共处理函数特殊处理。Further, in step (1.2), when analyzing the parameter information of the client-side and server-side interfaces, if the parameter is shared by all actions, and the values of all actions of this parameter are the same, it will be processed uniformly by the public processing function of the client ; If the parameter is not common to all actions, and if it does not need to be added to the XML file after weighing, it will be specially handled by the public processing function of the client.
进一步地,步骤(1.4)中,当分析服务器端和网元适配层接口的各个参数信息时,如果参数是所有动作共有,且此参数所有的动作取值都一样,则由服务器的公共处理函数统一处理;如果参数非所有动作共有,且权衡后如果不需要加入XML文件中,则由服务器的公共处理函数特殊处理。Further, in step (1.4), when analyzing the parameter information of the interface between the server and the network element adaptation layer, if the parameter is shared by all actions, and all actions of this parameter have the same value, then the common processing of the server The function is processed uniformly; if the parameter is not shared by all actions, and if it does not need to be added to the XML file after weighing, it will be specially processed by the public processing function of the server.
进一步地,步骤(1.6)中,当分析服务器端和网元适配层接口的各个参数信息时,如果参数是所有动作共有,且此参数所有的动作取值都一样,则由服务器的公共处理函数统一处理;如果参数非所有动作共有,且权衡后如果不需要加入XML文件中,则由服务器的公共处理函数特殊处理。Further, in step (1.6), when analyzing the parameter information of the interface between the server and the network element adaptation layer, if the parameter is shared by all actions, and all actions of this parameter have the same value, then the common processing of the server The function is processed uniformly; if the parameter is not shared by all actions, and if it does not need to be added to the XML file after weighing, it will be specially processed by the public processing function of the server.
本发明的方法可以半自动化的实现TNN网管中的复杂接口,将接口定义和实现方法分开,接口定义通过XML(The Extensible Markup Language,可扩展标识语言)实现,方便用户的认识和测试人员。该方法既能有效降低编码和测试的难度,又能加快代码的实现。The method of the present invention can semi-automatically realize the complex interface in the TNN network management, separate the interface definition from the implementation method, and realize the interface definition through XML (The Extensible Markup Language), which is convenient for users to understand and test personnel. This method can not only effectively reduce the difficulty of coding and testing, but also speed up the realization of the code.
附图说明Description of drawings
图1是本发明实施例XML文件定义的流程图;Fig. 1 is the flow chart of the XML file definition of the embodiment of the present invention;
图2是本发明实施例半自动化实现TNN网管中接口的方法信令交互式示意图。Fig. 2 is an interactive schematic diagram of the method for semi-automatically implementing the interface in the TNN network management according to the embodiment of the present invention.
具体实施方式Detailed ways
本发明的构思如下:在网管上配置可扩展标识语言XML文件表示所述网管和网元的统一的动作接口信息,定义不同的动作信息类和动作返回结果类XML文件表示不同的动作,并采用一套代码进行编码,所述网管通过读取所述XML文件的信息自动适配不同动作,完成与网元的交互。XML文件结构分为发送消息结构类和回应消息结构类;发送到网元的不同的动作信息类XML文件为发送消息结构类;发送到客户端的动作返回结果类XML文件为回应消息结构类。网管和网元的动作接口分为客户端和服务器端接口、服务器端和网元适配层接口、网元适配层接口和网元接口;在发送和接收信息时,这三个接口通过读取所述XML文件的信息自动适配不同动作。这样开发和测试相对方便很多,并且灵活多变、扩展性强。因为在验证代码正确性的基础之后,主要就是针对XML文件判断接口定义的正确性即可。The idea of the present invention is as follows: configure Extensible Markup Language XML files on the network management system to represent the unified action interface information of the network management system and network elements, define different action information classes and action return result class XML files to represent different actions, and use A set of codes is used for encoding, and the network manager automatically adapts to different actions by reading the information in the XML file to complete the interaction with the network element. The XML file structure is divided into the sending message structure class and the response message structure class; the different action information XML files sent to the network element are the sending message structure class; the action return result XML files sent to the client are the response message structure class. The action interfaces of the network management and network elements are divided into client and server interfaces, server and network element adaptation layer interfaces, network element adaptation layer interfaces and network element interfaces; when sending and receiving information, these three interfaces pass the read The information of the XML file is obtained to automatically adapt to different actions. In this way, development and testing are relatively convenient, flexible and scalable. Because after verifying the basis of the correctness of the code, it is mainly to judge the correctness of the interface definition for the XML file.
以下结合附图和具体实施方式对本发明所述技术方案进行详细描述。The technical solution of the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.
如图1所示,是本发明实施例XML文件定义的流程图,包括如下步骤:As shown in Figure 1, it is a flow chart of the XML file definition of the embodiment of the present invention, comprising the following steps:
步骤101,分析客户端和服务器端接口的各个参数信息;
步骤102,判断各参数是否所有动作共有:如果是,则转步骤103;如果不是,则转步骤104;
步骤103,判断参数所有的动作取值是否都一样:如果是,则转步骤117;如果不是,则转步骤105;
步骤104,权衡一下看是否需要加入XML文件中:如果是,则转步骤105;如果不是,则转步骤118;
步骤105,加入XML文件中;
步骤106,分析服务器端和网元适配层接口的各个参数信息;
步骤107,判断各参数是否所有动作共有:如果是,则转步骤108;如果不是,则转步骤109;
步骤108,判断参数所有的动作取值是否都一样:如果是,则转步骤119;如果不是,则转步骤110;
步骤109,权衡一下看是否需要加入XML文件中:如果是,则转步骤110;如果不是,则转步骤120;
步骤110,加入XML文件中;
步骤111,分析网元适配层和网元接口的各个参数信息;Step 111, analyzing the parameter information of the network element adaptation layer and the network element interface;
步骤112,判断各参数是否所有动作共有:如果是,则转步骤113;如果不是,则转步骤114;
步骤113,判断参数所有的动作取值是否都一样:如果是,则转步骤119;如果不是,则转步骤115;Step 113, judge whether all action values of parameters are the same: if yes, then go to
步骤114,权衡一下看是否需要加入XML文件中:如果是,则转步骤115;如果不是,则转步骤120;
步骤115,加入XML文件中;
步骤116,整理所有接口信息,配置XML文件结构表示所述统一的动作接口信息,定义不同的动作信息类和动作返回结果类XML文件表示不同的动作,所述服务器端针对所有动作的参数取值,编写XML文件,并采用一套代码进行编码,然后发布到所述网管和网元的动作接口上,XML文件定义流程结束;
步骤117,由客户端的公共处理函数统一处理;
步骤118,由客户端的公共处理函数特殊处理;
步骤119,由服务器的公共处理函数统一处理;
步骤120,由服务器的公共处理函数特殊处理。
如图2所示,是本发明实施例半自动化实现TNN网管中接口的方法信令交互式示意图,包括如下步骤:As shown in Figure 2, it is an interactive schematic diagram of the method signaling in the semi-automatic implementation of the interface in the TNN network management of the embodiment of the present invention, including the following steps:
步骤201,操作员发起对象的动作操作;Step 201, the operator initiates the action operation of the object;
步骤202,客户端根据管理对象、动作名称以及动作发起消息结构类所需要的信息提供操作员选择,操作员确认之后,客户端根据操作员输入信息组织相应动作的信息发送到服务器端;Step 202, the client provides operator selection according to the information required for the management object, action name and action initiation message structure class, and after the operator confirms, the client organizes the information of the corresponding action according to the information input by the operator and sends it to the server;
步骤203,服务器端收到后,根据消息中的动作名称在XML文件中增加该动作对应的内容,自动适配成动作发送消息结构类XML文件转发到网元适配层;如果在XML文件中找不到所述动作名称则返回错误信息;Step 203: After receiving the message, the server adds the content corresponding to the action in the XML file according to the action name in the message, and automatically adapts it as an action to send the message structure class XML file and forwards it to the network element adaptation layer; if in the XML file If the action name cannot be found, an error message is returned;
步骤204,网元适配层收到后,读取XML文件中的信息,调用统一的接口通讯模块组织相应动作的消息格式,自动适配成具体的动作信息并发送到网元;Step 204, after the network element adaptation layer receives the information, it reads the information in the XML file, calls a unified interface communication module to organize the message format of the corresponding action, automatically adapts it into specific action information and sends it to the network element;
步骤205,网元收到并处理所述动作后,向网元适配层返回动作结果;Step 205, after the network element receives and processes the action, returns the action result to the network element adaptation layer;
步骤206,网元适配层根据动作名称自动适配成动作回应消息结构类XML文件,发送给服务器端;Step 206, the network element adaptation layer automatically adapts the action response message structure class XML file according to the action name, and sends it to the server;
步骤207,服务器端转发动作的结果信息给客户端;Step 207, the server forwards the result information of the action to the client;
步骤208,客户端收到后,向操作员进行动作结果信息的界面显示,并提示操作员返回信息。Step 208: After receiving the information, the client terminal displays the action result information to the operator on an interface, and prompts the operator to return the information.
本发明所述方案,并不仅仅限于说明书和实施方式中所列运用。对本发明技术所属领域的普通技术人员来说,可根据本发明作出各种相应的改变和变形,而所有这些相应的改变和变形都属于本发明权利要求的保护范围。The solutions described in the present invention are not limited to the applications listed in the specification and implementation methods. For those of ordinary skill in the art to which the technology of the present invention belongs, various corresponding changes and modifications can be made according to the present invention, and all these corresponding changes and modifications belong to the protection scope of the claims of the present invention.
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2008100071656A CN101500343B (en) | 2008-02-02 | 2008-02-02 | Method for semi-automatically implementing interface in telecommunication managing network management |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2008100071656A CN101500343B (en) | 2008-02-02 | 2008-02-02 | Method for semi-automatically implementing interface in telecommunication managing network management |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101500343A CN101500343A (en) | 2009-08-05 |
| CN101500343B true CN101500343B (en) | 2012-11-14 |
Family
ID=40947156
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2008100071656A Expired - Fee Related CN101500343B (en) | 2008-02-02 | 2008-02-02 | Method for semi-automatically implementing interface in telecommunication managing network management |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN101500343B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI909456B (en) * | 2024-05-16 | 2025-12-21 | 台灣大哥大股份有限公司 | Mobile communication network parameter management system |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102221992A (en) * | 2010-04-15 | 2011-10-19 | 江苏风云网络服务有限公司 | Interface method suitable for SaaS software |
| CN102790694A (en) * | 2011-05-20 | 2012-11-21 | 中兴通讯股份有限公司 | Method and device for organizing information of network element management layer |
| CN105306579A (en) * | 2015-11-11 | 2016-02-03 | 盛趣信息技术(上海)有限公司 | Server interface configuration method and server |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1343426A (en) * | 1999-03-16 | 2002-04-03 | 诺基亚网络有限公司 | Method and apparatus for defining interface and telecommunication system |
-
2008
- 2008-02-02 CN CN2008100071656A patent/CN101500343B/en not_active Expired - Fee Related
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1343426A (en) * | 1999-03-16 | 2002-04-03 | 诺基亚网络有限公司 | Method and apparatus for defining interface and telecommunication system |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| TWI909456B (en) * | 2024-05-16 | 2025-12-21 | 台灣大哥大股份有限公司 | Mobile communication network parameter management system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101500343A (en) | 2009-08-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112988409B (en) | Interface calling method and device, computer equipment and storage medium | |
| CN105225076B (en) | Cost analysis data acquisition and processing system | |
| CN109669976B (en) | ETL-based data service method and device | |
| CN112685248B (en) | Intelligent network card monitoring log acquisition method and device, electronic equipment and storage medium | |
| CN107168702A (en) | A kind of App, small routine and web interface definition and code generating method | |
| CN111083168A (en) | Configurable data transmission method and device of Internet of things platform gateway and gateway | |
| CN112631924A (en) | Automatic testing method and device, computer equipment and storage medium | |
| CN112241625A (en) | Method and system for automatically generating contract document based on java language | |
| CN101500343B (en) | Method for semi-automatically implementing interface in telecommunication managing network management | |
| CN112989433A (en) | Verification method based on Java Bean verification rule and related equipment | |
| CN114741056A (en) | An IoT management platform based on big data and cloud computing | |
| CN101997873A (en) | Capability accessing method and accessing platform | |
| CN114371982A (en) | Simulation test method, device, equipment and readable storage medium | |
| CN101136780A (en) | Method and system for acquiring user command information and device for registering user commands | |
| CN111143310A (en) | Log recording method and device, and readable storage medium | |
| CN112131091B (en) | Test method and device and electronic equipment | |
| CN117763198A (en) | Data conversion methods, devices and equipment | |
| CN115373655B (en) | Information protocol code automatic generation method based on standardized template | |
| CN119127659A (en) | A test case generation method, device, equipment and storage medium | |
| CN116827566B (en) | Equipment data transmission method, device and system | |
| CN116383064A (en) | An automated script number creation platform and method | |
| CN116204428A (en) | Test case generation method and device | |
| CN113784299A (en) | A method, device and computer for sending short message based on MQ message channel | |
| CN116932339A (en) | Service log processing method, device, electronic equipment and computer readable medium | |
| CN105530288A (en) | Data interaction method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20121114 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |
