Network element configuration change method, device, system, electronic equipment and storage medium

By storing and using sidecar containers to retrieve configuration change information in the etcd cluster, the problem of service interruption caused by network element configuration changes is solved, realizing dynamic configuration changes and service continuity of network elements.

CN115550170BActive Publication Date: 2025-12-30INSPUR COMM TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211059156.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2025-12-30
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

In existing technologies, changes to network element configurations can lead to interruptions in core network services, making it impossible to complete configuration changes without ensuring uninterrupted service continuity.

Method used

Configuration change information is generated by pre-set operation and maintenance components and stored in the etcd cluster. The side vehicle container is then used to retrieve and send the information to the target network element in the etcd cluster, thereby enabling dynamic configuration changes for the network element.

Benefits of technology

While ensuring uninterrupted service, dynamic configuration changes of network elements are enabled, improving operational efficiency and service continuity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115550170B_ABST
    Figure CN115550170B_ABST
Patent Text Reader

Abstract

The application provides a network element configuration change method, device, system, electronic equipment and storage medium, belongs to the cloud computing and communication technical field, and comprises the following steps: based on a target file, a target network element is configured by using a preset operation and maintenance component, configuration change information is generated, the configuration change information is stored into an etcd cluster by using the preset operation and maintenance component, the configuration change information is acquired in the etcd cluster by using a sidecar container, and the target network element is changed according to the configuration change information; the target network element and the sidecar container are deployed in the same application load. The network element configuration change method, device, system, electronic equipment and storage medium provided by the application store the information of the network element configuration change into the etcd cluster by calling the operation and maintenance component, and the information is called by using the sidecar container to perform hot updating on the network element, so that the dynamic configuration change of the network element is realized under the condition that the business continuity is not interrupted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of cloud computing and communication technology, and in particular to methods, apparatus, systems, electronic devices and storage media for changing network element configurations. Background Technology

[0002] Currently, cloud-native technologies have permeated various scenarios of Internet Technology (IT) and Communication Technology (CT).

[0003] In the CT scenario, operations such as maintenance, upgrades and changes to base stations and core networks bring significant benefits.

[0004] However, configuration changes to core network elements are all implemented through rebuilding, which causes service interruptions in the core network. Summary of the Invention

[0005] The network element configuration change method, apparatus, system, electronic device and storage medium provided by the present invention are used to solve the defects of the core network service interruption caused by network element configuration change in the prior art, and realize the automatic configuration change of network elements while ensuring service continuity.

[0006] This invention provides a method for changing network element configuration, including:

[0007] Based on the target file, the target network element is configured using preset operation and maintenance components, and configuration change information is generated;

[0008] The configuration change information is stored in the etcd cluster using the preset operation and maintenance components.

[0009] The sidecar container obtains the configuration change information in the etcd cluster so that the target network element can make configuration changes based on the configuration change information; the target network element and the sidecar container are deployed in the same application load.

[0010] According to a method for changing network element configuration provided by the present invention, the step of configuring the target network element based on a target file using preset operation and maintenance components to generate configuration change information includes:

[0011] The target file is received using the preset operation and maintenance component;

[0012] The target file is parsed using the preset operation and maintenance component to obtain the configuration file;

[0013] Based on the configuration file, the preset operation and maintenance components are used to make configuration changes to the target network element and generate the configuration change information.

[0014] According to a method for changing network element configuration provided by the present invention, the step of storing the configuration change information to the etcd cluster using the preset operation and maintenance component includes:

[0015] The configuration change information is converted into target key-value pairs using the preset operation and maintenance components.

[0016] The target key-value pairs are stored in the etcd cluster.

[0017] According to a method for changing network element configuration provided by the present invention, the step of obtaining the configuration change information from the etcd cluster using the sidecar container, so that the target network element can change its configuration according to the configuration change information, includes:

[0018] The sidecar container is used to retrieve the target key-value pair from the etcd cluster;

[0019] The sidecar container calls the interface of the target network element to retrieve the configuration change information from the target key-value pair;

[0020] The configuration change information is sent to the target network element using the sidecar container.

[0021] According to a method for changing network element configuration provided by the present invention, the step of obtaining the target key-value pair in the etcd cluster using the sidecar container includes:

[0022] The sidecar container is used to monitor the directory information of the etcd cluster;

[0023] If the directory information changes after the target key-value pair is stored in the etcd cluster, the sidecar container can be used to retrieve the target key-value pair from the etcd cluster.

[0024] According to a method for changing network element configuration provided by the present invention, the target network element is used to set parameters using the configuration change information;

[0025] And once the parameters of the target network element are set, an update prompt is generated.

[0026] The present invention also provides a network element configuration change device, comprising:

[0027] The configuration module is used to configure the target network element based on the target file and using preset operation and maintenance components, and generate configuration change information.

[0028] The storage module is used to store the configuration change information to the etcd cluster using the preset operation and maintenance components;

[0029] The acquisition module is used to obtain the configuration change information from the etcd cluster using the sidecar container, so that the target network element can make configuration changes according to the configuration change information; the target network element and the sidecar container are deployed in the same application load.

[0030] The present invention also provides a K8s system for executing the network element configuration change method as described above.

[0031] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the network element configuration change method as described above.

[0032] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the network element configuration change method as described above.

[0033] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the network element configuration change method as described above.

[0034] The network element configuration change method, device, system, electronic device and storage medium provided by the present invention store the network element configuration change information in the etcd cluster by calling the operation and maintenance component, and use the side vehicle container to retrieve the information to perform hot update of the network element, thereby realizing the dynamic configuration change of the network element while ensuring uninterrupted service. Attached Figure Description

[0035] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0036] Figure 1 This is one of the flowcharts illustrating the network element configuration change method provided by the present invention;

[0037] Figure 2 This is the second flowchart illustrating the network element configuration change method provided by the present invention;

[0038] Figure 3 This is a schematic diagram of the network element configuration change device provided by the present invention;

[0039] Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0040] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0041] Kubernetes (hereinafter referred to as K8s) is an open-source platform used to manage containerized applications on multiple hosts in a cloud platform. It enables automated deployment, scaling, and maintenance of container clusters.

[0042] Kubernetes enables rapid application deployment, rapid application scaling, and seamless integration with new application features, while also saving resources and optimizing hardware resource usage.

[0043] Kubernetes also has a number of features, including: collaborative work of multiple application workloads (hereinafter referred to as Pods), storage system mounting, application health checks, application instance replication, Pod auto-scaling / expansion, registration and discovery, load balancing, rolling updates, resource monitoring, log access, application debugging, and providing authentication and authorization.

[0044] The following is combined Figures 1 to 4 This invention describes the network element configuration change method, apparatus, system, electronic device, and storage medium provided by embodiments of the present invention.

[0045] The network element configuration change method provided in this embodiment of the invention can be executed by an electronic device or software, functional module, or functional entity within the electronic device capable of implementing the network element configuration change method. In this embodiment, the electronic device includes, but is not limited to, a Kubernetes (K8s) system. It should be noted that the aforementioned execution entity does not constitute a limitation of this invention.

[0046] Figure 1 This is one of the flowcharts illustrating the network element configuration change method provided by the present invention, such as... Figure 1 As shown, including but not limited to the following steps:

[0047] First, in step S1, based on the target file, the target network element is configured using preset operation and maintenance components to generate configuration change information.

[0048] The target file is a command to configure the target network element, or a configuration file that conforms to the Network Configuration Protocol (NETCONF). It can be issued by the northbound interface of the command-line interface (CLI) of the preset operation and maintenance component. The northbound interface can include: the Representational State Transfer Application Programming Interface (REST API) interface or the NETCONF interface.

[0049] The target network element can be a cloud-native network element of the 5G core network, such as a User Plane Function (UPF) network element or an Access and Mobility Management Function (AMF) network element. In the subsequent embodiments of this invention, the updating of the UPF network element is used as an example for illustration, which is not considered as a limitation on the scope of protection of this invention.

[0050] Set up an open-source cloud computing management platform (OpenStack) environment on a physical machine, and create multiple virtual machine nodes in the OpenStack environment through the Container Cluster Management (Cloud Controller Manager, CCM) component, configuring domain names, networks, etc. for each virtual machine node.

[0051] A multi-node Kubernetes cluster is deployed based on multiple virtual machine nodes to build a Kubernetes system. The master, etcd, and worker roles are set on the same node, realizing the unification of master and worker node roles. The virtual machine nodes can be set to three, and their central processing unit (CPU), memory, disk, and other metrics are consistent with the Kubernetes system.

[0052] The Kubernetes system deploys UPF network elements, an Elastic Load Balance (ELB) cluster with master-slave failover, a Redis cluster, operation and maintenance components, and common components. The target network elements are deployed in the Kubernetes cluster in the form of Pods. The operation and maintenance components include a dynamic configuration change (dcc) component, and the common components include an etcd cluster and a Kafka cluster.

[0053] The default operation and maintenance component can be the DCC component, which is deployed in the form of Pods in the Kubernetes cluster. The DCC component depends on the distributed key-value store system (etcd) cluster and the Kafka cluster.

[0054] The components that UPF network elements rely on include highly reliable Redis clusters and ELB clusters.

[0055] Specifically, after receiving the target file using the northbound interface of the DCC component, the K8s system parses the target file and, based on the parsed configuration file, calls the DCC component to change the interface status of the UPF network element or configure the interface Internet Protocol (IP), generating configuration change information for the UPF network element.

[0056] Furthermore, in step S2, the configuration change information is stored in the etcd cluster using the preset operation and maintenance component.

[0057] Specifically, the Kubernetes system uses the dcc component to convert configuration change information into target key-value pairs in the form of Config Map key-value pairs, and stores the target key-value pairs in the etcd cluster, which will cause changes to the configuration-related data in the / upf-interfaces / eth0 / status directory in the etcd cluster.

[0058] Furthermore, in step S3, the sidecar container obtains the configuration change information from the etcd cluster so that the target network element can change its configuration according to the configuration change information; the target network element and the sidecar container are deployed in the same application load.

[0059] Inside the Pod of a UPF network element, a sidecar container cim runs in the sidecar pattern. cim configures the UPF network element to connect to the ELB cluster, Redis cluster, etcd cluster, and Kafka cluster.

[0060] The sidecar container CIM is used to monitor the etcd cluster. When it detects that the configuration-related data in the / upf-interfaces / eth0 / status directory in the etcd cluster has changed, it uses CIM to obtain the latest changed Config Map key-value pair, i.e., the target key-value pair. CIM calls the RESTful API interface exposed by the UPF network element to extract the configuration change information in the target key-value pair and sends it to port 8800 of the UPF network element.

[0061] After receiving configuration change information, the UPF network element modifies its IP, port, link, session, etc. according to the configuration change information to perform parameter configuration. After the parameter configuration is completed, the UPF network element completes the parameter hot update, thereby realizing the configuration change of the UPF network element.

[0062] The network element configuration change method provided by this invention stores the network element configuration change information in the etcd cluster by calling the operation and maintenance component, and uses the sidecar container to retrieve the information to perform hot updates on the network element, thereby realizing dynamic configuration changes of the network element while ensuring uninterrupted service.

[0063] Optionally, the step of configuring the target network element using preset operation and maintenance components based on the target file and generating configuration change information includes:

[0064] The target file is received using the preset operation and maintenance component;

[0065] The target file is parsed using the preset operation and maintenance component to obtain the configuration file;

[0066] Based on the configuration file, the preset operation and maintenance components are used to make configuration changes to the target network element and generate the configuration change information.

[0067] Specifically, the target file is received using the northbound interface of the DCC component, and the DCC component is used to parse the target file. Based on the parsed configuration file, the interface status is configured or the Internet Protocol (IP) configuration is changed to generate configuration change information for the UPF network element.

[0068] According to the network element configuration change method provided by the present invention, the target network element is configured by calling a preset operation and maintenance component, thereby providing a basis for the network element's own parameter configuration.

[0069] Optionally, storing the configuration change information in the etcd cluster using the preset operation and maintenance component includes:

[0070] The configuration change information is converted into target key-value pairs using the preset operation and maintenance components.

[0071] The target key-value pairs are stored in the etcd cluster.

[0072] The dcc component is used to extract the fields from the configuration change information and convert them into target key-value pairs in the form of Config Map key-value pairs. The target key-value pairs are then stored in the etcd cluster. At this point, the configuration-related data in the / upf-interfaces / eth0 / status directory of the etcd cluster changes.

[0073] According to the network element configuration change method provided by the present invention, configuration change information is transmitted by calling a preset operation and maintenance component, thereby providing a basis for the network element's own configuration.

[0074] Optionally, the step of using the sidecar container to obtain the configuration change information in the etcd cluster, so that the target network element can change its configuration according to the configuration change information, includes:

[0075] The sidecar container is used to retrieve the target key-value pair from the etcd cluster;

[0076] The sidecar container calls the interface of the target network element to retrieve the configuration change information from the target key-value pair;

[0077] The configuration change information is sent to the target network element using the sidecar container.

[0078] Optionally, obtaining the target key-value pair from the etcd cluster using the sidecar container includes:

[0079] The sidecar container is used to monitor the directory information of the etcd cluster;

[0080] If the directory information changes after the target key-value pair is stored in the etcd cluster, the sidecar container can be used to retrieve the target key-value pair from the etcd cluster.

[0081] The directory information can be configuration-related data for the / upf-interfaces / eth0 / status directory in the etcd cluster.

[0082] The sidecar container cim inside the Pod of the UPF network element is used to monitor the etcd cluster. When it detects that the configuration-related data in the / upf-interfaces / eth0 / status directory in the etcd cluster has changed, it uses cim to obtain the latest changed Config Map key-value pair, i.e., the target key-value pair. cim calls the RESTful API interface exposed by the UPF network element to extract the configuration change information in the target key-value pair and send it to port 8800 of the UPF network element.

[0083] According to the network element configuration change method provided by the present invention, the key-value pairs that cause changes in the etcd cluster are retrieved through the sidecar container, and the configuration change information extracted from the key-value pairs is sent to the network element whose configuration needs to be changed, thereby providing a basis for the configuration change of the network element.

[0084] Optionally, the target network element is used to set parameters using the configuration change information;

[0085] And once the parameters of the target network element are set, an update prompt is generated.

[0086] The update notification is used to indicate that the UPF network element has completed a hot parameter update.

[0087] After receiving configuration change information, the UPF network element modifies its IP, port, link, session, etc. according to the configuration change information to perform parameter configuration. After the parameter configuration is completed, the UPF network element completes hot parameter update and generates update prompt, thereby realizing the configuration change of the UPF network element.

[0088] According to the network element configuration change method provided by the present invention, the network element receives configuration change information and then realizes dynamic self-parameter configuration and update of the network element while ensuring uninterrupted service.

[0089] Figure 2 This is the second flowchart illustrating the network element configuration change method provided by the present invention, as follows: Figure 2 As shown, it includes:

[0090] Step 1: Prepare the physical machine environment and deploy a multi-node, highly available OpenStack environment;

[0091] Step 2: Based on the OpenStack environment, create 3 virtual machine nodes, configure a domain name, network, etc. for each virtual machine node, and deploy a Kubernetes cluster on the 3 virtual machine nodes;

[0092] Step 3: Deploy UPF network elements, ELB, Redis, dcc, etcd, Kafka, and other components in the K8s system;

[0093] Step 4: The CIM sidecar container runs inside the UPF network element to monitor the etcd cluster;

[0094] Step 5: Receive the target file through the CLI northbound interface of the DCC component, parse the target file, set the interface status of the UPF network element, and generate configuration change information.

[0095] Step 6: The dcc component converts the configuration change information into Config Map key-value pairs and stores them in the etcd cluster;

[0096] Step 7: CIM calls the RESTful API exposed by the UPF network element to configure the interface;

[0097] Step 8: The UPF network element completes the parameter configuration and returns the logical value true;

[0098] Step 9: The UPF network element completes the hot update process.

[0099] According to the network element configuration change method provided by the present invention, the network element configuration change information is stored in the etcd cluster by calling the operation and maintenance component, and the information is retrieved by the sidecar container to perform hot update of the network element, thereby realizing dynamic configuration change of the network element while ensuring uninterrupted service.

[0100] The network element configuration change device provided by the present invention is described below. The network element configuration change device described below can be referred to in correspondence with the network element configuration change method described above.

[0101] Figure 3 This is a schematic diagram of the network element configuration change device provided by the present invention, as shown below. Figure 3 As shown, it includes:

[0102] Configuration module 301 is used to configure target network elements based on target files and using preset operation and maintenance components, and generate configuration change information.

[0103] Storage module 302 is used to store the configuration change information to the etcd cluster using the preset operation and maintenance components;

[0104] The acquisition module 303 is used to acquire the configuration change information in the etcd cluster using the sidecar container, so that the target network element can make configuration changes according to the configuration change information; the target network element and the sidecar container are deployed in the same application load.

[0105] First, the configuration module 301 configures the target network element based on the target file using preset operation and maintenance components, and generates configuration change information.

[0106] The target file is a command to configure the target network element, or a configuration file that conforms to the Network Configuration Protocol (NETCONF). It can be issued by the northbound interface of the command-line interface (CLI) of the preset operation and maintenance component. The northbound interface can include: the Representational State Transfer Application Programming Interface (REST API) interface or the NETCONF interface.

[0107] The target network element can be a cloud-native network element of the 5G core network, such as a User Plane Function (UPF) network element or an Access and Mobility Management Function (AMF) network element. In the subsequent embodiments of this invention, the updating of the UPF network element is used as an example for illustration, which is not considered as a limitation on the scope of protection of this invention.

[0108] Set up an open-source cloud computing management platform (OpenStack) environment on a physical machine, and create multiple virtual machine nodes in the OpenStack environment through the Container Cluster Management (Cloud Controller Manager, CCM) component, configuring domain names, networks, etc. for each virtual machine node.

[0109] A multi-node Kubernetes cluster is deployed based on multiple virtual machine nodes to build a Kubernetes system. The master, etcd, and worker roles are set on the same node, realizing the unification of master and worker node roles. The virtual machine nodes can be set to three, and their CPU, memory, disk, and other metrics are consistent with the Kubernetes system.

[0110] The Kubernetes system deploys UPF network elements, an Elastic Load Balance (ELB) cluster with master-slave failover, a Redis cluster, operation and maintenance components, and common components. The target network elements are deployed in the Kubernetes cluster in the form of Pods. The operation and maintenance components include a dynamic configuration change (dcc) component, and the common components include an etcd cluster and a Kafka cluster.

[0111] The default operation and maintenance component can be the DCC component, which is deployed in the form of Pods in the Kubernetes cluster. The DCC component depends on the distributed key-value store system (etcd) cluster and the Kafka cluster.

[0112] The components that UPF network elements rely on include highly reliable Redis clusters and ELB clusters.

[0113] Specifically, after receiving the target file using the northbound interface of the DCC component, the K8s system parses the target file and, based on the parsed configuration file, calls the DCC component to change the interface status of the UPF network element or configure the interface Internet Protocol (IP), generating configuration change information for the UPF network element.

[0114] Furthermore, the storage module 302 uses the preset operation and maintenance components to store the configuration change information to the etcd cluster.

[0115] Specifically, the Kubernetes system uses the dcc component to convert configuration change information into target key-value pairs in the form of Config Map key-value pairs, and stores the target key-value pairs in the etcd cluster, which will cause changes to the configuration-related data in the / upf-interfaces / eth0 / status directory in the etcd cluster.

[0116] Furthermore, the acquisition module 303 uses the sidecar container to obtain the configuration change information in the etcd cluster, so that the target network element can change its configuration according to the configuration change information; the target network element and the sidecar container are deployed in the same application load.

[0117] Inside the Pod of a UPF network element, a sidecar container cim runs in the sidecar pattern. cim configures the UPF network element to connect to the ELB cluster, Redis cluster, etcd cluster, and Kafka cluster.

[0118] The sidecar container CIM is used to monitor the etcd cluster. When it detects that the configuration-related data in the / upf-interfaces / eth0 / status directory in the etcd cluster has changed, it uses CIM to obtain the latest changed Config Map key-value pair, i.e., the target key-value pair. CIM calls the RESTful API interface exposed by the UPF network element to extract the configuration change information in the target key-value pair and sends it to port 8800 of the UPF network element.

[0119] After receiving configuration change information, the UPF network element modifies its IP, port, link, session, etc. according to the configuration change information to perform parameter configuration. After the parameter configuration is completed, the UPF network element completes the parameter hot update, thereby realizing the configuration change of the UPF network element.

[0120] The network element configuration change device provided by this invention stores network element configuration change information in the etcd cluster by calling the operation and maintenance component, and uses the sidecar container to retrieve the information to perform hot updates on the network element, thereby realizing dynamic configuration changes of the network element while ensuring uninterrupted service.

[0121] On the other hand, the present invention also provides a K8s system capable of executing the network element configuration change methods provided by the above methods, specifically including:

[0122] First, the K8s system configures the target network element based on the target file using preset operation and maintenance components, and generates configuration change information.

[0123] The target file is a command to configure the target network element, or a configuration file that conforms to the Network Configuration Protocol (NETCONF). It can be issued by the northbound interface of the command-line interface (CLI) of the preset operation and maintenance component. The northbound interface can include: the Representational State Transfer Application Programming Interface (REST API) interface or the NETCONF interface.

[0124] The target network element can be a cloud-native network element of the 5G core network, such as a User Plane Function (UPF) network element or an Access and Mobility Management Function (AMF) network element. In the subsequent embodiments of this invention, the updating of the UPF network element is used as an example for illustration, which is not considered as a limitation on the scope of protection of this invention.

[0125] Set up an open-source cloud computing management platform (OpenStack) environment on a physical machine, and create multiple virtual machine nodes in the OpenStack environment through the Container Cluster Management (Cloud Controller Manager, CCM) component, configuring domain names, networks, etc. for each virtual machine node.

[0126] A multi-node Kubernetes cluster is deployed based on multiple virtual machine nodes to build a Kubernetes system. The master, etcd, and worker roles are set on the same node, realizing the unification of master and worker node roles. The virtual machine nodes can be set to three, and their CPU, memory, disk, and other metrics are consistent with the Kubernetes system.

[0127] The Kubernetes system deploys UPF network elements, an Elastic Load Balance (ELB) cluster with master-slave failover, a Redis cluster, operation and maintenance components, and common components. The target network elements are deployed in the Kubernetes cluster in the form of Pods. The operation and maintenance components include a dynamic configuration change (dcc) component, and the common components include an etcd cluster and a Kafka cluster.

[0128] The default operation and maintenance component can be the DCC component, which is deployed in the form of Pods in the Kubernetes cluster. The DCC component depends on the distributed key-value store system (etcd) cluster and the Kafka cluster.

[0129] The components that UPF network elements rely on include highly reliable Redis clusters and ELB clusters.

[0130] Specifically, after receiving the target file using the northbound interface of the DCC component, the K8s system parses the target file and, based on the parsed configuration file, calls the DCC component to change the interface status of the UPF network element or configure the interface Internet Protocol (IP), generating configuration change information for the UPF network element.

[0131] Furthermore, the K8s system uses the preset operation and maintenance components to store the configuration change information in the etcd cluster.

[0132] Specifically, the Kubernetes system uses the dcc component to convert configuration change information into target key-value pairs in the form of Config Map key-value pairs, and stores the target key-value pairs in the etcd cluster, which will cause changes to the configuration-related data in the / upf-interfaces / eth0 / status directory in the etcd cluster.

[0133] Furthermore, the K8s system utilizes the sidecar container to obtain the configuration change information in the etcd cluster, so that the target network element can make configuration changes based on the configuration change information; the target network element and the sidecar container are deployed in the same application load.

[0134] Inside the Pod of a UPF network element, a sidecar container cim runs in the sidecar pattern. cim configures the UPF network element to connect to the ELB cluster, Redis cluster, etcd cluster, and Kafka cluster.

[0135] The sidecar container CIM is used to monitor the etcd cluster. When it detects that the configuration-related data in the / upf-interfaces / eth0 / status directory in the etcd cluster has changed, it uses CIM to obtain the latest changed Config Map key-value pair, i.e., the target key-value pair. CIM calls the RESTful API interface exposed by the UPF network element to extract the configuration change information in the target key-value pair and sends it to port 8800 of the UPF network element.

[0136] After receiving configuration change information, the UPF network element modifies its IP, port, link, session, etc. according to the configuration change information to perform parameter configuration. After the parameter configuration is completed, the UPF network element completes the parameter hot update, thereby realizing the configuration change of the UPF network element.

[0137] The K8s system provided by this invention stores network element configuration change information in the etcd cluster by calling the operation and maintenance component, and uses the sidecar container to retrieve the information to perform hot updates on the network elements, thereby achieving dynamic configuration changes of network elements while ensuring uninterrupted service.

[0138] Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention, such as... Figure 4 As shown, the electronic device may include a processor 410, a communications interface 420, a memory 430, and a communication bus 440, wherein the processor 410, communications interface 420, and memory 430 communicate with each other via the communication bus 440. The processor 410 can call logical instructions in the memory 430 to execute a network element configuration change method. This method includes: configuring the target network element based on a target file using a preset maintenance component to generate configuration change information; storing the configuration change information in an etcd cluster using the preset maintenance component; retrieving the configuration change information from the etcd cluster using a sidecar container, so that the target network element can change its configuration according to the configuration change information; the target network element and the sidecar container are deployed in the same application load.

[0139] Furthermore, the logical instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0140] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the network element configuration change method provided by the above methods. The method includes: configuring the target network element based on a target file using a preset operation and maintenance component to generate configuration change information; storing the configuration change information in an etcd cluster using the preset operation and maintenance component; obtaining the configuration change information from the etcd cluster using a sidecar container so that the target network element can change its configuration according to the configuration change information; and deploying the target network element and the sidecar container in the same application load.

[0141] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements a network element configuration change method provided by the above methods. The method includes: configuring a target network element based on a target file using a preset operation and maintenance component to generate configuration change information; storing the configuration change information in an etcd cluster using the preset operation and maintenance component; retrieving the configuration change information from the etcd cluster using a sidecar container, so that the target network element can change its configuration according to the configuration change information; the target network element and the sidecar container are deployed in the same application load.

[0142] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0143] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0144] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method of changing a configuration of a network element, characterized by, The method comprises the following steps: based on the target file, using a preset operation and maintenance component to configure the target network element, and generating configuration change information; using the preset operation and maintenance component to store the configuration change information to an etcd cluster, comprising: using the preset operation and maintenance component to convert the configuration change information into target key-value pairs; storing the target key-value pairs into the etcd cluster; using a sidecar container to obtain the configuration change information in the etcd cluster, so that the target network element performs configuration change according to the configuration change information, comprising: using the sidecar container to obtain the target key-value pairs in the etcd cluster; using the sidecar container to call the interface of the target network element, and calling the configuration change information in the target key-value pairs; using the sidecar container to send the configuration change information to the target network element; the using the sidecar container to obtain the target key-value pairs in the etcd cluster, comprising: using the sidecar container to monitor the directory information of the etcd cluster; after storing the target key-value pairs into the etcd cluster, if the directory information changes, using the sidecar container to obtain the target key-value pairs in the etcd cluster; the target network element and the sidecar container are deployed in the same application load.

2. The method of claim 1, wherein, the method comprises the following steps: based on the target file, using a preset operation and maintenance component to configure the target network element, and generating configuration change information, comprising: using the preset operation and maintenance component to receive the target file; using the preset operation and maintenance component to parse the target file and obtain a configuration file; 3. The method of claim 1, wherein, based on the configuration file, using the preset operation and maintenance component to configure the target network element and generate the configuration change information. the target network element is used to set parameters by using the configuration change information; 4. A network element configuration changing apparatus characterized by comprising: and generating an update prompt if the parameter setting of the target network element is completed. The method comprises the following steps: a configuration module is used to configure the target network element by using a preset operation and maintenance component based on a target file, and generate configuration change information; a storage module is used to store the configuration change information to an etcd cluster by using the preset operation and maintenance component, comprising: using the preset operation and maintenance component to convert the configuration change information into target key-value pairs; storing the target key-value pairs into the etcd cluster; an acquisition module is used to obtain the configuration change information in the etcd cluster by using a sidecar container, so that the target network element performs configuration change according to the configuration change information, comprising: using the sidecar container to obtain the target key-value pairs in the etcd cluster; using the sidecar container to call the interface of the target network element, and calling the configuration change information in the target key-value pairs; using the sidecar container to send the configuration change information to the target network element; the using the sidecar container to obtain the target key-value pairs in the etcd cluster, comprising: using the sidecar container to monitor the directory information of the etcd cluster; after storing the target key-value pairs into the etcd cluster, if the directory information changes, using the sidecar container to obtain the target key-value pairs in the etcd cluster; After storing the target key-value pair into the etcd cluster, in case that the directory information changes, the target key-value pair is obtained in the etcd cluster by the sidecar container; The target network element and the sidecar container are deployed in the same application load.

5. A K8s system, characterized in that, A computer program product for implementing the network element configuration changing method according to any one of claims 1-3.

6. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, A processor for implementing the network element configuration changing method according to any one of claims 1-3 when executing the program.

7. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program for implementing the network element configuration changing method according to any one of claims 1-3 when executed by a processor.

Citation Information

Patent Citations

  • System configuration method, device and equipment based on sidecar mode and storage medium

    CN114942797A