WO2018006789A1 - 一种参数校验方法和装置、以及网管服务器和计算机存储介质 - Google Patents

一种参数校验方法和装置、以及网管服务器和计算机存储介质 Download PDF

Info

Publication number
WO2018006789A1
WO2018006789A1 PCT/CN2017/091614 CN2017091614W WO2018006789A1 WO 2018006789 A1 WO2018006789 A1 WO 2018006789A1 CN 2017091614 W CN2017091614 W CN 2017091614W WO 2018006789 A1 WO2018006789 A1 WO 2018006789A1
Authority
WO
WIPO (PCT)
Prior art keywords
parameter
verification
request message
rule template
template corresponding
Prior art date
Application number
PCT/CN2017/091614
Other languages
English (en)
French (fr)
Inventor
曾蔚翔
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018006789A1 publication Critical patent/WO2018006789A1/zh

Links

Images

Definitions

  • the present disclosure relates to the field of network device management technologies, and in particular, to a parameter verification method and apparatus, and a network management server and a computer storage medium.
  • the operator manages the device manufacturer's device through the northbound interface of the device manufacturer's network management device, and the management mode does not change substantially for a long time.
  • the northbound interface of the device manufacturer's network management system includes SNMP, FTP, CORBA, and MTOSI interfaces.
  • the SNMP (Simple Network Management Protocol) interface is only suitable for managing alarm notifications.
  • the FTP interface is only suitable for managing configuration data. If you need to fully manage configuration, alarm, performance, and service delivery, you need to rely on CORBA (Common Object Request Broker Architecture), MTOSI (Multi-Technology Operations System Interface), etc. Interface.
  • the embodiment of the invention provides a parameter verification method and device, and a network management server, which can reduce equipment maintenance difficulty of the equipment manufacturer.
  • the embodiment of the invention provides a parameter verification method, and the method includes:
  • the verification rule template corresponding to the universal request message is selected from a plurality of preset verification rule templates
  • the verification rule template corresponding to the general request message is obtained according to the data combination obtained from the network management;
  • the parameter verification is performed according to the verification rule template corresponding to the general request message.
  • the method before the analyzing whether the parameter carried in the universal request packet belongs to a static parameter or a dynamic parameter, the method further includes:
  • the request verification packet sent by the northbound interface is received, and the request verification packet is converted into the general request packet.
  • the method further includes:
  • the abnormal information is generated according to the verified error information, and the abnormal information is returned to the northbound interface.
  • the method further includes:
  • selecting the verification rule template corresponding to the general request message from the multiple verification rule templates that are loaded includes:
  • the embodiment of the invention further provides a parameter verification device, the device comprising:
  • a distinguishing unit configured to distinguish whether the parameter carried in the universal request packet belongs to a static parameter or a dynamic parameter
  • the template obtaining unit is configured to: when the parameter is a static parameter, select a verification rule template corresponding to the general request message from a plurality of preset verification rule templates; when the parameter is a dynamic parameter, according to the obtained from the network management The data combination is obtained by using a verification rule template corresponding to the general request message;
  • the verification unit is configured to perform parameter verification according to the verification rule template corresponding to the general request message.
  • the method further comprises:
  • the receiving conversion unit is configured to receive the request verification message sent by the northbound interface, and convert the request verification message into a general request message.
  • the method further comprises:
  • the result is returned to the unit, and is set to return a successful result if the parameter verification is successful; if the parameter verification fails, the abnormal information is generated according to the verified error information, and the abnormal information is returned to the northbound interface.
  • the template obtaining unit selects the verification rule template corresponding to the general request message from the multiple verification rule templates that are loaded, including:
  • the embodiment of the present invention further provides a network management server, where the network management server includes any of the above parameter verification devices.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to perform at least one of the foregoing methods.
  • the technical solution provided by the embodiment of the present invention includes: distinguishing whether a parameter carried in the universal request packet belongs to a static parameter or a dynamic parameter; when the parameter is a static parameter, multiple presets are used.
  • the verification rule template corresponding to the general request message is selected in the verification rule template.
  • the verification rule template corresponding to the general request message is obtained according to the data combination obtained from the network management.
  • 1 is a system architecture when a parameter verification method is implemented according to an embodiment of the present invention
  • FIG. 3A and FIG. 3B are schematic diagrams showing the structure of a parameter verification apparatus according to an embodiment of the present invention.
  • the system architecture of the parameter verification method is implemented in the embodiment of the present invention, as shown in FIG. 1 , provided by the device manufacturer.
  • the device includes a northbound interface, a device vendor gateway, and a device main body.
  • the operation line manages the device provided by the device manufacturer through the integrated gateway, including the service delivery, and the parameter calibration device performs parameterization on the northbound interface of the device manufacturer gateway. Test.
  • an embodiment of the present invention provides a parameter verification method, where the method includes:
  • Step 110 Receive a request verification message sent by the northbound interface, and convert the request verification message into a general request message.
  • the interface technologies of the northbound interfaces are different.
  • the packets are translated and the received request check packets are converted into the common request packets.
  • the packets of the northbound interface can be masked and sent to the northbound interface.
  • the analysis and verification of the parameters carried in the request verification message complete the preparation work.
  • Step 120 Differentiate whether the parameter carried in the universal request packet belongs to a static parameter or a dynamic parameter. If the carried parameter is a static parameter, step 140 is performed, if the carried parameter belongs to the dynamic parameter, step 150 is performed;
  • the static parameter refers to the parameter that the verification rule does not change.
  • the dynamic parameter refers to the parameter that the verification rule needs to be obtained through interaction with the network management or device. For example, for a parameter, its value can only be selected between several fixed values. For example, parameter A can only take values among the three values 1, 2, and 3, then parameter A is a static parameter. For different devices, or different versions of the same device, the verification rules of the static parameters are the same. Therefore, it is only necessary to call the corresponding pre-stored verification rule template according to the static parameters. For the dynamic parameters, it is not necessary to pre-store the corresponding parameters. Check the rules, but in real time through the dynamic combination with the network management or device to get the verification rules.
  • the verification of all the parameters is performed by using the code.
  • the parameters that need to be verified are divided into static parameters and dynamic parameters, and different parameters are adopted for the static parameters and the dynamic parameters respectively.
  • the method generates a corresponding verification rule template. After distinguishing between the static parameter and the dynamic parameter, each time the device adds a new parameter, the code does not need to be changed, and only the verification rule template is added.
  • Step 140 When the parameter is a static parameter, obtain the key information carried in the general request message, and select the check corresponding to the universal request message from the multiple check rule templates that are loaded according to the key information.
  • Rule template
  • the key information can be set to the device ID or the device type information.
  • the same type of device can use the same check rule template. Different devices have different device IDs, and the device type can be obtained according to the device ID. The ID selects the corresponding verification rule template.
  • the multiple verification rule templates of different device types are preloaded in the memory, which can improve the selection speed of the verification rule template. Each device type corresponds to one or more verification rule templates.
  • the parameter verification device stores a plurality of verification rule templates, and each verification rule template is a verification rule template corresponding to the corresponding device type. For different device types, the northbound interface sends different request verification reports. Text.
  • step 130 is further included.
  • Step 130 Load a verification rule template corresponding to each device type.
  • the verification rule template corresponding to each device type stored in advance may be loaded into the memory when the device is initialized.
  • the verification rule template corresponding to each device type is defined according to the interface specification of the device. Written in XML and other files, the interface specification definitions of devices of different device types are different.
  • the parameter verification device further stores a correspondence between the key information and each verification rule template, so as to search for a corresponding verification rule template according to the key information.
  • Step 150 When the parameter is a dynamic parameter, the command is sent to the network management system to obtain data, and the obtained data is analyzed, and the verification rule template corresponding to the general request message is combined.
  • the above command includes a query command, for example, determining whether an object exists, and sending a query command to the network management system to obtain corresponding data, and performing verification according to the acquired data.
  • the network management is the vendor network management of the equipment manufacturer.
  • Step 160 Perform parameter verification according to the verification rule template corresponding to the general request message.
  • Step 170 in the case that the parameter verification is successful, returning a successful result
  • Step 180 In the case that the parameter verification fails, the abnormal information is generated according to the verified error information, and the abnormal information is returned to the northbound interface.
  • a parameter verification apparatus which is disposed on a network management server, and refers to FIG. 3A and FIG. 3B, which is a parameter verification device according to an embodiment of the present invention.
  • a parameter verification apparatus according to an embodiment of the present invention includes:
  • the distinguishing unit 20 is configured to distinguish whether the parameter carried in the universal request packet belongs to a static parameter or a dynamic parameter;
  • the template obtaining unit 30 is configured to: when the parameter is a static parameter, select a verification rule template corresponding to the general request message from a plurality of preset verification rule templates; when the parameter is a dynamic parameter, obtain the data from the network management The data combination is obtained by the verification rule template corresponding to the general request message;
  • the verification unit 40 is configured to perform parameter verification according to the verification rule template corresponding to the general request message.
  • the method further includes: a receiving and converting unit 10, configured to receive the request verification message sent by the northbound interface, and convert the request verification message into a general request message.
  • a receiving and converting unit 10 configured to receive the request verification message sent by the northbound interface, and convert the request verification message into a general request message.
  • the parameter verification apparatus further includes:
  • the result returning unit 50 is set to return a successful result in the case where the parameter verification is successful; in the case where the parameter verification fails, the abnormality information is generated according to the verified error information, and the abnormality information is returned to the northbound interface.
  • the parameter verification device further includes: a template loading unit, configured to load a verification rule template corresponding to each device type.
  • the template obtaining unit 30 selects the general request message from the loaded multiple check rule templates.
  • the corresponding verification rule template includes:
  • the embodiment of the present invention further provides a network management server, where the network management server includes any parameter verification device provided by the embodiment of the present invention.
  • Embodiments of the present invention also provide a computer storage medium.
  • the above computer storage medium may be configured to store program code for performing the following steps:
  • the verification rule template corresponding to the universal request message is selected from a plurality of preset verification rule templates
  • the verification rule template corresponding to the general request message is obtained according to the data combination obtained from the network management;
  • the parameter verification is performed according to the verification rule template corresponding to the general request message.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor executes the method steps described in the foregoing embodiments according to the stored program code in the storage medium.
  • modules or steps of the embodiments of the present invention can be implemented by a general computing device, which can be concentrated on a single computing device or distributed in multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from The steps shown or described are performed sequentially, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated into a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
  • the technical solution provided by the embodiment of the present invention can be applied to the technical field of network device management.
  • the technical solution provided by the embodiment of the present invention includes: distinguishing whether a parameter carried in the universal request packet belongs to a static parameter or a dynamic parameter; when the parameter is a static parameter, multiple presets are used.
  • the verification rule template corresponding to the general request message is selected in the verification rule template.
  • the verification rule template corresponding to the general request message is obtained according to the data combination obtained from the network management.
  • a parameter verification scheme is provided, and the code multiplexing is high.
  • the preset multiple calibration rule templates can be preset from different devices for parameter verification.
  • the corresponding parameter rule is added, and the check code is not required to be changed, and the check rule template of the part of the dynamic parameter check is obtained according to the data combination obtained by the network management, so there is no need to modify according to the newly added parameter, so Through the above parameter verification method, it is easy to use and expand when performing parameter verification, which improves the development efficiency of the research and development personnel. The maintenance costs of the code.

Abstract

本公开涉及一种参数校验方法和装置、以及网管服务器,该方法包括:区分所述通用请求报文中携带的参数是属于静态参数还是属于动态参数;在参数是静态参数时,从预先设置的多个校验规则模板中选取所述通用请求报文对应的校验规则模板;在参数是动态参数时,根据从网管得到的数据组合得到通用请求报文对应的校验规则模板。通过本公开的方案,提供了一种参数校验方案,代码复用高,对于不同的设备,在进行参数校验时,能够从预先设置的多个校验规则模板中选取相应的校验规则模板,或者动态组合得到相应的校验规则模板,并根据校验规则模板完成参数校验,易于新增北向接口的开发,屏蔽各种设备的差异性,降低了代码的维护成本。

Description

一种参数校验方法和装置、以及网管服务器和计算机存储介质 技术领域
本公开涉及网络设备管理技术领域,尤指一种参数校验方法和装置、以及网管服务器和计算机存储介质。
背景技术
目前在实际的运营网络中,运营商在管理设备厂商的设备时都是通过设备厂商网管的北向接口管理设备厂商设备,而且这种管理的方式在很长一段时间是不会发生本质改变。
设备厂商网管的北向接口包括SNMP、FTP、CORBA、和MTOSI等接口。其中,SNMP(Simple Network Management Protocol,简单网管协议)接口只适合于管理告警通知;FTP接口只适合于管理配置数据。若需要全面管理配置、告警、性能、业务下发,一般需要依靠CORBA(Common Object Request Broker Architecture,公用对象请求代理体系)、MTOSI(Multi-Technology Operations System Interface,多技术操作系统接口)等面向连接的接口。
随着技术的发展,很多运营商在这三个标准接口上定制符合自己的接口,产生的北向接口也越来越多,研发人员也需要处理越来越多的北向接口。
随着通信技术的成熟应用,市场上承载OTN、PTN设备增量迅速,运营商对通过北向接口实现统一监管的要求越来越高,而业务下发的实现也成了重中之重。由于业务下发很容易影响到设备的稳定性,稍微有参数下错就有可能导致业务中断,为了保证业务顺利下发,需要在业务下发之前,需要验证北向接口开发过程中参数的有效性,所以在北向的开发过程中参数的有效性验证对于北向研发人员来说是件很头痛但又必须要做的事情。
面对越来越多的北向接口需要做业务下发操作,而又附带着大量参数。研发人员每次实现一个新北向接口,都需要对相关的参数进行验证,因此,需要为同样的各种设备重新编写校验代码,使得代码显得不够简洁。此外,北向接口的校验还需要区分各种设备版本,因为设备厂商的设备的大版本的改变可能造成参数的改变,因此,在需要做业务下发操作时,针对相同设备的不同版本,也需要分别编写校验代码。上 述原因造成设备的北向接口的开发过程中参数的有效性验证成为一件繁琐和复杂的工作,增加了技术人员的工作量,增加了设备厂商的设备维护难度。
发明内容
本发明实施例提出一种参数校验方法和装置、以及网管服务器,能够降低设备厂商的设备维护难度。
本发明实施例提出了一种参数校验方法,所述方法包括:
区分所述通用请求报文中携带的参数是属于静态参数还是属于动态参数;
在参数是静态参数时,从预先设置的多个校验规则模板中选取所述通用请求报文对应的校验规则模板;
在参数是动态参数时,根据从网管得到的数据组合得到通用请求报文对应的校验规则模板;
根据通用请求报文对应的校验规则模板进行参数校验。
优选地,在所述分析所述通用请求报文中携带的参数是属于静态参数还是属于动态参数之前,还包括:
接收北向接口发送的请求校验报文,将请求校验报文转换为所述通用请求报文。
优选地,在所述根据通用请求报文对应的校验规则模板进行参数校验之后,还包括:
在参数校验成功的情况下,返回成功结果;
在参数校验失败的情况下,根据校验的错误信息生成异常信息,并将异常信息返回给北向接口。
优选地,在从加载的多个校验规则模板中选取所述通用请求报文对应的校验规则模板之前,还包括:
加载各个设备类型对应的校验规则模板。
优选地,从加载的多个校验规则模板中选取所述通用请求报文对应的校验规则模板包括:
获取所述通用请求报文中携带的关键信息,并根据该关键信息,从加载的多个校验规则模板中选取所述通用请求报文对应的校验规则模板。
本发明实施例还提出了一种参数校验装置,所述装置包括:
区分单元,设置为区分所述通用请求报文中携带的参数是属于静态参数还是属于动态参数;
模板获取单元,设置为在参数是静态参数时,从预先设置的多个校验规则模板中选取所述通用请求报文对应的校验规则模板;在参数是动态参数时,根据从网管得到的数据组合得到通用请求报文对应的校验规则模板;
校验单元,设置为根据通用请求报文对应的校验规则模板进行参数校验。
优选地,还包括:
接收转换单元,设置为接收北向接口发送的请求校验报文,并将请求校验报文转换为通用请求报文。
优选地,还包括:
结果返回单元,设置为在参数校验成功的情况下,返回成功结果;在参数校验失败的情况下,根据校验的错误信息生成异常信息,并将异常信息返回给北向接口。
优选地,模板获取单元从加载的多个校验规则模板中选取所述通用请求报文对应的校验规则模板包括:
获取所述通用请求报文中携带的关键信息,并根据该关键信息,从加载的多个校验规则模板中选取所述通用请求报文对应的校验规则模板。
本发明实施例还提出了一种网管服务器,所述网管服务器包括上述任一参数校验装置。
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述方法中的至少其中之一。
与现有技术相比,本发明实施例提供的技术方案包括:区分所述通用请求报文中携带的参数是属于静态参数还是属于动态参数;在参数是静态参数时,从预先设置的多个校验规则模板中选取所述通用请求报文对应的校验规则模板;在参数是动态参数时,根据从网管得到的数据组合得到通用请求报文对应的校验规则模板。通过本发明实施例的方案,提供了一种参数校验方案,代码复用高,通过预先设置的多个校验规则模板,对于不同的设备,在进行参数校验时,能够从预先设置的多个校验规则模板中选取相应的校验规则模板,或者动态组合得到相应的校验规则模板,并根据校验规则模板完成参数校验,易于新增北向接口的开发,屏蔽各种设备的差异性,不需要在做业务下发操作时,针对不同的设备分别编写校验代码,当某个设备下发了新设备版 本,并且新的设备版本有新增参数时,只需在参数模板增加相应的参数规则,不需要变动校验代码,并且,其中动态参数校验的部分的校验规则模板是根据网管得到的数据组合得到的,因此不需要根据新增的参数做出修改,因此,通过上述参数校验方法,在进行参数校验时,易于使用和扩展,提高了研发人员的开发效率,降低了代码的维护成本。
附图说明
下面对本发明实施例中的附图进行说明,实施例中的附图是用于对本发明的进一步理解,与说明书一起用于解释本发明,并不构成对本发明保护范围的限制。
图1为本发明实施例实现参数校验方法时的系统架构;
图2为本发明实施例提供的参数校验方法的流程图;
图3A和图3B为本发明实施例提供的参数校验装置的结构组成示意图。
具体实施方式
为了便于本领域技术人员的理解,下面结合附图对本发明作进一步的描述,并不能用来限制本发明的保护范围。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的各种方式可以相互组合。
在介绍本发明实施例提供的参数校验方法之前,首先对系统架构进行介绍,参见图1,为本发明实施例实现参数校验方法时的系统架构,如图1所示,设备厂商提供的设备包括北向借口,设备厂商网关和设备主体,运营线通过综合网关对设备厂商提供的设备进行管理,包括业务的下发等,其中,通过参数校验装置对设备厂商网关的北向接口进行参数校验。
参见图2,本发明实施例提出了一种参数校验方法,所述方法包括:
步骤110,接收北向接口发送的请求校验报文,将请求校验报文转换为通用请求报文;
由于各种北向接口的接口技术并不相同,通过报文转换,将接收的请求校验报文转换为通用请求报文,能够屏蔽各种北向接口的报文差异,为后续的针对北向接口发送的请求校验报文中携带的参数的分析和验证完成准备工作。
步骤120,区分所述通用请求报文中携带的参数是属于静态参数还是属于动态参 数;如果携带的参数是属于静态参数,则执行步骤140,如果携带的参数是属于动态参数,则执行步骤150;
其中,静态参数是指校验规则不会发生改变的参数,动态参数是指校验规则需要通过与网管或设备进行交互得到的参数。例如,对于某个参数,其取值只能在若干个固定的数值之间进行选择,例如,参数A,只能在1,2,3这3个值中取值,那么参数A为静态参数,对于不同的设备,或者相同设备不同的版本,静态参数的验证规则相同,因此只需要根据静态参数调用对应的预先存储的校验规则模板就可以了,对于动态参数,不需要预先存储对应的校验规则,而是实时通过与网管或设备之间的交互动态组合得到校验规则。
现有技术中,针对所有的参数的验证都是通过代码进行校验,本发明实施例中,将需要校验的参数划分为静态参数和动态参数,并且针对静态参数和动态参数分别采用不同的方法生成对应的校验规则模板,通过区分静态参数和动态参数后,每当设备增加新的参数时,都不需要再改动代码,只需增加校验规则模板即可。
步骤140;在参数是静态参数时,获取所述通用请求报文中携带的关键信息,并根据该关键信息,从加载的多个校验规则模板中选取所述通用请求报文对应的校验规则模板;
其中,关键信息是可以设置为设备ID或者设备类型信息,相同类型的设备可以采用相同的校验规则模板,不同设备具有不同的设备ID,也可以根据设备ID获取设备的设备类型,从而根据设备ID选取对应的校验规则模板。其中,在内存中预先加载不同的设备类型的多个校验规则模板,能够提高校验规则模板的选取速度。每种设备类型对应一个或者多个校验规则模板。
其中,参数校验装置中存储有多个校验规则模板,各个校验规则模板为与相应的设备类型对应的校验规则模板,对于不同的设备类型,北向接口会发送不同的请求校验报文。
因此,在步骤140之前,还包括步骤130,
步骤130:加载各个设备类型对应的校验规则模板;
其中,在设备初始化时,可以将预先存储的各个设备类型对应的校验规则模板加载到内存中。
其中,各个设备类型对应的校验规则模板是根据设备的接口规范定义的范围,利 用XML等文件编写而成,不同设备类型的设备的接口规范定义是不同。此外,参数校验装置中还存储有关键信息与各个校验规则模板之间的对应关系,从而根据关键信息查找对应的校验规则模板。
步骤150,在参数是动态参数时,下发各种命令到网管得到数据,对得到的数据进行分析,并组合得到通用请求报文对应的校验规则模板;
其中,上述命令包括查询命令,例如,判断一个对象是否存在,可以通过发送查询命令给网管并获取对应的数据,并根据获取的数据进行校验。其中,网管为设备厂商的厂商网管。
步骤160,根据通用请求报文对应的校验规则模板进行参数校验;
步骤170,在参数校验成功的情况下,返回成功结果;
步骤180,在参数校验失败的情况下,根据校验的错误信息生成异常信息,并将异常信息返回给北向接口。
基于与上述实施例相同或相似的构思,本发明实施例还提供一种参数校验装置,设置在网管服务器上,参见图3A和图3B,为本发明实施例提出的一种参数校验装置的示意图,如图3A所示,本发明实施例提出的一种参数校验装置包括:
区分单元20,设置为区分所述通用请求报文中携带的参数是属于静态参数还是属于动态参数;
模板获取单元30,设置为在参数是静态参数时,从预先设置的多个校验规则模板中选取所述通用请求报文对应的校验规则模板;在参数是动态参数时,根据从网管得到的数据组合得到通用请求报文对应的校验规则模板;
校验单元40,设置为根据通用请求报文对应的校验规则模板进行参数校验。
优选地,还包括:接收转换单元10,设置为接收北向接口发送的请求校验报文,并将请求校验报文转换为通用请求报文。
其中,优选地,如图3B所示,参数校验装置还包括:
结果返回单元50,设置为在参数校验成功的情况下,返回成功结果;在参数校验失败的情况下,根据校验的错误信息生成异常信息,并将异常信息返回给北向接口。
其中,优选地,参数校验装置还包括:模板加载单元,设置为加载各个设备类型对应的校验规则模板。
优选地,模板获取单元30从加载的多个校验规则模板中选取所述通用请求报文 对应的校验规则模板包括:
获取所述通用请求报文中携带的关键信息,并根据该关键信息,从加载的多个校验规则模板中选取所述通用请求报文对应的校验规则模板。
基于与上述实施例相同或相似的构思,本发明实施例还提供一种网管服务器,所述网管服务器包括本发明实施例提供的任一参数校验装置。
本发明的实施例还提供了一种计算机存储介质。可选地,在本实施例中,上述计算机存储介质可以被设置为存储用于执行以下步骤的程序代码:
区分所述通用请求报文中携带的参数是属于静态参数还是属于动态参数;
在参数是静态参数时,从预先设置的多个校验规则模板中选取所述通用请求报文对应的校验规则模板;
在参数是动态参数时,根据从网管得到的数据组合得到通用请求报文对应的校验规则模板;
根据通用请求报文对应的校验规则模板进行参数校验。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述实施例记载的方法步骤。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本发明实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明实施例不限制于任何特定的硬件和软件结合。
需要说明的是,以上所述的实施例仅是为了便于本领域的技术人员理解而已,并不用于限制本发明的保护范围,在不脱离本发明的发明构思的前提下,本领域技术人 员对本发明所做出的任何显而易见的替换和改进等均在本发明的保护范围之内。
工业实用性
本发明实施例提供的技术方案可以应用于网络设备管理技术领域。与现有技术相比,本发明实施例提供的技术方案包括:区分所述通用请求报文中携带的参数是属于静态参数还是属于动态参数;在参数是静态参数时,从预先设置的多个校验规则模板中选取所述通用请求报文对应的校验规则模板;在参数是动态参数时,根据从网管得到的数据组合得到通用请求报文对应的校验规则模板。通过本发明实施例的方案,提供了一种参数校验方案,代码复用高,通过预先设置的多个校验规则模板,对于不同的设备,在进行参数校验时,能够从预先设置的多个校验规则模板中选取相应的校验规则模板,或者动态组合得到相应的校验规则模板,并根据校验规则模板完成参数校验,易于新增北向接口的开发,屏蔽各种设备的差异性,不需要在做业务下发操作时,针对不同的设备分别编写校验代码,当某个设备下发了新设备版本,并且新的设备版本有新增参数时,只需在参数模板增加相应的参数规则,不需要变动校验代码,并且,其中动态参数校验的部分的校验规则模板是根据网管得到的数据组合得到的,因此不需要根据新增的参数做出修改,因此,通过上述参数校验方法,在进行参数校验时,易于使用和扩展,提高了研发人员的开发效率,降低了代码的维护成本。

Claims (11)

  1. 一种参数校验方法,其中,所述方法包括:
    区分所述通用请求报文中携带的参数是属于静态参数还是属于动态参数;
    在参数是静态参数时,从预先设置的多个校验规则模板中选取所述通用请求报文对应的校验规则模板;
    在参数是动态参数时,根据从网管得到的数据组合得到通用请求报文对应的校验规则模板;
    根据通用请求报文对应的校验规则模板进行参数校验。
  2. 根据权利要求1所述的参数校验方法,其中,在所述分析所述通用请求报文中携带的参数是属于静态参数还是属于动态参数之前,还包括:
    接收北向接口发送的请求校验报文,将请求校验报文转换为所述通用请求报文。
  3. 根据权利要求1所述的参数校验方法,其中,在所述根据通用请求报文对应的校验规则模板进行参数校验之后,还包括:
    在参数校验成功的情况下,返回成功结果;
    在参数校验失败的情况下,根据校验的错误信息生成异常信息,并将异常信息返回给北向接口。
  4. 根据权利要求1所述的参数校验方法,其中,在从加载的多个校验规则模板中选取所述通用请求报文对应的校验规则模板之前,还包括:
    加载各个设备类型对应的校验规则模板。
  5. 根据权利要求1所述的参数校验方法,其中,从加载的多个校验规则模板中选取所述通用请求报文对应的校验规则模板包括:
    获取所述通用请求报文中携带的关键信息,并根据该关键信息,从加载的多个校验规则模板中选取所述通用请求报文对应的校验规则模板。
  6. 一种参数校验装置,其中,所述装置包括:
    区分单元,设置为区分所述通用请求报文中携带的参数是属于静态参数还是属于动态参数;
    模板获取单元,设置为在参数是静态参数时,从预先设置的多个校验规则模板中选取所述通用请求报文对应的校验规则模板;在参数是动态参数时,根据从网管 得到的数据组合得到通用请求报文对应的校验规则模板;
    校验单元,设置为根据通用请求报文对应的校验规则模板进行参数校验。
  7. 根据权利要求6所述的参数校验装置,其中,还包括:
    接收转换单元,设置为接收北向接口发送的请求校验报文,并将请求校验报文转换为通用请求报文。
  8. 根据权利要求6所述的参数校验装置,其中,还包括:
    结果返回单元,设置为在参数校验成功的情况下,返回成功结果;在参数校验失败的情况下,根据校验的错误信息生成异常信息,并将异常信息返回给北向接口。
  9. 根据权利要求6所述的参数校验装置,其中,模板获取单元从加载的多个校验规则模板中选取所述通用请求报文对应的校验规则模板包括:
    获取所述通用请求报文中携带的关键信息,并根据该关键信息,从加载的多个校验规则模板中选取所述通用请求报文对应的校验规则模板。
  10. 一种网管服务器,其中,所述网管服务器包括权利要求6~9提供的任一参数校验装置。
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如权利要求1至5中所述的方法中的至少其中之一。
PCT/CN2017/091614 2016-07-04 2017-07-04 一种参数校验方法和装置、以及网管服务器和计算机存储介质 WO2018006789A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610519602.7A CN107579836A (zh) 2016-07-04 2016-07-04 一种参数校验方法和装置、以及网管服务器
CN201610519602.7 2016-07-04

Publications (1)

Publication Number Publication Date
WO2018006789A1 true WO2018006789A1 (zh) 2018-01-11

Family

ID=60911996

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/091614 WO2018006789A1 (zh) 2016-07-04 2017-07-04 一种参数校验方法和装置、以及网管服务器和计算机存储介质

Country Status (2)

Country Link
CN (1) CN107579836A (zh)
WO (1) WO2018006789A1 (zh)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344642A (zh) * 2018-08-31 2019-02-15 平安科技(深圳)有限公司 接口规则校验方法、装置、计算机设备及存储介质
CN109597816A (zh) * 2018-10-30 2019-04-09 京信通信系统(中国)有限公司 参数校验方法、装置、计算机存储介质及嵌入式设备
CN109617647A (zh) * 2018-10-22 2019-04-12 中国平安财产保险股份有限公司 报文转换方法、装置、计算机设备及计算机可读存储介质
CN109842208A (zh) * 2018-12-26 2019-06-04 广东电网有限责任公司 一种安全自动装置定值单远方下发的防误方法及装置
CN110321505A (zh) * 2019-06-25 2019-10-11 阿里巴巴集团控股有限公司 数据一致性校验方法及装置
CN110659019A (zh) * 2019-09-26 2020-01-07 北京金山云网络技术有限公司 参数校验方法、装置和服务器
CN110865854A (zh) * 2019-11-11 2020-03-06 科大国创软件股份有限公司 一种支持热部署的接口调用编排方法
CN110968322A (zh) * 2019-11-27 2020-04-07 北京旷视科技有限公司 Json数据的处理方法、装置和电子系统
CN111158792A (zh) * 2020-01-02 2020-05-15 普元信息技术股份有限公司 分布式架构下实现动态可配置的服务参数校验处理系统及其方法
CN111241073A (zh) * 2018-11-29 2020-06-05 阿里巴巴集团控股有限公司 一种数据质量检查方法及装置
CN111552702A (zh) * 2020-05-08 2020-08-18 北京思特奇信息技术股份有限公司 业务规则自动配置方法、装置、电子设备及存储介质
CN111625580A (zh) * 2020-04-22 2020-09-04 口碑(上海)信息技术有限公司 数据处理方法、装置及设备
CN111918135A (zh) * 2020-06-23 2020-11-10 青岛海尔多媒体有限公司 用于配置参数校验的方法及装置、电视机
CN112269706A (zh) * 2020-11-16 2021-01-26 北京百度网讯科技有限公司 接口参数校验方法、装置、电子设备以及计算机可读介质
CN112380200A (zh) * 2020-11-10 2021-02-19 中国人寿保险股份有限公司 一种保险信息校验方法及装置
CN112540923A (zh) * 2020-12-15 2021-03-23 平安科技(深圳)有限公司 接口参数校验与转换方法、装置、设备及存储介质
CN112988485A (zh) * 2021-03-26 2021-06-18 国网冀北电力有限公司信息通信分公司 电力物联网设备模拟测试方法及装置
CN113535776A (zh) * 2021-05-28 2021-10-22 国网辽宁省电力有限公司 应用于监测装置的参数合法性校验方法及系统
CN113626314A (zh) * 2021-07-16 2021-11-09 济南浪潮数据技术有限公司 一种云平台资源参数的校验方法、装置、设备及可读介质
CN115145587A (zh) * 2022-07-22 2022-10-04 中国农业银行股份有限公司 一种产品参数校验方法、装置、电子设备及存储介质
CN116094773A (zh) * 2022-12-26 2023-05-09 浪潮通信信息系统有限公司 一种无侵入服务接口合法性校验方法、系统及装置

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108667647B (zh) * 2018-03-30 2022-02-25 联动优势电子商务有限公司 一种设备参数的设置方法、设备及服务器
CN110188038B (zh) * 2019-05-13 2023-07-21 青岛海尔科技有限公司 一种参数校验方法及装置、校验架构
CN112051990A (zh) * 2019-06-06 2020-12-08 烽火通信科技股份有限公司 网管北向接口模型适配方法及系统
CN110502442B (zh) * 2019-08-15 2023-02-03 平安普惠企业管理有限公司 动态参数校验方法、装置、设备和存储介质
CN110502508A (zh) * 2019-08-23 2019-11-26 行吟信息科技(上海)有限公司 一种基于参数动态的校验方法及系统
CN113608913A (zh) * 2021-08-05 2021-11-05 上海微盟企业发展有限公司 参数校验方法、系统、装置及存储介质
CN114461302A (zh) * 2022-02-09 2022-05-10 北京理房通支付科技有限公司 参数校验方法、校验模板的生成方法及存储介质
CN116909930B (zh) * 2023-09-11 2023-11-24 智业软件股份有限公司 实现前端网页运行时变量异常检测的方法和装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724076A (zh) * 2012-06-20 2012-10-10 中兴通讯股份有限公司 北向全参数处理方法及装置
CN103544074A (zh) * 2012-07-09 2014-01-29 阿里巴巴集团控股有限公司 一种业务的校验方法及装置
WO2016095373A1 (zh) * 2014-12-16 2016-06-23 中兴通讯股份有限公司 业务处理方法及装置
CN105808510A (zh) * 2014-12-31 2016-07-27 北京航天测控技术有限公司 一种调试数据校验方法及装置
CN106792784A (zh) * 2015-11-23 2017-05-31 大唐移动通信设备有限公司 一种在服务器侧进行数据校验的方法、服务器和系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724076A (zh) * 2012-06-20 2012-10-10 中兴通讯股份有限公司 北向全参数处理方法及装置
CN103544074A (zh) * 2012-07-09 2014-01-29 阿里巴巴集团控股有限公司 一种业务的校验方法及装置
WO2016095373A1 (zh) * 2014-12-16 2016-06-23 中兴通讯股份有限公司 业务处理方法及装置
CN105808510A (zh) * 2014-12-31 2016-07-27 北京航天测控技术有限公司 一种调试数据校验方法及装置
CN106792784A (zh) * 2015-11-23 2017-05-31 大唐移动通信设备有限公司 一种在服务器侧进行数据校验的方法、服务器和系统

Cited By (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344642A (zh) * 2018-08-31 2019-02-15 平安科技(深圳)有限公司 接口规则校验方法、装置、计算机设备及存储介质
CN109344642B (zh) * 2018-08-31 2024-03-01 平安科技(深圳)有限公司 接口规则校验方法、装置、计算机设备及存储介质
CN109617647A (zh) * 2018-10-22 2019-04-12 中国平安财产保险股份有限公司 报文转换方法、装置、计算机设备及计算机可读存储介质
CN109597816A (zh) * 2018-10-30 2019-04-09 京信通信系统(中国)有限公司 参数校验方法、装置、计算机存储介质及嵌入式设备
CN111241073B (zh) * 2018-11-29 2023-06-20 阿里巴巴集团控股有限公司 一种数据质量检查方法及装置
CN111241073A (zh) * 2018-11-29 2020-06-05 阿里巴巴集团控股有限公司 一种数据质量检查方法及装置
CN109842208A (zh) * 2018-12-26 2019-06-04 广东电网有限责任公司 一种安全自动装置定值单远方下发的防误方法及装置
CN109842208B (zh) * 2018-12-26 2023-01-20 广东电网有限责任公司 一种安全自动装置定值单远方下发的防误方法及装置
CN110321505A (zh) * 2019-06-25 2019-10-11 阿里巴巴集团控股有限公司 数据一致性校验方法及装置
CN110321505B (zh) * 2019-06-25 2023-08-08 创新先进技术有限公司 数据一致性校验方法及装置
CN110659019A (zh) * 2019-09-26 2020-01-07 北京金山云网络技术有限公司 参数校验方法、装置和服务器
CN110659019B (zh) * 2019-09-26 2023-07-25 北京金山云网络技术有限公司 参数校验方法、装置和服务器
CN110865854A (zh) * 2019-11-11 2020-03-06 科大国创软件股份有限公司 一种支持热部署的接口调用编排方法
CN110865854B (zh) * 2019-11-11 2023-03-31 科大国创软件股份有限公司 一种支持热部署的接口调用编排方法
CN110968322A (zh) * 2019-11-27 2020-04-07 北京旷视科技有限公司 Json数据的处理方法、装置和电子系统
CN110968322B (zh) * 2019-11-27 2023-04-28 北京旷视科技有限公司 Json数据的处理方法、装置和电子系统
CN111158792B (zh) * 2020-01-02 2023-05-16 普元信息技术股份有限公司 分布式架构下实现动态可配置的服务参数校验处理系统及其方法
CN111158792A (zh) * 2020-01-02 2020-05-15 普元信息技术股份有限公司 分布式架构下实现动态可配置的服务参数校验处理系统及其方法
CN111625580A (zh) * 2020-04-22 2020-09-04 口碑(上海)信息技术有限公司 数据处理方法、装置及设备
CN111552702A (zh) * 2020-05-08 2020-08-18 北京思特奇信息技术股份有限公司 业务规则自动配置方法、装置、电子设备及存储介质
CN111918135A (zh) * 2020-06-23 2020-11-10 青岛海尔多媒体有限公司 用于配置参数校验的方法及装置、电视机
CN112380200A (zh) * 2020-11-10 2021-02-19 中国人寿保险股份有限公司 一种保险信息校验方法及装置
CN112269706B (zh) * 2020-11-16 2024-04-05 北京百度网讯科技有限公司 接口参数校验方法、装置、电子设备以及计算机可读介质
CN112269706A (zh) * 2020-11-16 2021-01-26 北京百度网讯科技有限公司 接口参数校验方法、装置、电子设备以及计算机可读介质
CN112540923B (zh) * 2020-12-15 2022-03-25 平安科技(深圳)有限公司 接口参数校验与转换方法、装置、设备及存储介质
CN112540923A (zh) * 2020-12-15 2021-03-23 平安科技(深圳)有限公司 接口参数校验与转换方法、装置、设备及存储介质
CN112988485A (zh) * 2021-03-26 2021-06-18 国网冀北电力有限公司信息通信分公司 电力物联网设备模拟测试方法及装置
CN112988485B (zh) * 2021-03-26 2024-01-26 国网冀北电力有限公司信息通信分公司 电力物联网设备模拟测试方法及装置
CN113535776A (zh) * 2021-05-28 2021-10-22 国网辽宁省电力有限公司 应用于监测装置的参数合法性校验方法及系统
CN113626314B (zh) * 2021-07-16 2023-12-22 济南浪潮数据技术有限公司 一种云平台资源参数的校验方法、装置、设备及可读介质
CN113626314A (zh) * 2021-07-16 2021-11-09 济南浪潮数据技术有限公司 一种云平台资源参数的校验方法、装置、设备及可读介质
CN115145587A (zh) * 2022-07-22 2022-10-04 中国农业银行股份有限公司 一种产品参数校验方法、装置、电子设备及存储介质
CN116094773A (zh) * 2022-12-26 2023-05-09 浪潮通信信息系统有限公司 一种无侵入服务接口合法性校验方法、系统及装置

Also Published As

Publication number Publication date
CN107579836A (zh) 2018-01-12

Similar Documents

Publication Publication Date Title
WO2018006789A1 (zh) 一种参数校验方法和装置、以及网管服务器和计算机存储介质
US11307967B2 (en) Test orchestration platform
US20200272431A1 (en) Software defined network controller
US10873510B2 (en) Packaging tool for first and third party component deployment
US20060190579A1 (en) Assisted command script template creation
US8959000B2 (en) Integrated testing systems and methods
CN107241315B (zh) 银行网关接口的接入方法、装置及计算机可读存储介质
US10445335B2 (en) Computing environment connectivity system
CN110096424B (zh) 测试的处理方法、装置、电子设备及存储介质
US10187272B2 (en) Interface management service entity, function service entity, and element management method
US20130318152A1 (en) Method and system for exchanging information between back-end and front-end systems
US20200351190A1 (en) Virtual Probes
US11082293B2 (en) System and method for validating correctness of changes to network device configurations
CN108717362B (zh) 一种基于可继承结构的网络设备配置系统及配置方法
JP2016164775A (ja) フィールドデバイスコミッショニングシステムおよび方法
CN104765621A (zh) 一种在集群节点中部署程序的方法和系统
CN113422794A (zh) 流量录制、回放处理方法、装置及电子设备
JP5806688B2 (ja) OpS装置
CN111832273A (zh) 目的报文的确定方法及装置、存储介质、电子装置
US20240070123A1 (en) Using Machine Learning to Provide a Single User Interface for Streamlined Deployment and Management of Multiple Types of Databases
CN114726789A (zh) 流量管理、配置流量管理策略的方法、装置、设备及介质
CN104104546A (zh) 一种基于脚本的snmp网管系统
US20070208842A1 (en) Methods and systems for pushing and pulling network data in user interface design
CN113364820A (zh) 物联网业务系统的设备管控方法与装置
CN107451435B (zh) 一种硬件加密机的管控方法、管控机及管控系统

Legal Events

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

Ref document number: 17823601

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

Country of ref document: EP

Kind code of ref document: A1