CN117527587A - Dynamic configuration management method for multi-network regional gateway - Google Patents

Dynamic configuration management method for multi-network regional gateway Download PDF

Info

Publication number
CN117527587A
CN117527587A CN202311708821.6A CN202311708821A CN117527587A CN 117527587 A CN117527587 A CN 117527587A CN 202311708821 A CN202311708821 A CN 202311708821A CN 117527587 A CN117527587 A CN 117527587A
Authority
CN
China
Prior art keywords
service
gateway
dynamic configuration
request
configuration parameters
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.)
Pending
Application number
CN202311708821.6A
Other languages
Chinese (zh)
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.)
Shanghai Financial Futures Information Technology Co ltd
Original Assignee
Shanghai Financial Futures Information 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 Shanghai Financial Futures Information Technology Co ltd filed Critical Shanghai Financial Futures Information Technology Co ltd
Priority to CN202311708821.6A priority Critical patent/CN117527587A/en
Publication of CN117527587A publication Critical patent/CN117527587A/en
Pending legal-status Critical Current

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/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
    • H04L41/0856Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information by backing up or archiving configuration information
    • 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/0894Policy-based network configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/133Protocols for remote procedure calls [RPC]

Landscapes

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

Abstract

The invention discloses a dynamic configuration management method for a multi-network regional gateway, which comprises the following steps: creating corresponding dynamic configuration caches for the gateways in each area in the central control area according to the gateway configuration information of each area; calculating current dynamic configuration parameters of each region at regular time according to a preset timing calculation task; judging whether the local dynamic configuration parameters of the corresponding regional gateway change according to the previous dynamic configuration parameters stored in the dynamic configuration caches of each region; if yes, writing the calculated current dynamic configuration parameters into a dynamic configuration buffer of the corresponding area; if not, continuing to calculate the current dynamic configuration parameters of each region at regular time according to the preset regular time calculation task; monitoring whether each regional gateway sends a subscription inquiry request; if yes, pushing the calculated current dynamic configuration parameters to the corresponding regional gateway; if not, continuing to monitor whether each regional gateway transmits a subscription inquiry request.

Description

Dynamic configuration management method for multi-network regional gateway
Technical Field
The invention relates to a network management domain, in particular to a dynamic configuration management method and system for a multi-network area gateway.
Background
Along with the increasing complexity and severity of network security situation in recent years, each financial enterprise is continuously perfecting the construction of a network security system, and the protection of information security is continuously increased. In general, a financial enterprise divides an enterprise internal network into a plurality of network areas according to different security levels of its own business, and the enterprise internal network is generally divided into a plurality of large areas such as the internet, offices, businesses, private networks, and the like. A plurality of business services are respectively deployed in the network areas, and a large number of access calls exist among the services due to business requirements, so that the service access calls in the areas and the cross-area service access calls exist; and the foreground terminal browser of each area can also initiate access to the local area service or other area services.
In order to ensure the security and controllability of cross-regional access, a gateway is required to be deployed in each network region, all the access traffic of the cross-regional access must pass through the gateway, and meanwhile, corresponding service routing and access control parameters are required to be configured on the gateway of each region, and the gateway is used as a unique channel for each region to request the access of the traffic, thereby carrying the important functions of service discovery and routing forwarding and becoming an important hub for requesting data transmission between each network region.
There are many message middleware products available in the industry as regional gateway options that generally support basic functions such as service routing, message forwarding, access control, health checking, fusing, multiple concurrency, etc. However, for basic configuration parameters such as service routing and access control, most message middleware can only restart the application by loading static configuration files, and generally does not support real-time validation of dynamic configuration under the condition that the application is not restarted. Moreover, the gateways of all the areas operate independently, and can be started one by a manual mode, so that the centralized treatment difficulty is high.
Disclosure of Invention
The following presents a simplified summary of one or more aspects in order to provide a basic understanding of such aspects. This summary is not an extensive overview of all contemplated aspects, and is intended to neither identify key or critical elements of all aspects nor delineate the scope of any or all aspects. Its sole purpose is to present some concepts of one or more aspects in a simplified form as a prelude to the more detailed description that is presented later.
The invention aims to solve the problems and provides a multi-network regional gateway dynamic configuration management method, which accesses service clusters in each network region through a central control region, calculates and generates dynamic configuration parameters of each regional gateway, and then pushes the dynamic configuration parameters to the gateways of the corresponding region, wherein the dynamic memory configuration can be directly loaded to take effect in real time without restarting the operation process of each regional gateway, and the high availability and continuity of service functions are greatly improved.
The technical scheme of the invention is as follows:
the invention provides a dynamic configuration management method of a multi-network regional gateway, which comprises the following steps:
creating corresponding dynamic configuration caches for the gateways in each area in the central control area according to the gateway configuration information of each area;
calculating current dynamic configuration parameters of each region at regular time according to a preset timing calculation task;
judging whether the local dynamic configuration parameters of the corresponding regional gateway change according to the previous dynamic configuration parameters stored in the dynamic configuration caches of each region; if yes, writing the calculated current dynamic configuration parameters into a dynamic configuration buffer of the corresponding area; if not, continuing to calculate the current dynamic configuration parameters of each region at regular time according to the preset regular time calculation task;
monitoring whether each regional gateway sends a subscription inquiry request; if yes, pushing the calculated current dynamic configuration parameters to the corresponding regional gateway; if not, continuing to monitor whether each regional gateway transmits a subscription inquiry request.
According to an embodiment of the method for dynamically configuring and managing the multi-network regional gateway, the gateway configuration information comprises a gateway internal structure and processing logic, and the method for dynamically configuring and managing the multi-network regional gateway sets a configuration parameter structure according to the internal structure and the processing logic of each regional gateway for storing dynamic configuration parameters; the configuration parameter structure comprises a primary key, a listener array, a server route array, an upstream service terminal address and a unique identification code.
According to an embodiment of the method for dynamically configuring and managing the multi-network area gateway, the gateway internal structure comprises a monitoring service module, a routing service module and an upstream discovery service module; wherein,
the monitoring service module is used for receiving the service request of the downstream service and forwarding the received service request to the routing service module for processing;
the routing service module is used for carrying out upstream service address matching on the received service request and forwarding the matched service request to the upstream discovery service module;
and the upstream discovery service module forwards the received service request to the corresponding service terminal according to the upstream service address, so as to realize service calling across network areas.
According to an embodiment of the method for dynamically configuring and managing the multi-network regional gateway, the monitoring service module is configured with a plurality of monitors, each monitor corresponds to one port respectively, the monitoring service module monitors connection requests of different downstream services through the ports configured by the monitors, and then establishes connection with the corresponding downstream services through the acquired connection requests so as to acquire service requests of the corresponding downstream services.
According to an embodiment of the method for dynamically configuring and managing the multi-network regional gateway, the monitoring service module filters the received service request according to a preset access control rule set after receiving the service request of the downstream service through the monitor; wherein,
if the received service request accords with the access control rule, forwarding the received service request to a routing service module for continuous processing;
if the received service request does not accord with the access control rule, intercepting the received service request, and returning error prompt information to the corresponding downstream service.
According to an embodiment of the multi-network area gateway dynamic configuration management method of the present invention, after the routing service module receives the service request forwarded by the monitoring service module, the routing service module performs searching and matching according to a preset routing rule, so as to perform upstream service address matching; wherein,
if the received service request finds a matched routing rule, performing upstream service address matching according to the matched routing rule, and forwarding the matched service request to an upstream discovery service module;
if the received service request cannot find the matched routing rule, the corresponding service request is not forwarded, and error prompt information is returned to downstream service.
According to an embodiment of the method for dynamically configuring and managing the multi-network regional gateway, after the upstream discovery service module receives the service request forwarded by the routing service module, the upstream discovery service module forwards the received service request to a service terminal in a service terminal list of upstream service in a load balancing mode; if no service terminal exists in the upstream service, the corresponding service request is not forwarded, and error prompt information is returned to the downstream service.
According to an embodiment of the method for dynamically configuring and managing the multi-network regional gateway, the method for dynamically configuring and managing the multi-network regional gateway is provided with an update gateway configuration buffer memory in each region respectively for storing and managing local dynamic configuration parameters of each regional gateway; the update gateway configuration buffer is connected with the corresponding dynamic configuration buffer in the central control area, and sends a subscription inquiry request to the central control area in a gRPC (global procedure for packet radio service) streaming subscription mode, so that local dynamic configuration parameters are updated.
According to an embodiment of the method for dynamically configuring and managing the multi-network regional gateway, the subscription query request type comprises a full-quantity independent gRPC flow subscription request, an incremental independent gRPC flow subscription request, a full-quantity aggregate ADS gRPC flow subscription request and an incremental aggregate ADS gRPC flow, and the central control area pushes corresponding types of data resources according to subscription query request types sent by different regional gateways; wherein the data resources include a snoop discovery service, a route discovery service, an upstream service discovery service, and an aggregate discovery service.
According to one embodiment of the multi-network area gateway dynamic configuration management method, after each gateway receives dynamic configuration parameters pushed by a central control area, the received dynamic configuration parameters are compared with an update gateway configuration cache, so that whether local dynamic configuration parameters are updated is judged; wherein,
if the received dynamic configuration parameters are compared with the update gateway configuration cache and then change is found, the local dynamic configuration parameters are updated;
if no change is found after the received dynamic configuration parameters are compared with the updated gateway configuration cache, continuing to send a next round of subscription inquiry request.
The invention also provides a computer readable medium storing computer program code which, when executed by a processor, implements a method as described above.
The invention also provides a dynamic configuration management device of the multi-network area gateway, which comprises:
a memory for storing instructions executable by the processor; and
and a processor for executing the instructions to implement the method as described above.
Compared with the prior art, the invention has the following beneficial effects: the invention sets a central control area for the management of the dynamic configuration of the multi-network area gateway, creates a corresponding dynamic configuration buffer memory in each area gateway of the central control area according to the gateway configuration information of each area, and then accesses the service cluster in each network area through the central control area, thereby realizing the management of the dynamic configuration of the multi-network area gateway. The invention can dynamically update the configuration of each regional gateway in the running process, and the dynamic memory configuration can be directly loaded to take effect in real time without restarting the gateway in the whole process, thereby ensuring that the service call across the network region is hardly affected and greatly improving the high availability and continuity of the service function. In addition, the gRPC stream type subscription method is adopted to subscribe and inquire the dynamic configuration, multiple gRPC data streams and two modes of full quantity and increment are supported, and diversified selection is provided for gateway data resource updating. Meanwhile, the invention also defines a standard ADS type updating sequence aiming at ADS aggregate data inquiry, thereby preventing gateway intermittent function abnormality caused by uncertainty of arrival time sequence of different data type configuration and improving stability of business crossing network areas.
Drawings
The above features and advantages of the present invention will be better understood after reading the detailed description of embodiments of the present disclosure in conjunction with the following drawings. In the drawings, the components are not necessarily to scale and components having similar related features or characteristics may have the same or similar reference numerals.
Fig. 1 is a flowchart illustrating an embodiment of a dynamic configuration management method for a multi-network area gateway according to the present invention.
Detailed Description
The invention is described in detail below with reference to the drawings and the specific embodiments. It is noted that the aspects described below in connection with the drawings and the specific embodiments are merely exemplary and should not be construed as limiting the scope of the invention in any way.
An embodiment of a dynamic configuration management method for a multi-network area gateway is disclosed herein, and fig. 1 is a flowchart illustrating an embodiment of a dynamic configuration management method for a multi-network area gateway according to the present invention. Referring to fig. 1, the following is a detailed description of each step of the dynamic configuration management method for the multi-network area gateway.
Step S1: and creating corresponding dynamic configuration caches for the gateways in each area in the central control area according to the gateway configuration information of each area.
In this embodiment, in order to implement centralized management and update of gateway dynamic configuration parameters of different areas, a central control area is set, a corresponding dynamic configuration buffer is created at each area gateway in the central control area according to gateway configuration information of each area, and then service clusters in each network area are accessed through the central control area, thereby implementing management of dynamic configuration of the multi-network area gateway. In this embodiment, in order to ensure that each area has a corresponding dynamic configuration buffer in the central control area, before starting the central control area to perform the listening task each time, each area needs to be traversed in a circulating manner, and whether to create a corresponding dynamic configuration buffer for each area is determined. If the fact that the corresponding dynamic configuration cache does not exist in a certain area is detected, the dynamic configuration cache of the area is created and initialized according to gateway configuration information of the area.
Step S2: and calculating the current dynamic configuration parameters of each region at regular time according to the preset timing calculation task.
In this embodiment, after the central control area opens up corresponding dynamic configuration caches for all regional gateways through the step S1, starting to start the monitoring port, and circularly traversing each area according to a preset timing calculation task (for example, once every 5 minutes) to calculate the current dynamic configuration parameters of each region.
Specifically, in this embodiment, in order to save the dynamic configuration parameters of each regional gateway, a configuration parameter structure is set according to the gateway configuration information of each regional gateway, so as to store the dynamic configuration parameters of each regional gateway. The gateway configuration information includes a gateway internal structure and processing logic, and a configuration parameter structure designed according to the gateway configuration information is as follows:
as can be seen from the above table, in this embodiment, the configuration parameter structure includes a primary key, a listener array, a server routing array, an upstream service terminal address, and a unique identification code. Because the gateway dynamic configuration cache under the plurality of areas exists in the central control area, the area name is adopted for unique identification in the embodiment.
When designing the data body of the configuration parameters, the data body of the configuration parameters is divided into 4 components, namely a Listener array (Listener List), a service Route array (Route List), an upstream service array (Cluster List) and a terminal address array (Endpoint List) of the upstream service according to the request processing flow (Listener service- > Route service- > upstream discovery service (upstream service- > service terminal)), by referring to the internal structure and processing logic of the gateway.
In this embodiment, the gateway internal structure includes a monitoring service module, a routing service module, and an upstream discovery service module, and the monitoring service module, the routing service module, and the upstream discovery service module are used to provide four data resources of a corresponding monitoring discovery service, a corresponding routing discovery service, and a corresponding upstream service discovery service, so as to form a data body of the configuration parameter. The monitoring service module is used for receiving the service request of the downstream service and forwarding the received service request to the routing service module for processing. The route service module is used for carrying out upstream service address matching on the received service request and forwarding the matched service request to the upstream discovery service module. And the upstream discovery service module forwards the received service request to the corresponding service terminal according to the upstream service address, so as to realize service calling across network areas.
Further, in this embodiment, the listening service module is configured with a plurality of listeners, each listener corresponds to a port, and the listening service module listens for connection requests of different downstream services through the ports configured by the listeners, and then establishes connection with the corresponding downstream service through the acquired connection request to acquire a service request of the corresponding downstream service. And when the monitoring service module receives the service request of the downstream service through the monitor, filtering the received service request according to a preset access control rule set. If the received service request accords with the access control rule, forwarding the received service request to the routing service module for continuous processing. If the received service request does not accord with the access control rule, intercepting the received service request, and returning error prompt information to the corresponding downstream service.
In this embodiment, after receiving the service request forwarded by the monitoring service module, the routing service module performs search matching according to a preset routing rule, so as to perform upstream service address matching. If the received service request finds a matched routing rule, the matching of the upstream service address is performed according to the matched routing rule, and the matched service request is forwarded to the upstream discovery service module. If the received service request cannot find the matched routing rule, the corresponding service request is not forwarded, and error prompt information is returned to downstream service.
In this embodiment, after receiving the service request forwarded by the routing service module, the upstream discovery service module forwards the received service request to a service terminal in the service terminal list of the upstream service in a load balancing manner. If no service terminal exists in the upstream service, the corresponding service request is not forwarded, and error prompt information is returned to the downstream service.
Therefore, the embodiment designs the data body of the configuration parameters through the gateway internal structure and the processing logic, so as to store the dynamic configuration parameters of each area. In addition, in this embodiment, the dynamic configuration buffer of each region is essentially a memory snapshot, and as the data body changes, the dynamic configuration buffer may change and update at any time. Therefore, a UUID (unique identification code generated based on the current time, counter, and hardware identification (MAC address)) is also required to identify a dynamic configuration cache snapshot of a regional gateway over a period of time.
Step S3: judging whether the local dynamic configuration parameters of the corresponding regional gateway change according to the previous dynamic configuration parameters stored in the dynamic configuration caches of each region; if yes, writing the calculated current dynamic configuration parameters into a dynamic configuration buffer of the corresponding area; if not, continuing to calculate the current dynamic configuration parameters of each region at regular time according to the preset regular time calculation task.
In this embodiment, after the current dynamic configuration parameter is obtained through the calculation in the step S2, the current calculation result is further compared with the previous dynamic configuration parameter stored in the dynamic cache of the corresponding area, so as to determine whether to send the variation. If the current dynamic configuration parameters change, the calculated current dynamic configuration parameters are written into the dynamic configuration buffer of the corresponding area. If the current dynamic configuration parameters of the areas are not changed, the current dynamic configuration parameters of the areas are calculated according to the preset timing calculation task timing.
Step S4: monitoring whether each regional gateway sends a subscription inquiry request; if yes, pushing the calculated current dynamic configuration parameters to the corresponding regional gateway; if not, continuing to monitor whether each regional gateway transmits a subscription inquiry request.
In this embodiment, after the current dynamic configuration parameters obtained by calculation are written into the dynamic configuration buffers of the corresponding areas through the step S3, polling begins to monitor whether the subscription query request sent by the gateway on each area port. And if so, pushing the current dynamic configuration parameters to the corresponding regional gateway for updating. If not, the current dynamic configuration parameters of each area are calculated continuously according to the preset timing calculation task timing.
Specifically, in this embodiment, after the gateway of each area is started, an update gateway configuration buffer is created to store and manage local dynamic configuration parameters of the gateway of each area. The update gateway configuration buffer is connected with the corresponding dynamic configuration buffer in the central control area, and sends a subscription inquiry request to the central control area in a gRPC (global procedure for packet radio service) streaming subscription mode, so that local dynamic configuration parameters are updated.
gRPC is a high-performance and general open source RPC framework issued by Google, is developed based on the bottom HTTP/2 protocol standard and the protocol layer Protobuf serialization protocol, and provides a method for configuring and managing network equipment in support of multiple programming languages. Because the communication is an open source framework, two parties of communication can carry out secondary development, so the communication between the client and the server can be more focused on the content of a service layer, and the attention of the underlying communication realized by the gRPC framework is reduced. The flow of the gRPC request is as follows:
the first step: and writing a definition proto protocol file to respectively generate a client stub and a server skeleton.
And a second step of: the client (gRPC Stub) invokes the A method, initiating the RPC call.
And a third step of: object serialization compression (IDL) is performed on the request information using Protocol Buffer.
Fourth step: after receiving the request, the service end (gRPC Server) decodes the request body, processes the service logic and returns.
Fifth step: object serialization compression (IDL) is performed on the response result using Protocol Buffer.
Sixth step: the client receives the server response and decodes the request body. Callback the called A method, waking up the client call waiting for response (blocking) and returning the response result.
In this embodiment, when pushing the current dynamic configuration parameters to the regional gateway, the central control area needs to determine whether the subscription query request requires full pushing. And if so, pushing the data resources to the corresponding regional gateway by adopting a full-volume pushing mode. If not, adopting an incremental pushing mode to push the data resources to the corresponding regional gateway.
In addition, in this embodiment, when data pushing is performed, data resources of a corresponding type are required to be pushed according to subscription query request types sent by different regional gateways. The subscription query request types comprise a full-quantity independent gRPC flow subscription request, an incremental independent gRPC flow subscription request, a full-quantity aggregate ADS gRPC flow subscription request and an incremental aggregate ADS gRPC flow, and the central control area pushes corresponding data resources to the corresponding regional gateway according to different subscription query request types.
Specifically, in this embodiment, according to the designed configuration parameter structure, the types of data resources subscribed to the query are mainly classified into five types as follows, including: listening Discovery Service (LDS), route Discovery Service (RDS), upstream service discovery service (CDS), discovery service (EDS) of upstream service terminals, and Aggregated Discovery Service (ADS).
As can be seen from the above table, in this embodiment, the subscription query form of each regional gateway is mainly:
1. a full independent gpdc flow for each resource type, for example: full configuration of LDS, RDS, or CDS.
2. Incremental independent gRPC flows for each resource type, such as: incremental configuration of LDS, RDS, or CDS.
3. Aggregate ADS gRPC flows for all resource types, including LDS, RDS, CDS, and aggregate configuration for EDS.
4. Incremental aggregation ADS gRPC streams for all resource types, including LDS, RDS, CDS, and incremental configuration of EDS.
In addition, since the data resources of the ADS type (aggregate discovery service) aggregate LDS, RDS, CDS and the full configuration of EDS, according to the request processing flow (listener service- > route service- > upstream discovery service (upstream service- > service terminal)), in order to prevent uncertainty of arrival timing of the configuration of different data resource types from causing intermittent functional abnormality of the gateway, this embodiment sets a standardized ADS data resource update sequence rule for the ADS type data type:
1. if there is a CDS configuration update, the CDS update must always be pushed first.
2. The EDS configuration must be updated after the corresponding cluster CDS update, if any.
3. The LDS configuration must be updated after the corresponding CDS/EDS update, if any.
4. If the RDS configuration is updated, updating the LDS configuration; at the same time, RDS updates associated with newly added listeners must be completed at the end.
5. And finally, deleting the outdated CDS cluster and the related EDS service terminal.
In this embodiment, after each regional gateway sends a subscription query request to the central control area according to a timed subscription query task (for example, executed once every 5 minutes) to obtain the current dynamic configuration, the obtained current dynamic configuration parameter is compared with the update gateway configuration cache, so as to determine whether to update the local dynamic configuration parameter. And if the received dynamic configuration parameters are compared with the update gateway configuration cache and then change is found, updating the local dynamic configuration parameters. If no change is found after the received dynamic configuration parameters are compared with the updated gateway configuration cache, continuing to send a next round of subscription inquiry request.
In addition, in this embodiment, before updating the dynamic configuration parameters, it is further determined whether the acquired data resource type is an ADS aggregate data type. If yes, writing CDS data, EDS data, LDS data and RDS data into an update gateway configuration buffer in turn according to an ADS data resource update sequence rule, completing real-time effectiveness, and deleting outdated CDS clusters and related EDS service terminals. If not, the configuration data is written into the update gateway configuration buffer memory according to the corresponding data type, and the real-time effectiveness is completed.
There is also provided in this specification a computer readable medium storing computer program code which, when executed by a processor, implements a multi-network area gateway dynamic configuration management method as described above.
The present specification also provides a dynamic configuration management device for a multi-network area gateway, which is included in an instruction memory storing instructions executable by a processor, and a processor for executing the instructions in the instruction memory to implement the dynamic configuration management method for a multi-network area gateway as described above.
The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The various illustrative logical blocks, modules, and circuits described in connection with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
In one or more exemplary embodiments, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software as a computer program product, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a web site, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk (disk) and disc (disk) as used herein include Compact Disc (CD), laser disc, optical disc, digital Versatile Disc (DVD), floppy disk and blu-ray disc where disks (disk) usually reproduce data magnetically, while discs (disk) reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.

Claims (12)

1. The dynamic configuration management method for the multi-network regional gateway is characterized by comprising the following steps of:
creating corresponding dynamic configuration caches for the gateways in each area in the central control area according to the gateway configuration information of each area;
calculating current dynamic configuration parameters of each region at regular time according to a preset timing calculation task;
judging whether the local dynamic configuration parameters of the corresponding regional gateway change according to the previous dynamic configuration parameters stored in the dynamic configuration caches of each region; if yes, writing the calculated current dynamic configuration parameters into a dynamic configuration buffer of the corresponding area; if not, continuing to calculate the current dynamic configuration parameters of each region at regular time according to the preset regular time calculation task;
monitoring whether each regional gateway sends a subscription inquiry request; if yes, pushing the calculated current dynamic configuration parameters to the corresponding regional gateway; if not, continuing to monitor whether each regional gateway transmits a subscription inquiry request.
2. The method for dynamically configuring and managing a multi-network regional gateway according to claim 1, wherein the gateway configuration information includes a gateway internal structure and processing logic, and the method for dynamically configuring and managing a multi-network regional gateway sets a configuration parameter structure according to the internal structure and processing logic of each regional gateway for storing dynamic configuration parameters; the configuration parameter structure comprises a primary key, a listener array, a server route array, an upstream service terminal address and a unique identification code.
3. The method for dynamically configuring and managing a multi-network area gateway according to claim 2, wherein the gateway internal structure comprises a monitoring service module, a routing service module and an upstream discovery service module; wherein,
the monitoring service module is used for receiving the service request of the downstream service and forwarding the received service request to the routing service module for processing;
the routing service module is used for carrying out upstream service address matching on the received service request and forwarding the matched service request to the upstream discovery service module;
and the upstream discovery service module forwards the received service request to the corresponding service terminal according to the upstream service address, so as to realize service calling across network areas.
4. The method for dynamically configuring and managing a multi-network area gateway according to claim 3, wherein the monitoring service module is configured with a plurality of monitors, each monitor corresponds to a port, the monitoring service module monitors connection requests of different downstream services through the ports configured by the monitors, and then establishes connection with the corresponding downstream services through the acquired connection requests to acquire service requests of the corresponding downstream services.
5. The method for dynamically configuring and managing a multi-network regional gateway according to claim 4, wherein the monitoring service module filters the received service request according to a preset access control rule set after receiving the service request of the downstream service through the monitor; wherein,
if the received service request accords with the access control rule, forwarding the received service request to a routing service module for continuous processing;
if the received service request does not accord with the access control rule, intercepting the received service request, and returning error prompt information to the corresponding downstream service.
6. The method for dynamically configuring and managing the multi-network regional gateway according to claim 3, wherein the routing service module performs searching and matching according to a preset routing rule after receiving the service request forwarded by the monitoring service module, so as to perform upstream service address matching; wherein,
if the received service request finds a matched routing rule, performing upstream service address matching according to the matched routing rule, and forwarding the matched service request to an upstream discovery service module;
if the received service request cannot find the matched routing rule, the corresponding service request is not forwarded, and error prompt information is returned to downstream service.
7. The method for dynamically configuring and managing the multi-network regional gateway according to claim 3, wherein the upstream discovery service module receives the service request forwarded by the routing service module and forwards the received service request to a service terminal in a service terminal list of upstream services in a load balancing manner; if no service terminal exists in the upstream service, the corresponding service request is not forwarded, and error prompt information is returned to the downstream service.
8. The method for dynamically configuring and managing a plurality of regional gateways according to claim 2, wherein the method for dynamically configuring and managing a plurality of regional gateways is characterized in that an update gateway configuration buffer is respectively provided in each region for storing and managing local dynamic configuration parameters of each regional gateway; the update gateway configuration buffer is connected with the corresponding dynamic configuration buffer in the central control area, and sends a subscription inquiry request to the central control area in a gRPC (global procedure for packet radio service) streaming subscription mode, so that local dynamic configuration parameters are updated.
9. The method for dynamically configuring and managing the multiple network regional gateways according to claim 8, wherein the subscription query request types include a full-quantity independent gRPC flow subscription request, an incremental independent gRPC flow subscription request, a full-quantity aggregate ADS gRPC flow subscription request, and an incremental aggregate ADS gRPC flow, and the central control area pushes data resources of corresponding types according to subscription query request types sent by different regional gateways; wherein the data resources include a snoop discovery service, a route discovery service, an upstream service discovery service, and an aggregate discovery service.
10. The method for dynamically configuring and managing a multi-network area gateway according to claim 1, wherein each gateway compares the received dynamic configuration parameters with an updated gateway configuration cache after receiving the dynamic configuration parameters pushed by the central control area, so as to determine whether to update the local dynamic configuration parameters; wherein,
if the received dynamic configuration parameters are compared with the update gateway configuration cache and then change is found, the local dynamic configuration parameters are updated;
if no change is found after the received dynamic configuration parameters are compared with the updated gateway configuration cache, continuing to send a next round of subscription inquiry request.
11. A computer readable medium storing computer program code, which when executed by a processor implements the method of any one of claims 1-10.
12. A multi-network area gateway dynamic configuration management apparatus, comprising:
a memory for storing instructions executable by the processor; and
a processor for executing the instructions to implement the method of any one of claims 1-10.
CN202311708821.6A 2023-12-13 2023-12-13 Dynamic configuration management method for multi-network regional gateway Pending CN117527587A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311708821.6A CN117527587A (en) 2023-12-13 2023-12-13 Dynamic configuration management method for multi-network regional gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311708821.6A CN117527587A (en) 2023-12-13 2023-12-13 Dynamic configuration management method for multi-network regional gateway

Publications (1)

Publication Number Publication Date
CN117527587A true CN117527587A (en) 2024-02-06

Family

ID=89762735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311708821.6A Pending CN117527587A (en) 2023-12-13 2023-12-13 Dynamic configuration management method for multi-network regional gateway

Country Status (1)

Country Link
CN (1) CN117527587A (en)

Similar Documents

Publication Publication Date Title
CN116057924B (en) Methods, systems, and computer readable media for providing network function discovery service enhancements
EP3962002B1 (en) Communication optimization systems of blockchain network, registration methods and message forwarding methods
US8306979B2 (en) Service query, selection, routing and propagation
RU2420898C2 (en) Optimising communication using scalable peer groups
US8582469B2 (en) Peer-to-peer network including routing protocol enhancement
US20170111476A1 (en) Dynamic Application Programming Interface Builder
US9071512B2 (en) Methods, systems, and computer readable media for distributing diameter network management information
US9323587B2 (en) Method and system for automatic detecting and resolving APIs
WO2021254331A1 (en) Resource management method and system, proxy server, and storage medium
US11057479B1 (en) Contextual routing configuration and service naming for multi-cluster service mesh
US20150085865A1 (en) Method and system for dynamically allocating services for subscribers data traffic
US20120191769A1 (en) Site-aware distributed file system access from outside enterprise network
TW201724001A (en) System and method for acquiring, processing and updating global information
US9760370B2 (en) Load balancing using predictable state partitioning
JP2024524536A (en) Method and apparatus for instantiating an edge application server - Patents.com
CN114374743B (en) Gateway routing rule generation method and system supporting multiple service discovery mechanisms
CN117527587A (en) Dynamic configuration management method for multi-network regional gateway
WO2017000669A1 (en) Centralised management control method, apparatus, and related device for domain name resource record caching
US11785102B1 (en) Methods, systems, and computer readable media for application programming interface (API) related groupings involving common application programming interface framework
US8743694B2 (en) Determination of bypass zones from network configuration settings
CN110557438B (en) Network content management method and block chain content network platform
CN110324425B (en) Hybrid cloud transaction route processing method and device
WO2018014972A1 (en) Devices and methods for software defined networks
US11709725B1 (en) Methods, systems, and computer readable media for health checking involving common application programming interface framework
WO2022213903A1 (en) Method and apparatus for processing information of edge configuration server, and communication device

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