WO2022134849A1 - 节点功能的配置方法、装置、系统、电子设备及计算机可读存储介质 - Google Patents

节点功能的配置方法、装置、系统、电子设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2022134849A1
WO2022134849A1 PCT/CN2021/127129 CN2021127129W WO2022134849A1 WO 2022134849 A1 WO2022134849 A1 WO 2022134849A1 CN 2021127129 W CN2021127129 W CN 2021127129W WO 2022134849 A1 WO2022134849 A1 WO 2022134849A1
Authority
WO
WIPO (PCT)
Prior art keywords
function
configuration
target
node
specified
Prior art date
Application number
PCT/CN2021/127129
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 WO2022134849A1 publication Critical patent/WO2022134849A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • 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
    • H04L41/04Network management architectures or arrangements
    • 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
    • H04L41/08Configuration management of networks or network elements
    • 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
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process

Definitions

  • the present application relates to the technical field of CDN (Content Delivery Network, content distribution network), and in particular, to a configuration method, apparatus, system, electronic device and computer-readable storage medium of a node function.
  • CDN Content Delivery Network, content distribution network
  • the existing CDN services have various functions.
  • the basic functions include: adding, deleting and modifying headers (data headers), adding, deleting and modifying request parameters, modifying request path uri (Uniform Resource Identifier, uniform resource identifier), time anti-leech, referer (see page) Anti-leech, UA (Unit Address, device address) anti-leech, ip (Internet Protocol, Internet Protocol) black and white list, etc.
  • the existing CDN node configuration method is difficult for the configuration side to configure, and the parsing speed for the configuration resolver is slow.
  • the purpose of this application is to provide a node function configuration method, device, system, electronic device and computer-readable storage medium, which can reduce the configuration difficulty of CDN nodes and improve the configuration analysis speed.
  • an embodiment of the present application provides a method for configuring a node function, which is applied to a terminal, where the terminal is communicatively connected to a preset management server.
  • the method includes: according to the service function requirements of the target node, from the preset function In the module library, select the target function module that matches the business function requirements; wherein, each function module in the function module library has a specified function; the data required to perform the specified function is encapsulated in the preset data in the function module According to the target function module, the function configuration of the target node is generated; and the function configuration is sent to the management server, so that the function configuration can be delivered to the target node through the management server.
  • the above-mentioned data structure includes the name of the specified function, and at least one conditional action group corresponding to the name; wherein, the conditional action group includes the triggering condition of the specified function, and after the specified function is triggered execution action.
  • the specified function is triggered in the following manner: calling a preset condition interface, and using the condition interface to determine whether the trigger condition of the specified function is satisfied, if the trigger condition of the specified function is satisfied, trigger the specified function Specify the function.
  • the step of determining whether the trigger condition of the specified function is satisfied through the condition interface includes: verifying each trigger condition of the specified function through the condition interface, if Each of the trigger conditions is verified to pass, and it is determined that the trigger condition of the specified function is satisfied; if the verification of at least one of the trigger conditions fails, it is determined that the trigger condition of the specified function is not satisfied.
  • the format of the above execution action is an array or a table.
  • an embodiment of the present application further provides a method for configuring a node function, which is applied to a management server, where the management server is communicatively connected to a preset terminal, and the method includes: receiving a function configuration for a target node sent by the terminal ; wherein, the function configuration is selected by the terminal according to the business function requirements of the target node from a preset function module library that matches the target function module of the business function requirement, and is generated according to the target function module; the function module library Each function module has a specified function; the data required to execute the specified function is encapsulated in a preset data structure in the function module; the function configuration is parsed; and the parsed configuration is delivered to the target node.
  • the above-mentioned data structure includes the name of the specified function, and at least one conditional action group corresponding to the name; wherein, the conditional action group includes the triggering condition of the specified function, and after the specified function is triggered execution action.
  • an embodiment of the present application further provides a device for configuring a node function, which is applied to a terminal, where the terminal is communicatively connected to a preset management server, and the device includes: a target function module selection unit, set to For business function requirements, select target function modules that match the business function requirements from a preset function module library; wherein, each function module in the function module library has a specified function; the data encapsulation required to execute the specified function In the preset data structure in the function module; a function configuration generating unit, configured to generate the function configuration of the target node according to the target function module; and a function configuration sending unit, configured to send the function configuration to the management server , so that the function configuration can be delivered to the target node through the management server.
  • a target function module selection unit set to For business function requirements, select target function modules that match the business function requirements from a preset function module library; wherein, each function module in the function module library has a specified function; the data encapsulation required to execute the specified function In the
  • an embodiment of the present application further provides an apparatus for configuring a node function, which is applied to a management server, where the management server is communicatively connected to a preset terminal, and the apparatus includes: a function configuration receiving unit configured to receive transmissions from the terminal.
  • the function configuration for the target node wherein, in the function configuration, the terminal selects the target function module matching the business function requirement from the preset function module library according to the business function requirement of the target node, and according to the target function module generation; each function module in the function module library has a specified function; the data required to execute the specified function is encapsulated in a preset data structure in the function module; the function configuration parsing unit is set to parse the function configuration; and a configuration delivery unit, which is set to deliver the parsed configuration to the target node.
  • an embodiment of the present application further provides an electronic device, including a processor and a memory, where the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the above The configuration method of the node function.
  • the embodiments of the present application further provide a computer-readable storage medium storing computer-executable instructions.
  • the computer-executable instructions When the computer-executable instructions are invoked and executed by the processor, the computer-executable instructions cause the processor to implement the above-mentioned nodes. How to configure the function.
  • an embodiment of the present application further provides a node function configuration system, including a terminal and a management server communicatively connected to the terminal; the terminal is set to, according to the service function requirements of the target node, select from a preset function module In the library, select the target function module that matches the business function requirement, and according to the target function module, generate the function configuration of the target node, and send the function configuration to the management server; the management server is set to parse the function configuration, and Deliver the parsed configuration to the target node.
  • FIG. 1 is a schematic flowchart of a method for configuring a node function according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of another method for configuring a node function according to an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of an apparatus for configuring a node function according to an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of another device for configuring node functions according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • the embodiment of the present application provides a node function configuration method,
  • the apparatus, system, electronic device, and computer-readable storage medium can be applied to various scenarios in which the service function configuration of the CDN node is performed.
  • a method for configuring a node function disclosed in this embodiment of the present application is first introduced in detail.
  • FIG. 1 it is a schematic flowchart of a method for configuring a node function, wherein the method is applied to a terminal, and the terminal is communicatively connected to a preset management server. As can be seen from FIG. 1 , the method includes the following steps:
  • Step S102 According to the business function requirements of the target node, from a preset function module library, select a target function module that matches the business function requirements; wherein, each function module in the function module library has a specified function; execute the function module library.
  • the data required for the specified function is encapsulated in a preset data structure in the function module.
  • the management server is the management node of the CDN network service provider
  • the terminal is the service function configuration platform on the client side.
  • the management node sends the function configuration set by the customer to the target node, so as to realize the configuration of the business function of the node by the customer.
  • the terminal may be a computer, a mobile phone, a tablet computer, a notebook computer, and the like.
  • a function module library is pre-built, wherein there are multiple function modules in the function module library, each function module corresponds to a specified function, and these function modules can be selected by the customer to meet the requirements for the business function of the target node. need.
  • one function module may correspond to one function, such as: modifying request path uri, modifying time anti-leech, modifying IP black and white list, adding request parameters, deleting header, and so on.
  • the data required to execute the corresponding designated function is encapsulated in a preset data structure in the function module. That is, all function modules have a unified data structure, which realizes the contraction of various functions into a unified template.
  • the configuration logic of different functions is completely unified. In this way, it is more convenient for the configuration generator to generate the business function configuration, and it is also convenient for the configuration interpreter to parse the configuration.
  • the above-mentioned data structure may include the name of the specified function and at least one conditional action group corresponding to the name; wherein, the conditional action group includes the trigger condition of the specified function and the trigger of the specified function subsequent actions.
  • the encapsulation format of the data structure of a function module is as follows:
  • instruction name is the name of the specified function.
  • Step S104 Generate the function configuration of the target node according to the target function module.
  • the function configuration of the target node is generated according to the selected target function module.
  • the generated function configuration is a superposition of the specified functions corresponding to different target function modules. For example, assuming that the selected target function module includes three modules: modifying time anti-leech, modifying IP blacklist and whitelist, and adding request parameters, the corresponding generated function configuration also includes the above three functions.
  • Step S106 Send the functional configuration to the management server, so as to deliver the functional configuration to the target node through the management server.
  • the management server overall manages the service configuration of each node in the CDN network.
  • the management server receives the service function configuration configured by the client through the terminal, and delivers the function configuration to the corresponding target node.
  • the method for configuring node functions realizes the modularization of functions by pre-encapsulating various configurable functions in a unified data structure, and forms a business configuration framework constructed with functional dimensions, so that customers can Based on its own business function requirements for the target node, the business function of the target node can be configured quickly and easily by function selection; since the data structure of each function is completely consistent, it is more convenient for the configuration generator to generate the configuration and the configuration resolver to parse Configuration, not only reduces the difficulty of business configuration, but also improves the speed of configuration parsing.
  • each conditional action group in the above-mentioned functional modules is: if the trigger condition in the conditional action group is satisfied, the action (action instruction) in the conditional action group is triggered to be executed.
  • a preset condition interface can be called, and through the condition interface, it is determined whether the trigger condition of the specified function is satisfied; wherein, if it is determined that the trigger condition of the specified function is satisfied, the specified function is triggered (execute the action instruction to realize the specified function); if it is determined that the triggering condition of the specified function is not satisfied, the specified function is not triggered.
  • all trigger conditions in all condition action groups of the function module are encapsulated in one condition interface, so that different functions can individually call corresponding conditions.
  • all trigger conditions can be encapsulated in the following format:
  • the following steps can be used to determine whether the trigger condition of the specified function is satisfied:
  • each trigger condition of the specified function through the condition interface. If each trigger condition is verified, it is determined that the trigger condition of the specified function is satisfied; if at least one of the trigger conditions is not verified, it is determined that the trigger condition of the specified function is not satisfied. Triggering conditions.
  • each trigger condition of the specified function there is an "and" relationship with each other. As long as one trigger condition fails, the result is false (false), so that the specified function is not triggered; only all triggers All conditions are verified, and the result is true, and then the corresponding action instruction is executed to trigger the specified function.
  • the above trigger condition can be empty, and when it is empty, the verification is passed by default.
  • the format of the execution action in the above conditional action group may be as follows:
  • the trigger condition (condition) and the execution action (pm) in the conditional action group always appear in pairs.
  • the actions corresponding to the trigger conditions in the action instructions are all encapsulated in the same execution action pm, and the specific action execution logic can be determined by the developer.
  • the format of the execution action pm is an array or a table, which is used as a corresponding attribute of the corresponding function execution.
  • the internal attributes of pm are different for different functions, and the internal attributes of pm only correspond to its functions.
  • each function corresponds to a function module, and each function item is encapsulated into a data structure of the same format, so as to realize the function dimension. It constitutes the framework of business function configuration, and each function does not affect each other. Moreover, this method also facilitates parallel expansion of module functions and parallel expansion of trigger conditions.
  • a target function module matching the business function requirement is selected from a preset function module library; wherein, in the function module library Each functional module of the target node has a specified function; the data required to perform the specified function is encapsulated in a preset data structure in the function module; according to the target function module, the function configuration of the target node is generated; the function configuration is sent to the management server, so as to deliver the functional configuration to the target node through the management server.
  • This method enables customers to quickly and conveniently configure the business functions of the target node in the way of function selection based on their own business function requirements for the target node; since the data structure of each function is completely consistent, it is more convenient for the configuration generator to generate the configuration and Configuring the parsing party to parse the configuration not only reduces the difficulty of business configuration, but also improves the speed of configuration parsing.
  • this method also sets the trigger condition of the specified function corresponding to the function module in the data structure of the function module, and triggers the execution of the corresponding action when the trigger condition is satisfied, so as to realize the specified function.
  • This method takes the function as the dimension and sets the Condition, the customer can first select the function and then select the corresponding conditions under the function, so as to combine the business functions that meet the requirements, and generate the corresponding configuration of the target node, compared with the business configuration method in the related technology that takes the condition as the dimension and sets the function ( It is required to be familiar with various conditions and the mutual influence between them before configuration).
  • This method greatly reduces the difficulty of configuration, thereby reducing the professional requirements of the configuration personnel, and the configuration operation is more convenient.
  • FIG. 2 it is a schematic flowchart of another method for configuring a node function, wherein the method is applied to a management server, and the management server is communicatively connected to a preset terminal.
  • the method comprises the following steps:
  • Step S202 Receive the function configuration for the target node sent by the terminal; wherein, for the function configuration, the terminal selects the target function matching the service function requirement from the preset function module library according to the service function requirement of the target node.
  • Each function module in the function module library has a specified function; the data required to execute the specified function is encapsulated in a preset data structure in the function module.
  • CDN network service providers can provide customers with a platform for business function configuration, and customers log in to the platform to perform function configuration at the terminal, so as to realize the function configuration of the target node.
  • the above-mentioned data structure includes the name of the specified function, and at least one conditional action group corresponding to the name; wherein, the conditional action group includes the triggering condition of the specified function, and the execution after the specified function is triggered action.
  • the style of the data structure reference may be made to the description of the corresponding part in the foregoing embodiment, and details are not repeated here.
  • Step S204 Parse the function configuration.
  • the management server receives the function configuration for the target node sent by the terminal, and parses it.
  • the parsing configuration needs to separate the key (key) and value (value) in the configuration field, save the key in the array key, and save the value in the array value; the key and value here correspond to the execution in the conditional action group respectively The key and value in the action.
  • Step S206 Deliver the parsed configuration to the target node.
  • the management server parses the function configuration set by the client through the terminal, and then sends it to the target node. After receiving the function configuration, the target node performs business operations based on the configuration to realize the corresponding function.
  • the node function configuration method provided by the embodiment of the present application has the same technical features as the method provided by the above-mentioned embodiment, so it can also solve the same technical problem and achieve the same technical effect.
  • an embodiment of the present application further provides a node function configuration device.
  • FIG. 3 a schematic structural diagram of a node function configuration device is shown, wherein the The device is applied to a terminal, and the terminal is connected in communication with a preset management server.
  • the device includes a target function module selection unit 31, a function configuration generation unit 32 and a function configuration sending unit 33 connected in sequence, wherein the functions of each unit are as follows:
  • the target function module selection unit 31 is configured to select a target function module matching the business function requirement from the preset function module library according to the business function requirement of the target node; wherein, each function module in the function module library Has a specified function; the data required to perform the specified function is encapsulated in a preset data structure in the function module;
  • the functional configuration generating unit 32 is configured to generate the functional configuration of the target node according to the target functional module
  • the functional configuration sending unit 33 is configured to send the functional configuration to the management server, so as to deliver the functional configuration to the target node through the management server.
  • the data structure includes the name of the specified function, and at least one conditional action group corresponding to the name; wherein, the conditional action group includes a trigger condition of the specified function, and the specified function The action to be executed after the trigger.
  • the apparatus further includes a triggering unit configured to invoke a preset condition interface, and use the condition interface to determine whether the trigger condition of the specified function is satisfied, and if so, trigger the specified function.
  • a triggering unit configured to invoke a preset condition interface, and use the condition interface to determine whether the trigger condition of the specified function is satisfied, and if so, trigger the specified function.
  • the trigger unit is further configured to: verify each trigger condition of the specified function through the condition interface, if each of the trigger conditions is verified and passed , it is determined that the trigger condition of the specified function is satisfied; if at least one of the trigger conditions fails to pass the verification, it is determined that the trigger condition of the specified function is not satisfied.
  • the format of the above execution action is an array or a table.
  • the embodiment of the present application further provides another node function configuration device.
  • FIG. 4 a schematic structural diagram of another node function configuration device is shown, wherein, The device is applied to a management server, and the management server is connected in communication with a preset terminal. It can be seen from FIG. 4 that the device includes a functional configuration receiving unit 41, a functional configuration parsing unit 42 and a configuration issuing unit 43 connected in sequence, wherein the functions of each unit are as follows:
  • the function configuration receiving unit 41 is configured to receive the function configuration for the target node sent by the terminal; wherein, the function configuration is selected by the terminal according to the business function requirements of the target node and related to the business function from a preset function module library A target function module matching the requirements is generated according to the target function module; each function module in the function module library has a specified function; the data required to execute the specified function is encapsulated in a preset data structure in the function module;
  • the functional configuration parsing unit 42 is configured to parse the functional configuration
  • the configuration delivery unit 43 is configured to deliver the parsed configuration to the target node.
  • the data structure includes the name of the specified function, and at least one conditional action group corresponding to the name; wherein, the conditional action group includes a trigger condition of the specified function, and the specified function The action to be executed after the trigger.
  • node function configuration device provided by the embodiment of the present application are the same as the foregoing node function configuration method embodiments.
  • the embodiments of the node function configuration device are not mentioned. Reference may be made to the corresponding content in the foregoing embodiments of the node function configuration method.
  • FIG. 5 is a schematic structural diagram of the electronic device, wherein the electronic device includes a processor 51 and a memory 52 , and the memory 52 stores data that can be used by the processor 51
  • the electronic device further includes a bus 53 and a communication interface 54 , wherein the processor 51 , the communication interface 54 and the memory 52 are connected through the bus.
  • the memory 52 may include a high-speed random access memory (RAM, Random Access Memory), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
  • the communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 54 (which may be wired or wireless), which may use the Internet, a wide area network, a local network, a metropolitan area network, and the like.
  • the bus can be an ISA bus, a PCI bus, an EISA bus, or the like.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one bidirectional arrow is shown in FIG. 5, but it does not mean that there is only one bus or one type of bus.
  • the processor 51 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method can be completed by a hardware integrated logic circuit in the processor 51 or an instruction in the form of software.
  • the above-mentioned processor 51 can be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc.; it can also be a digital signal processor (Digital Signal Processing, referred to as DSP) ), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
  • CPU Central Processing Unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • the software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art.
  • the storage medium is located in the memory, and the processor 51 reads the information in the memory 52 and completes the steps of the node function configuration method in the foregoing embodiment in combination with its hardware.
  • Embodiments of the present application further provide a computer-readable storage medium, where machine-executable instructions are stored in the computer-readable storage medium, and when the machine-executable instructions are invoked and executed by a processor, the machine-executable instructions cause the processor to
  • machine-executable instructions are stored in the computer-readable storage medium, and when the machine-executable instructions are invoked and executed by a processor, the machine-executable instructions cause the processor to
  • the embodiment of the present application also provides a node function configuration system, including a terminal and a management server communicatively connected to the terminal; the terminal is set to, according to the service function requirements of the target node, select from a preset function module library
  • the target function module that matches the business function requirements, and according to the target function module, the function configuration of the target node is generated, and the function configuration is sent to the management server; the management server is set to parse the function configuration, and parse the function configuration.
  • the configuration is delivered to the target node.
  • the node function configuration method, the node function configuration device, and the computer program product of the electronic device provided by the embodiments of the present application include a computer-readable storage medium storing program codes, and the instructions included in the program codes can be configured to execute the preceding steps.
  • the specific implementation can refer to the method embodiment, which will not be repeated here.
  • the functions, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a processor-executable non-volatile computer-readable storage medium.
  • the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the related technology or the part of the technical solution.
  • the computer software product is stored in a storage medium, including several
  • the instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .
  • a preset function module library is selected that matches the business function requirements.
  • a target function module wherein, each function module in the function module library has a specified function; the data required to execute the specified function is encapsulated in a preset data structure in the function module; according to the target function module, generate the target
  • the function configuration of the node; the function configuration is sent to the management server, so that the function configuration can be delivered to the target node through the management server.
  • the modularization of functions is realized, and a business configuration framework built on the function dimension is formed, so that customers can base their business functions on target nodes based on their own business functions.
  • the business function of the target node can be configured quickly and easily by the method of function selection; because the data structure of each function is completely consistent, it is more convenient for the configuration generator to generate the configuration and the configuration analyzer to parse the configuration, which not only reduces the difficulty of business configuration , which also improves the speed of configuration parsing.
  • this method also realizes the specified function by setting the trigger condition of the specified function corresponding to the function module in the data structure of the function module, and triggers the execution of the corresponding action when the trigger condition is satisfied.
  • the customer can first select the function and then select the corresponding conditions under the function, so as to combine the business functions that meet the requirements, and generate the corresponding configuration of the target node, compared with the business configuration method in the related technology that takes the condition as the dimension and sets the function ( It is required to be familiar with various conditions and the mutual influence between them before configuration).
  • This method greatly reduces the difficulty of configuration, thereby reducing the professional requirements of the configuration personnel, and the configuration operation is more convenient.
  • the terms “installed”, “connected” and “connected” should be understood in a broad sense, for example, it may be a fixed connection or a detachable connection , or integrally connected; it can be a mechanical connection or an electrical connection; it can be a direct connection, or an indirect connection through an intermediate medium, or the internal communication between the two components.
  • installed should be understood in a broad sense, for example, it may be a fixed connection or a detachable connection , or integrally connected; it can be a mechanical connection or an electrical connection; it can be a direct connection, or an indirect connection through an intermediate medium, or the internal communication between the two components.
  • the present application can be applied to the field of CDN technology, and provides a configuration method, apparatus, system, electronic device, and computer-readable storage medium for node functions.
  • a configuration method, apparatus, system, electronic device, and computer-readable storage medium for node functions.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

本申请提供了一种节点功能的配置方法、装置、系统、电子设备及计算机可读存储介质,该方法包括根据目标节点的业务功能需求,从预设的功能模块库中,选取与该业务功能需求匹配的目标功能模块;该功能模块库中的每个功能模块具有指定功能;执行该指定功能所需的数据封装在该功能模块中的预设数据结构中;根据该目标功能模块,生成目标节点的功能配置;以及将该功能配置发送给管理服务器,以通过管理服务器将该功能配置下发至目标节点。本申请实施例通过将可配置的功能预先封装在统一的数据结构中,实现了功能的模块化,使得客户可以基于业务功能需求选择对应的功能模块,快捷地配置目标节点的业务功能;由于每项功能的数据结构完全一致,因而降低了配置及解析配置的难度。

Description

节点功能的配置方法、装置、系统、电子设备及计算机可读存储介质
相关申请的交叉引用
本申请要求于2020年12月21日提交中国专利局的申请号为202011522538.0、名称为“节点功能的配置方法、装置、电子设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及CDN(Content Delivery Network,内容分发网络)技术领域,尤其是涉及一种节点功能的配置方法、装置、系统、电子设备及计算机可读存储介质。
背景技术
现有CDN业务功能多种多样,基本功能包括:增删改header(数据头)、增删改请求参数、修改请求路径uri(Uniform Resource Identifier,统一资源标识符)、时间防盗链、referer(参照页)防盗链、UA(Unit Address,设备地址)防盗链、ip(Internet Protocol,互联网协议)黑白名单等等。
对于上述CDN节点支持的功能,由于不同功能的逻辑实现方式不同,所以配置格式也没有紧密联系,导致实现平台化下发困难,节点配置可读性较差,对下发配置的人员技术要求较高,且容易出现因人为因素导致的节点配置错误。
整体而言,现有的CDN节点配置方式,对于配置方而言配置难度较大,对于配置解析方而言解析速度较慢。
发明内容
有鉴于此,本申请的目的在于提供一种节点功能的配置方法、装置、系统、电子设备及计算机可读存储介质,可以降低CDN节点的配置难度,并提高配置解析速度。
第一方面,本申请实施例提供了一种节点功能的配置方法,应用于终端,该终端与预设的管理服务器通信连接,该方法包括:根据目标节点的业务功能需求,从预设的功能模块库中,选取与该业务功能需求匹配的目标功能模块;其中,该功能模块库中的每个功能模块具有指定功能;执行该指定功能所需的数据封装在该功能模块中的预设数据结构中;根据该目标功能模块,生成该目标节点的功能配置;以及将该功能配置发送给该管理服务器,以通过该管理服务器将该功能配置下发至目标节点。
在本申请一实施方式中,上述数据结构包括该指定功能的名称,以及与该名称对应的 至少一个条件动作组;其中,该条件动作组包括该指定功能的触发条件,以及该指定功能触发后的执行动作。
在本申请一实施方式中,通过下述方式触发该指定功能:调用预设的条件接口,通过该条件接口确定该指定功能的触发条件是否满足,如果满足所述指定功能的触发条件,触发该指定功能。
在本申请一实施方式中,上述指定功能的触发条件不止一个,通过该条件接口确定该指定功能的触发条件是否满足的步骤,包括:通过该条件接口验证该指定功能的每一个触发条件,如果每一个该触发条件均验证通过,确定满足该指定功能的触发条件;如果至少一个所述触发条件的验证不通过,确定不满足该指定功能的触发条件。
在本申请一实施方式中,上述执行动作的格式为数组或者表。
第二方面,本申请实施例还提供了一种节点功能的配置方法,应用于管理服务器,该管理服务器与预设的终端通信连接,该方法包括:接收该终端发送的针对目标节点的功能配置;其中,该功能配置由该终端根据该目标节点的业务功能需求,从预设的功能模块库中选取与该业务功能需求匹配的目标功能模块,并根据该目标功能模块生成;该功能模块库中的每个功能模块具有指定功能;执行该指定功能所需的数据封装在该功能模块中的预设数据结构中;解析该功能配置;以及将解析后的配置下发至该目标节点。
在本申请一实施方式中,上述数据结构包括该指定功能的名称,以及与该名称对应的至少一个条件动作组;其中,该条件动作组包括该指定功能的触发条件,以及该指定功能触发后的执行动作。
第三方面,本申请实施例还提供了一种节点功能的配置装置,应用于终端,该终端与预设的管理服务器通信连接,该装置包括:目标功能模块选取单元,设置为根据目标节点的业务功能需求,从预设的功能模块库中,选取与该业务功能需求匹配的目标功能模块;其中,该功能模块库中的每个功能模块具有指定功能;执行该指定功能所需的数据封装在该功能模块中的预设数据结构中;功能配置生成单元,设置为根据该目标功能模块,生成该目标节点的功能配置;以及功能配置发送单元,设置为将该功能配置发送给该管理服务器,以通过该管理服务器将该功能配置下发至该目标节点。
第四方面,本申请实施例还提供了一种节点功能的配置装置,应用于管理服务器,该管理服务器与预设的终端通信连接,该装置包括:功能配置接收单元,设置为接收该终端发送的针对目标节点的功能配置;其中,该功能配置由该终端根据该目标节点的业务功能需求,从预设的功能模块库中选取与该业务功能需求匹配的目标功能模块,并根据该目标功能模块生成;该功能模块库中的每个功能模块具有指定功能;执行该指定功能所需的数据封装在该功能模块中的预设数据结构中;功能配置解析单元,设置为解析该功能配置; 以及配置下发单元,设置为将解析后的配置下发至该目标节点。
第五方面,本申请实施例还提供了一种电子设备,包括处理器和存储器,该存储器存储有能够被该处理器执行的计算机可执行指令,该处理器执行该计算机可执行指令以实现上述节点功能的配置方法。
第六方面,本申请实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,该计算机可执行指令在被处理器调用和执行时,计算机可执行指令促使处理器实现上述节点功能的配置方法。
第七方面,本申请实施例还提供了一种节点功能的配置系统,包括终端以及与该终端通信连接的管理服务器;该终端设置为,根据目标节点的业务功能需求,从预设的功能模块库中,选取与该业务功能需求匹配的目标功能模块,并根据该目标功能模块,生成目标节点的功能配置,将该功能配置发送给管理服务器;该管理服务器设置为,解析该功能配置,并将解析后的配置下发至目标节点。
本申请的其他特征和优点将在随后的说明书中阐述,或者,部分特征和优点可以从说明书推知或毫无疑义地确定,或者通过实施本申请的上述技术即可得知。
为使本申请的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。
附图说明
为了更清楚地说明本申请具体实施方式或相关技术中的技术方案,下面将对具体实施方式或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种节点功能的配置方法的流程示意图;
图2为本申请实施例提供的另一种节点功能的配置方法的流程示意图;
图3为本申请实施例提供的一种节点功能的配置装置的结构示意图;
图4为本申请实施例提供的另一种节点功能的配置装置的结构示意图;
图5为本申请实施例提供的一种电子设备的结构示意图。
附图标记说明:31-目标功能模块选取单元;32-功能配置生成单元;33-功能配置发送单元;41-功能配置接收单元;42-功能配置解析单元;43-配置下发单元;51-处理器;52-存储器;53-总线;54-通信接口。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
考虑到现有CDN节点的业务功能配置方式,对于配置方而言配置难度较大,且对于配置解析方而言解析速度较慢的问题,本申请实施例提供的一种节点功能的配置方法、装置、系统、电子设备及计算机可读存储介质,该方式可以应用于对CDN节点进行业务功能配置的各种场景中。为便于对本实施例进行理解,首先对本申请实施例所公开的一种节点功能的配置方法进行详细介绍。
参见图1,所示为一种节点功能的配置方法的流程示意图,其中,该方法应用于终端,且该终端与预设的管理服务器通信连接,由图1可见,该方法包括下述步骤:
步骤S102:根据目标节点的业务功能需求,从预设的功能模块库中,选取与该业务功能需求匹配的目标功能模块;其中,该功能模块库中的每个功能模块具有指定功能;执行该指定功能所需的数据封装在该功能模块中的预设数据结构中。
在其中一种应用场景中,上述管理服务器为CDN网络服务提供方的管理节点,上述终端为客户侧的业务功能配置平台,客户根据自身业务功能的需求,通过该终端为目标节点设置功能配置,并由该管理节点将客户设置的功能配置下发至目标节点,实现客户对节点业务功能的配置。其中,该终端可以是计算机、手机、平板电脑、笔记本电脑等等。
在本实施例中,预先构建了功能模块库,其中,该功能模块库中有多个功能模块,每个功能模块对应指定功能,这些功能模块可供客户选择,以满足对目标节点业务功能的需求。在其中一种可能的实施方式中,一个功能模块可以对应一种功能,例如:修改请求路径uri、修改时间防盗链、修改ip黑白名单、增加请求参数、删除header等等。
并且,对于该功能模块库中的每一个功能模块,执行其对应的指定功能所需的数据,均封装在该功能模块中的预设数据结构中。也即,所有的功能模块均具有统一的数据结构,实现了将各项功能收缩到统一的模板之中,通过套用统一模板,使得不同功能的配置逻辑思路完全统一。这样,可以更加方便配置生成方生成业务功能配置,也方便配置解读方解析该配置。
在其中一种可能的实施方式中,上述数据结构可以包括该指定功能的名称以及与该名称对应的至少一个条件动作组;其中,该条件动作组包括该指定功能的触发条件以及该指定功能触发后的执行动作。
例如,某功能模块的数据结构的封装格式如下:
Figure PCTCN2021127129-appb-000001
Figure PCTCN2021127129-appb-000002
在上述示例中,“指令名称”即为指定功能的名称,该示例中包括3个条件动作组,每个条件动作组包括触发条件:对应{["condition"]={},还包括执行动作:对应["pm"]={}。
在实际操作中,可以根据不同的功能模块类型,确定该功能模型中的多个条件动作组是按顺序执行,还是仅仅执行多个条件动作中第一个满足条件的条件动作组,在此不作限定。
步骤S104:根据该目标功能模块,生成该目标节点的功能配置。
在终端侧根据选取出来的目标功能模块,生成目标节点的功能配置,通常,生成的功能配置为不同目标功能模块对应指定功能的叠加。例如,假设选取的目标功能模块包括修改时间防盗链、修改ip黑白名单、增加请求参数三个模块,则相应生成的功能配置也同时包含上述三种功能。
步骤S106:将该功能配置发送给该管理服务器,以通过该管理服务器将该功能配置下发至目标节点。
管理服务器统筹管理CDN网络中各个节点的业务配置,这里,管理服务器接收客户通过终端配置的业务功能配置,并将该功能配置下发至对应的目标节点。
这样,本实施例提供的节点功能的配置方法,通过将各项可配置的功能预先封装在统一的数据结构中,实现了功能的模块化,形成了以功能维度构建的业务配置框架,使得客户可以基于自身对目标节点的业务功能需求,以功能选择的方式,快捷方便地配置目标节点的业务功能;由于每个功能的数据结构完全一致,因而更便于配置生成方生成配置以及配置解析方解析配置,既降低了业务配置的难度,也提高了配置解析的速度。
在实际操作中,上述功能模块中的每一个条件动作组的运行逻辑为:如果该条件动作组中的触发条件被满足,则触发执行该条件动作组中的动作(动作指令)。在至少一种可能的实施方式中,可以调用预设的条件接口,并通过该条件接口确定该指定功能的触发条件是否满足;其中,如果确定满足该指定功能的触发条件,则触发该指定功能(执行动作指令,以实现该指定功能);如果确定不满足该指定功能的触发条件,则不触发该指定功能。
在上述方式中,将功能模块的所有条件动作组中的所有触发条件都封装在一个条件接口中,从而,不同的功能可以单独调用对应的条件。例如,可以将所有触发条件按下述格式进行封装:
Figure PCTCN2021127129-appb-000003
在其中一种应用场景中,如果上述指定功能的触发条件不止一个,则可以通过下述步骤确定该指定功能的触发条件是否满足:
通过该条件接口验证该指定功能的每一个触发条件,如果每一个该触发条件均验证通过,确定满足该指定功能的触发条件;如果至少一个该触发条件验证不通过,确定不满足该指定功能的触发条件。
也即,对于该指定功能的各个触发条件而言,彼此之间是“与”的关系,只要有一个触发条件验证为失败,结果就是false(假),从而不触发指定功能;只有所有的触发条件均验证通过,结果才为true(真),进而执行对应的动作指令,触发指定功能。其中,上述触发条件condition可以为空,当其为空时,默认验证通过。
其中,上述条件动作组中的执行动作的格式可以如下:
["pm"]={["key"]="value",["key2"]="value2"}。
需要说明的是,条件动作组中的触发条件(condition)和执行动作(pm)总是成对出现。并且,对于某一条件动作组而言,其动作指令中针对对应触发条件的动作,都封装在同一个执行动作pm中,具体的动作执行逻辑可以由开发人员决定。其中,该执行动作pm的格式为数组或者表,其作为对应功能执行的对应属性,这里,功能不同pm的内部属性也不同,pm的内部属性只与它的功能对应。
这样,通过上述方式,实现了功能和条件的嵌套,在每一个业务功能框架中,每个功能对应一个功能模块,每一个功能项都封装成相同格式的数据结构,从而实现以功能维度 来构成业务功能配置的框架,各个功能之间互不影响。并且,该方式也便于对模块功能进行平行扩展,以及对触发条件进行平行扩展。
本申请实施例提供的一种节点功能的配置方法,根据目标节点的业务功能需求,从预设的功能模块库中,选取与该业务功能需求匹配的目标功能模块;其中,该功能模块库中的每个功能模块具有指定功能;执行该指定功能所需的数据封装在该功能模块中的预设数据结构中;根据该目标功能模块,生成该目标节点的功能配置;将该功能配置发送给该管理服务器,以通过该管理服务器将该功能配置下发至目标节点。该方式使得客户可以基于自身对目标节点的业务功能需求,以功能选择的方式,快捷方便地配置目标节点的业务功能;由于每个功能的数据结构完全一致,因而更便于配置生成方生成配置以及配置解析方解析配置,既降低了业务配置的难度,也提高了配置解析的速度。并且,该方式还通过在功能模块的数据结构中设置该功能模块对应的指定功能的触发条件,当触发条件满足时触发执行相应的动作,实现该指定功能,该方式以功能为维度并下设条件,客户可以先选择功能再选择功能下对应的条件,从而组合得到满足需求的业务功能,生成目标节点对应的配置,相比于相关技术中以条件为维度并下设功能的业务配置方式(要求对各类条件及条件之间相互的影响熟知才可配置),该方式极大降低了配置难度,从而降低了配置方人员的专业度要求,配置操作更加便利。
前述实施例从终端一侧介绍了节点功能的配置方法,本实施例从管理服务器一侧,进一步描述节点功能的配置方法的应用。如图2所示,其为另一种节点功能的配置方法的流程示意图,其中,该方法应用于管理服务器,该管理服务器与预设的终端通信连接。由图2可见,该方法包括下述步骤:
步骤S202:接收该终端发送的针对目标节点的功能配置;其中,该功能配置由该终端根据该目标节点的业务功能需求,从预设的功能模块库中选取与该业务功能需求匹配的目标功能模块,并根据该目标功能模块生成;该功能模块库中的每个功能模块具有指定功能;执行该指定功能所需的数据封装在该功能模块中的预设数据结构中。
在实际操作中,CDN网络服务提供商可以为客户提供业务功能配置的平台,客户在终端登录该平台进行功能配置,以实现对目标节点的功能配置。在本实施例中,上述数据结构包括该指定功能的名称,以及与该名称对应的至少一个条件动作组;其中,该条件动作组包括该指定功能的触发条件,以及该指定功能触发后的执行动作。该数据结构的样式可以参照前述实施例中对应部分的描述,在此不再赘述。
步骤S204:解析该功能配置。
管理服务器接收终端发送的针对目标节点的功能配置,并对其进行解析。通常,解析配置需要将配置字段中的key(键)和value(值)分开,将key保存在数组key中,将值 保存在数组value中;这里的key和value分别对应为条件动作组中执行动作中的key和value。
在解析该功能配置时,由于每个功能模块中,执行其指定功能的数据都封装在统一的数据结构中,因而解析该数据结构以获得相应键key的对应值value的过程是一致的,从而解析更加便捷。
步骤S206:将解析后的配置下发至该目标节点。
管理服务器将客户通过终端设置的功能配置解析后,再发送给目标节点,该目标节点在接收到该功能配置后,基于该配置进行业务操作,以实现对应的功能。
本申请实施例提供的节点功能的配置方法,与上述实施例提供的方法具有相同的技术特征,所以也能解决相同的技术问题,达到相同的技术效果。
对应于图1中所示的节点功能的配置方法,本申请实施例还提供了一种节点功能的配置装置,参见图3,所示为一种节点功能的配置装置的结构示意图,其中,该装置应用于终端,该终端与预设的管理服务器通信连接。由图3可见,该装置包括依次连接的目标功能模块选取单元31、功能配置生成单元32和功能配置发送单元33,其中,各个单元的功能如下:
目标功能模块选取单元31,设置为根据目标节点的业务功能需求,从预设的功能模块库中,选取与该业务功能需求匹配的目标功能模块;其中,该功能模块库中的每个功能模块具有指定功能;执行该指定功能所需的数据封装在该功能模块中的预设数据结构中;
功能配置生成单元32,设置为根据该目标功能模块,生成该目标节点的功能配置;
功能配置发送单元33,设置为将该功能配置发送给该管理服务器,以通过该管理服务器将该功能配置下发至该目标节点。
在其中一种可能的实施方式中,上述数据结构包括该指定功能的名称,以及与该名称对应的至少一个条件动作组;其中,该条件动作组包括该指定功能的触发条件,以及该指定功能触发后的执行动作。
在另一种可能的实施方式中,所述装置还包括触发单元,设置为调用预设的条件接口,通过该条件接口确定该指定功能的触发条件是否满足,如果满足,触发该指定功能。
在另一种可能的实施方式中,上述指定功能的触发条件不止一个,所述触发单元还设置为:通过该条件接口验证该指定功能的每一个触发条件,如果每一个该触发条件均验证通过,确定满足该指定功能的触发条件;如果至少一个该触发条件验证不通过,确定不满足该指定功能的触发条件。
在另一种可能的实施方式中,上述执行动作的格式为数组或者表。
对应于图2所示的节点功能的配置方法,本申请实施例还提供了另一种节点功能的配置装置,参见图4,所示为另一种节点功能的配置装置的结构示意图,其中,该装置应用 于管理服务器,该管理服务器与预设的终端通信连接。由图4可见,该装置包括依次连接的功能配置接收单元41、功能配置解析单元42和配置下发单元43,其中,各个单元的功能如下:
功能配置接收单元41,设置为接收该终端发送的针对目标节点的功能配置;其中,该功能配置由该终端根据该目标节点的业务功能需求,从预设的功能模块库中选取与该业务功能需求匹配的目标功能模块,并根据该目标功能模块生成;该功能模块库中的每个功能模块具有指定功能;执行该指定功能所需的数据封装在该功能模块中的预设数据结构中;
功能配置解析单元42,设置为解析该功能配置;
配置下发单元43,设置为将解析后的配置下发至该目标节点。
在其中一种可能的实施方式中,上述数据结构包括该指定功能的名称,以及与该名称对应的至少一个条件动作组;其中,该条件动作组包括该指定功能的触发条件,以及该指定功能触发后的执行动作。
本申请实施例提供的节点功能的配置装置,其实现原理及产生的技术效果和前述节点功能的配置方法实施例相同,为简要描述,节点功能的配置装置的实施例部分未提及之处,可参考前述节点功能的配置方法实施例中相应内容。
本申请实施例还提供了一种电子设备,如图5所示,为该电子设备的结构示意图,其中,该电子设备包括处理器51和存储器52,该存储器52存储有能够被该处理器51执行的机器可执行指令,该处理器51执行该机器可执行指令以实现上述节点功能的配置方法。
在图5示出的实施方式中,该电子设备还包括总线53和通信接口54,其中,处理器51、通信接口54和存储器52通过总线连接。
其中,存储器52可能包含高速随机存取存储器(RAM,Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个通信接口54(可以是有线或者无线)实现该系统网元与至少一个其他网元之间的通信连接,可以使用互联网、广域网、本地网、城域网等。总线可以是ISA总线、PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。
处理器51可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器51中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器51可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(Digital Signal Processing,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现成可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立 门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器51读取存储器52中的信息,结合其硬件完成前述实施例的节点功能的配置方法的步骤。
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有机器可执行指令,该机器可执行指令在被处理器调用和执行时,该机器可执行指令促使处理器实现上述节点功能的配置方法,具体实现可参见前述方法实施例,在此不再赘述。
本申请实施例还提供了一种节点功能的配置系统,包括终端以及与该终端通信连接的管理服务器;该终端设置为,根据目标节点的业务功能需求,从预设的功能模块库中,选取与该业务功能需求匹配的目标功能模块,并根据该目标功能模块,生成目标节点的功能配置,将该功能配置发送给管理服务器;该管理服务器设置为,解析该功能配置,并将解析后的配置下发至目标节点。该节点功能的配置系统的实现原理及产生的技术效果和前述节点功能的配置方法实施例相同,在此亦不再赘述。
本申请实施例所提供的节点功能的配置方法、节点功能的配置装置和电子设备的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可设置为执行前面方法实施例中所述的节点功能的配置方法,具体实现可参见方法实施例,在此不再赘述。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本申请实施例提供的节点功能的配置方法、装置、系统、电子设备及计算机可读存储介质,根据目标节点的业务功能需求,从预设的功能模块库中,选取与该业务功能需求匹配的目标功能模块;其中,该功能模块库中的每个功能模块具有指定功能;执行该指定功能所需的数据封装在该功能模块中的预设数据结构中;根据该目标功能模块,生成该目标 节点的功能配置;将该功能配置发送给该管理服务器,以通过该管理服务器将该功能配置下发至目标节点。该方式中,通过将各项可配置的功能预先封装在统一的数据结构中,实现了功能的模块化,形成了以功能维度构建的业务配置框架,使得客户可以基于自身对目标节点的业务功能需求,以功能选择的方式,快捷方便地配置目标节点的业务功能;由于每个功能的数据结构完全一致,因而更便于配置生成方生成配置以及配置解析方解析配置,既降低了业务配置的难度,也提高了配置解析的速度。
此外,该方式还通过在功能模块的数据结构中设置该功能模块对应的指定功能的触发条件,当触发条件满足时触发执行相应的动作,实现该指定功能,该方式以功能为维度并下设条件,客户可以先选择功能再选择功能下对应的条件,从而组合得到满足需求的业务功能,生成目标节点对应的配置,相比于相关技术中以条件为维度并下设功能的业务配置方式(要求对各类条件及条件之间相互的影响熟知才可配置),该方式极大降低了配置难度,从而降低了配置方人员的专业度要求,配置操作更加便利。
另外,在本申请实施例的描述中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。
在本申请的描述中,需要说明的是,术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请的限制。此外,术语“第一”、“第二”、“第三”仅设置为描述目的,而不能理解为指示或暗示相对重要性。
最后应说明的是:以上所述实施例,仅为本申请的具体实施方式,用以说明本申请的技术方案,而非对其限制,本申请的保护范围并不局限于此,尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,其依然可以对前述实施例所记载的技术方案进行修改或可轻易想到变化,或者对其中部分技术特征进行等同替换;而这些修改、变化或者替换,并不使相应技术方案的本质脱离本申请实施例技术方案的精神和范围,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
工业实用性
本申请能够应用于CDN技术领域,提供一种节点功能的配置方法、装置、系统、电子 设备及计算机可读存储介质。通过将可配置的功能预先封装在统一的数据结构中,实现了功能的模块化,使得客户可以基于业务功能需求选择对应的功能模块,快捷地配置目标节点的业务功能;由于每项功能的数据结构完全一致,因而降低了配置及解析配置的难度。

Claims (12)

  1. 一种节点功能的配置方法,应用于终端,所述终端与预设的管理服务器通信连接,所述方法包括:
    根据目标节点的业务功能需求,从预设的功能模块库中,选取与所述业务功能需求匹配的目标功能模块;其中,所述功能模块库中的每个功能模块具有指定功能;执行所述指定功能所需的数据封装在所述功能模块中的预设数据结构中;
    根据所述目标功能模块,生成所述目标节点的功能配置;以及
    将所述功能配置发送给所述管理服务器,以通过所述管理服务器将所述功能配置下发至所述目标节点。
  2. 根据权利要求1所述的方法,其中,所述数据结构包括所述指定功能的名称,以及与所述名称对应的至少一个条件动作组;其中,所述条件动作组包括所述指定功能的触发条件,以及所述指定功能触发后的执行动作。
  3. 根据权利要求1或2所述的方法,其中,通过下述方式触发所述指定功能:
    调用预设的条件接口,通过所述条件接口确定所述指定功能的触发条件是否满足,如果满足所述指定功能的触发条件,触发所述指定功能。
  4. 根据权利要求3所述的方法,其中,所述指定功能的触发条件不止一个,通过所述条件接口确定所述指定功能的触发条件是否满足的步骤,包括:
    通过所述条件接口验证所述指定功能的每一个触发条件,如果每一个所述触发条件均验证通过,确定满足所述指定功能的触发条件;如果至少一个所述触发条件的验证不通过,确定不满足所述指定功能的触发条件。
  5. 根据权利要求3所述的方法,其中,所述执行动作的格式为数组或者表。
  6. 一种节点功能的配置方法,应用于管理服务器,所述管理服务器与预设的终端通信连接,所述方法包括:
    接收所述终端发送的针对目标节点的功能配置;其中,所述功能配置由所述终端根据所述目标节点的业务功能需求,从预设的功能模块库中选取与所述业务功能需求匹配的目标功能模块,并根据所述目标功能模块生成;所述功能模块库中的每个功能模块具有指定功能;执行所述指定功能所需的数据封装在所述功能模块中的预设数据结构中;
    解析所述功能配置;以及
    将解析后的配置下发至所述目标节点。
  7. 根据权利要求6所述的方法,其中,所述数据结构包括所述指定功能的名称,以及与所述名称对应的至少一个条件动作组;其中,所述条件动作组包括所述指定功能的触发条件,以及所述指定功能触发后的执行动作。
  8. 一种节点功能的配置装置,应用于终端,所述终端与预设的管理服务器通信连接,所述装置包括:
    目标功能模块选取单元,设置为根据目标节点的业务功能需求,从预设的功能模块库中,选取与所述业务功能需求匹配的目标功能模块;其中,所述功能模块库中的每个功能模块具有指定功能;执行所述指定功能所需的数据封装在所述功能模块中的预设数据结构中;
    功能配置生成单元,设置为根据所述目标功能模块,生成所述目标节点的功能配置;以及
    功能配置发送单元,设置为将所述功能配置发送给所述管理服务器,以通过所述管理服务器将所述功能配置下发至所述目标节点。
  9. 一种节点功能的配置装置,应用于管理服务器,所述管理服务器与预设的终端通信连接,所述装置包括:
    功能配置接收单元,设置为接收所述终端发送的针对目标节点的功能配置;其中,所述功能配置由所述终端根据所述目标节点的业务功能需求,从预设的功能模块库中选取与所述业务功能需求匹配的目标功能模块,并根据所述目标功能模块生成;所述功能模块库中的每个功能模块具有指定功能;执行所述指定功能所需的数据封装在所述功能模块中的预设数据结构中;
    功能配置解析单元,设置为解析所述功能配置;以及
    配置下发单元,设置为将解析后的配置下发至所述目标节点。
  10. 一种电子设备,包括处理器和存储器,所述存储器存储有能够被所述处理器执行的计算机可执行指令,所述处理器执行所述计算机可执行指令以实现权利要求1至7中任一项所述的节点功能的配置方法。
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令在被处理器调用和执行时,计算机可执行指令促使处理器实现权利要求1至7中任一项所述的节点功能的配置方法。
  12. 一种节点功能的配置系统,包括终端以及与所述终端通信连接的管理服务器;
    所述终端设置为,根据目标节点的业务功能需求,从预设的功能模块库中,选取与所述业务功能需求匹配的目标功能模块,并根据所述目标功能模块,生成所述目标节点的功能配置,将所述功能配置发送给所述管理服务器;
    所述管理服务器设置为,解析所述功能配置,并将解析后的配置下发至所述目标节点。
PCT/CN2021/127129 2020-12-21 2021-10-28 节点功能的配置方法、装置、系统、电子设备及计算机可读存储介质 WO2022134849A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011522538.0 2020-12-21
CN202011522538.0A CN114650224B (zh) 2020-12-21 2020-12-21 节点功能的配置方法、装置、电子设备及系统

Publications (1)

Publication Number Publication Date
WO2022134849A1 true WO2022134849A1 (zh) 2022-06-30

Family

ID=81992380

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/127129 WO2022134849A1 (zh) 2020-12-21 2021-10-28 节点功能的配置方法、装置、系统、电子设备及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN114650224B (zh)
WO (1) WO2022134849A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109525626A (zh) * 2017-09-20 2019-03-26 中兴通讯股份有限公司 Cdn网络功能虚拟化的管理方法、装置及系统
US20190220796A1 (en) * 2015-08-22 2019-07-18 Salim B. KHALIL Automated, integrated and complete computer program/project management solutions standardizes and optimizes management processes and procedures utilizing customizable and flexible systems and methods
CN110333856A (zh) * 2019-07-08 2019-10-15 政采云有限公司 服务化可编排的在线模板生成系统及方法
CN110609732A (zh) * 2019-08-13 2019-12-24 平安普惠企业管理有限公司 应用程序部署方法、装置、计算机设备和存储介质

Family Cites Families (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7493624B1 (en) * 2003-12-30 2009-02-17 Sap Ag Management architecture and method employed within a clustered node configuration
CN101478719B (zh) * 2009-01-20 2011-04-20 中兴通讯股份有限公司 业务管理系统的配置方法及装置
CN102279734A (zh) * 2010-06-12 2011-12-14 环旭电子股份有限公司 自动映像数据的嵌入式系统及其方法
EP2688361B1 (en) * 2011-04-20 2018-01-10 Huawei Device (Dongguan) Co., Ltd. Configuration method for data interface and terminal device
CN102594588A (zh) * 2012-01-19 2012-07-18 中兴通讯股份有限公司 一种管理web功能模块的方法和系统
CN103543993B (zh) * 2012-07-11 2017-07-28 深圳市华高软件科技有限公司 应用程序构建方法和系统
CN103281202B (zh) * 2013-05-21 2017-12-29 上海寰创通信科技股份有限公司 一种浏览器/服务器架构的系统及其前端呈现方法
US20170142120A1 (en) * 2015-11-16 2017-05-18 Le Holdings (Beijing) Co., Ltd. Method for detecting operations of function management and configuration server, legitimate client, content delivery network (cdn) node, and system
WO2017132947A1 (zh) * 2016-02-04 2017-08-10 华为技术有限公司 获取待传输业务的安全参数的方法、信令管理网元、安全功能节点和发送端
CN105871890A (zh) * 2016-05-16 2016-08-17 中国联合网络通信集团有限公司 一种ims业务构建方法及装置
CN107959580A (zh) * 2016-10-17 2018-04-24 中兴通讯股份有限公司 配置业务的方法和装置
BR112019014501A2 (pt) * 2017-01-13 2020-02-18 Telefonaktiebolaget Lm Ericsson (Publ) Método para implementar os elementos gerenciados virtualizados, gerenciadores de elemento e de rede, e, nós do gerenciador de elemento e do gerenciador de rede
CN106990965A (zh) * 2017-03-31 2017-07-28 合肥民众亿兴软件开发有限公司 一种软件平台及其开发方法
US11283680B2 (en) * 2017-06-19 2022-03-22 Cisco Technology, Inc. Identifying components for removal in a network configuration
CN109218060B (zh) * 2017-07-07 2023-04-07 中兴通讯股份有限公司 一种业务配置驱动流表的方法及装置
CN109525414A (zh) * 2017-09-20 2019-03-26 中兴通讯股份有限公司 Cdn网络功能虚拟化的管理方法、装置及系统
EP3609128A1 (en) * 2018-08-07 2020-02-12 Siemens Aktiengesellschaft Communication system, provider node, communication node and method for providing a virtual network function to a customer node
CN109636301A (zh) * 2018-10-16 2019-04-16 深圳壹账通智能科技有限公司 金融业务的工作流配置方法、系统、终端及可读存储介质
CN109597661B (zh) * 2018-10-26 2021-10-22 创新先进技术有限公司 一种业务功能配置方法及装置
CN110175027A (zh) * 2019-05-14 2019-08-27 广州衡昊数据科技有限公司 一种开发业务功能的方法和装置
CN110851114A (zh) * 2019-10-24 2020-02-28 山东中创软件工程股份有限公司 一种业务系统开发方法、装置及电子设备和存储介质
CN111090451A (zh) * 2019-11-08 2020-05-01 贝壳技术有限公司 一种业务配置的方法、装置及存储介质
CN111240763B (zh) * 2020-01-13 2024-03-01 广州虎牙科技有限公司 配置更新方法、装置、设备及存储介质
CN111399835B (zh) * 2020-03-17 2024-05-17 中国建设银行股份有限公司 Web前端项目的业务剥离方法及装置
CN111580884B (zh) * 2020-04-30 2024-04-19 北京金山云网络技术有限公司 配置更新方法、装置、服务器和电子设备
CN111628895B (zh) * 2020-05-28 2022-06-17 苏州浪潮智能科技有限公司 一种配置数据同步方法、装置、设备及可读存储介质
CN111666219B (zh) * 2020-06-10 2023-08-22 中国工商银行股份有限公司 业务功能的验证方法和装置、计算机系统和存储介质
CN111752594A (zh) * 2020-06-23 2020-10-09 深圳壹账通智能科技有限公司 基于业务模块的数据处理方法及相关设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190220796A1 (en) * 2015-08-22 2019-07-18 Salim B. KHALIL Automated, integrated and complete computer program/project management solutions standardizes and optimizes management processes and procedures utilizing customizable and flexible systems and methods
CN109525626A (zh) * 2017-09-20 2019-03-26 中兴通讯股份有限公司 Cdn网络功能虚拟化的管理方法、装置及系统
CN110333856A (zh) * 2019-07-08 2019-10-15 政采云有限公司 服务化可编排的在线模板生成系统及方法
CN110609732A (zh) * 2019-08-13 2019-12-24 平安普惠企业管理有限公司 应用程序部署方法、装置、计算机设备和存储介质

Also Published As

Publication number Publication date
CN114650224A (zh) 2022-06-21
CN114650224B (zh) 2023-06-30

Similar Documents

Publication Publication Date Title
CN108306877B (zh) 基于node js的用户身份信息的验证方法、装置和存储介质
US10965772B2 (en) Interface invocation method and apparatus for hybrid cloud
US9003478B2 (en) Enforcement of conditional policy attachments
CN109802941A (zh) 一种登录验证方法、装置、存储介质和服务器
US10476833B2 (en) Warning method and apparatus, and processing server
CN108897691A (zh) 基于接口模拟服务的数据处理方法、装置、服务器和介质
WO2022100020A1 (zh) 漏洞测试方法及装置
CN110727497B (zh) 消息显示方法及装置
CN108769743B (zh) 一种视频播放控制方法、系统、节点和计算机存储介质
WO2023020242A1 (zh) 基于区块链的数据处理方法、装置、计算机设备、计算机可读存储介质及计算机程序产品
CN111490893A (zh) 一种网络转发模型的建立方法、装置及系统
CN113839977A (zh) 消息推送方法、装置、计算机设备及存储介质
CN111953770A (zh) 一种路由转发方法、装置、路由设备及可读存储介质
CN107040613A (zh) 一种报文传输方法及系统
CN112769863A (zh) 一种业务请求报文数据的处理方法和装置
WO2022134849A1 (zh) 节点功能的配置方法、装置、系统、电子设备及计算机可读存储介质
WO2024007965A1 (zh) 业务规则检测方法、装置、电子设备及存储介质
CN112860462A (zh) 一种实现iot平台基座互联互通的方法、装置及系统
WO2022148244A1 (zh) 通信方法、装置及系统
CN113051202A (zh) 接口适配方法、装置、电子设备和计算机可读存储介质
EP4293603A1 (en) Fixed execution sequence transaction method, and apparatus
WO2023279770A1 (zh) 数据存储方法、装置、系统、存储介质及程序产品
CN113726855B (zh) 服务聚合方法、装置、电子设备以及计算机可读存储介质
US20070121870A1 (en) Subscription service integration application program interface and schema
CN101753561A (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: 21908850

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

Country of ref document: EP

Kind code of ref document: A1