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

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

Info

Publication number
CN114448802A
CN114448802A CN202210107440.1A CN202210107440A CN114448802A CN 114448802 A CN114448802 A CN 114448802A CN 202210107440 A CN202210107440 A CN 202210107440A CN 114448802 A CN114448802 A CN 114448802A
Authority
CN
China
Prior art keywords
gateway
configuration
types
data
data corresponding
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.)
Granted
Application number
CN202210107440.1A
Other languages
Chinese (zh)
Other versions
CN114448802B (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

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/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 and 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 a plurality of gateway types; and configuring the gateway corresponding to each of the plurality of gateway types based on the general configuration data and the configuration template data corresponding to each of the plurality of gateway types. According to the technical scheme, the gateways corresponding to the gateway types are configured based on the general configuration data and the configuration template data corresponding to the gateway types, a user can support various types of gateway configurations without knowing the details of the gateway types, and the efficiency and the accuracy of the gateway configuration are improved.

Description

Gateway configuration method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a gateway configuration method and apparatus, an electronic device, and a storage medium.
Background
In a service system, a gateway is usually used as a traffic entry to perform fine control on service traffic. The gateway is used as a system portal, has extremely high requirements on the stability of the system, and has service requirements of rapid intervention and stable change.
At present, when multiple types of gateways need to be configured, research and development personnel configure the gateways according to corresponding configuration rules for each type of gateway. Because the configuration rules of each gateway type are different, errors are easy to occur in the configuration process; moreover, the configuration can be performed only by knowing the details of various gateway types, and the gateway configuration efficiency is low.
Disclosure of Invention
The disclosure provides a gateway configuration method, a gateway configuration device, an electronic device 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 a plurality of gateway types;
and configuring the gateway corresponding to each of the plurality of gateway types based on the general configuration data and the configuration template data corresponding to each of the plurality of 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 the universal configuration data of a plurality of gateway types;
the gateway comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring configuration template data corresponding to a plurality of gateway types;
and the configuration module is used for configuring the gateway corresponding to each of the plurality of gateway types based on the general configuration data and the configuration template data corresponding to each of the plurality of 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 content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method according to 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 having stored thereon computer instructions for causing a computer to perform a method in any of the embodiments of the present disclosure.
According to another aspect of the present disclosure, a computer program product is provided, 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, device, electronic device and storage medium, which configure gateways corresponding to multiple gateway types based on general configuration data and configuration template data corresponding to multiple gateway types, so that a user can support multiple types of gateway configurations without knowing details of various gateway types, thereby improving efficiency and accuracy of gateway configuration.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide 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 diagram of a forwarding model in an 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 present disclosure;
fig. 5 is a schematic diagram of a gateway configuration apparatus according to an embodiment of the present 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 for implementing a gateway configuration method of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those 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.
Fig. 1 is a flowchart of a gateway configuration method according to an embodiment of the present disclosure, and the method may be applied to a gateway configuration apparatus, for example, the apparatus may perform gateway configuration when deployed in a server or other processing devices. In some possible implementations, the method may also be implemented by a processor calling computer readable instructions stored in a memory. As shown in fig. 1, includes:
step S101, receiving a gateway configuration request, and determining general configuration data of a plurality of gateway types;
in the embodiment of the present disclosure, a gateway configuration server receives a gateway configuration request sent by a user terminal, and 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, configuring a forwarding rule, performing security management, performing fault tolerance, and the like, and obtains general configuration data corresponding to the function to be configured of multiple gateway types.
The plurality of gateway types may include, but are not limited to, among others, Nginx, Zuul, Eureka. The general configuration data is gateway configuration data that can be used by multiple gateway types, and the general configuration data may be the total general configuration data of the gateway or the general configuration data of a configuration object in the gateway.
Step S102, obtaining configuration template data corresponding to a plurality of gateway types;
the method comprises the steps of storing configuration template data corresponding to each gateway type in advance, 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.
And step S103, configuring the gateway corresponding to each of the plurality of gateway types based on the general configuration data and the configuration template data corresponding to each of the plurality of gateway types.
And configuring the gateways of the corresponding types according to the configuration template data corresponding to the gateway types respectively through a full amount mode or an increment mode based on the general configuration data.
In the related art, when a plurality of types of gateways are configured, each type of gateway needs to be configured separately, and therefore, a plurality of types of gateways need to be maintained, and the operation and maintenance efficiency of the gateways is low.
The gateway configuration method provided by the embodiment of the disclosure configures the gateways corresponding to the multiple gateway types based on the general configuration data and the configuration template data corresponding to the multiple gateway types, so that a user can support multiple types of gateway configurations without knowing details of the various gateway types, and the efficiency and accuracy of the gateway configuration are improved.
In one possible implementation, receiving a gateway configuration request and determining common configuration data of a plurality of gateway types includes:
and receiving a gateway configuration request, and performing abstract processing on forwarding models corresponding to a plurality of gateway types to obtain general forwarding models corresponding to the plurality of gateway types, wherein the general forwarding models comprise at least one general configuration object.
In practical application, the core logic of the gateways of different gateway types are forwarding models, and the forwarding models may include configuration objects and mapping relationships, where the configuration objects of the forwarding models corresponding to different gateway types are the same and the mapping relationships are different. For example, the configuration objects of the forwarding model corresponding to different gateway types include tenants, services, routes, and rules.
In one example, the forwarding model is shown in FIG. 2. Resource isolation can be performed according to tenants (such as a 'product line' shown in the figure), each tenant can define a plurality of services, each service can have a plurality of routes, and a plurality of rules can be set in each route.
For the configuration object of the forwarding model, the tenant may be configured in advance according to a specific service or product line, and the mapping relationships of services, routes, and rules of the forwarding model corresponding to different gateway types are different. For example, a gateway of the type Nginx, services mapped to server, routes mapped to location, and rules mapped to logical branches within location.
And abstracting the forwarding models corresponding to the multiple gateway types to obtain a universal forwarding model of each forwarding model, wherein the universal forwarding model comprises a configuration object shared by each forwarding model, namely a universal configuration object. The general forwarding models of multiple gateway types can be stored in advance and called when needed, or the forwarding models corresponding to the multiple gateway types can be abstracted when a gateway configuration request is received, so that the general forwarding models corresponding to the multiple gateway types are obtained. The generic configuration data may include configuration data carried in the gateway configuration request and generic forwarding models for multiple gateway types.
In the embodiment of the disclosure, the forwarding models corresponding to the multiple gateway types are abstracted to obtain the general configuration data of the multiple gateway types, and the obtained configuration data is suitable for the gateway configuration of the multiple gateway types and can be used as a data base for configuring the gateways of the multiple gateway types.
In a possible implementation manner, configuring 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 includes:
converting the general configuration data into gateway configuration data corresponding to a plurality of gateway types according to the configuration template data corresponding to 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 pre-configured and stored, and according to the configuration template data corresponding to each gateway type, the general configuration data is converted into the gateway configuration data corresponding to the 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, and the like. When the gateway configuration is performed, 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, according to the configuration template data corresponding to each of the plurality of gateway types, the general configuration data is converted into the gateway configuration data corresponding to each of the plurality of gateway types, and then the gateway configuration of the corresponding type is performed, so that a user can support the gateway configuration of the plurality of types without knowing the details of the gateway types, and the efficiency and the accuracy of the gateway configuration are improved.
In a possible implementation manner, converting 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 includes:
and converting the general configuration data into at least one of template change data, template checking data and template version data corresponding to the gateway types according to the configuration template data corresponding to the gateway types.
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 the template change data, the template check data and the 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 the DIFF algorithm. The template verification data includes, but is not limited to, a verification format, a verification field, and a verification rule. Template version data may include, but is not limited to, version identification, version related data.
In the embodiment of the present disclosure, according to the configuration template data corresponding to each of the plurality of gateway types, the general configuration data may be converted into a plurality of types of gateway configuration data corresponding to each of the gateway types, so as to meet different types of gateway configuration requirements.
In a possible implementation manner, configuring a gateway corresponding to each of a plurality of gateway types based on gateway configuration data corresponding to each of the plurality of gateway types includes:
obtaining the grading configuration granularity corresponding to each of a plurality of gateway types;
and configuring the gateways corresponding to the multiple gateway types in a grading way based on the grading configuration granularity corresponding to the multiple gateway types.
In practical applications, when configuring gateways of various types by using the gateway configuration data, the gateways may be configured hierarchically according to a preset hierarchical configuration level. The configuration object corresponding to one gateway type may be configured, for example, a service, a route, and the like corresponding to one gateway type may be configured.
In the embodiment of the disclosure, the part of the gateway that needs to be configured is configured separately by means of hierarchical configuration of the gateway, so that the problems of low configuration efficiency and change risk caused by performing 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 manner, the method further includes:
obtaining the grading release granularity corresponding to each of a plurality of gateway types;
and issuing the gateways corresponding to the multiple gateway types in a grading way based on the grading issuing granularity corresponding to the multiple gateway types.
In practical application, the hierarchical publishing granularities corresponding to a plurality of gateway types are configured in advance and stored. After the gateway configuration is completed, the distribution gateway may be graded according to a preconfigured graded distribution granularity, where the graded distribution granularity may include: preview, singleton, single side, full, etc. Wherein, a single device refers to one device; the single side can be a plurality of devices in a preset range, for example, devices in one machine room; the full amount may be all devices involved in the publishing gateway.
In the embodiment of the disclosure, the gateways are issued in a grading manner according to the grading issue granularity corresponding to each of the plurality of gateway types, so that the stability of gateway change can be improved.
In one possible implementation, receiving a gateway configuration request includes:
a gateway configuration request is received through a user visualization 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, displays the gateway configuration interface to a user through terminal equipment, and sends the gateway configuration interface to the gateway configuration server after the terminal equipment receives a gateway configuration request.
In the embodiment of the disclosure, the gateway configuration request is received through 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 manner, the method further includes:
acquiring gateway configuration flow information universal 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, the gateway configuration flow information common to a plurality of gateway types is determined in advance according to the function to be configured to be realized by the gateway configuration, and the gateway configuration flow information may be information of each flow including the gateway configuration. For example, the gateway configuration flow information may include functions to be configured, such as configuration forwarding rules, security management, fault tolerance, and the like, and the information of each function to be configured is used as display information and displayed through a user visual interface.
In the embodiment of the disclosure, the display information of the user visual interface is determined based on the gateway configuration process information, and the display information is provided for the standardized gateway configuration process of the user.
In one possible implementation manner, the method further includes:
and changing the gateway in a rollback or withdrawal mode.
In practical application, when the gateway configuration is performed, the gateway change mode may be configured, including rollback or revocation. The rollback refers to that a fault occurs in the transaction running process, the transaction cannot be continuously executed, all completed transactions are cancelled, and the state is rolled back to the state when the transaction starts. Undo refers to the recovery program rolling back a transaction without affecting the operation of other transactions, i.e., undoing the modifications that the transaction has made. Rollback occurs when a transaction is not completely completed, i.e., in a transaction, and undo occurs after the transaction has been performed, and changes may be made to the gateway by rollback or undo.
In the embodiment of the disclosure, a gateway change mode is provided, and the change requirement of a user in gateway configuration is met.
Fig. 3 is a flowchart of a gateway configuration method in 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, acquiring configuration template data corresponding to each of a plurality of gateway types;
step S303, converting the general configuration data into gateway configuration data corresponding to a plurality of gateway types according to the configuration template data corresponding to the gateway types;
step S304, 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;
step S305, obtaining the grading release granularity corresponding to each of a plurality of gateway types;
step S306, based on the grading release granularity corresponding to each of the plurality of gateway types, the gateway corresponding to each of the plurality of gateway types is released in a grading manner.
The gateway configuration method provided by the embodiment of the disclosure configures the gateways corresponding to the multiple gateway types based on the general configuration data and the configuration template data corresponding to the multiple gateway types, so that a user can support multiple types of gateway configurations without knowing details of the various gateway types, and the efficiency and accuracy of the gateway configuration are improved. In addition, the gateways are distributed in a grading way according to the grading distribution granularity corresponding to each gateway type, so that the stability of gateway change can be improved.
Fig. 4 is a schematic diagram of a gateway configuration method in an embodiment of the present 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 driver module (e.g., "Job" shown in the figure). The gateway configuration server receives the gateway configuration request through a user visual interface (e.g., "Control web" as shown in the figure) or a user command line interface (e.g., "Control CLI" as shown in the figure), where the presentation information includes overview, traffic scheduling (which may also be referred to as forwarding model or forwarding rule), security protection, and disaster tolerance. The overview may include gateway traffic display, monitoring report display, and the like. After receiving the gateway configuration request, analyzing the gateway configuration request to obtain the configuration data carried in the gateway configuration request, and determining the function to be configured corresponding to the configuration data. Sending the configuration data to a Control Center (for example, "Control Center" shown in the figure) through an interface (for example, "Control API" shown in the figure), obtaining configuration template data of different gateway types (for example, "Nginx Conf, Zuul Conf, Eureka Conf" shown in the figure) through functional routing, obtaining gateway configuration data (for example, "template diff, template checksum template version" shown in the figure) corresponding to the different gateway types by using the configuration data, a common template and the configuration template data of the different gateway types, and configuring different types of gateways (for example, "gateway service" shown in the figure) by using the gateway configuration data corresponding to the different gateway types, wherein the gateway types include Nginx, Zuul, Eureka. After the gateway configuration is completed, hierarchical distribution can be performed according to hierarchical distribution data, wherein the hierarchical distribution data comprises hierarchical distribution protocol data (such as 'protocol data' shown in the figure) and hierarchical distribution granularity (such as 'hierarchical distribution' shown in the figure), and after the gateway distribution, version rollback and version 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 online publishing 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 apparatus according to an embodiment of the present disclosure. As shown in fig. 5, the gateway configuration means 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;
the configuration module 503 is configured to configure a gateway corresponding to each of the plurality of gateway types based on the general configuration data and the configuration template data corresponding to each of the plurality of gateway types.
The gateway configuration device provided by the embodiment of the disclosure configures the gateways corresponding to the multiple gateway types based on the general configuration data and the configuration template data corresponding to the multiple gateway types, so that a user can support multiple types of gateway configurations without knowing details of the various gateway types, and the efficiency and 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 performing abstract processing on forwarding models corresponding to a plurality of gateway types to obtain general forwarding models corresponding to the plurality of gateway types, wherein the general forwarding models comprise at least one general configuration object.
Fig. 6 is a schematic diagram of a configuration module in an embodiment of the disclosure, as shown in fig. 6, in a possible implementation manner, the configuration module includes a conversion unit 601 and a configuration unit 602;
a converting unit 601, configured to convert the general configuration data into gateway configuration data corresponding to each of the multiple gateway types according to configuration template data corresponding to each of the multiple gateway types;
a configuring 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 checking data and template version data corresponding to the gateway types according to the configuration template data corresponding to the gateway types.
In a possible implementation manner, the configuration unit 602 is specifically configured to:
acquiring hierarchical configuration granularity corresponding to each of a plurality of gateway types;
and configuring the gateway corresponding to each of the plurality of gateway types in a hierarchical manner based on the hierarchical configuration granularity corresponding to each of the plurality of gateway types.
In a possible implementation manner, the system further includes a hierarchical publishing module, configured to:
obtaining the grading release granularity corresponding to each gateway type;
and issuing the gateway corresponding to each gateway type in a grading way based on the grading issuing granularity corresponding to each gateway type.
In a possible implementation manner, the determining module 501, when receiving the gateway configuration request, is configured to:
a gateway configuration request is received through a user visualization interface or a user command line interface.
In a possible implementation manner, the system further includes an interface configuration module, configured to:
acquiring gateway configuration flow information universal to a plurality of gateway types;
and determining the display information of the user visual interface based on the gateway configuration flow information.
In a possible implementation manner, the system further includes a changing module, configured to:
and changing the gateway in a rollback or withdrawal mode.
The functions of each unit, module or sub-module in each apparatus in the embodiments of the present disclosure may refer to the corresponding description in the above method embodiments, and are not described herein again.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, and do not violate the good customs of the public order.
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 content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method according to 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 having stored thereon computer instructions for causing a computer to perform a method in 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, performs 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 can 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 phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the device 700 comprises a computing unit 701, which may perform various suitable 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 necessary for the operation of the device 700 can also be stored. The calculation unit 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in the device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, 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 telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the 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, and so forth. The computing unit 701 performs the various methods and processes described above, such as the gateway configuration method. For example, in some embodiments, the gateway configuration method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 700 via ROM 702 and/or communications unit 709. When loaded into RAM 703 and executed by the computing unit 701, may perform one or more steps of the gateway configuration method described above. 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 circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a 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 that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving information and instructions from, and transmitting information and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes 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 codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. 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. A 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 a pointing device (e.g., a mouse or a 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 can 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, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end 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 back-end, middleware, or front-end components. The components of the system can 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 clients and servers. A client and server are generally 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 with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (21)

1. A gateway configuration method, the method comprising:
receiving a gateway configuration request, and determining general configuration data of a plurality of gateway types;
acquiring configuration template data corresponding to the multiple gateway types;
and configuring the gateway corresponding to each of the plurality of gateway types based on the general configuration data and the configuration template data corresponding to each of the plurality of gateway types.
2. The method of claim 1, wherein the receiving a gateway configuration request, determining common configuration data for a plurality of gateway types, comprises:
receiving a gateway configuration request, and performing abstraction processing on forwarding models corresponding to the multiple gateway types to obtain general forwarding models corresponding to the multiple gateway types, wherein the general forwarding models comprise at least one general configuration object.
3. The method of claim 1, wherein the 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 comprises:
converting the general configuration data into gateway configuration data corresponding to the plurality of gateway types according to the configuration template data corresponding to the plurality of 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.
4. The method of claim 3, wherein the converting the generic configuration data into gateway configuration data corresponding to each of the plurality of gateway types according to the 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 check data and template version data corresponding to the gateway types according to the configuration template data corresponding to the gateway types.
5. The method of claim 3, wherein the 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 comprises:
obtaining the grading configuration granularity corresponding to each of the plurality of gateway types;
and configuring the gateway corresponding to each gateway type in a grading way based on the grading configuration granularity corresponding to each gateway type.
6. The method of any of claims 1-5, further comprising:
obtaining the grading release granularity corresponding to each of the plurality of gateway types;
and issuing the gateway corresponding to each gateway type in a grading way based on the grading issue granularity corresponding to each gateway type.
7. The method of any of claims 1-5, wherein the receiving a gateway configuration request comprises:
a gateway configuration request is received through a user visualization interface or a user command line interface.
8. The method of claim 7, further comprising:
acquiring gateway configuration flow information which is common to the plurality of gateway types;
and determining the display information of the user visual interface based on the gateway configuration flow information.
9. The method of any of claims 1-5, further comprising:
and changing the gateway in a rollback or withdrawal mode.
10. An apparatus for gateway configuration, the apparatus comprising:
the determining module is used for receiving the gateway configuration request and determining the universal configuration data of a plurality of gateway types;
an obtaining module, configured to obtain configuration template data corresponding to each of the plurality of gateway types;
and 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.
11. The apparatus of claim 10, wherein the means for determining is configured to:
receiving a gateway configuration request, and performing abstraction processing on forwarding models corresponding to the multiple gateway types to obtain general forwarding models corresponding to the multiple gateway types, wherein the general forwarding models comprise at least one general configuration object.
12. The apparatus of claim 10, wherein the configuration module comprises a conversion unit and a configuration unit;
the conversion unit is 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;
the configuration unit is configured to configure 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.
13. The apparatus according to claim 12, wherein the conversion unit is specifically configured to:
and converting the general configuration data into at least one of template change data, template check data and template version data corresponding to the gateway types according to the configuration template data corresponding to the gateway types.
14. The apparatus according to claim 12, wherein the configuration unit is specifically configured to:
obtaining the grading configuration granularity corresponding to each of the plurality of gateway types;
and configuring the gateway corresponding to each of the plurality of gateway types in a grading way based on the grading configuration granularity corresponding to each of the plurality of gateway types.
15. The apparatus of any of claims 10-14, further comprising a hierarchical publication module to:
obtaining the grading release granularity corresponding to each of the plurality of gateway types;
and issuing the gateways corresponding to the gateway types in a grading way based on the grading issuing granularity corresponding to the gateway types.
16. The apparatus of any of claims 10-14, wherein the means for determining, when receiving a gateway configuration request, is configured to:
a gateway configuration request is received through a user visualization interface or a user command line interface.
17. The apparatus of claim 16, further comprising an interface configuration module to:
acquiring gateway configuration flow information which is common to the plurality of gateway types;
and determining the display information of the user visual interface based on the gateway configuration flow information.
18. The apparatus of any of claims 10-14, further comprising a change module to:
and changing the gateway in a rollback or withdrawal mode.
19. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
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-9.
20. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-9.
21. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-9.
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 true CN114448802A (en) 2022-05-06
CN114448802B 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)

Cited By (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 (11)

* 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
US20150127785A1 (en) * 2013-11-07 2015-05-07 Sap Ag Gateway service manager for business object applications
US20160127514A1 (en) * 2014-11-03 2016-05-05 General Electric Company Intelligent gateway with a common data format
US20170206255A1 (en) * 2016-01-20 2017-07-20 International Business Machines Corporation Automating configuration of operational data pipelines for extraction, transformation and load
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

Patent Citations (11)

* 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
US20150127785A1 (en) * 2013-11-07 2015-05-07 Sap Ag Gateway service manager for business object applications
US20160127514A1 (en) * 2014-11-03 2016-05-05 General Electric Company Intelligent gateway with a common data format
US20170206255A1 (en) * 2016-01-20 2017-07-20 International Business Machines Corporation Automating configuration of operational data pipelines for extraction, transformation and load
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" *
罗晓孟,耿华: "终端服务器在网络上的配置方法" *

Cited By (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

Also Published As

Publication number Publication date
CN114448802B (en) 2024-05-14

Similar Documents

Publication Publication Date Title
CN114448802B (en) Gateway configuration method, device, electronic equipment and storage medium
EP3684033A1 (en) Systems and methods for collecting, monitoring, and analyzing vehicle data from a plurality of vehicles using edge computing
CN113342345A (en) Operator fusion method and device of deep learning framework
CN110688828A (en) File processing method and device, file processing system and computer equipment
CN112860342A (en) Method, device, equipment, system and storage medium for microservice configuration
CN113193947B (en) Method, apparatus, medium, and program product for implementing distributed global ordering
CN114816393B (en) Information generation method, device, equipment and storage medium
CN111178849A (en) Linear process engine implementation method, device, equipment and storage medium
CN114911598A (en) Task scheduling method, device, equipment and storage medium
CN112817562A (en) Service processing method and device
CN115964021A (en) Demand issuing method and device, electronic equipment and storage medium
CN115923889A (en) Automatic driving system and method compatible with C2ATO and CBTC
CN114070889A (en) Configuration method, traffic forwarding method, device, storage medium, and program product
CN114091909A (en) Collaborative development method, system, device and electronic equipment
CN113284353B (en) Control method of annunciator, electronic device and system
CN115526587A (en) Method and device for generating customs message
CN114612212A (en) Business processing method, device and system based on risk control
CN113656239A (en) Monitoring method and device for middleware and computer program product
CN112596922B (en) Communication management method, device, equipment and medium
CN116821117B (en) Stream data processing method, system, equipment and storage medium
CN116109387A (en) Electronic contract processing method and device, electronic equipment and medium
CN114221906A (en) Flow control method and device, electronic equipment and storage medium
CN114185552A (en) Application deployment processing method and device, equipment, medium and product
CN115981847A (en) Service grid deployment method and device, electronic equipment and storage medium
CN116362868A (en) Staged loan business system

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