CN111857775A - Network element upgrading method and device, electronic equipment and storage medium - Google Patents
Network element upgrading method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111857775A CN111857775A CN202010632831.6A CN202010632831A CN111857775A CN 111857775 A CN111857775 A CN 111857775A CN 202010632831 A CN202010632831 A CN 202010632831A CN 111857775 A CN111857775 A CN 111857775A
- Authority
- CN
- China
- Prior art keywords
- network element
- upgrading
- module
- upgrade
- upgraded
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 238000013508 migration Methods 0.000 claims abstract description 31
- 230000005012 migration Effects 0.000 claims abstract description 31
- 238000012545 processing Methods 0.000 claims abstract description 20
- 238000012546 transfer Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 4
- 238000011084 recovery Methods 0.000 claims 1
- 238000004891 communication Methods 0.000 abstract description 6
- 102100021662 Baculoviral IAP repeat-containing protein 3 Human genes 0.000 description 19
- 101000896224 Homo sapiens Baculoviral IAP repeat-containing protein 3 Proteins 0.000 description 19
- 230000006870 function Effects 0.000 description 17
- SPBWHPXCWJLQRU-FITJORAGSA-N 4-amino-8-[(2r,3r,4s,5r)-3,4-dihydroxy-5-(hydroxymethyl)oxolan-2-yl]-5-oxopyrido[2,3-d]pyrimidine-6-carboxamide Chemical compound C12=NC=NC(N)=C2C(=O)C(C(=O)N)=CN1[C@@H]1O[C@H](CO)[C@@H](O)[C@H]1O SPBWHPXCWJLQRU-FITJORAGSA-N 0.000 description 11
- 102100021677 Baculoviral IAP repeat-containing protein 2 Human genes 0.000 description 9
- 101000896157 Homo sapiens Baculoviral IAP repeat-containing protein 2 Proteins 0.000 description 9
- 230000008569 process Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 238000013461 design Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 239000000284 extract Substances 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention relates to the technical field of communication, and discloses a network element upgrading method, a network element upgrading device, electronic equipment and a storage medium. The network element upgrading method in the invention comprises the following steps: acquiring an upgrading instruction of a network element module to be upgraded, wherein the network element module to be upgraded is arranged in a service framework and comprises at least 2 network element units of the same type; the following processing is carried out for each network element unit: and sending a service migration instruction to the load balancer according to the upgrading instruction so that the load balancer migrates the services of the network element unit to other network element units of the same category, and upgrading the network element unit by the upgrading agent after the upgrading agent corresponding to the network element unit determines that the services are migrated completely. By adopting the embodiment, the network element can be efficiently upgraded, and the complexity of network element upgrading is reduced.
Description
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method and a device for upgrading a network element, electronic equipment and a storage medium.
Background
A Service-based Architecture (SBA) is an important feature of a fifth-generation mobile communication system (5G), and network functions are divided into a plurality of reusable services by combining the characteristics and technical development trends of networks of mobile core networks. The "services" are communicated by using a lightweight interface, and the purpose thereof is to realize the high efficiency, software and opening of a 5G system. The cloud-based micro-service framework is designed based on the cloud-based native framework, and the micro-service concept in the IT field is used for reference. A conventional network element is composed of one or more machine disks or machine frames, and can independently perform a certain transmission function. Network elements in the SBA architecture adopt a tightly coupled black box design, Network function Virtualization (NFV for short) decouples Network function software from black box devices, fine-granularities of the Network elements are divided into a plurality of modularized components, and integration is achieved through Application Programming interfaces (API for short), so that overall agility and elasticity of Application development are improved.
The inventors found that at least the following problems exist in the related art: the upgrading of the traditional network element equipment has the problem that hardware equipment is changed, so that the network element is very complicated to upgrade.
Disclosure of Invention
An object of embodiments of the present invention is to provide a method, an apparatus, an electronic device, and a storage medium for network element upgrade, so that a network element can be upgraded efficiently, and the complexity of network element upgrade is reduced.
In order to solve the above technical problem, an embodiment of the present invention provides a method for upgrading a network element, including: acquiring an upgrading instruction of a network element module to be upgraded, wherein the network element module to be upgraded comprises at least 2 network element units of the same category; the following processing is carried out for each network element unit: and sending a service migration instruction to the load balancer according to the upgrading instruction so that the load balancer migrates the services of the network element unit to other network element units of the same category, and upgrading the network element unit by the upgrading agent after the upgrading agent corresponding to the network element unit determines that the services are migrated completely.
The embodiment of the invention also provides a method for upgrading the network element, wherein the network element module to be upgraded comprises at least two network element units of the same type, each network element unit is provided with a corresponding upgrading agent, and the method for upgrading the network element is applied to the upgrading agents and comprises the following steps: determining the upgrading information of the network element unit according to the upgrading instruction of the network element module to be upgraded; and after the completion of the service migration of the network element unit is determined, upgrading the network element unit according to the upgrading information.
The embodiment of the present invention further provides a device for upgrading a network element, including: the device comprises an acquisition module and a processing module; the acquisition module is used for acquiring an upgrading instruction of the network element module to be upgraded, and the network element module to be upgraded comprises at least 2 network element units of the same category; the processing module is used for performing the following processing for each network element unit: and sending a service migration instruction to the load balancer according to the upgrading instruction so that the load balancer migrates the services of the network element unit to other network element units of the same category, and upgrading the network element unit by the upgrading agent after the upgrading agent corresponding to the network element unit determines that the services are migrated completely.
The embodiment of the present invention further provides a device for upgrading a network element, including: a determining module and an upgrading module; the determining module is used for determining the upgrading information of the network element units according to the upgrading instruction of the network element module to be upgraded, wherein the network element module to be upgraded comprises at least two network element units of the same category; and the upgrading module is used for upgrading the network element unit according to the upgrading information and upgrading the network element unit according to the upgrading information after the service of the network element unit is determined to be completely migrated.
An embodiment of the present invention also provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method for network element upgrade of the first type or to perform the method for network element upgrade of the second type.
Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which when executed by a processor implements the first method for network element upgrade or implements another method for network element upgrade.
Compared with the prior art, the network element module to be upgraded comprises at least two network element units of the same type, the upgrading operation is respectively carried out on each network element unit, the service on the current network element unit is transferred to other network elements of the same type by sending a service migration instruction to the load balancer, an additional backup network element module is not required to be reset, the service flow of the network element module to be upgraded is backed up, and the cost and the complexity of network element upgrading are reduced; meanwhile, the service of the network element unit is migrated before upgrading, so that the problem of service interruption in the upgrading process is solved, the network element equipment does not need to be modified due to the adoption of a software upgrading mode, the difficulty of network element upgrading is reduced, the network element is not needed to be upgraded on site manually due to the adoption of software upgrading, and the upgrading efficiency is improved.
In addition, obtaining an upgrade instruction of the network element module to be upgraded includes: receiving an upgrading instruction issued by a network management system of the centralized network element; or; and generating an upgrading instruction of the network element module to be upgraded. The upgrading instruction of the network element module to be upgraded can be acquired in two modes, and under different use scenes, the acquisition mode suitable for the current environment can be adopted, so that the efficiency of acquiring the upgrading instruction is improved, and the mode of acquiring the upgrading instruction is more flexible.
In addition, before generating the upgrade instruction of the network element module to be upgraded, the method further comprises: receiving a registration request of the newly added network element module, wherein the registration request comprises the version information of the newly added network element module; if the version information is determined to be the latest version information, registering a newly added network element module; and if the version information is determined to belong to the old version information, determining the newly added network element module as the network element module to be upgraded. When the version information is detected to belong to the old version information, the newly added network element is determined to be the network element module to be upgraded, so that the network element module can be automatically upgraded without manual participation, and the network element upgrading efficiency is improved.
In addition, after determining that the network element unit completes upgrading, a traffic restoration instruction is sent to the load balancer, so that the load balancer transfers the migrated traffic back to the network element unit. And after the upgrade is finished, the migrated service is transferred back to the network element unit, so that the normal operation of the service after the upgrade is finished is ensured.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a schematic diagram of an SBA architecture in a network element upgrading method according to a first embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for upgrading a network element according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for upgrading a network element according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of a procedure for upgrading a network element according to a second embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for upgrading a network element according to a third embodiment of the present invention;
fig. 6 is a flowchart illustrating a method for upgrading a network element according to a fourth embodiment of the present invention;
fig. 7 is a block diagram illustrating an apparatus for upgrading a network element according to a fifth embodiment of the present invention;
fig. 8 is a block diagram illustrating an apparatus for upgrading a network element according to a sixth embodiment of the present invention;
fig. 9 is a block diagram of an electronic apparatus provided in a seventh embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
A first embodiment of the present invention relates to a method for upgrading a network element. The network element module in this embodiment is set on the SBA framework, and based on the SBA framework, the designed system for upgrading the network element includes: the system comprises a centralized network element network management system, a load balancer, a registration center and at least one network element module. To facilitate understanding of embodiments of the present invention, the SBA architecture is first described.
The centralized network element network management system is in communication connection with a registration center, the registration center is in communication connection with a load balancer, the load balancer is connected with each network element module in the SAB architecture, and the architecture of the SBA is shown in FIG. 1.
Since the SBA architecture virtualizes each function, the SBA architecture includes a plurality of network element systems, and each network element system has at least one network element module. Each network element module comprises at least 2 network element units of the same type, each network element unit is a network element component virtualized through network functions, in an SBA architecture, the network element units of the same type can realize the same service functions, and system files operated by the network element structures of the same type are the same. In order to efficiently reduce the damage when the upgrade error occurs, each network element unit is provided with one-to-one corresponding upgrade agents. The upgrade agent may be deployed in the network element module in the form of a virtual machine. In addition, as shown in fig. 1, the SBA architecture may further be provided with a file server, and the file server may be respectively connected to the centralized network element network management system and the upgrade agent of each network element unit. The file server may be used to store upgrade information, which may include system files or patch files to be upgraded.
It should be noted that the registry may be deployed in the network element system, or may be deployed outside the network element system. If the registry is deployed in the network element system, the registry can register each network element unit in the network element system, and if the registry is deployed outside the network element system, the registry can register and manage the network element units in the multiple network element systems, wherein the network element units have various forms, and can be application program interfaces with special functions or applications with special functions. In this example, the API is used as a network element unit to introduce the upgrading process for the network element module.
In this example, a registry is deployed in the network element system for registering and managing each network element unit in the network element system. The specific flow of the network element upgrading method is shown in fig. 2.
Step 101: and obtaining an upgrading instruction of the network element module to be upgraded, wherein the network element module to be upgraded comprises at least 2 network element units of the same category.
Specifically, the centralized network element management system is used for centrally managing each network element module and the registration center. The user can upload the upgrade information to the centralized network element network management system, and the upgrade information comprises: after the centralized element network management system receives the upgrade information, the upgraded system file or patch file configures corresponding version information for the received upgrade information, and stores the upgrade information and the corresponding version information in the centralized element network management system, such as in a database. After uploading the system file or the patch file to be upgraded, the user can set an upgrade scheme for the network element module to be upgraded according to actual needs, or the centralized network element management system can designate a corresponding upgrade scheme according to the network element module to be upgraded, wherein the upgrade scheme includes the upgraded system file or the patch file and corresponding version information. The centralized network element network management system sends an upgrading instruction to the registration center according to the upgrading scheme, the registration center receives the upgrading instruction sent by the centralized network element network management system, and simultaneously the centralized network element network management center sends upgrading information and corresponding version information to the file server, and the file server stores the version information corresponding to the upgrading information.
It should be noted that, because the version information of each network element unit in the same network element module is the same, the centralized network element network management system may send the upgrade instruction to the upgrade agent corresponding to each network element unit.
Step 102: the following processing is carried out for each network element unit: and sending a service migration instruction to the load balancer according to the upgrading instruction so that the load balancer migrates the services of the network element unit to other network element units of the same category, and upgrading the network element unit by the upgrading agent after the upgrading agent corresponding to the network element unit determines that the service migration is finished.
Specifically, each network element module includes at least 2 network element units, and upgrading the network element module requires upgrading each network element unit. The registry may discover the upgrade agent for each network element registered with the registry. The upgrading instruction comprises the following steps: version information, identification information of the network element module to be upgraded, and the like. The registry performs the following processing for each network element unit: and sending a service migration instruction to the load balancer according to the upgrading instruction, and migrating the service in the network element unit. For example, a network element module B to be upgraded includes two network element units, which are API1 and API2, respectively, if API2 is upgraded first, the registration center sends a service migration instruction for service migration to API2 to the load balancer, after receiving the service migration instruction for service in migration API2, the load balancer detects whether there is service traffic being processed in API2, if so, the load balancer may re-detect or wait to receive the prompt information sent by API2 after the service processing is completed after a preset time interval, and after detecting that there is no service processing or receiving the prompt information that the service processing is completed again, the load balancer transfers the subsequent service traffic to API1 of the same category to implement service migration. If the API2 is detected to have no service traffic being processed, the subsequent service traffic is directly transferred to the API1 of the same category, and the service migration is completed. It can be understood that if there are three network element units of the same category, the service of the network element unit to be upgraded can be transferred to any one of the other network element units of the same category.
After the API2 service migration is completed, after the upgrade agent corresponding to the API2 receives a service migration completion instruction sent by the load balancer, upgrade information is obtained according to the upgrade instruction, where the upgrade information includes: and storing the files to be upgraded or the patch files. If the file to be upgraded or the patch file is stored in the database of the network element module, the upgrade agent directly extracts the file to be upgraded or the patch file from the database of the network element module, and if the file to be upgraded or the patch file is stored in the file server, the file to be upgraded or the patch file can be downloaded from the file server according to the version information in the upgrade instruction. And the upgrading agent upgrades the network element unit according to the acquired upgrading information.
In an example, before the upgrade of the network element unit, the upgrade agent corresponding to the network element unit may backup the system file in the network element unit, and after the backup is completed, upgrade the network element unit, and if the upgrade fails, the upgrade agent will read the backed-up system file again and rerun the backed-up system file.
In one example, after determining that the network element is upgraded, a traffic restoration instruction is sent to the load balancer to divert migrated traffic back to the network element by the load balancer. For example, if the upgrade to API2 is completed, the registry sends a traffic restoration instruction to the load balancer, which, upon receiving the traffic restoration instruction, transfers subsequent traffic back to API 2.
It can be understood that after the upgrade is completed for each network element in the network element module, the upgrade for the network element module is finished.
The whole network element upgrading process is described below with reference to fig. 1:
the centralized network element network management system executes S0, sends the upgrade information and the version information to the file server, and the file server stores the upgrade information and the version information; the centralized network element network management system executes the step S1, issues an upgrading instruction to the registration center, and simultaneously executes the step S2, and sends the upgrading instruction to an upgrading agent of the API 2; after receiving the upgrade instruction, the upgrade agent of the API2 performs step S3 to download corresponding upgrade information from the file server according to the version information in the upgrade instruction. After receiving the upgrade instruction, the registry performs step S4 to send a service migration instruction to the API2 to the load balancer; the load balancer executes step S5 to transfer the traffic flow from the API2 to the API 1; after determining that the service transfer in the API2 is completed, the upgrade agent performs step S6 to upgrade the API2 according to the upgrade information.
Compared with the prior art, the network element module to be upgraded comprises at least two network element units of the same type, the upgrading operation is respectively carried out on each network element unit, the service on the current network element unit is transferred to other network elements of the same type by sending a service migration instruction to the load balancer, an additional backup network element module is not required to be reset, the service flow of the network element module to be upgraded is backed up, and the cost and the complexity of network element upgrading are reduced; meanwhile, the service of the network element unit is migrated before upgrading, so that the problem of service interruption in the upgrading process is solved, the network element equipment does not need to be modified due to the adoption of a software upgrading mode, the difficulty of network element upgrading is reduced, the network element is not needed to be upgraded on site manually due to the adoption of software upgrading, and the upgrading efficiency is improved.
A second embodiment of the present invention relates to a method for upgrading a network element. The second embodiment is substantially the same as the first embodiment, and mainly differs therefrom in that: in a second embodiment of the present invention, the automatic upgrade of the expanded network element module is performed. The specific flow of the network element upgrading method is shown in fig. 3.
Step 201: and receiving a registration request of the newly added network element module, wherein the registration request comprises the version information of the newly added network element module.
Specifically, in the SBA architecture, a network function software manager (VNFM) may be used to perform capacity expansion, and the upgrade agents of each network element unit in the newly added network element module obtain version information of the system file operated by each network element unit, and send a registration request to the registration center, where the registration request includes: the version information of the newly added network element module; certainly, for each network element unit of the same category in the same newly added network element module, the version of the system file operated is the same, and the registration request sent by the upgrade agent corresponding to each network element unit can be used as the registration request of the newly added network element module. The registration center receives the registration request of the newly added network element module.
Step 202: and judging whether the version information of the newly added network element module belongs to the latest version information, if so, executing the step 203, and otherwise, executing the step 204.
Specifically, the registry detects whether the version information of the system file running in the newly added network element module belongs to the latest version information, if so, step 203 is executed, otherwise, step 204 is executed. For example, if the version information of the system file running in the network element module APIV1 is V1 and the latest version information is V2, it is determined that the version information of the newly added network element module is not the latest version information.
Step 203: and if the version information is determined to be the latest version information, registering the newly added network element module.
Specifically, if the version information is determined to be the latest version information, the information of the network element module is registered, and the newly added network element module is allowed to access the registration center, so that the registration center can discover and manage the upgrade agents corresponding to each network element unit in each network element module.
Step 204: and if the version information is determined to belong to the old version information, determining the newly added network element module as the network element module to be upgraded.
Step 205: and obtaining an upgrading instruction of the network element module to be upgraded.
In one example, after determining that the newly added network element module is the network element module to be upgraded, the registration center directly generates an upgrade instruction of the network element module to be upgraded. The upgrade instruction includes an identifier of the newly added network element module, latest version information, and the like.
Step 206: the following processing is carried out for each network element unit: and sending a service migration instruction to the load balancer according to the upgrading instruction so that the load balancer migrates the services of the network element unit to other network element units of the same category, and upgrading the network element unit by the upgrading agent after the upgrading agent corresponding to the network element unit determines that the service migration is finished.
This step is substantially the same as step 102 in the first embodiment, and will not be described herein.
The following describes the process of automatically performing network element upgrade under the condition of capacity expansion with reference to fig. 4:
a VNFM executing step S21, where a network element module with a system file version of V1 is expanded, the network element module includes two network element units, the network element unit takes API as an example, the network element module includes API1 and API2, the upgrade agent of API1 executes step S22, a registration request is initiated to a registration center, the registration request includes currently used version information, the registration center detects that the version information is not the latest version information, then it determines that the newly added network element module is a network element module to be upgraded, and then the registration center executes step S23, generates an upgrade instruction, and sends the upgrade instruction to the upgrade agent of API 1; the registry also executes step S24, and sends a service migration instruction to the load balancer; after receiving the service migration instruction, the load balancer migrates the service in the API1 to the API2, since the API1 is not used at this time, the load balancer may directly migrate the service to the API2, and then the upgrade agent of the API1 downloads the upgrade information from the file server, and performs step S26, and upgrades the API1 according to the upgrade information. Similarly, the API2 is upgraded according to the process, and the upgrade of the newly added network element module is completed.
In the method for upgrading a network element provided in this embodiment, the registry may automatically detect version information of the newly added network element module under the condition of capacity expansion, and if it is detected that the version information of the newly added network element module belongs to the old version information, the newly added network element module is automatically upgraded without manual intervention, thereby improving the efficiency of network element upgrading.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A third embodiment of the present invention relates to a method for upgrading a network element, where a network element module to be upgraded includes at least two network element units of the same category, each network element unit has a corresponding upgrade agent, and the method for upgrading a network element is applied to an upgrade agent, and a specific flow of the method for upgrading a network element is shown in fig. 5.
Step 301: and determining the upgrading information of the network element unit according to the upgrading instruction of the network element module to be upgraded.
The system comprises a centralized network element network management system, a registration center, a load balancer and an SBA architecture, wherein the centralized network element network management system is in communication connection with the registration center, the registration center is in communication connection with the load balancer, the load balancer is connected with each network element module in the SAB architecture, each function is virtualized by the SBA architecture, so that the SBA architecture comprises a plurality of network element systems, and each network element system comprises at least one network element module. Each network element module comprises at least 2 network element units of the same type, each network element unit is a network element component virtualized through network functions, in an SBA architecture, the network element units of the same type can realize the same service functions, and system files operated by the network element units of the same type are the same. In order to reduce the damage caused by the occurrence of the upgrade error, each network element unit is provided with a one-to-one corresponding upgrade agent, and the network element unit is used for realizing the designated function and can have various forms, for example, an application program interface or an application. The upgrade agent may be deployed in the network element module in the form of a virtual machine.
The upgrading instruction can be issued by a centralized network element network management system or a registration center. If the centralized network element network management system determines the network element module to be upgraded, the centralized network element network management system can issue an upgrading instruction to the registration center and the upgrading agent of each network element unit in the network element module to be upgraded. Or after the register center receives the upgrade order, the register center sends the upgrade order to the upgrade agent of the network element unit of the network element module to be upgraded.
In another example, for the newly added network element module obtained by capacity expansion, if the registration center determines that the newly added network element module is the network element module to be upgraded, the registration center generates an upgrade instruction and issues the upgrade instruction to the upgrade agent.
In the SBA architecture, a network function software manager (VNFM) may be used to perform capacity expansion, and the upgrade agents of each network element unit in the newly added network element module obtain version information of the system file operated by each network element unit, and send a registration request to the registration center, where the registration request includes: the version information of the newly added network element module; certainly, for each network element unit of the same category in the same newly added network element module, the version of the system file operated is the same, and the registration request sent by the upgrade agent corresponding to each network element unit can be used as the registration request of the newly added network element module. The registration center receives the registration request of the newly added network element module. The registration center detects whether the version information of the newly added network element module belongs to the latest version information, and if so, the newly added network element module is registered. If the version information is determined to belong to the old version information, determining the newly added network element module as the network element module to be upgraded; for example, if the version information of the system file operated in the network element module APIV1 is V1 and the latest version information is V2, it is determined that the version information of the system file operated by the newly added network element module is not the latest version information.
After the upgrade agent of each network element unit of the network element module to be upgraded receives the upgrade instruction, the upgrade information can be downloaded from the file server according to the version information in the upgrade instruction, and the upgrade information includes an upgrade file or a patch file and is used for upgrading the network element unit.
In addition, for each network element unit of the network element module to be upgraded, the registration center sends a service migration instruction of the network element unit to the load balancer, the service in the network element unit is migrated to other network element units of the same type, and after the load balancer migrates the service traffic of the network element unit, the registration center sends prompt information of the completion of service migration to the upgrade agent of the network element unit.
Step 302: and after the completion of the service migration of the network element unit is determined, upgrading the network element unit according to the upgrading information.
And the upgrading agent of the network element unit upgrades the network element unit according to the upgrading information after determining that the service of the network element unit is completely migrated according to the prompt information.
It should be understood that the present embodiment is an example of an upgrade agent corresponding to the first embodiment, and the present embodiment may be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
A fourth embodiment of the present invention relates to a method for upgrading a network element. The fourth embodiment is a further improvement of the third embodiment, and the main improvements are as follows: in a fourth embodiment of the present invention, system files in a network element unit are backed up before the network element unit is upgraded. The specific flow of the network element upgrading method is shown in fig. 6.
Step 401: and determining the upgrading information of the network element unit according to the upgrading instruction of the network element module to be upgraded.
This step is substantially the same as step 401 in the third embodiment, and will not be described herein again.
Step 402: and backing up the system file currently used by the network element unit.
Specifically, the system file currently applicable to the network element unit may be backed up to the database of the network element module.
Step 403: and starting the upgrade file in the upgrade information for upgrading.
Specifically, the upgrade information includes an upgrade file, which can be started to upgrade the network element unit.
Step 404: and if the upgrade failure of the network element unit is detected, reading the backed-up system file and starting the backed-up system file.
Specifically, when the upgrade is started, whether the network element unit is successfully upgraded is detected after a preset time interval, and if the network element unit is detected to be operable, the network element unit is determined to be successfully upgraded; and if the network element unit is detected to be incapable of normally operating, reading the backed-up system file from the database and starting the backed-up system file.
It should be noted that, in the case of failed upgrade, the network element may perform rollback processing on the backed-up system file, that is, restart the backed-up system file, so as to ensure normal operation of the network element unit.
A fifth embodiment of the present invention relates to an apparatus for network element upgrade, where the apparatus 50 for network element upgrade, as shown in fig. 7, includes: an acquisition module 501 and a processing module 502; the obtaining module 501 is configured to obtain an upgrade instruction of a network element module to be upgraded, where the network element module to be upgraded includes at least 2 network element units of the same category; the processing module 502 is configured to perform the following processing for each network element unit: and sending a service migration instruction to the load balancer according to the upgrading instruction so that the load balancer migrates the services of the network element unit to other network element units of the same category, and upgrading the network element unit by the upgrading agent after the upgrading agent corresponding to the network element unit determines that the services are migrated completely.
It should be understood that this embodiment is an example of an apparatus corresponding to the first embodiment, and may be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
A sixth embodiment of the present invention relates to an apparatus for network element upgrade, where the apparatus 60 for network element upgrade, as shown in fig. 8, includes: a determining module 601 and an upgrading module 602; the determining module 601 is configured to determine, according to an upgrade instruction of a network element module to be upgraded, upgrade information of network element units, where the network element module to be upgraded includes at least two network element units of the same category; the upgrading module 602 is configured to upgrade the network element unit according to the upgrading information and upgrade the network element unit according to the upgrading information after it is determined that the service of the network element unit is migrated.
This embodiment is an example of an apparatus corresponding to the third embodiment, and may be implemented in cooperation with the third embodiment. The related technical details mentioned in the third embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the third embodiment.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
A seventh embodiment of the present invention relates to an electronic device, a block diagram of which is shown in fig. 9, and includes: at least one processor 901; and a memory 902 communicatively coupled to the at least one processor 901; wherein the memory 902 stores instructions executable by the at least one processor, and the instructions are executable by the at least one processor 901 to enable the at least one processor 901 to perform the method for network element upgrade of the first implementation or the second implementation, or to perform the method for network element upgrade of the third implementation or the fourth implementation
The memory 902 and the processor 901 are connected by a bus, which may include any number of interconnected buses and bridges, which link one or more processors and various circuits of the memory together. The bus may also link various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor.
The processor 901 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
An eighth embodiment of the present invention relates to a computer-readable storage medium storing a computer program which, when executed by a processor, implements the method for network element upgrade of the first embodiment or the second embodiment, or implements the method for network element upgrade of the third embodiment or the fourth embodiment.
Those skilled in the art can understand that all or part of the steps in the method of the foregoing embodiments may be implemented by a program to instruct related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.
Claims (10)
1. A method for network element upgrade, comprising:
acquiring an upgrading instruction of a network element module to be upgraded, wherein the network element module to be upgraded comprises at least 2 network element units of the same category;
the following processing is carried out for each network element unit: and sending a service migration instruction to a load balancer according to the upgrading instruction so that the load balancer migrates the services of the network element unit to other network element units of the same category, and upgrading the network element unit by an upgrading agent corresponding to the network element unit after the upgrading agent determines that the service migration is finished.
2. The method for upgrading a network element according to claim 1, wherein the obtaining the upgrade instruction of the network element module to be upgraded includes:
receiving an upgrading instruction issued by a network management system of the centralized network element;
or;
and generating an upgrading instruction of the network element module to be upgraded.
3. The method for upgrading a network element according to claim 2, wherein before the generating the upgrade instruction of the network element module to be upgraded, the method further comprises:
Receiving a registration request of a newly added network element module, wherein the registration request comprises version information of the newly added network element module;
if the version information is determined to be the latest version information, registering the newly added network element module;
and if the version information is determined to belong to the old version information, determining the newly added network element module as the network element module to be upgraded.
4. The method for network element upgrade according to claim 3, further comprising:
and after determining that the network element unit finishes upgrading, sending a service recovery instruction to the load balancer so that the load balancer transfers the migrated service back to the network element unit.
5. A method for upgrading a network element is characterized in that a network element module to be upgraded comprises at least two network element units of the same category, each network element unit has a corresponding upgrade agent, and the method for upgrading the network element is applied to the upgrade agents and comprises the following steps:
determining the upgrading information of the network element unit according to the upgrading instruction of the network element module to be upgraded;
and after the completion of the service migration of the network element unit is determined, upgrading the network element unit according to the upgrading information.
6. The method for upgrading a network element according to claim 5, wherein the upgrading the network element according to the upgrade information after determining that the service of the network element is completely migrated comprises:
backing up a system file currently used by the network element unit;
starting an upgrade file in the upgrade information for upgrading;
and if the upgrade failure of the network element unit is detected, reading the backed-up system file and starting the backed-up system file.
7. An apparatus for network element upgrade, comprising: the device comprises an acquisition module and a processing module;
the acquisition module is used for acquiring an upgrading instruction of a network element module to be upgraded, and the network element module to be upgraded comprises at least 2 network element units of the same category;
the processing module is configured to perform the following processing for each network element unit: and sending a service migration instruction to a load balancer according to the upgrading instruction so that the load balancer migrates the services of the network element unit to other network element units of the same category, and upgrading the network element unit by an upgrading agent corresponding to the network element unit after the upgrading agent determines that the service migration is finished.
8. An apparatus for network element upgrade, comprising: a determining module and an upgrading module;
The determining module is used for determining the upgrading information of the network element units according to the upgrading instruction of the network element module to be upgraded, wherein the network element module to be upgraded comprises at least two network element units of the same category;
and the upgrading module is used for upgrading the network element unit according to the upgrading information and upgrading the network element unit according to the upgrading information after the service of the network element unit is determined to be completely migrated.
9. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of network element upgrade as claimed in any one of claims 1-4 or to perform the method of network element upgrade as claimed in claims 5-6.
10. A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements a method for network element upgrade as claimed in any one of claims 1 to 4, or implements a method for network element upgrade as claimed in claims 5-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010632831.6A CN111857775A (en) | 2020-07-02 | 2020-07-02 | Network element upgrading method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010632831.6A CN111857775A (en) | 2020-07-02 | 2020-07-02 | Network element upgrading method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111857775A true CN111857775A (en) | 2020-10-30 |
Family
ID=73152803
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010632831.6A Pending CN111857775A (en) | 2020-07-02 | 2020-07-02 | Network element upgrading method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111857775A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107436775A (en) * | 2016-05-26 | 2017-12-05 | 中兴通讯股份有限公司 | The method and device of business release is installed on virtual machine |
CN110557267A (en) * | 2018-05-30 | 2019-12-10 | 中国移动通信集团浙江有限公司 | network Function Virtualization (NFV) -based capacity modification method and device |
CN110572284A (en) * | 2019-08-30 | 2019-12-13 | 华为技术有限公司 | Method, device and system for upgrading virtual network element |
-
2020
- 2020-07-02 CN CN202010632831.6A patent/CN111857775A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107436775A (en) * | 2016-05-26 | 2017-12-05 | 中兴通讯股份有限公司 | The method and device of business release is installed on virtual machine |
CN110557267A (en) * | 2018-05-30 | 2019-12-10 | 中国移动通信集团浙江有限公司 | network Function Virtualization (NFV) -based capacity modification method and device |
CN110572284A (en) * | 2019-08-30 | 2019-12-13 | 华为技术有限公司 | Method, device and system for upgrading virtual network element |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2018379088B2 (en) | Automatically deployed information technology (IT) system and method | |
US9960963B2 (en) | Dynamic client fail-over during a rolling patch installation based on temporal server conditions | |
US9038053B2 (en) | Non-disruptive software updates for servers processing network traffic | |
US20110283274A1 (en) | Firmware image update and management | |
US10795688B2 (en) | System and method for performing an image-based update | |
CN102244669B (en) | Software upgrading method in stacking equipment and stacking equipment | |
US7673023B1 (en) | Method and apparatus for service processor updates | |
EP2220558A1 (en) | System synchronization in cluster | |
CN105320527A (en) | Configuration file renewing method, device and system based on zookeeper distributed type search engine | |
CN113032085A (en) | Management method, device, server, management system and medium of cloud operating system | |
CN110535776B (en) | Gateway current limiting method, device, gateway, system and storage medium | |
US20100058319A1 (en) | Agile deployment of server | |
CN112162794B (en) | Single board starting method, device, single board and network equipment | |
CN104899116A (en) | Data backup method, source server, target server and system | |
CN112434008A (en) | Distributed database upgrading method, device and medium | |
CN116521209A (en) | Upgrading method and device of operating system, storage medium and electronic equipment | |
JP4744921B2 (en) | Software failure recovery system | |
CN106301877A (en) | The upgrade method of a kind of Virtual NE and device | |
CN111984287A (en) | Equipment upgrading method and system | |
CN111857775A (en) | Network element upgrading method and device, electronic equipment and storage medium | |
CN104503811A (en) | Method and system for upgrading communication device based on single memory area | |
CN117234544B (en) | Method and device for recovering system of server equipment | |
CN114513414B (en) | Method for managing AP, AC and AP | |
US20240267294A1 (en) | Method and apparatus for in-service upgrading of network slices, and storage medium | |
CN117714276A (en) | Redis cluster deployment method and device, storage medium and electronic equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201030 |
|
RJ01 | Rejection of invention patent application after publication |