Upgrading method and device of network element equipment, network management equipment and storage medium
By receiving the upgrade request and obtaining the current and target version information, determining the single-mode upgrade script list, and performing version upgrades to the network element equipment, solving the problem of low software upgrade efficiency in the existing technology and achieving efficient version upgrades.
Patent Information
- Application Number
- CN202311063345.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-22
- Publication Date
- 2025-02-25
AI Technical Summary
In the prior art, the software upgrade efficiency of network element equipment is low, and the version verification and maintenance work is large, and operators need to manually verify and maintain each business software to be upgraded.
By receiving the upgrade request, obtain the current version information and target version information of the network element device, determine the single-mode upgrade script list, record the information and execution order of each single-mode upgrade script, and perform version upgrade of the network element device based on this list.
It realizes efficient version upgrade of network element equipment, reduces the workload of operators, and improves the efficiency of software upgrades.
Smart Images

Figure CN119512583A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method and device for upgrading a network element device, a network management device, and a storage medium. Background Art
[0002] With the development of wireless communication services, network element equipment (such as base stations) is usually required to provide wireless communication services of various standards. For example, common wireless communication services may include GSM (Global System for Mobilecommunications), UMTS (Universal Mobile TelecommunicationsSystem), LTE (Long Term Evolution), NB-IoT (Narrow Band Internet of Things), TD-SCDMA (Time Division Synchronized Code Division Multiple Access), TD-LTE (Time Division Long Term Evolution), etc.
[0003] Usually, wireless communication services of different standards correspond to different service software. Network element devices usually have corresponding service software of multiple standards installed. In order to provide users with high-quality wireless communication services, the service software installed in the network element devices usually needs to be upgraded and updated. In the prior art, the software upgrade of the network element devices usually requires the operator to verify and maintain each service software to be upgraded in the network element devices to be upgraded by controlling the network management equipment, which makes the workload of software version verification and maintenance large and the software upgrade efficiency low. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to provide a method, device, network management device and storage medium for upgrading network element equipment, aiming at efficiently upgrading the network element equipment.
[0005] In a first aspect, an embodiment of the present application provides a method for upgrading a network element device, the method comprising:
[0006] According to the received upgrade request, current version information of the network element device and target version information corresponding to the upgrade request are obtained, wherein the upgrade request is a multi-mode network element upgrade request;
[0007] Determine a single-mode upgrade script list corresponding to the current upgrade according to the target version information and the current version information, wherein the single-mode upgrade script list records the information of each single-mode upgrade script for the network element device version upgrade and the execution order between each single-mode upgrade script;
[0008] The network element device is upgraded in version according to the single-mode upgrade script list.
[0009] In a second aspect, an embodiment of the present application further provides an upgrading device for a network element device, including:
[0010] A request receiving module, configured to obtain, according to a received upgrade request, current version information of the network element device and target version information corresponding to the upgrade request, wherein the upgrade request is a multi-mode network element upgrade request;
[0011] A script determination module, used to determine a single-mode upgrade script list corresponding to the current upgrade according to the target version information and the current version information, wherein the single-mode upgrade script list records the information of each single-mode upgrade script for the network element device version upgrade and the execution order between each single-mode upgrade script;
[0012] A version upgrade module is used to upgrade the version of the network element device according to the single-mode upgrade script list.
[0013] In the third aspect, an embodiment of the present application also provides a network management device, which includes: a processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for realizing connection and communication between the processor and the memory, wherein when the computer program is executed by the processor, the steps of the aforementioned network element device upgrade method are implemented.
[0014] In a fourth aspect, an embodiment of the present application further provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the aforementioned network element device upgrade method.
[0015] The embodiment of the present application provides an upgrade method, device, network management device and storage medium for network element equipment, wherein the upgrade method for network element equipment obtains the current version information of the network element equipment and the target version information corresponding to the upgrade request according to the received upgrade request, and determines the single-mode upgrade script list corresponding to the current upgrade according to the target version information and the current version information, wherein the single-mode upgrade script list records the single-mode upgrade script information of the network element equipment version upgrade and the execution order between each single-mode upgrade script, so that the network element equipment is upgraded according to the single-mode upgrade script list, and the single-mode upgrade script list is constructed based on the network element equipment during the upgrade process, and the network element equipment is upgraded according to the upgrade order between each single-mode upgrade script in the single-mode upgrade script list, so that the version upgrade of the network element equipment can be achieved in an orderly and efficient manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 It is a structural diagram of a network element device management system provided by an embodiment of the present application;
[0018] Figure 2 This is a flowchart of a method for upgrading a network element device provided by an embodiment of the present application;
[0019] Figure 3 It is a schematic diagram of a module framework for a network management device to parse a mixed-mode format during an upgrade method of a network element device;
[0020] Figure 4 It is a schematic diagram of a module framework for a network management device to obtain an upgrade script during an upgrade method of a network element device;
[0021] Figure 5 It is a flowchart of the network management device obtaining the upgrade script during the upgrade method of the network element device;
[0022] Figure 6 It is a schematic diagram of the module structure of an upgrading device for a network element device provided in an embodiment of the present application;
[0023] Figure 7 A schematic diagram of the framework structure of a network management device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0026] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0027] Some embodiments of the present application are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0028] See also Figure 1 , Figure 1 A schematic diagram of the system layout of a network element device management system provided in an embodiment of the present application.
[0029] like Figure 1 As shown, the network element device management system 100 includes a network element device 20 and a network management device 10 that is communicatively connected to the network element device 20, wherein the network element device 20 includes but is not limited to a base station.
[0030] The network element device 20 is used to provide wireless communication services, which may include GSM (Global System for Mobile communications), UMTS (Universal Mobile Telecommunications System), LTE (Long Term Evolution), NB-IoT (Narrow Band Internet of Things), TD-SCDMA (Time Division Synchronized Code Division Multiple Access), TD-LTE (Time Division Long Term Evolution), etc.
[0031] Usually, wireless communication services of different standards correspond to different service software. Therefore, the network element device 20 is usually installed with corresponding service software of multiple standards. In order to provide users with high-quality wireless communication services, an upgrade instruction can usually be sent to the network element device 20 through the network management device 10 to upgrade and update the service software installed in the network element device 20 so that the service software is upgraded to a version that matches the upgrade instruction.
[0032] See also Figure 2 , Figure 2 A flowchart of the steps of a method for upgrading a network element device provided in an embodiment of the present application.
[0033] like Figure 2 As shown, the network element device upgrade method can be applied to the network management device 10 or the network element device 20, and the network element device upgrade method includes steps S101 to S103.
[0034] Step S101: according to the received upgrade request, obtaining the current version information of the network element device and the target version information corresponding to the upgrade request, wherein the upgrade request is a multi-mode network element upgrade request;
[0035] Step S102: determining a single-mode upgrade script list corresponding to the current upgrade according to the target version information and the current version information, wherein the single-mode upgrade script list records information of each single-mode upgrade script for the network element device version upgrade and an execution order between each single-mode upgrade script;
[0036] Step S103: performing version upgrade on the network element device according to the single-mode upgrade script list.
[0037] For ease of explanation, in the embodiment of the present application, the upgrade method of the network element device is applied to the network management device 10 as an example.
[0038] Exemplarily, the network element device 20 is a mixed-mode network element device, that is, the network element device 20 supports multiple wireless communication services. Generally, the mixed-mode standard includes multiple single-mode standards, each single-mode standard corresponds to a wireless communication service, each wireless communication service corresponds to a group of communication service components, and each group of communication service components is adapted to the corresponding communication service software, so as to drive the corresponding communication service component to provide wireless communication services through the communication service software. Therefore, multiple communication service software are installed in the mixed-mode network element device 20, and each communication service software corresponds to a single-mode standard. That is, during the version upgrade process, the mixed-mode network element device 20 converts the mixed-mode standard into the corresponding multiple single-mode standards, and obtains the upgrade script required for the version upgrade of each single-mode standard, so as to use the upgrade script to perform version upgrade on each single-mode standard that needs to be upgraded to constitute the mixed-mode standard, thereby realizing the version upgrade of the mixed-mode network element device 20.
[0039] Specifically, when the network element device 20 needs to be upgraded, the user sends an upgrade request to the network management device 10 by triggering the input device, so that the network management device 10 responds to the upgrade request to obtain the current version information and target version information of the network element device 20 to be upgraded, wherein the current version information is used to represent the current version of the software installed in the network element device, and the target version information is used to represent the version corresponding to the upgrade target of the software installed in the network element device.
[0040] After the network management device 10 determines the current version information of the network element device 20 and the target version information corresponding to the version upgrade executed by the network element device 20, the network management device 10 determines the single-mode upgrade script list required to execute the current version upgrade of the network element device 20 according to the current version information of the network element device 20 and the target version information corresponding to the version upgrade executed. The single-mode upgrade script list records the single-mode upgrade script information of the network element device version upgrade and the execution order of each single-mode upgrade script, wherein the single-mode upgrade script is used to perform version upgrades on the single-mode format corresponding to the network element device 20.
[0041] During the upgrade process of the mixed-mode network element device 20, the single-mode standard corresponding to the mixed-mode standard is obtained, and the single-mode upgrade script list required for the version upgrade of each single-mode standard is obtained, so as to use the single-mode upgrade script list to orderly upgrade each single-mode standard of the network element device 20 until the upgrade program is completed.
[0042] Optionally, during the upgrade process of the network element device 20, the user can send an upgrade request to the network management device 10 through input devices such as keyboard, mouse, touch panel, etc. The upgrade request includes the device information of the network element device to be upgraded and the target version information corresponding to the upgrade of the network element device.
[0043] In the implementation manner of the present application, the network element device 20 supports multi-mode standards, that is, the network element device 20 is a mixed-mode network element device. During the version upgrade process, the network element device 20 constructs a list of single-mode upgrade scripts required to execute this version upgrade, and uses the corresponding single-mode upgrade scripts in the single-mode upgrade script list to perform version upgrades on the network element device 20 in an orderly manner, thereby enabling the version upgrade of the network element device to be implemented in an orderly and efficient manner.
[0044] In some implementations, the obtaining the current version information of the network element device and the target version information corresponding to the upgrade request includes:
[0045] Acquire target version information corresponding to the upgrade request according to the upgrade request, and acquire device information corresponding to the network element device to be upgraded;
[0046] The current version information of the network element device is determined according to the device information.
[0047] Exemplarily, after receiving the upgrade request, the network management device 10 parses the upgrade request to obtain the device information corresponding to the network element device 20 to be upgraded and the target version information corresponding to the version upgrade of the network element device. The device information corresponding to the network element device 20 includes the current version information of the network element device.
[0048] In some implementations, determining the current version information of the network element device according to the device information includes:
[0049] Acquire the mixed-mode standard of the network element device according to the device information, and parse the mixed-mode standard information to obtain a plurality of single-mode standards constituting the mixed-mode standard;
[0050] The single-mode version information corresponding to each of the single-mode standards constituting the mixed-mode standard is obtained, and the current version information of the network element device is determined according to the single-mode version information.
[0051] Exemplarily, after receiving the upgrade request, the network management device 10 parses the upgrade request to obtain the device information corresponding to the network element device and the target version information corresponding to the version upgrade executed by the network element device. After obtaining the device information, the current version information corresponding to the network element device is determined according to the device information. The device information includes the standard information of the network element device, and the mixed-mode standard of the network element device is obtained according to the standard information, and the mixed-mode standard is parsed to obtain multiple single-mode standards constituting the mixed-mode standard. Then, the single-mode version information corresponding to each single-mode standard is obtained, so as to determine the current version information of the network element device according to the obtained single-mode version information.
[0052] The mixed-mode standard of the network element device 20 includes but is not limited to GL mixed-mode standard, UL mixed-mode standard, GUL mixed-mode standard, GTDL mixed-mode standard, UTDL mixed-mode standard, GUTDL mixed-mode standard, GFTL mixed-mode standard, UFTL mixed-mode standard, and GUFTL mixed-mode standard. Each mixed-mode standard includes at least two single-mode standards.
[0053] For example, the GUL mixed-mode standard includes the GSM single-mode standard, the UMTS single-mode standard, the FDD single-mode standard, and the COMMON single-mode standard.
[0054] For example, the GULN mixed-mode standard includes the GSM single-mode standard, the UMTS single-mode standard, the FDD single-mode standard, the COMMON single-mode standard, and the NBIOT single-mode standard.
[0055] For example, the GU mixed-mode standard includes the GSM single-mode standard, the UMTS single-mode standard, and the COMMON single-mode standard.
[0056] It can be understood that each single-mode standard has a corresponding single-mode standard version, and during the upgrade process of the network element device of the mixed-mode standard, the current version of the single-mode standard corresponding to the network element device needs to be upgraded to the target version.
[0057] like Figure 3 As shown, after determining that the network element device 20 is a GUL mixed mode standard through the device information of the network element device 20, the control module 201 of the network element device 20 sends the mixed mode standard information corresponding to the GUL mixed mode standard to the standard parsing module 202, and the standard parsing module 202 parses the mixed mode standard according to the mixed mode standard information, thereby obtaining the single mode standard information corresponding to all the single mode standards constituting the mixed mode standard. For example, the standard parsing module 202 parses the GUL mixed mode standard to obtain the GSM single mode standard, the UMTS single mode standard, the FDD single mode standard, and the COMMON single mode standard, and respectively obtains the single mode version information of the GSM single mode standard, the UMTS single mode standard, the FDD single mode standard, and the COMMON single mode standard constituting the GUL mixed mode standard.
[0058] When the version of the GUL mixed-mode standard is version V1, it can be determined that the current versions of the four GSM single-mode standards, UMTS single-mode standard, FDD single-mode standard, and COMMON single-mode standard that constitute the GUL mixed-mode standard are: the current version of the GSM single-mode standard is V1, the current version of the UMTS single-mode standard is V1, the current version of the FDD single-mode standard is V1, and the current version of the COMMON single-mode standard is V1. It is determined that the current version information of the network element device includes the GSM single-mode standard V1 version, the UMTS single-mode standard V1 version, the FDD single-mode standard V1 version, and the COMMON single-mode standard V1 version.
[0059] The network management device 20 records the version information of each mixed-mode standard and the version information of each single-mode standard corresponding to the mixed-mode standard.
[0060] As shown in Table 1 below, when the current version of the GUL mixed-mode standard is version V1, the four single-mode standards that constitute the GUL mixed-mode standard, namely, the current versions of the GSM single-mode standard, the UMTS single-mode standard, the FDD single-mode standard, and the COMMON single-mode standard are all version V1.
[0061] When the current version of the GUL mixed-mode system is version V2, the four single-mode systems constituting the GUL mixed-mode system, namely, the current versions of the GSM single-mode system, the UMTS single-mode system, the FDD single-mode system, and the COMMON single-mode system are all version V2.
[0062] Similarly, when the current version of the GUL mixed-mode standard is version V3, the four single-mode standards constituting the GUL mixed-mode standard, namely, the current versions of the GSM single-mode standard, the UMTS single-mode standard, the FDD single-mode standard, and the COMMON single-mode standard are all version V3.
[0063] Table 1:
[0064]
[0065] At the same time, the upgrade request is accompanied by the target version corresponding to the version upgrade of the network element device 20, so the target version of the version upgrade of the network element device 20 for the GUL mixed mode is determined according to the upgrade request. For example, the target version is the mixed mode version V3, that is, the corresponding single mode versions are: GSM single mode version V3, UMTS single mode version V3, FDD single mode version V3, COMMON single mode version V3.
[0066] In some implementations, the versions of the multiple single-mode systems constituting the mixed-mode system may be the same or different, that is, the versions of the multiple single-mode systems constituting the mixed-mode system may be set as needed. For example, when the current version of the GUL mixed-mode system is the V1 version, at least one of the four single-mode systems constituting the GUL mixed-mode system, the GSM single-mode system, the UMTS single-mode system, the FDD single-mode system, and the COMMON single-mode system may be a non-V1 version, such as the GSM single-mode system may be the V2 version, and the UMTS single-mode system may be the V3 version.
[0067] In some implementations, determining a single-mode upgrade script list corresponding to the current upgrade according to the target version information and the current version information includes:
[0068] Acquire a single-mode upgrade script set required for the network element device to perform this upgrade according to the current version information and the target version information;
[0069] Obtaining the execution order of each single-mode upgrade script in the single-mode upgrade script set;
[0070] A single-mode upgrade script list is constructed according to the single-mode upgrade script set and the execution order.
[0071] Exemplarily, the current version information of each single-mode standard corresponding to the mixed-mode standard of the network element device 20 and the target version information corresponding to the upgrade are obtained, so as to use the current version information and the target version information to obtain the single-mode upgrade script set required for the network element device 20 to perform this upgrade, determine the execution order between each single-mode upgrade script in each single-mode upgrade script set, and then construct a single-mode upgrade script list corresponding to each single-mode standard version upgrade of the network element device 20.
[0072] Taking the network element device 20 as a GUL mixed mode standard as an example, the GUL mixed mode standard is parsed to obtain that the single mode standards constituting the GUL mixed mode standard are GSM single mode standard, UMTS single mode standard, FDD single mode standard, and COMMON single mode standard. The current version information of the single mode standards corresponding to the GUL mixed mode standard is determined to be: GSM single mode standard V1 version, UMTS single mode standard V1 version, FDD single mode standard V1 version, and COMMON single mode standard V1 version.
[0073] The target versions of the network element device 20 for the GUL mixed mode version upgrade are: GSM single mode version V3, UMTS single mode version V3, FDD single mode version V3, and COMMON single mode version V3.
[0074] That is, the network element device 20 of the GUL mixed-mode standard can be decomposed into four single-mode standards constituting the GUL mixed-mode standard, each of which is independently upgraded. Therefore, during the version upgrade process of the GUL mixed-mode standard network element device 20, four single-mode upgrade script sets need to be obtained, namely: the first single-mode upgrade script set for the GSM single-mode standard to be upgraded from version V1 to version V3, the second single-mode upgrade script set for the UMTS single-mode standard to be upgraded from version V1 to version V3, the third single-mode upgrade script set for the FDD single-mode standard to be upgraded from version V1 to version V3, and the fourth single-mode upgrade script set for the COMMON single-mode standard to be upgraded from version V1 to version V3. At the same time, the execution order between each single-mode script in each single-mode upgrade script set is obtained, so as to construct a corresponding single-mode upgrade script list using the execution order between each single-mode upgrade script set and the single-mode script. For example, when the GSM single-mode system needs to be upgraded from version V1 to version V3, the upgrade script from version V1 to version V2 must be executed first, and then the upgrade script from version V2 to version V3 must be executed. The upgrade script from version V2 to version V3 cannot be executed first, and then the upgrade script from version V1 to version V2 must be executed.
[0075] like Figure 4 As shown, in the process of obtaining the single-mode upgrade script set corresponding to each single-mode standard upgrade of the network element device 20, the control module 101 of the network management device 10 sends an upgrade script requirement to the script scanning module 103, and the upgrade script requirement includes the single-mode standard information to be upgraded, the current version information of each single-mode standard and the target version information corresponding to the upgrade, so that the script scanning module 103 obtains the upgrade script adapted for upgrading each single-mode standard of the network element device 20 from the current version to the target version from the script database according to the upgrade script requirement, and caches the obtained upgrade script and sends it to the control module 101, so that the control module 101 determines the execution order of each upgrade script and constructs a single-mode upgrade script list.
[0076] like Figure 5 As shown, in the process of obtaining the upgrade script adapted for upgrading each single-mode format from the current version to the target version, the script scanning module 103 searches for the adapted upgrade script in the database according to the current version information and the target version information corresponding to each single-mode format to be upgraded, and determines whether all the upgrade scripts required to execute this upgrade have been found. If so, the operation of searching for the upgrade script is completed. If not, the search for the adapted upgrade script continues until all the upgrade scripts required to execute this upgrade are obtained.
[0077] In the present application, during the version upgrade of the mixed-mode network element device 20, the various single-mode standards that constitute the mixed-mode standard are obtained according to the upgrade requirements, and the upgrade scripts for upgrading each single-mode standard from the current version to the target version are obtained, so that the single-mode upgrade script list required for the mixed-mode standard upgrade can be dynamically constructed according to the upgrade requirements, and then the version upgrade of the network element device 20 is completed through one or more single-mode upgrade script lists.
[0078] In some implementations, each of the single-mode upgrade scripts is used to upgrade the current status version of the single-mode format of the network element device to an adjacent level version.
[0079] Optionally, during the version upgrade process, each single-mode upgrade script executes an adjacent version upgrade of the single-mode format of the network element device to avoid disorderly intersection between the upgrade modes caused by multiple upgrade modes of the single-mode format.
[0080] For example, when upgrading the single-mode GSM from version V1 to version V3, the GSM single-mode system needs to be upgraded from version V1 to version V2 first, and then from version V2 to version V3, but not from version V1 to version V3. This prevents some programs from executing the upgrade script from version V1 to version V3, and some programs from executing the upgrade script from version V1 to version V2 when the GSM single-mode system is upgraded from version V1 to version V3.
[0081] In some implementations, performing version upgrade on the network element device according to the single-mode upgrade script list includes:
[0082] According to the execution order of each single-mode upgrade script in the single-mode upgrade script list and between each single-mode upgrade script, each single-mode format of the network element device is upgraded until all single-mode formats of the network element device complete the version upgrade.
[0083] Exemplarily, the network element device 20 has four single-mode upgrade script sets during the version upgrade process, that is, it has four single-mode upgrade script lists. Therefore, during the version upgrade process, each single-mode standard of the network element device 20 is upgraded according to each single-mode upgrade script in each single-mode upgrade script list and the execution order between each single-mode upgrade script until all single-mode standards of the network element device 20 complete the version upgrade.
[0084] Based on the single-mode upgrade script list constructed by the network element device 20 during the upgrade process, the network element device is upgraded according to the upgrade sequence between the single-mode upgrade scripts in the single-mode upgrade script list, thereby realizing the version upgrade of the network element device in an orderly and efficient manner.
[0085] In some implementations, the method further includes: after the network element device completes the version upgrade, outputting a corresponding upgrade feedback prompt.
[0086] Exemplarily, the network management device 10 monitors the upgrade process of the network element device 20, and outputs a corresponding upgrade feedback prompt after the upgrade of the network element device 20 is completed, so that the operator can promptly know that the corresponding network element device 20 has completed the version upgrade. Among them, the upgrade feedback prompt can be output by any display such as text, voice, picture, light, etc.
[0087] See also Figure 6 , Figure 6 It is a schematic diagram of the module structure of an upgrading device for a network element device provided in an embodiment of the present application.
[0088] like Figure 6 As shown, the upgrading device 200 of the network element device includes a request receiving module 201, a script determining module 202, and a version upgrading module 203. The request receiving module 201 is used to obtain the current version information of the network element device and the target version information corresponding to the upgrade request according to the received upgrade request, and the upgrade request is a multi-mode network element upgrade request. The script determining module 202 is used to determine the single-mode upgrade script list corresponding to this upgrade according to the target version information and the current version information, wherein the single-mode upgrade script list records the single-mode upgrade script information of the network element device version upgrade and the execution order between each single-mode upgrade script; the version upgrading module 203 is used to perform version upgrading on the network element device according to the single-mode upgrade script list.
[0089] In some implementations, the obtaining the current version information of the network element device and the target version information corresponding to the upgrade request includes:
[0090] Acquire target version information corresponding to the upgrade request according to the upgrade request, and acquire device information corresponding to the network element device to be upgraded;
[0091] The current version information of the network element device is determined according to the device information.
[0092] In some implementations, determining the current version information of the network element device according to the device information includes:
[0093] Acquire the mixed-mode standard of the network element device according to the device information, and parse the mixed-mode standard information to obtain a plurality of single-mode standards constituting the mixed-mode standard;
[0094] The single-mode version information corresponding to each of the single-mode standards constituting the mixed-mode standard is obtained, and the current version information of the network element device is determined according to the single-mode version information.
[0095] In some implementations, determining a single-mode upgrade script list corresponding to the current upgrade according to the target version information and the current version information includes:
[0096] Acquire a single-mode upgrade script set required for the network element device to perform this upgrade according to the current version information and the target version information;
[0097] Obtaining the execution order of each single-mode upgrade script in the single-mode upgrade script set;
[0098] A single-mode upgrade script list is constructed according to the single-mode upgrade script set and the execution order.
[0099] In some implementations, each of the single-mode upgrade scripts is used to upgrade the current status version of the single-mode format of the network element device to an adjacent level version.
[0100] In some implementations, performing version upgrade on the network element device according to the single-mode upgrade script list includes:
[0101] According to the execution order of each single-mode upgrade script in the single-mode upgrade script list and between each single-mode upgrade script, each single-mode format of the network element device is upgraded until all single-mode formats of the network element device complete the version upgrade.
[0102] In some implementations, the upgrade device of the network element device further includes a feedback prompt module, which is used to output a corresponding upgrade feedback prompt after the network element device completes the version upgrade.
[0103] It can be understood that in some embodiments, the upgrading device 200 of the network element device can be applied to the network management device 10. For example, the upgrading device 200 of the network element device is integrated in the network management device 10, or is independently set relative to the network management device 10 and communicated with the network management device 10.
[0104] See also Figure 7 , Figure 7 A schematic diagram of the framework structure of a network management device provided in an embodiment of the present application.
[0105] like Figure 7 As shown, the network management device 10 includes a processor 101 and a memory 102. The processor 101 and the memory 102 are connected via a bus 103. The bus 103 is, for example, an I2C (Inter-integrated Circuit) bus.
[0106] Specifically, the processor 101 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0107] The memory 102 may be a Flash chip, a read-only memory (ROM) disk, an optical disk, a USB flash drive, or a mobile hard disk.
[0108] The processor 101 is used to run the computer program stored in the memory 102, and implements the following steps when executing the computer program:
[0109] According to the received upgrade request, current version information of the network element device and target version information corresponding to the upgrade request are obtained, wherein the upgrade request is a multi-mode network element upgrade request;
[0110] Determine a single-mode upgrade script list corresponding to the current upgrade according to the target version information and the current version information, wherein the single-mode upgrade script list records the information of each single-mode upgrade script for the network element device version upgrade and the execution order between each single-mode upgrade script;
[0111] The network element device is upgraded in version according to the single-mode upgrade script list.
[0112] In some implementations, the obtaining the current version information of the network element device and the target version information corresponding to the upgrade request includes:
[0113] Acquire target version information corresponding to the upgrade request according to the upgrade request, and acquire device information corresponding to the network element device to be upgraded;
[0114] The current version information of the network element device is determined according to the device information.
[0115] In some implementations, determining the current version information of the network element device according to the device information includes:
[0116] Acquire the mixed-mode standard of the network element device according to the device information, and parse the mixed-mode standard information to obtain a plurality of single-mode standards constituting the mixed-mode standard;
[0117] The single-mode version information corresponding to each of the single-mode standards constituting the mixed-mode standard is obtained, and the current version information of the network element device is determined according to the single-mode version information.
[0118] In some implementations, determining a single-mode upgrade script list corresponding to the current upgrade according to the target version information and the current version information includes:
[0119] Acquire a single-mode upgrade script set required for the network element device to perform this upgrade according to the current version information and the target version information;
[0120] Obtaining the execution order of each single-mode upgrade script in the single-mode upgrade script set;
[0121] A single-mode upgrade script list is constructed according to the single-mode upgrade script set and the execution order.
[0122] In some implementations, each of the single-mode upgrade scripts is used to upgrade the current status version of the single-mode format of the network element device to an adjacent level version.
[0123] In some implementations, performing version upgrade on the network element device according to the single-mode upgrade script list includes:
[0124] According to the execution order of each single-mode upgrade script in the single-mode upgrade script list and between each single-mode upgrade script, each single-mode format of the network element device is upgraded until all single-mode formats of the network element device complete the version upgrade.
[0125] In some implementations, the processor 101 is further configured to implement the following method steps:
[0126] After the network element device completes the version upgrade, a corresponding upgrade feedback prompt is output.
[0127] It should be noted that technical personnel in the relevant field can clearly understand that for the convenience and conciseness of description, the specific working process of the network management device described above can refer to the corresponding process in the aforementioned upgrade method embodiment of the corresponding network element device, and will not be repeated here.
[0128] An embodiment of the present application also provides a storage medium for computer-readable storage, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the network element device upgrade method of any embodiment provided in the specification of the embodiment of the present application.
[0129] The storage medium may be an internal storage unit of the aforementioned network management device 10, such as a hard disk or memory of the network management device 10. The storage medium may also be an external storage device of the network management device 10, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the network management device 10.
[0130] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In a hardware embodiment, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0131] It should be understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.
[0132] The serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for upgrading a network element device, characterized in that: The method comprises: According to the received upgrade request, current version information of the network element device and target version information corresponding to the upgrade request are obtained, wherein the upgrade request is a multi-mode network element upgrade request; Determine a single-mode upgrade script list corresponding to the current upgrade according to the target version information and the current version information, wherein the single-mode upgrade script list records the information of each single-mode upgrade script for the network element device version upgrade and the execution order between each single-mode upgrade script; The network element device is upgraded in version according to the single-mode upgrade script list.
2. The method according to claim 1, characterized in that The obtaining the current version information of the network element device and the target version information corresponding to the upgrade request includes: Acquire target version information corresponding to the upgrade request according to the upgrade request, and acquire device information corresponding to the network element device to be upgraded; The current version information of the network element device is determined according to the device information.
3. The method according to claim 2, characterized in that The determining the current version information of the network element device according to the device information includes: Acquire the mixed-mode standard of the network element device according to the device information, and parse the mixed-mode standard information to obtain a plurality of single-mode standards constituting the mixed-mode standard; The single-mode version information corresponding to each of the single-mode standards constituting the mixed-mode standard is obtained, and the current version information of the network element device is determined according to the single-mode version information.
4. The method according to claim 1, characterized in that The determining, according to the target version information and the current version information, a list of single-mode upgrade scripts corresponding to the current upgrade includes: Acquire a single-mode upgrade script set required for the network element device to perform this upgrade according to the current version information and the target version information; Obtaining the execution order of each single-mode upgrade script in the single-mode upgrade script set; A single-mode upgrade script list is constructed according to the single-mode upgrade script set and the execution order.
5. The method according to claim 4, characterized in that Each of the single-mode upgrade scripts is used to upgrade the current status version of the single-mode format of the network element device to an adjacent level version.
6. The method according to claim 1, characterized in that The performing version upgrade on the network element device according to the single-mode upgrade script list includes: According to the execution order of each single-mode upgrade script in the single-mode upgrade script list and between each single-mode upgrade script, each single-mode format of the network element device is upgraded until all single-mode formats of the network element device complete the version upgrade.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: After the network element device completes the version upgrade, a corresponding upgrade feedback prompt is output.
8. A network element equipment upgrade device, characterized in that: include: A request receiving module, configured to obtain, according to a received upgrade request, current version information of the network element device and target version information corresponding to the upgrade request, wherein the upgrade request is a multi-mode network element upgrade request; A script determination module, used to determine a single-mode upgrade script list corresponding to the current upgrade according to the target version information and the current version information, wherein the single-mode upgrade script list records the information of each single-mode upgrade script for the network element device version upgrade and the execution order between each single-mode upgrade script; A version upgrade module is used to upgrade the version of the network element device according to the single-mode upgrade script list.
9. A network management device, characterized in that: The network management device includes: a processor, a memory, a computer program stored in the memory and executable by the processor, and a data bus for realizing connection and communication between the processor and the memory, wherein when the computer program is executed by the processor, the steps of the network element device upgrade method as described in any one of claims 1-7 are implemented.
10. A storage medium for computer-readable storage, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the network element device upgrade method described in any one of claims 1 to 7.