CN114448802B - Gateway configuration method, device, electronic equipment and storage medium - Google Patents

Gateway configuration method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114448802B
CN114448802B CN202210107440.1A CN202210107440A CN114448802B CN 114448802 B CN114448802 B CN 114448802B CN 202210107440 A CN202210107440 A CN 202210107440A CN 114448802 B CN114448802 B CN 114448802B
Authority
CN
China
Prior art keywords
gateway
configuration
types
data
template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210107440.1A
Other languages
Chinese (zh)
Other versions
CN114448802A (en
Inventor
吴永斌
赵鑫
黎博
陈楚
谭深
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202210107440.1A priority Critical patent/CN114448802B/en
Publication of CN114448802A publication Critical patent/CN114448802A/en
Application granted granted Critical
Publication of CN114448802B publication Critical patent/CN114448802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0843Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates
    • 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
    • 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/0893Assignment of logical groups to network elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure provides a gateway configuration method, a gateway configuration device and electronic equipment, and relates to the technical field of Internet. The method comprises the following steps: receiving a gateway configuration request, and determining general configuration data of a plurality of gateway types; acquiring configuration template data corresponding to each gateway type; and configuring the gateways corresponding to the gateway types based on the general configuration data and the configuration template data corresponding to the gateway types. According to the technical scheme, based on the general configuration data and the configuration template data corresponding to the gateway types, the gateways corresponding to the gateway types are configured, the user does not need to know details of the gateway types, and can support the configuration of the gateways of the various types, so that the efficiency and the accuracy of the configuration of the gateways are improved.

Description

Gateway configuration method, device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of internet, and in particular relates to a gateway configuration method, a gateway configuration device, electronic equipment and a storage medium.
Background
In a service system, a gateway is generally used as a traffic inlet to finely control service traffic. The gateway is used as a system portal, has extremely high requirement on system stability, and simultaneously has the service requirements of quick intervention and stable change.
Currently, when multiple types of gateways need to be configured, a developer configures each gateway type according to a corresponding configuration rule. Because the configuration rules of each gateway type are different, errors are easy to occur in the configuration process; moreover, the details of various gateway types need to be known to perform configuration, and the gateway configuration efficiency is low.
Disclosure of Invention
The disclosure provides a gateway configuration method, a gateway configuration device, electronic equipment and a storage medium.
According to an aspect of the present disclosure, there is provided a gateway configuration method, including:
Receiving a gateway configuration request, and determining general configuration data of a plurality of gateway types;
acquiring configuration template data corresponding to each gateway type;
and configuring the gateways corresponding to the gateway types based on the general configuration data and the configuration template data corresponding to the gateway types.
According to another aspect of the present disclosure, there is provided a gateway configuration apparatus, including:
the determining module is used for receiving the gateway configuration request and determining general configuration data of a plurality of gateway types;
the acquisition module is used for acquiring configuration template data corresponding to each gateway type;
the configuration module is used for configuring the gateways corresponding to the gateway types based on the general configuration data and the configuration template data corresponding to the gateway types.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of any of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method in any of the embodiments of the present disclosure.
The present disclosure provides a gateway configuration method, apparatus, electronic device, and storage medium, which configure a gateway corresponding to each of a plurality of gateway types based on general configuration data and configuration template data corresponding to each of the plurality of gateway types, so that a user does not need to know details of various gateway types, and can support multiple types of gateway configurations, thereby improving efficiency and accuracy of gateway configuration.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a flowchart of a gateway configuration method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a forwarding model in one embodiment of the present disclosure;
fig. 3 is a flowchart of a gateway configuration method according to an embodiment of the present disclosure;
Fig. 4 is a schematic diagram of an overall architecture of a gateway configuration method according to an embodiment of the disclosure;
fig. 5 is a schematic diagram of a gateway configuration device according to an embodiment of the disclosure;
FIG. 6 is a schematic diagram of a configuration module in an embodiment of the present disclosure;
Fig. 7 is a block diagram of an electronic device used to implement a gateway configuration method of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The embodiment of the present disclosure provides a gateway configuration method, and fig. 1 is a flowchart of a gateway configuration method according to an embodiment of the present disclosure, where the method may be applied to a gateway configuration apparatus, for example, where the apparatus may perform gateway configuration when deployed on a server or other processing device for execution. In some possible implementations, the method may also be implemented by way of a processor invoking computer readable instructions stored in a memory. As shown in fig. 1, includes:
Step S101, receiving gateway configuration request, and determining general configuration data of a plurality of gateway types;
In the embodiment of the disclosure, a gateway configuration server receives a gateway configuration request sent by a user terminal, determines a function to be configured according to configuration data carried in the gateway configuration request, where the function to be configured may include, but is not limited to, configuration forwarding rules, security management, fault tolerance, and the like, and obtains general configuration data corresponding to the functions to be configured of multiple gateway types.
Wherein the plurality of gateway types may include, but are not limited to Nginx, zuul, eureka. The general configuration data is gateway configuration data which can be used for a plurality of gateway types, and the general configuration data can be the general configuration data of the gateway in the whole quantity or the general configuration data of one configuration object in the gateway.
Step S102, configuration template data corresponding to each gateway type is obtained;
The method comprises the steps of pre-storing configuration template data corresponding to each gateway type, calling the pre-stored configuration template data corresponding to each gateway type after receiving a gateway configuration request, wherein the configuration template data corresponding to different gateway types are different.
Step S103, based on the general configuration data and the configuration template data corresponding to each of the gateway types, configuring the gateway corresponding to each of the gateway types.
And configuring the gateways of the corresponding types based on the general configuration data in a full-scale mode or an incremental mode according to the configuration template data corresponding to each gateway type.
In the related art, when configuring a plurality of types of gateways, it is necessary to configure each type of gateway separately, and thus, it is necessary to maintain a plurality of types of gateways, and the gateway operation and maintenance efficiency is low.
According to the gateway configuration method provided by the embodiment of the disclosure, based on the general configuration data and the configuration template data corresponding to the gateway types, the gateway corresponding to the gateway types is configured, and a user can support the gateway configuration of various types without knowing details of the gateway types, so that the efficiency and the accuracy of the gateway configuration are improved.
In one possible implementation, receiving a gateway configuration request, determining generic configuration data for a plurality of gateway types, includes:
and receiving a gateway configuration request, and carrying out abstract processing on forwarding models corresponding to the gateway types to obtain universal forwarding models corresponding to the gateway types, wherein the universal forwarding models comprise at least one universal configuration object.
In practical application, the core logic of the gateways of different gateway types is a forwarding model, and the forwarding model can comprise configuration objects and mapping relations, wherein the configuration objects of the forwarding models corresponding to the different gateway types are the same, and the mapping relations are different. For example, configuration objects of forwarding models corresponding to different gateway types include tenants, services, routes, and rules.
In one example, the forwarding model is shown in FIG. 2. Resource isolation may be performed by tenants (e.g., product lines as shown in the figure), each tenant may define multiple services, each service may have multiple routes, and multiple rules may be set within each route.
For the configuration object of the forwarding model, tenants may be preconfigured according to specific service or product lines, and mapping relations of services, routes and rules of the forwarding model corresponding to different gateway types are different. For example, an Nginx type gateway, a service mapped to a server, a route mapped to a location, and a rule mapped to a logical branch inside the location.
And carrying out abstract processing on the forwarding models corresponding to the gateway types respectively to obtain a general forwarding model of each forwarding model, wherein the general forwarding model comprises configuration objects shared by the forwarding models, namely general configuration objects. The general forwarding models of the gateway types can be stored in advance, and can be called when needed, or the forwarding models corresponding to the gateway types can be abstracted when the gateway configuration request is received, so that the general forwarding models corresponding to the gateway types can be obtained. The generic configuration data may include configuration data carried in a gateway configuration request and generic forwarding models for a plurality of gateway types.
In the embodiment of the disclosure, the general configuration data of a plurality of gateway types is obtained by carrying out abstract processing on forwarding models corresponding to the gateway types, and the obtained configuration data is applicable to gateway configuration of the gateway types and can be used as a data base for configuring the gateways of the gateway types.
In one possible implementation, configuring the gateway corresponding to each of the plurality of gateway types based on the common configuration data and the configuration template data corresponding to each of the plurality of gateway types includes:
according to the configuration template data corresponding to each of the gateway types, converting the general configuration data into gateway configuration data corresponding to each of the gateway types;
and configuring the gateway corresponding to each of the plurality of gateway types based on the gateway configuration data corresponding to each of the plurality of gateway types.
In practical application, the configuration template data corresponding to each gateway type may be preconfigured and stored, and the general configuration data is converted into gateway configuration data corresponding to the gateway type according to the configuration template data corresponding to each gateway type, and the gateway is configured by using the gateway configuration data. The gateway configuration data may be a forwarding model corresponding to the gateway type, etc. The gateway configuration may be a full configuration or an incremental configuration, for example, the incremental configuration may be to configure at least one configuration object of the forwarding model.
In the embodiment of the disclosure, the general configuration data is converted into the gateway configuration data corresponding to the gateway types according to the configuration template data corresponding to the gateway types, and then the gateway configuration of the corresponding type is performed, so that a user can support the gateway configuration of various types without knowing the details of the gateway types, and the efficiency and the accuracy of the gateway configuration are improved.
In one possible implementation, the converting the generic configuration data into gateway configuration data corresponding to each of the plurality of gateway types according to configuration template data corresponding to each of the plurality of gateway types includes:
And converting the general configuration data into at least one of template change data, template verification data and template version data corresponding to each gateway type according to the configuration template data corresponding to each gateway type.
In practical application, the configuration template data corresponding to different gateway types are different, and for each gateway type, the general configuration data is converted into at least one of template change data, template verification data and template version data corresponding to the gateway type according to the configuration template data corresponding to the gateway type. Wherein the template change data includes minimum change data calculated by a DIFF algorithm. The template verification data includes, but is not limited to, a verification format, a verification field, and a verification rule. The template version data may include, but is not limited to, version identification, version related data.
In the embodiment of the disclosure, according to the configuration template data corresponding to each of the plurality of gateway types, the general configuration data can be converted into the gateway configuration data of a plurality of types corresponding to each gateway type, so as to meet the configuration requirements of different types of gateways.
In one possible implementation, configuring the gateway corresponding to each of the plurality of gateway types based on the gateway configuration data corresponding to each of the plurality of gateway types includes:
obtaining the hierarchical configuration granularity corresponding to each gateway type;
and configuring the gateways corresponding to the gateway types in a grading way based on the grading configuration granularity corresponding to the gateway types.
In practical applications, when the gateway configuration data is used to configure each type of gateway, the gateway may be configured in a hierarchical manner according to a hierarchical configuration granularity set in advance. The configuration object corresponding to one gateway type may be configured, for example, a service, a route, etc. corresponding to one gateway type may be configured.
In the embodiment of the disclosure, the part to be configured in the gateway is configured independently in a hierarchical configuration mode, so that the problems of low configuration efficiency and change risk caused by full configuration when full configuration is not needed can be avoided, and the configuration efficiency and the configuration accuracy are improved.
In one possible implementation, the method further includes:
Obtaining the hierarchical release granularity corresponding to each gateway type;
And based on the hierarchical release granularity corresponding to each of the gateway types, the gateways corresponding to each of the gateway types are released in a hierarchical manner.
In practical application, hierarchical release granularities corresponding to a plurality of gateway types are pre-configured and stored. After the gateway configuration is completed, the gateway can be distributed in a grading manner according to a pre-configured grading distribution granularity, and the grading distribution granularity can include: preview, single edge, full, etc. Wherein, a single device refers to one device; the single side may be a plurality of devices within a preset range, for example, devices in one machine room; the full volume may be all devices involved in the publishing gateway.
In the embodiment of the disclosure, the gateway is distributed in a grading manner according to the grading distribution granularity corresponding to each gateway type, so that the stability of gateway change can be improved.
In one possible implementation, receiving a gateway configuration request includes:
And receiving a gateway configuration request through a user visual interface or a user command line interface.
In practical application, the gateway configuration server configures a user visual interface or a user command line interface as a gateway configuration interface, and displays the user visual interface or the user command line interface to a user through terminal equipment, and the terminal equipment receives a gateway configuration request and then sends the gateway configuration request to the gateway configuration server.
In the embodiment of the disclosure, the gateway configuration request is received through two modes of a user visual interface or a user command line interface, so that the personalized requirements of the user can be met.
In one possible implementation, the method further includes:
acquiring gateway configuration flow information common to a plurality of gateway types;
And determining the display information of the user visual interface based on the gateway configuration flow information.
In practical application, gateway configuration flow information common to a plurality of gateway types is determined in advance according to a function to be configured to be realized by gateway configuration, and the gateway configuration flow information may be information including each flow of gateway configuration. For example, the gateway configuration flow information may include configuring forwarding rules, security management, fault tolerance, and other functions to be configured, and then information of the functions to be configured is used as display information to be displayed through a user visual interface.
In the embodiment of the disclosure, based on gateway configuration flow information, display information of a user visual interface is determined and provided for a user standardized gateway configuration flow.
In one possible implementation, the method further includes:
the gateway is changed by rollback or revocation.
In practical applications, when the gateway configuration is performed, a gateway changing mode can be configured, including rollback or revocation. The rollback refers to that a fault occurs in the running process of the transaction, the transaction cannot be continuously executed, all completed transactions are cancelled, and the state when the transaction starts is rolled back. Revocation refers to the recovery program rolling back the transaction, i.e., revoking modifications that the transaction has made, without affecting the operation of other transactions. Rollback occurs in a transaction when the transaction is not fully completed and revocation occurs after the transaction has been completed by execution, and changes may be made to the gateway by rollback or revocation.
In the embodiment of the disclosure, a gateway changing mode is provided, and the changing requirement of a user in gateway configuration is met.
Fig. 3 is a flowchart of a gateway configuration method according to an embodiment of the present disclosure. As shown in fig. 3, the method includes:
step S301, receiving a gateway configuration request and determining general configuration data of a plurality of gateway types;
Step S302, configuration template data corresponding to each gateway type is obtained;
step S303, converting the general configuration data into gateway configuration data corresponding to each of a plurality of gateway types according to the configuration template data corresponding to each of the plurality of gateway types;
Step S304, based on the gateway configuration data corresponding to each of the gateway types, configuring the gateway corresponding to each of the gateway types;
Step S305, obtaining the hierarchical release granularity corresponding to each gateway type;
step S306, based on the hierarchical release granularity corresponding to each of the gateway types, the gateway corresponding to each of the gateway types is released in a hierarchical manner.
According to the gateway configuration method provided by the embodiment of the disclosure, based on the general configuration data and the configuration template data corresponding to the gateway types, the gateway corresponding to the gateway types is configured, and a user can support the gateway configuration of various types without knowing details of the gateway types, so that the efficiency and the accuracy of the gateway configuration are improved. In addition, according to the grading release granularity corresponding to each gateway type, grading release is carried out on the gateway, so that the stability of gateway change can be improved.
Fig. 4 is a schematic diagram of a gateway configuration method according to an embodiment of the disclosure. As shown in fig. 4, the overall architecture of the gateway configuration method in the embodiment of the present disclosure includes a user interaction module, a configuration generation module, a configuration validation module, a storage module, and a driving module (as "Job" shown in the figure). The gateway configuration server receives the gateway configuration request through a user visual interface (a "Control web" as shown in the figure) or a user command line interface (a "Control CLI" as shown in the figure), and the presentation information in the user visual interface includes overview, traffic scheduling (which may also be called a forwarding model or a forwarding rule), security protection and fault tolerance. The overview may include gateway traffic presentation, monitoring report presentation, and the like. After receiving the gateway configuration request, analyzing the gateway configuration request to obtain configuration data carried in the gateway configuration request, and determining a function to be configured corresponding to the configuration data. The configuration data is sent to a Control Center (shown as a Control Center) through an interface (shown as a Control API), configuration template data of different gateway types (shown as Nginx Conf, zuul Conf and Eureka Conf) is obtained through function routing, the configuration data, a universal template and the configuration template data of different gateway types are utilized to obtain gateway configuration data (shown as a template diff, a template check and a template version) respectively corresponding to the different gateway types, and the gateway configuration data respectively corresponding to the different gateway types is utilized to configure different types of gateways (shown as a gateway service) including Nginx, zuul, eureka. After the gateway configuration is completed, the hierarchical distribution may be performed according to the hierarchical distribution data including the hierarchical distribution protocol data (such as "protocol data" shown in the figure) and the hierarchical distribution granularity (such as "hierarchical distribution" shown in the figure), and after the gateway distribution, version rollback and change are supported. The storage module is used for storing data related to gateway configuration. The driving module is used for providing a driving program required by the online release of the gateway. The monitoring alarm report is used for displaying the monitoring state after the gateway is on line.
Fig. 5 is a schematic diagram of a gateway configuration device according to an embodiment of the disclosure. As shown in fig. 5, the gateway configuration apparatus may include:
a determining module 501, configured to receive a gateway configuration request, and determine general configuration data of multiple gateway types;
an obtaining module 502, configured to obtain configuration template data corresponding to each of a plurality of gateway types;
A configuration module 503, configured to configure a gateway corresponding to each of the plurality of gateway types based on the general configuration data and configuration template data corresponding to each of the plurality of gateway types.
According to the gateway configuration device provided by the embodiment of the disclosure, based on the general configuration data and the configuration template data corresponding to the gateway types, the gateway corresponding to the gateway types is configured, and a user does not need to know details of the gateway types, so that the gateway configuration of the gateway types can be supported, and the efficiency and the accuracy of the gateway configuration are improved.
In one possible implementation, the determining module 501 is configured to:
and receiving a gateway configuration request, and carrying out abstract processing on forwarding models corresponding to the gateway types to obtain universal forwarding models corresponding to the gateway types, wherein the universal forwarding models comprise at least one universal configuration object.
FIG. 6 is a schematic diagram of a configuration module in an embodiment of the disclosure, as shown in FIG. 6, and in one possible implementation, the configuration module includes a conversion unit 601 and a configuration unit 602;
A conversion unit 601, configured to convert the general configuration data into gateway configuration data corresponding to each of the plurality of gateway types according to configuration template data corresponding to each of the plurality of gateway types;
a configuration unit 602, configured to configure a gateway corresponding to each of the plurality of gateway types based on the gateway configuration data corresponding to each of the plurality of gateway types.
In one possible implementation, the conversion unit 601 is specifically configured to:
And converting the general configuration data into at least one of template change data, template verification data and template version data corresponding to each gateway type according to the configuration template data corresponding to each gateway type.
In one possible implementation, the configuration unit 602 is specifically configured to:
obtaining the hierarchical configuration granularity corresponding to each gateway type;
and configuring the gateways corresponding to the gateway types in a grading way based on the grading configuration granularity corresponding to the gateway types.
In one possible implementation, the method further includes a hierarchical publishing module configured to:
Obtaining the hierarchical release granularity corresponding to each gateway type;
And based on the hierarchical release granularity corresponding to each of the gateway types, the gateways corresponding to each of the gateway types are released in a hierarchical manner.
In one possible implementation, the determining module 501, when receiving the gateway configuration request, is configured to:
And receiving a gateway configuration request through a user visual interface or a user command line interface.
In one possible implementation, the method further includes an interface configuration module, configured to:
acquiring gateway configuration flow information common to a plurality of gateway types;
And determining the display information of the user visual interface based on the gateway configuration flow information.
In one possible implementation manner, the method further includes a change module, configured to:
the gateway is changed by rollback or revocation.
The functions of each unit, module or sub-module in each apparatus of the embodiments of the present disclosure may be referred to the corresponding descriptions in the above method embodiments, which are not repeated herein.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related user personal information all conform to the regulations of related laws and regulations, and the public sequence is not violated.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of any of the embodiments of the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method in any of the embodiments of the present disclosure.
Fig. 7 illustrates a schematic block diagram of an example electronic device 700 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the apparatus 700 includes a computing unit 701 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and information required for the operation of the device 700 may also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in device 700 are connected to I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, etc.; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, an optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/information with other devices via a computer network, such as the internet, and/or various telecommunications networks.
The computing unit 701 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 701 performs the respective methods and processes described above, such as a gateway configuration method. For example, in some embodiments, the gateway configuration method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 708. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 700 via ROM 702 and/or communication unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the gateway configuration method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the gateway configuration method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive information and instructions from, and transmit information and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable information processing apparatus, such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as an information server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system may be interconnected by any form or medium of digital information communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (18)

1. A gateway configuration method, the method comprising:
Receiving a gateway configuration request, and determining general configuration data of a plurality of gateway types; the general configuration data is the general configuration data of the gateway or the general configuration data of a configuration object;
Acquiring configuration template data corresponding to each gateway type;
Configuring the gateways corresponding to the gateway types based on the general configuration data and the configuration template data corresponding to the gateway types;
wherein the receiving the gateway configuration request, determining the general configuration data of the plurality of gateway types, includes:
And receiving a gateway configuration request, and carrying out abstract processing on forwarding models corresponding to the gateway types to obtain a universal forwarding model corresponding to the gateway types, wherein the universal forwarding model comprises at least one universal configuration object.
2. The method of claim 1, wherein the configuring the gateway to which the plurality of gateway types each correspond based on the generic configuration data and configuration template data to which the plurality of gateway types each correspond comprises:
converting the general configuration data into gateway configuration data corresponding to each of the gateway types according to the configuration template data corresponding to each of the gateway types;
And configuring the gateway corresponding to each of the gateway types based on the gateway configuration data corresponding to each of the gateway types.
3. The method of claim 2, wherein the converting the generic configuration data into gateway configuration data corresponding to each of the plurality of gateway types according to configuration template data corresponding to each of the plurality of gateway types, comprises:
And converting the general configuration data into at least one of template change data, template verification data and template version data corresponding to each gateway type according to the configuration template data corresponding to each gateway type.
4. The method of claim 2, wherein the configuring the gateway to which the plurality of gateway types each correspond based on the gateway configuration data to which the plurality of gateway types each correspond comprises:
obtaining the hierarchical configuration granularity corresponding to each gateway type;
And configuring the gateways corresponding to the gateway types in a grading way based on the grading configuration granularity corresponding to the gateway types.
5. The method of any of claims 1-4, further comprising:
obtaining the hierarchical release granularity corresponding to each gateway type;
and based on the grading release granularity corresponding to each gateway type, grading release the gateway corresponding to each gateway type.
6. The method of any of claims 1-4, wherein the receiving a gateway configuration request comprises:
And receiving a gateway configuration request through a user visual interface or a user command line interface.
7. The method of claim 6, further comprising:
acquiring gateway configuration flow information common to the gateway types;
And determining the display information of the user visual interface based on the gateway configuration flow information.
8. The method of any of claims 1-4, further comprising:
And changing the gateway in a rollback or revocation mode.
9. A gateway configuration apparatus, the apparatus comprising:
The determining module is used for receiving the gateway configuration request and determining general configuration data of a plurality of gateway types; the general configuration data is the general configuration data of the gateway or the general configuration data of a configuration object;
The acquisition module is used for acquiring configuration template data corresponding to each gateway type;
the configuration module is used for configuring the gateways corresponding to the gateway types based on the general configuration data and the configuration template data corresponding to the gateway types;
wherein, the determining module is used for:
And receiving a gateway configuration request, and carrying out abstract processing on forwarding models corresponding to the gateway types to obtain a universal forwarding model corresponding to the gateway types, wherein the universal forwarding model comprises at least one universal configuration object.
10. The apparatus of claim 9, wherein the configuration module comprises a conversion unit and a configuration unit;
the conversion unit is used for converting the general configuration data into gateway configuration data corresponding to each gateway type according to the configuration template data corresponding to each gateway type;
The configuration unit is configured to configure the gateways corresponding to the multiple gateway types based on the gateway configuration data corresponding to the multiple gateway types.
11. The device according to claim 10, wherein the conversion unit is specifically configured to:
And converting the general configuration data into at least one of template change data, template verification data and template version data corresponding to each gateway type according to the configuration template data corresponding to each gateway type.
12. The apparatus of claim 10, wherein the configuration unit is specifically configured to:
obtaining the hierarchical configuration granularity corresponding to each gateway type;
And configuring the gateways corresponding to the gateway types in a grading way based on the grading configuration granularity corresponding to the gateway types.
13. The apparatus of any of claims 9-12, further comprising a hierarchical publishing module to:
obtaining the hierarchical release granularity corresponding to each gateway type;
and based on the grading release granularity corresponding to each gateway type, grading release the gateway corresponding to each gateway type.
14. The apparatus of any of claims 9-12, wherein the determining module, when receiving a gateway configuration request, is to:
And receiving a gateway configuration request through a user visual interface or a user command line interface.
15. The apparatus of claim 14, further comprising an interface configuration module to:
acquiring gateway configuration flow information common to the gateway types;
And determining the display information of the user visual interface based on the gateway configuration flow information.
16. The apparatus of any of claims 9-12, further comprising a change module to:
And changing the gateway in a rollback or revocation mode.
17. An electronic device, comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
18. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-8.
CN202210107440.1A 2022-01-28 2022-01-28 Gateway configuration method, device, electronic equipment and storage medium Active CN114448802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210107440.1A CN114448802B (en) 2022-01-28 2022-01-28 Gateway configuration method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210107440.1A CN114448802B (en) 2022-01-28 2022-01-28 Gateway configuration method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114448802A CN114448802A (en) 2022-05-06
CN114448802B true CN114448802B (en) 2024-05-14

Family

ID=81372303

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210107440.1A Active CN114448802B (en) 2022-01-28 2022-01-28 Gateway configuration method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114448802B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115766429A (en) * 2022-11-04 2023-03-07 珠海格力电器股份有限公司 Matching method and device of system and edge computing gateway
CN117041044A (en) * 2023-08-23 2023-11-10 中电金信软件有限公司 Gateway configuration method, device and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2579877A1 (en) * 2007-02-12 2008-08-12 Guirong Cui Configurable multi-protocol serial-to-ieee802.15.4 mesh network gateway/router
CN102801565A (en) * 2012-08-24 2012-11-28 烽火通信科技股份有限公司 Method for carrying out centralized management on service configuration in network management system
CN107809660A (en) * 2017-11-14 2018-03-16 四川长虹电器股份有限公司 The method that Android intelligent television data content source flexibly switches
CN108770016A (en) * 2018-06-04 2018-11-06 北京邮电大学 5G end to end network slice generation method based on template and device
CN111181758A (en) * 2019-08-01 2020-05-19 腾讯科技(深圳)有限公司 Configuration file generation method and device
CN111459039A (en) * 2020-03-27 2020-07-28 青岛海信智慧家居系统股份有限公司 Intelligent household equipment management method and device
CN113016162A (en) * 2018-11-20 2021-06-22 Abb瑞士股份有限公司 Configuration of networked devices
CN113296823A (en) * 2020-02-21 2021-08-24 北京国双科技有限公司 Method, device, equipment and storage medium for generating resource configuration file

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9373093B2 (en) * 2013-11-07 2016-06-21 Sap Se Gateway service manager for business object applications
US9998566B2 (en) * 2014-11-03 2018-06-12 General Electric Company Intelligent gateway with a common data format
US10789264B2 (en) * 2016-01-20 2020-09-29 International Business Machines Corporation Automating configuration of operational data pipelines for extraction, transformation and load

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2579877A1 (en) * 2007-02-12 2008-08-12 Guirong Cui Configurable multi-protocol serial-to-ieee802.15.4 mesh network gateway/router
CN102801565A (en) * 2012-08-24 2012-11-28 烽火通信科技股份有限公司 Method for carrying out centralized management on service configuration in network management system
CN107809660A (en) * 2017-11-14 2018-03-16 四川长虹电器股份有限公司 The method that Android intelligent television data content source flexibly switches
CN108770016A (en) * 2018-06-04 2018-11-06 北京邮电大学 5G end to end network slice generation method based on template and device
CN113016162A (en) * 2018-11-20 2021-06-22 Abb瑞士股份有限公司 Configuration of networked devices
CN111181758A (en) * 2019-08-01 2020-05-19 腾讯科技(深圳)有限公司 Configuration file generation method and device
CN113296823A (en) * 2020-02-21 2021-08-24 北京国双科技有限公司 Method, device, equipment and storage medium for generating resource configuration file
CN111459039A (en) * 2020-03-27 2020-07-28 青岛海信智慧家居系统股份有限公司 Intelligent household equipment management method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Seong-Min Kim;等.IoT home gateway for auto-configuration and management of MQTT devices.《2015 IEEE Conference on Wireless Sensors (ICWiSe)》.2016,全文. *
罗晓孟,耿华.终端服务器在网络上的配置方法.《计算机与通信》.1998,全文. *

Also Published As

Publication number Publication date
CN114448802A (en) 2022-05-06

Similar Documents

Publication Publication Date Title
CN114448802B (en) Gateway configuration method, device, electronic equipment and storage medium
CN112860342A (en) Method, device, equipment, system and storage medium for microservice configuration
CN114816393B (en) Information generation method, device, equipment and storage medium
CN114911598A (en) Task scheduling method, device, equipment and storage medium
CN113849361A (en) Method, device, equipment and storage medium for testing service node
CN116341481B (en) Clock file confirmation method and device, electronic equipment and storage medium
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN113691403B (en) Topology node configuration method, related device and computer program product
CN112965836B (en) Service control method, device, electronic equipment and readable storage medium
CN113284353B (en) Control method of annunciator, electronic device and system
CN114091909A (en) Collaborative development method, system, device and electronic equipment
CN114374703A (en) Method, device and equipment for acquiring cloud mobile phone information and storage medium
CN112596922B (en) Communication management method, device, equipment and medium
CN113472565B (en) Method, apparatus, device and computer readable medium for expanding server function
CN116614379B (en) Bandwidth adjustment method and device for migration service and related equipment
CN115994022B (en) Algorithm service calling method and device, electronic equipment and storage medium
CN117076185B (en) Server inspection method, device, equipment and medium
CN114185552A (en) Application deployment processing method and device, equipment, medium and product
CN116112437A (en) Traffic scheduling method and device, electronic equipment and medium
CN116708556A (en) Data forwarding method, device, equipment and storage medium
CN115098520A (en) Device data updating method and device, electronic device and storage medium
CN116382852A (en) Micro-service deployment method and device, electronic equipment and medium
CN117270862A (en) Software pluggable method, device, equipment and medium based on dynamic compiling
CN116170188A (en) Network access control method, device, electronic equipment and storage medium
CN114221906A (en) Flow control method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant