WO2013075488A1 - Network element upgrading method and device - Google Patents

Network element upgrading method and device Download PDF

Info

Publication number
WO2013075488A1
WO2013075488A1 PCT/CN2012/077697 CN2012077697W WO2013075488A1 WO 2013075488 A1 WO2013075488 A1 WO 2013075488A1 CN 2012077697 W CN2012077697 W CN 2012077697W WO 2013075488 A1 WO2013075488 A1 WO 2013075488A1
Authority
WO
WIPO (PCT)
Prior art keywords
network element
upgrade
network
upgraded
module
Prior art date
Application number
PCT/CN2012/077697
Other languages
French (fr)
Chinese (zh)
Inventor
梁小英
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013075488A1 publication Critical patent/WO2013075488A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/0836Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability to enhance reliability, e.g. reduce downtime
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Definitions

  • the present invention relates to the field of communications, and in particular to a network element upgrade method and apparatus.
  • BACKGROUND In order to meet the needs of operators and the rapid changes, equipment manufacturers have to update the network software version frequently to meet new demands.
  • the existing upgrade solution is to automatically restart the activation version after the download version is released. After the NE downloads the software version to be upgraded, the system restarts and activates immediately.
  • this solution has a large defect in the microwave transmission network: Since the microwave device is connected through the wireless link, the restart of the near-end network element (E) will cause all the remote network element services starting from E to be interrupted.
  • the present invention provides a method and an apparatus for upgrading a network element, so as to solve at least the problem that the remote network element service starting from the near-end network element is interrupted due to the restart operation in the near-end network element upgrade in the related art.
  • a method for upgrading a network element including: downloading an upgrade version of at least one network element that needs to be upgraded; and after the upgrade version of the at least one network element is downloaded, Upgrade the version of each NE to upgrade the NEs.
  • the downloading of the upgraded version of the at least one network element that needs to be upgraded includes: downloading the upgraded version of the at least one network element in the upgrade order.
  • the upgrading sequence is determined as follows: The upgrade sequence is determined according to the network element list and the network topology of the at least one network element.
  • the upgrading sequence is determined according to the following steps: determining the upgrade sequence according to the network element list of the at least one network element, the network topology, and the bandwidth information of the link.
  • determining the upgrade sequence further includes: sorting, by the at least one network element, an upgrade order of the at least one network element according to a starting point of a distance between the network element and the network management server from a remote end to a near end.
  • the upgrading sequence is determined as follows: The upgrade sequence is determined by a user by using a file mode configuration.
  • the method before the downloading of the upgraded version of the at least one network element that needs to be upgraded, the method includes: setting the size of the upgrade task management list according to the resource configuration information of the system for upgrading the network element, and starting the concurrent download quantity.
  • the network management server performs real-time scheduling on the upgrade tasks of the network elements, and records the upgrade progress results of the network elements.
  • a network element upgrading apparatus including: a downloading module, configured to perform downloading of an upgraded version of a specified at least one network element that needs to be upgraded; and an activation module configured to be at least one of the at least one After the upgraded version of the NE is downloaded, the upgraded version downloaded by each NE is activated and the NEs are upgraded.
  • the downloading module is further configured to sequentially download the upgraded version of the at least one network element in an upgrade order.
  • the downloading module is further configured to calculate the upgrade sequence according to the network element list and the network topology of the at least one network element; or, according to the network element list, the network topology, and the chain of the at least one network element
  • the bandwidth information of the road calculates the upgrade sequence; or, the upgrade sequence is formulated by the user through file mode configuration.
  • the upgraded version of the at least one network element that needs to be upgraded is downloaded, and after the upgraded version of the at least one network element is downloaded, the upgraded version downloaded by each network element is activated. Meta upgrade.
  • FIG. 1 is a first process flowchart of a network element upgrading method according to an embodiment of the present invention
  • 2 is a network management network element and network element network topology diagram according to an embodiment of the present invention
  • FIG. 3 is a second processing flowchart of a network element upgrade method according to an embodiment of the present invention
  • FIG. 4 is a system software according to an embodiment of the present invention
  • 5 is a schematic diagram of a task management list according to an embodiment of the present invention
  • FIG. 6 is a flowchart of processing a network element upgrade according to Embodiment 2 of the present invention
  • FIG. 7 is a third embodiment according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of processing a network element upgrade according to Embodiment 4 of the present invention.
  • FIG. 9 is a schematic structural diagram of a network element upgrading apparatus according to an embodiment of the present invention.
  • BEST MODE FOR CARRYING OUT THE INVENTION the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
  • the restart of the near-end NE will cause all the remote NE services that are started from the E to be interrupted.
  • the batch upgrade if the near-end NE is downloaded, the active version is restarted. The download and business will be interrupted, which is unacceptable to operators.
  • the embodiment of the present invention provides a network element upgrade method, and the processing flow thereof is as shown in the figure.
  • Step S102 Step S102: Perform downloading of the upgraded version of the at least one network element that needs to be upgraded.
  • the upgraded version of the at least one network element that needs to be upgraded is downloaded, and after the upgraded version of the at least one network element is downloaded, the upgraded version downloaded by each network element is activated. Meta upgrade.
  • the data volume of the version file that the network element needs to download is very large, a small number of hundreds of KB, a large tens of megabytes, or even hundreds of megabytes, so that under the condition of limited bandwidth and concurrent resources, if the network management When the number of managed NEs is large, it takes a long time to complete the upgrade of the NE software version. At present, the downloading sequence of the downloading technology is random.
  • the network management server memory configuration can support up to 300 network element upgrade tasks at the same time, it can support up to 50 connection numbers for parallel download, and users want to upgrade 1000-hop network elements. At this time, it is necessary to make full use of memory and perform tasks. Reasonable scheduling can effectively improve the efficiency of the upgrade.
  • At least one network element may be sorted, and the upgrade version is downloaded in the order of the upgrade.
  • the specific process is as shown in FIG. 3, including steps S302 to S306: Step S302: Sorting the specified at least one network element that needs to be upgraded; Step S304: Performing, in sequence, downloading the upgraded version of the specified at least one network element that needs to be upgraded; Step S306, at least one network element to be specified After the upgrade version is downloaded, the upgraded versions downloaded by each NE are activated in sequence to upgrade the NEs.
  • the upgrade sequence may be determined in multiple ways. For example, the upgrade sequence may be determined according to the network element list and the network topology of at least one network element, and may also be based on the network element list, network topology, and link of at least one network element.
  • the bandwidth information determines the upgrade order.
  • determining the upgrade sequence may further include: sorting, by the at least one network element, an upgrade order of the at least one network element according to a starting point of the distance between the network element and the network management server from a remote end to a near end. This step takes into account the distance between the network element and the server, and is also a preferred embodiment.
  • the network management server before the download of the upgraded version of the specified NE is upgraded, set the size of the upgrade task management list based on the resource configuration information of the system upgraded by the NE, and start the number of concurrent downloads, that is, confirm that the network management server can accommodate How many network elements are downloaded at the same time and managed as such.
  • the resource configuration information of the network management server is set for management, and when the network element upgrade is implemented in other systems, the corresponding resources of the system are configured.
  • the network management server monitors the upgrade tasks of each network element, implements real-time scheduling, and records the upgrade progress results of each network element, so that users can query the operation progress and result information at any time, and reduce manual intervention.
  • the user sets the size of the upgrade task management list and the number of concurrent downloads according to the configuration of the network management server software and hardware resources, and the network management system further selects the network element list according to the user.
  • the network topology (you can also use the bandwidth information of the link) to calculate the optimal upgrade sequence, and then start the upgrade task in sequence, and the task management scheduling module performs real-time scheduling on the upgrade task, thereby maximizing the use of server hardware and software.
  • the first embodiment of the present invention separates the version downloading and activating process, and after the user ensures that the version file is normally downloaded, the activation task is started, and the upgrade order is optimized according to the topology structure in the traditional network element version upgrade, and the remote priority order is adopted. Upgrade, the network management server can schedule the version upgrade process of the NE in real time.
  • the network element upgrade method is implemented by the following modules. For the continuous relationship of each module, refer to FIG. 4.
  • Ml version management human-computer interaction module This module is deployed on the network management client. This module provides a human-machine interface. The user imports the version file to the M5 module, selects the NE that needs to be upgraded, and sends it to the M2 module, and sets the control parameters of the M3 module. Ml receives the upgrade progress and result information from the M4 module and presents it to the user.
  • M2 upgrade sequence optimization module This module is deployed on the network management server. This module is based on the network topology information stored in the network management.
  • the network topology is a graph structure starting from the network management server (for example, the network topology diagram shown in Figure 2).
  • the breadth-first prioritization scheme is adopted before the upgrade. Bandwidth information weighting),
  • the user-selected NEs that are received from the M1 module are sorted in order from the far-end to the near-end from the starting point, and the optimal upgrade sequence is calculated.
  • the upgraded sequence of the NE information to be upgraded is forwarded to the M3 module. .
  • the module receives information from the M2 module, creates a corresponding task object, and adds the task object to the task list.
  • the task scheduling thread executes the state according to the current task thread (the task status information is as shown in Table 1), and the thread executes the maximum concurrent number. Monitor and schedule management of tasks.
  • the started task thread sends a download/activation command to the M6 module.
  • M4 version upgrade progress result monitoring module This module is deployed on the network management server. The module maintains a record for each upgrade task, including downloads and activations.
  • the record includes the network element identification (name, IP, etc.), download/activation version number, progress/result, start time, end time, and the like. Monitor the progress and results before the end of the task, and send the progress result information to the Ml module for processing. At the end of the task, the information is persisted to a file or database for user queries.
  • M5 file library management module This module is deployed on the network management server, which may be the logical module formed by the FTP server. This module is responsible for maintaining the version file: accepting the version file import request from the M1 module, storing the version file into the library management; accepting the version file deletion request from the Ml module, deleting the version file management; accepting the version file download request from the M6 module Download the version file from this library by the M6 module.
  • M6 command / file receiving module This module is deployed on the network element. This module accepts instructions from the M3 module, initiates a data download request to the M5 module, receives data to the network element, or executes the load activation version according to the activation command indication.
  • the task status in the M3 module task management list is mainly Ready and Executing status. If necessary, you can add a Scheduled status if you need to set a timed task. When the task ends, including success, failure, and cancellation, the scheduling thread removes the Task from the task list and frees memory.
  • Table 1 Task Status Information Table
  • the bandwidth of the high-volume network element in the prior art is a bottleneck when the version is downloaded, and the shortcoming of the remote network element is caused by the restart of the local network element, which solves the shortcomings in the prior art.
  • Upgrade risk and upgrade time issues In the embodiment of the present invention, the downloading and activation of the version are separated, and the version is downloaded first and then the network element is restarted to minimize the risk of upgrading.
  • the embodiment of the present invention calculates an optimal upgrade sequence according to a network element list and a network topology structure (which may also utilize the bandwidth information of the link), or the user configures an optimal upgrade sequence, and then schedules the upgrade according to the sequence. task.
  • the user sets the size of the upgrade task management list and starts the number of concurrent downloads.
  • the task management scheduling module performs real-time scheduling on the upgrade tasks in the most order, thereby maximizing the utilization of server hardware and software resources and the whole.
  • the bandwidth of the network minimizes service interruption time, efficiently completes the upgrade of the NE software version, and automatically monitors and records the progress report of the upgrade progress, so that users can query the operation progress and result information at any time, and reduce manual intervention.
  • the second embodiment is a specific embodiment of the network element upgrade.
  • the upgrade sequence of the network element upgrade is determined by the network management server. The specific process is as shown in FIG.
  • Step S602 The user configures the software and hardware according to the network management server. For the resource status, configure the parameters of the upgrade task management list and the maximum number of concurrent connections in the M1 module, and forward the parameters of the configuration to the M3 module. In the M1 module, import the version file and select the NE to be upgraded. The NE ID to be upgraded is forwarded to the M2 module to start the upgrade.
  • Step S604 The M2 module uses a breadth-first ordering scheme (which can be weighted by the bandwidth information of the link), and the network elements selected by the user received from the M1 module are sorted in the order from the remote end to the near end in the order of the network management server, and the calculation is performed.
  • a breadth-first ordering scheme which can be weighted by the bandwidth information of the link
  • the optimal upgrade sequence is to forward the optimized upgrade sequence of the NE information to be upgraded to the M3 module. It is assumed that the network topology upgrade order time interval T(n) composed of n network elements is calculated, and the time depends on the algorithm complexity and the processing capacity of the network management server. Generally, ⁇ ( ⁇ ) is much smaller than that required to activate n network elements. time. Step S606: The M3 module performs real-time monitoring and scheduling management on the upgrade task thread according to parameters such as the upgrade task management list capacity TASKtota maximum concurrent number TASKmax set by the M1 module.
  • the M3 module receives the request for upgrade information from the M2 module, detects that the current task list is empty, and immediately creates a TASKtotal task in the upgrade order to join the task list, and starts the TASKmax bar Ready state task with the highest priority at the end of the list.
  • the scheduling thread monitors the task status in the task list in real time, and immediately removes the free memory space after the task is executed, and starts the Ready state task at the end of the list.
  • the network element download version file takes an average time Tdownload. According to this patent scheduling method, except for the last less than TASKmax tasks to be executed, the download tasks simultaneously executed in parallel at each time are TASKmax.
  • the response timeout time of the NE to the activation command is Tack seconds, and the NE needs to restart the loading version file to make the version take effect.
  • the average time required is Tacitve, based on this patent scheduling method, except for the last less than TASKmax tasks to be executed.
  • the activation tasks that are simultaneously executed in parallel at each moment are TASKmax.
  • Twait Ta C k * (Ttotal/Tmax-1 ).
  • the started thread sends an activation command to the M6 module.
  • Step S608 the M6 module receives the command from the M3 module, and if the download command is received, requests the M5 module to download the version file, and reports the download progress and the result to the M4 module; if the activation command is received, the verification is performed. The parameter and the backup version are reported to the M4 module.
  • Steps S610 and M4 send the NE version download/activation progress and result information to the M1 module, and the M1 module displays related information to the user, and the user can also monitor the upgrade progress and results through the M1 module, and perform corresponding management according to the progress and result information. Operation, such as canceling the download, activation after downloading, etc.
  • the third embodiment of the second embodiment optimizes the upgrade sequence in S604.
  • the network management server automatically calculates the optimal upgrade sequence according to the network topology information.
  • the optimal upgrade sequence can be configured by the user through the file mode, and the upgrade information is imported through the file, and the information includes the upgrade sequence, and the upgrade is performed in the order specified in the file.
  • the specific process of this embodiment is shown in FIG. 7, and includes: Step S702: The user allocates the parameters of the upgrade task management list capacity and the maximum number of concurrent connections of the network management server to the M3 module according to the configuration of the network management server software and hardware, and the parameters of the configuration are forwarded to the M3 module in the M1 module.
  • the NE that needs to be upgraded forwards the version information and the NE ID to be upgraded to the M2 module to start the upgrade.
  • Step S704 Before upgrading the NE version, the user can configure an optimal upgrade sequence through the file mode, and import the upgrade information through the file, where the information includes the upgrade sequence, and the upgrade is performed in the order specified in the file.
  • the optimized upgrade sequence of the NE information to be upgraded is forwarded to the M3 module. It is assumed that the network topology upgrade order time interval T(n) composed of n network elements is calculated, and the time depends on the algorithm complexity and the processing capacity of the network management server. Generally, ⁇ ( ⁇ ) is much smaller than that required to activate n network elements. time.
  • Step S706 The M3 module performs real-time monitoring and scheduling management on the upgrade task thread according to parameters such as the upgrade task management list capacity TASKtota maximum concurrent number TASKmax set by the M1 module.
  • the M3 module receives the request for upgrade information from the M2 module, detects that the current task list is empty, and immediately creates a TASKtotal task in the upgrade order to join the task list, and starts the TASKmax bar Ready state task with the highest priority at the end of the list.
  • the scheduling thread monitors the task status in the task list in real time, and immediately removes the free memory space after the task is executed, and starts the Ready state task at the end of the list.
  • the network element download version file takes an average time Tdownload.
  • the download tasks simultaneously executed in parallel at each time are TASKmax.
  • M3 no longer creates the task object, but waits for a period of time after Twait to continue to detect the task management list to determine whether it is possible to continue to create a new task object.
  • Step S708 The M6 module receives the command from the M3 module, and if the download command is received, requests the M5 module to download the version file, and reports the download progress and the result to the M4 module; if the activation command is received, Check the parameters and the backup version, and report the verification result to the M4 module. If the verification is correct, the NE is loaded with the version file, and the restart takes effect. Steps S710 and M4 send the NE version download/activation progress and result information to the M1 module, and the M1 module displays related information to the user. The user can also monitor the upgrade progress and results through the M1 module, and perform corresponding management according to the progress and result information. Operation, such as canceling the download, activation after downloading, etc.
  • the fourth embodiment differs from the second embodiment and the third embodiment in that, before upgrading the network element version, the user can configure the upgrade sequence through the human-machine interface operation module.
  • the upgrade is performed in the order in which they are configured.
  • the specific process of this embodiment is as shown in FIG. 8, and includes: Step S802:
  • the user configures the resource according to the software and hardware configuration of the network management server, and configures the parameter of the upgrade task management list capacity and the maximum number of concurrent connections of the network management server in the M1 module, and configures the parameters.
  • the parameter is forwarded to the M3 module.
  • the M1 module imports the version file and selects the NE to be upgraded.
  • the version information and the NE ID to be upgraded are forwarded to the M2 module to start the upgrade.
  • Step S804 Before upgrading the NE version, the user can configure the upgrade sequence through the human-machine interface operation module. The upgrade is performed in the order in which they are configured. The optimized upgrade sequence of the NE information to be upgraded is forwarded to the M3 module. It is assumed that the network topology upgrade sequence time interval T(n) composed of n network elements is calculated, which depends on the algorithm complexity and the processing capacity of the network management server. Generally, ⁇ ( ⁇ ) is much smaller than that required to activate n network elements. time.
  • Step S806 The M3 module performs real-time monitoring and scheduling management on the upgrade task thread according to parameters such as the upgrade task management list capacity TASKtota maximum concurrent number TASKmax set by the M1 module.
  • the M3 module receives the request for upgrade information from the M2 module, detects that the current task list is empty, and immediately creates a TASKtotal task in the upgrade order to join the task list, and starts the TASKmax bar Ready state task with the highest priority at the end of the list.
  • the scheduling thread monitors the task status in the task list in real time, and immediately removes the free memory space after the task is executed, and starts the Ready state task at the end of the list.
  • the network element download version file takes an average time Tdownload. According to this patent scheduling method, except for the last less than TASKmax tasks to be executed, the download tasks simultaneously executed in parallel at each time are TASKmax.
  • the response timeout time of the NE to the activation command is Tack seconds, and the NE needs to restart the loading version file to make the version take effect.
  • the average time required is Tacitve, based on this patent scheduling method, except for the last less than TASKmax tasks to be executed.
  • the activation tasks that are simultaneously executed in parallel at each moment are TASKmax.
  • Twait Ta C k * (Ttotal/Tmax-1 ).
  • the started thread sends an activation command to the M6 module.
  • Steps S810 and M4 send the NE version download/activation progress and result information to the M1 module, and the M1 module displays related information to the user.
  • the user can also monitor the upgrade progress and results through the M1 module, and perform corresponding management according to the progress and result information. Operation, such as canceling the download, activation after downloading, etc.
  • the solution is in accordance with the essential idea of the embodiment of the present invention, and the upgrade downloading and activation process is upgraded.
  • the upgrade scheduling sequence is optimized according to the network topology structure, and the upgrade task scheduling management is optimized according to the server configuration resources, which are all in the embodiment of the present invention. protected range.
  • an embodiment of the present invention further provides a network element upgrading apparatus, and a schematic structural diagram thereof is shown in FIG. 9, which includes: a downloading module 901, configured to perform an upgraded version on at least one network element that needs to be upgraded.
  • the activation module 902 is coupled to the download module 901, and is configured to activate the upgrade version downloaded by each network element after the download of the upgraded version of the at least one network element is completed, and upgrade each network element.
  • the downloading module 901 can also be configured to sequentially download the upgraded version of the at least one network element in the upgrade order.
  • the downloading module 901 may be further configured to calculate an upgrade sequence according to the network element list and the network topology of the at least one network element; or, according to the network element list, the network topology, and the link of the at least one network element.
  • the bandwidth information is used to calculate the upgrade sequence; or, the user configures the upgrade sequence through file configuration.
  • all the network elements are activated after the upgraded version is downloaded, instead of being activated after the single network element downloads the upgraded version, which avoids the downloading and service interruption of the remote network element, and improves the download speed. And the quality of the business.
  • the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • activation is performed after all network elements have downloaded the upgraded version, instead of being activated after a single network element downloads the upgraded version, thereby avoiding The downloading and service interruption of the remote network element improves the download speed and service quality.
  • the device can be restarted during the activation process, and the remote device is taken off. The problem that the remote device cannot be upgraded can improve the efficiency of the upgrade.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed are a network element upgrading method and device. The method includes: downloading an upgraded version of at least one network element which is designated to be upgraded; and after the download of the upgraded version of the at least one network element, activating the downloaded upgraded version of each network element to upgrade each network element. The present invention can be applied to solve the following problem in the related art: that the reboot operation during the upgrade of a near-end network element will cause the service of a far-end network element which takes the near-end network element as a starting point to be interrupted, and the network bandwidth should be made the best.

Description

网元升级方法及装置 技术领域 本发明涉及通信领域, 具体而言, 涉及一种网元升级方法及装置。 背景技术 为适应运营商的需求多而且变化快的现状, 设备制造商不得不经常更新网元软件 版本来满足新的需求。 关于网元软件版本升级, 目前已有的升级方案是采用下载版本后自动重启激活版 本, 即网元下载完待升级软件版本后, 立即进行重启激活。 但是, 在微波传输网络中 该方案存在很大的缺陷: 由于微波设备通过无线链路连接, 近端网元( E) 的重启将 导致所有以 E为起点的远端网元业务中断, 在批量升级中, 如果近端网元先下载完 即重启激活版本, 所有远端网元的下载及业务将中断, 这是运营商无法接受的。 针对相关技术中近端网元升级中的重启操作会导致以近端网元为起点的远端网元 业务中断的问题, 目前尚未提出有效的解决方案。 发明内容 本发明提供了一种网元升级方法及装置, 以至少解决相关技术中近端网元升级中 的重启操作会导致以近端网元为起点的远端网元业务中断的问题。 根据本发明的一个方面, 提供了一种网元升级方法, 包括: 对指定的需要升级的 至少一个网元进行升级版本的下载; 待所述至少一个网元的升级版本均下载结束后, 激活各网元下载的升级版本, 对各网元进行升级。 优选的, 所述对指定的需要升级的至少一个网元进行升级版本的下载, 包括: 对 所述至少一个网元按升级顺序依次进行升级版本的下载。 优选的, 所述升级顺序按如下步骤确定: 根据所述至少一个网元的网元列表、 网 络拓扑结构确定所述升级顺序。 优选的, 所述升级顺序按如下步骤确定: 根据所述至少一个网元的网元列表、 网 络拓扑结构和链路的带宽信息确定所述升级顺序。 优选的, 确定所述升级顺序还包括: 对所述至少一个网元按照网元与网管服务器 的距离起点从远端到近端的顺序对所述至少一个网元的升级顺序进行排序。 优选的, 所述升级顺序按如下步骤确定: 由用户通过文件方式配置制定所述升级 顺序。 优选的,所述对指定的需要升级的至少一个网元进行升级版本的下载之前,包括: 根据对网元进行升级的系统的资源配置信息设置升级任务管理列表容量大小, 启动并 发下载数量。 优选的, 在下载过程中, 网管服务器对各网元的升级任务进行实时调度, 记录各 网元的升级进度结果。 根据本发明的另一方面, 提供了一种网元升级装置, 包括: 下载模块, 设置为对 指定的需要升级的至少一个网元进行升级版本的下载; 激活模块, 设置为待所述至少 一个网元的升级版本均下载结束后,激活各网元下载的升级版本,对各网元进行升级。 优选的, 所述下载模块还设置为对所述至少一个网元按升级顺序依次进行升级版 本的下载。 优选的, 所述下载模块还设置为根据所述至少一个网元的网元列表、 网络拓扑结 构计算所述升级顺序; 或者, 根据所述至少一个网元的网元列表、 网络拓扑结构和链 路的带宽信息计算所述升级顺序; 或者, 由用户通过文件方式配置制定所述升级顺序。 在本发明实施例中, 对指定的需要升级的至少一个网元进行升级版本的下载, 待 指定的至少一个网元的升级版本均下载结束后, 激活各网元下载的升级版本, 对各网 元进行升级。 即在本发明实施例中, 所有网元均下载完升级版本后才进行激活, 而不 是单个网元下载完升级版本后就进行激活, 避免了远端网元的下载及业务中断, 提高 下载速度及业务质量。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据本发明实施例的网元升级方法的第一种处理流程图; 图 2是根据本发明实施例的网管、 网元组网拓扑图; 图 3是根据本发明实施例的网元升级方法的第二种处理流程图; 图 4是根据本发明实施例的系统软件架构; 图 5是根据本发明实施例的任务管理列表的示意图; 图 6是根据本发明实施例的实施例二的网元升级的处理流程图; 图 7是根据本发明实施例的实施例三的网元升级的处理流程图; 图 8是根据本发明实施例的实施例四的网元升级的处理流程图; 以及 图 9是根据本发明实施例的网元升级装置的结构示意图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 相关技术中提到,近端网元的重启将导致所有以 E为起点的远端网元业务中断, 在批量升级中, 如果近端网元先下载完即重启激活版本, 所有远端网元的下载及业务 将中断, 这是运营商无法接受的。 为解决上述技术问题, 本发明实施例提供了一种网元升级方法, 其处理流程如图TECHNICAL FIELD The present invention relates to the field of communications, and in particular to a network element upgrade method and apparatus. BACKGROUND In order to meet the needs of operators and the rapid changes, equipment manufacturers have to update the network software version frequently to meet new demands. On the upgrade of the NE software version, the existing upgrade solution is to automatically restart the activation version after the download version is released. After the NE downloads the software version to be upgraded, the system restarts and activates immediately. However, this solution has a large defect in the microwave transmission network: Since the microwave device is connected through the wireless link, the restart of the near-end network element (E) will cause all the remote network element services starting from E to be interrupted. During the upgrade, if the near-end NE is restarted after the download is complete, the download and service of all remote NEs will be interrupted, which is unacceptable to the operator. The restarting operation in the near-end network element upgrade in the related art may cause the interruption of the remote network element service starting from the near-end network element. Currently, no effective solution has been proposed. SUMMARY OF THE INVENTION The present invention provides a method and an apparatus for upgrading a network element, so as to solve at least the problem that the remote network element service starting from the near-end network element is interrupted due to the restart operation in the near-end network element upgrade in the related art. According to an aspect of the present invention, a method for upgrading a network element is provided, including: downloading an upgrade version of at least one network element that needs to be upgraded; and after the upgrade version of the at least one network element is downloaded, Upgrade the version of each NE to upgrade the NEs. Preferably, the downloading of the upgraded version of the at least one network element that needs to be upgraded includes: downloading the upgraded version of the at least one network element in the upgrade order. Preferably, the upgrading sequence is determined as follows: The upgrade sequence is determined according to the network element list and the network topology of the at least one network element. Preferably, the upgrading sequence is determined according to the following steps: determining the upgrade sequence according to the network element list of the at least one network element, the network topology, and the bandwidth information of the link. Preferably, determining the upgrade sequence further includes: sorting, by the at least one network element, an upgrade order of the at least one network element according to a starting point of a distance between the network element and the network management server from a remote end to a near end. Preferably, the upgrading sequence is determined as follows: The upgrade sequence is determined by a user by using a file mode configuration. Preferably, before the downloading of the upgraded version of the at least one network element that needs to be upgraded, the method includes: setting the size of the upgrade task management list according to the resource configuration information of the system for upgrading the network element, and starting the concurrent download quantity. Preferably, in the downloading process, the network management server performs real-time scheduling on the upgrade tasks of the network elements, and records the upgrade progress results of the network elements. According to another aspect of the present invention, a network element upgrading apparatus is provided, including: a downloading module, configured to perform downloading of an upgraded version of a specified at least one network element that needs to be upgraded; and an activation module configured to be at least one of the at least one After the upgraded version of the NE is downloaded, the upgraded version downloaded by each NE is activated and the NEs are upgraded. Preferably, the downloading module is further configured to sequentially download the upgraded version of the at least one network element in an upgrade order. Preferably, the downloading module is further configured to calculate the upgrade sequence according to the network element list and the network topology of the at least one network element; or, according to the network element list, the network topology, and the chain of the at least one network element The bandwidth information of the road calculates the upgrade sequence; or, the upgrade sequence is formulated by the user through file mode configuration. In the embodiment of the present invention, the upgraded version of the at least one network element that needs to be upgraded is downloaded, and after the upgraded version of the at least one network element is downloaded, the upgraded version downloaded by each network element is activated. Meta upgrade. That is, in the embodiment of the present invention, all the network elements are activated after the upgraded version is downloaded, instead of being activated after the single network element downloads the upgraded version, which avoids the downloading and service interruption of the remote network element, and improves the download speed. And the quality of the business. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawings: FIG. 1 is a first process flowchart of a network element upgrading method according to an embodiment of the present invention; 2 is a network management network element and network element network topology diagram according to an embodiment of the present invention; FIG. 3 is a second processing flowchart of a network element upgrade method according to an embodiment of the present invention; FIG. 4 is a system software according to an embodiment of the present invention; 5 is a schematic diagram of a task management list according to an embodiment of the present invention; FIG. 6 is a flowchart of processing a network element upgrade according to Embodiment 2 of the present invention; FIG. 7 is a third embodiment according to an embodiment of the present invention. FIG. 8 is a flowchart of processing a network element upgrade according to Embodiment 4 of the present invention; and FIG. 9 is a schematic structural diagram of a network element upgrading apparatus according to an embodiment of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. As mentioned in the related art, the restart of the near-end NE will cause all the remote NE services that are started from the E to be interrupted. In the batch upgrade, if the near-end NE is downloaded, the active version is restarted. The download and business will be interrupted, which is unacceptable to operators. To solve the above technical problem, the embodiment of the present invention provides a network element upgrade method, and the processing flow thereof is as shown in the figure.
1所示, 包括步骤 S102至步骤 S104: 步骤 S102、 对指定的需要升级的至少一个网元进行升级版本的下载; 步骤 S104、 待指定的至少一个网元的升级版本均下载结束后, 激活各网元下载的 升级版本, 对各网元进行升级。 在本发明实施例中, 对指定的需要升级的至少一个网元进行升级版本的下载, 待 指定的至少一个网元的升级版本均下载结束后, 激活各网元下载的升级版本, 对各网 元进行升级。 即在本发明实施例中, 所有网元均下载完升级版本后才进行激活, 而不 是单个网元下载完升级版本后就进行激活, 避免了远端网元的下载及业务中断, 提高 下载速度及业务质量。 另外, 相关技术中, 网元需要下载的版本文件数据传输量非常大, 小的上百 KB, 大的几十 MB, 甚至上百 MB, 这样在有限带宽和并发数资源条件下, 如果该网管管 理的网元数量比较多的时候, 每次完成网元软件版本升级需要很长的时间。 目前下载 技术下载顺序是随机的, 如图 2中网络结构, 假如每段链路的带宽都是 5M, 那么网 元 E1、 E2同时升级的时候,每个网元获得的带宽都是 5M。但是如果是 E1、 E11、 E12、 E13同时升级, 那么他们将共享 5M带宽; 如果 E1、 E11、 E12、 E11K E112、 E121等一起并发升级的时候, 问题就更严重了, 带宽显然是瓶颈。 此外, 假如网管服务器内存配置最多可支持同时创建 300个网元的升级任务, 最 多可支持 50个连接数并行下载, 而用户希望升级 1000跳网元, 此时更需要充分利用 内存, 进行任务的合理调度才能有效的提高升级效率。 为解决下载过程中带宽的瓶颈问题, 在本发明实施例中, 可以对至少一个网元进 行排序,按升级顺序依次进行升级版本的下载,其具体流程如图 3所示,包括步骤 S302 至步骤 S306: 步骤 S302、 对指定的需要升级的至少一个网元进行排序; 步骤 S304、 按顺序对指定的需要升级的至少一个网元进行升级版本的下载; 步骤 S306、 待指定的至少一个网元的升级版本均下载结束后, 按顺序激活各网元 下载的升级版本, 对各网元进行升级。 在本发明实施例中, 对需要进行升级的网元进行排序, 就能够避免多个网元同时 进行下载, 能够有效利用有限带宽和并发资源, 避免多个网元同时下载导致的网络堵 塞甚至崩溃的问题。 其中, 升级顺序的确定方式可以有多种, 例如, 可以根据至少一个网元的网元列 表、 网络拓扑结构确定升级顺序, 还可以根据至少一个网元的网元列表、 网络拓扑结 构和链路的带宽信息确定升级顺序。 在具体实施过程中, 还可以采用其他确定方式, 例如, 按升级所需下载文件包的大小进行排序, 以及, 由用户通过文件方式配置制定 升级顺序, δΡ, 根据用户的指示信息指定待升级网元的升级顺序, 等等。 在一个优选的实施例中, 确定升级顺序还可以包括: 对至少一个网元按照网元与 网管服务器的距离起点从远端到近端的顺序对至少一个网元的升级顺序进行排序。 该 步骤充分考虑到网元与服务器的距离, 也是一种优选的实施方式。 实施时, 对指定的需要升级的至少一个网元进行升级版本的下载之前, 根据对网 元升级的系统的资源配置信息设置升级任务管理列表容量大小, 启动并发下载数量, 即确认网管服务器能够容纳多少网元同时进行下载, 并以此进行管理。在网管系统中, 通过设置网管服务器的资源配置信息进行管理, 而在其他系统中实施网元升级时, 配 置的就是该系统的相应资源。 在下载过程中, 网管服务器对各网元的升级任务进行监控, 实现实时调度, 记录 各网元的升级进度结果, 以供用户能够随时查询到操作进度和结果信息, 减少人工干 预。 由上述分析可见, 在本发明实施例提供的网元升级方法中, 用户根据网管服务器 软硬件资源配置情况, 设置升级任务管理列表容量大小、 启动并发下载数量, 网管进 而根据用户指定的网元列表、 网络拓扑结构 (还可以利用链路的带宽信息)计算出最优 的升级顺序, 然后按顺序启动升级任务, 并由任务管理调度模块对升级任务进行实时 调度, 从而最大限度的利用服务器软硬件资源和整个网络的带宽, 最大限度减少业务 中断时间, 保证升级的安全性, 高效完成网元软件版本的升级, 并自动实时监控记录 升级进度结果报告, 使用户能够随时查询到操作进度和结果信息, 减少人工干预。 为将本发明实施例提供的网元升级方法阐述地更清楚更明白, 现以具体实施例进 行说明。 实施例一 本发明实施例分离版本下载和激活流程, 在用户确保正常下载完版本文件后启动 激活任务, 在传统的网元版本升级上实现了根据拓扑结构优化升级顺序, 采用远端优 先按序升级, 网管服务器可以实时调度网元的版本升级过程。 本发明实施例中由以下 几个模块实现网元升级方法, 各模块的连续关系请参见图 4。 As shown in FIG. 1 , the method includes the following steps: Step S102: Step S102: Perform downloading of the upgraded version of the at least one network element that needs to be upgraded. Step S104: After the downloaded version of the at least one network element to be specified is downloaded, activate each Upgrade the NEs to upgrade the NEs. In the embodiment of the present invention, the upgraded version of the at least one network element that needs to be upgraded is downloaded, and after the upgraded version of the at least one network element is downloaded, the upgraded version downloaded by each network element is activated. Meta upgrade. That is, in the embodiment of the present invention, all the network elements are activated after the upgraded version is downloaded, instead of being activated after the single network element downloads the upgraded version, which avoids the downloading and service interruption of the remote network element, and improves the download speed. And the quality of the business. In addition, in the related art, the data volume of the version file that the network element needs to download is very large, a small number of hundreds of KB, a large tens of megabytes, or even hundreds of megabytes, so that under the condition of limited bandwidth and concurrent resources, if the network management When the number of managed NEs is large, it takes a long time to complete the upgrade of the NE software version. At present, the downloading sequence of the downloading technology is random. As shown in Figure 2, if the bandwidth of each link is 5M, then the network elements E1 and E2 are upgraded at the same time, and the bandwidth obtained by each network element is 5M. However, if E1, E11, E12, and E13 are upgraded at the same time, they will share 5M bandwidth; if E1, E11, E12, E11K E112, E121, etc. are concurrently upgraded, the problem is more serious, and bandwidth is obviously a bottleneck. In addition, if the network management server memory configuration can support up to 300 network element upgrade tasks at the same time, it can support up to 50 connection numbers for parallel download, and users want to upgrade 1000-hop network elements. At this time, it is necessary to make full use of memory and perform tasks. Reasonable scheduling can effectively improve the efficiency of the upgrade. In order to solve the bottleneck problem of the bandwidth in the downloading process, in the embodiment of the present invention, at least one network element may be sorted, and the upgrade version is downloaded in the order of the upgrade. The specific process is as shown in FIG. 3, including steps S302 to S306: Step S302: Sorting the specified at least one network element that needs to be upgraded; Step S304: Performing, in sequence, downloading the upgraded version of the specified at least one network element that needs to be upgraded; Step S306, at least one network element to be specified After the upgrade version is downloaded, the upgraded versions downloaded by each NE are activated in sequence to upgrade the NEs. In the embodiment of the present invention, when the network elements that need to be upgraded are sorted, multiple network elements can be prevented from being downloaded at the same time, and the limited bandwidth and concurrent resources can be effectively utilized to avoid network congestion or even collapse caused by simultaneous downloading of multiple network elements. The problem. The upgrade sequence may be determined in multiple ways. For example, the upgrade sequence may be determined according to the network element list and the network topology of at least one network element, and may also be based on the network element list, network topology, and link of at least one network element. The bandwidth information determines the upgrade order. In the specific implementation process, other determination manners may also be adopted, for example, sorting according to the size of the download file package required for the upgrade, and the user may formulate the upgrade sequence by using the file mode configuration, δΡ, and designating the network to be upgraded according to the instruction information of the user. Meta upgrade order, and so on. In a preferred embodiment, determining the upgrade sequence may further include: sorting, by the at least one network element, an upgrade order of the at least one network element according to a starting point of the distance between the network element and the network management server from a remote end to a near end. This step takes into account the distance between the network element and the server, and is also a preferred embodiment. In the implementation, before the download of the upgraded version of the specified NE is upgraded, set the size of the upgrade task management list based on the resource configuration information of the system upgraded by the NE, and start the number of concurrent downloads, that is, confirm that the network management server can accommodate How many network elements are downloaded at the same time and managed as such. In the network management system, the resource configuration information of the network management server is set for management, and when the network element upgrade is implemented in other systems, the corresponding resources of the system are configured. During the download process, the network management server monitors the upgrade tasks of each network element, implements real-time scheduling, and records the upgrade progress results of each network element, so that users can query the operation progress and result information at any time, and reduce manual intervention. It can be seen from the above analysis that, in the network element upgrade method provided by the embodiment of the present invention, the user sets the size of the upgrade task management list and the number of concurrent downloads according to the configuration of the network management server software and hardware resources, and the network management system further selects the network element list according to the user. The network topology (you can also use the bandwidth information of the link) to calculate the optimal upgrade sequence, and then start the upgrade task in sequence, and the task management scheduling module performs real-time scheduling on the upgrade task, thereby maximizing the use of server hardware and software. Resources and bandwidth of the entire network, minimize service interruption time, ensure the security of the upgrade, efficiently complete the upgrade of the network software version, and automatically monitor and record the progress report of the upgrade progress, so that users can query the operation progress and result information at any time. , reduce manual intervention. In order to clarify the network element upgrade method provided by the embodiment of the present invention, it will be described in detail with reference to specific embodiments. The first embodiment of the present invention separates the version downloading and activating process, and after the user ensures that the version file is normally downloaded, the activation task is started, and the upgrade order is optimized according to the topology structure in the traditional network element version upgrade, and the remote priority order is adopted. Upgrade, the network management server can schedule the version upgrade process of the NE in real time. In the embodiment of the present invention, the network element upgrade method is implemented by the following modules. For the continuous relationship of each module, refer to FIG. 4.
1: Ml版本管理人机交互模块: 本模块部署在网管客户端。 本模块提供一个人机 交互界面, 用户导入版本文件到 M5模块, 选择需要进行版本升级的网元发送至 M2 模块, 并设置 M3模块的控制参数。 Ml接收来自 M4模块的升级进度和结果信息, 呈 现给用户。 1: Ml version management human-computer interaction module: This module is deployed on the network management client. This module provides a human-machine interface. The user imports the version file to the M5 module, selects the NE that needs to be upgraded, and sends it to the M2 module, and sets the control parameters of the M3 module. Ml receives the upgrade progress and result information from the M4 module and presents it to the user.
2: M2升级顺序优化模块: 本模块部署在网管服务器。 本模块根据网管中存储的 网络拓扑结构信息, 该网络拓扑结构为以网管服务器为起点的图结构 (例如图 2所示 的网络拓扑图), 在升级前采用广度优先排序方案 (可以结合链路的带宽信息加权), 将从 Ml模块接收到的用户选择的网元按距离起点从远端到近端的顺序进行排序, 计 算出最优的升级顺序, 将待升级的网元信息优化后的升级顺序转发到 M3模块。 2: M2 upgrade sequence optimization module: This module is deployed on the network management server. This module is based on the network topology information stored in the network management. The network topology is a graph structure starting from the network management server (for example, the network topology diagram shown in Figure 2). The breadth-first prioritization scheme is adopted before the upgrade. Bandwidth information weighting), The user-selected NEs that are received from the M1 module are sorted in order from the far-end to the near-end from the starting point, and the optimal upgrade sequence is calculated. The upgraded sequence of the NE information to be upgraded is forwarded to the M3 module. .
3: M3版本升级任务管理调度模块: 本模块部署在网管服务器, 维护一个任务管 理列表, 参考图 5, 任务列表总容量 TASKtotal=TASKwait+TASKmax。 本模块接收来 自 M2模块的信息, 创建对应任务对象, 将任务对象加入到任务列表中, 由任务调度 线程根据当前任务线程执行状态(任务状态信息说明如表一所示)、线程执行最大并发 数对任务进行监控调度管理。 启动的任务线程将下载 /激活命令发送到 M6模块。 3: M3 version upgrade task management scheduling module: This module is deployed in the network management server, maintain a task management list, refer to Figure 5, the total task list capacity TASKtotal = TASKwait + TASKmax. The module receives information from the M2 module, creates a corresponding task object, and adds the task object to the task list. The task scheduling thread executes the state according to the current task thread (the task status information is as shown in Table 1), and the thread executes the maximum concurrent number. Monitor and schedule management of tasks. The started task thread sends a download/activation command to the M6 module.
4: M4版本升级进度结果监控模块: 本模块部署在网管服务器端。 该模块为每个 升级任务 (包括下载和激活) 维护了一条记录。 该记录包括网元标识 (名称、 IP等)、 下载 /激活版本号、 进度 /结果、 开始时间、 结束时间等。 任务结束前监控进度和结果, 并将进度结果信息发到 Ml模块处理。 任务结束则将信息持久化至文件或数据库, 以 备用户查询。 4: M4 version upgrade progress result monitoring module: This module is deployed on the network management server. The module maintains a record for each upgrade task, including downloads and activations. The record includes the network element identification (name, IP, etc.), download/activation version number, progress/result, start time, end time, and the like. Monitor the progress and results before the end of the task, and send the progress result information to the Ml module for processing. At the end of the task, the information is persisted to a file or database for user queries.
5: M5文件库管理模块: 本模块部署在网管服务器上, 可能是 FTP服务器构成的 逻辑模块。 本模块负责维护版本文件: 接受来自 Ml模块的版本文件入库请求, 将版 本文件入库管理; 接受来自 Ml模块的版本文件删除请求, 将版本文件删除管理; 接 受来自 M6模块的版本文件下载请求, 由 M6模块从本库下载版本文件。 5: M5 file library management module: This module is deployed on the network management server, which may be the logical module formed by the FTP server. This module is responsible for maintaining the version file: accepting the version file import request from the M1 module, storing the version file into the library management; accepting the version file deletion request from the Ml module, deleting the version file management; accepting the version file download request from the M6 module Download the version file from this library by the M6 module.
6: M6命令 /文件接收模块: 本模块部署在网元上。 本模块接受来自 M3模块的指 示, 向 M5模块发起数据下载请求, 接收数据到网元, 或者根据激活命令指示执行加 载激活版本。 M3模块任务管理列表中的任务状态主要为 Ready、 Executing状态, 根据需要, 如果需要设定定时任务还可增设 Scheduled状态等。 当任务 (Task) 结束, 包括成功、 失败、 取消后, 调度线程将 Task从任务列表中移出, 释放内存。 任务状态说明如表一 所示: 任务状态信息表 6: M6 command / file receiving module: This module is deployed on the network element. This module accepts instructions from the M3 module, initiates a data download request to the M5 module, receives data to the network element, or executes the load activation version according to the activation command indication. The task status in the M3 module task management list is mainly Ready and Executing status. If necessary, you can add a Scheduled status if you need to set a timed task. When the task ends, including success, failure, and cancellation, the scheduling thread removes the Task from the task list and frees memory. The task status description is shown in Table 1: Task Status Information Table
Figure imgf000007_0001
Executing 执行中 监控任务进度和结果
Figure imgf000007_0001
Executing execution monitoring task progress and results
Succeed/Failed/ Cancele 结束 移出任务列表,持久化记录 d Succeed/Failed/ Cancele End Move out of the task list, persistent record d
采用本发明实施例能够解决如下技术问题: 现有技术中的大批量网元进行版本下 载时带宽成为瓶颈, 以及近端网元重启导致远端网元业务中断缺点, 解决现有技术中 存在的升级风险和升级时间问题。 本发明实施例将版本的下载和激活分开, 先下载完 版本再激活重启网元, 最大限度降低升级风险。 本发明实施例根据用户指定的网元列 表、 网络拓扑结构 (还可利用链路的带宽信息)计算出最优的升级顺序, 或者由用户配 置好最优的升级顺序, 然后按顺序调度启动升级任务。 用户根据网管服务器软硬件资 源配置情况, 设置升级任务管理列表容量大小、 启动并发下载数量, 由任务管理调度 模块对升级任务按最有顺序进行实时调度, 从而最大限度的利用服务器软硬件资源和 整个网络的带宽, 最大限度减少业务中断时间, 高效完成网元软件版本的升级, 并自 动实时监控记录升级进度结果报告, 使用户能够随时查询到操作进度和结果信息, 减 少人工干预。 实施例二 本实施例是网元升级的一个具体实施例, 本例中网元升级的升级顺序由网管服务 器确定, 具体流程如图 6所示, 包括: 步骤 S602、 用户根据网管服务器软硬件配置资源情况, 在 Ml模块配置网管服务 器的升级任务管理列表容量、最大并发数等参数, 将这些配置的参数转发到 M3模块; 在 Ml模块导入版本文件, 选择需要进行升级的网元, 将版本信息和待升级网元标识 转发到 M2模块, 启动本次升级操作。 步骤 S604、 M2模块采用广度优先排序方案(可以结合链路的带宽信息加权), 将 从 Ml 模块接收到的用户选择的网元按距离网管服务器从远端到近端的顺序进行排 序, 计算出最优的升级顺序, 将待升级的网元信息优化后的升级顺序转发到 M3模块。 假设计算优化 n个网元构成的网络拓扑升级顺序耗时 T(n), 该时间依赖于采用的算法 复杂度和网管服务器的处理能力, 一般 Τ (η) 远小于激活 η个网元所需要的时间。 步骤 S606、 M3模块根据 Ml模块设置的升级任务管理列表容量 TASKtota 最大 并发数 TASKmax等参数, 对升级任务线程进行实时监控调度管理。 M3模块接收 M2 模块得请求升级信息, 检测当前任务列表为空, 按照升级顺序立即创建 TASKtotal条 任务加入到任务列表中, 并启动列表末端最高优先级的 TASKmax条 Ready状态任务。 调度线程实时监控任务列表中的任务状态, 任务执行完立即移出释放内存空间, 并启 动列表最末端的 Ready状态任务。对于下载操作, 假设 TASKmax, 网元下载版本文件 平均需要时间 Tdownload,基于本专利调度方法, 除最后少于 TASKmax个待执行任务 夕卜, 每个时刻同时并行执行的下载任务均为 TASKmax个。 n个网元的下载相当于分为 n/Tmax批, 所有网元完成下载耗时 T=Tdownload* n/Tmax, 加上优化排序时间 T(n), 总耗时为 Τ(η)+Τ。 当检测到当前任务列表为 TASKtotal个任务时, M3不再创建任务 对象, 而是等待一段时间 Twait后在继续检测任务管理列表, 以判断是否可以继续创 建新的任务对象。 其中 Twait的计算方法如下: 假设下载命令响应超时时间为 Tack, 则 Twait=Tack* (TASKtotal/TASKmax-1 )。启动的线程将命令发送到 M6模块。对于激 活操作, 假设 TASKmax, 网元对激活命令的响应超时时间为 Tack秒, 网元完成重启 加载版本文件使版本生效平均需要时间 Tacitve, 基于本专利调度方法, 除最后少于 TASKmax个待执行任务外, 每个时刻同时并行执行的激活任务均为 TASKmax个。 n 个网元的激活操作可分为 n/Tmax批, 激活耗时 T= Tack* n/Tmax +Tacitve, 加上优化 升级顺序处理时间, 总耗时 T(n)+T分钟。 当检测到当前任务列表为 TASKtotal个任务 时, M3不再创建任务对象, 而是等待一段时间 Twait后在继续检测任务管理列表, 以 判断是否可以继续创建新的任务对象。 其中 Twait的计算方法如下: 则 TWait= TaCk * (Ttotal/Tmax-1 )。 启动的线程将激活命令发送到 M6模块。 步骤 S608、 M6模块从 M3模块接收到命令, 如收到的是下载命令, 则向 M5模 块申请下载版本文件, 并将下载进度和结果上报 M4模块; 如收到的是激活命令, 则 校验参数和备用版本, 并将校验结果上报 M4模块, 如校验正确后指示网元加载版本 文件, 重启生效。 步骤 S610、 M4发送网元版本下载 /激活进度和结果信息到 Ml模块, Ml模块将 相关信息显示给用户, 用户也可以通过 Ml模块监控升级进度和结果, 并且根据进度 和结果信息进行相应的管理操作, 比如取消下载, 下载完后进行激活等。 实施例三 实施例二在 S604 中对升级顺序的优化方式是由网管服务器根据网络拓扑结构信 息自动计算最优升级顺序,本实施例与实施例二的区别在于,对网元版本进行升级前, 可以由用户通过文件方式配置制定好最优的升级顺序, 通过文件导入升级信息, 这些 信息包含了升级顺序, 升级时按照文件中描述指定的顺序执行。 本实施例的具体流程如图 7所示, 包括: 步骤 S702、 用户根据网管服务器软硬件配置资源情况, 在 Ml模块配置网管服务 器的升级任务管理列表容量、最大并发数等参数, 将这些配置的参数转发到 M3模块; 在 Ml模块导入版本文件, 选择需要进行升级的网元, 将版本信息和待升级网元标识 转发到 M2模块, 启动本次升级操作。 步骤 S704、 对网元版本进行升级前, 可以由用户通过文件方式配置制定好最优的 升级顺序, 通过文件导入升级信息, 这些信息包含了升级顺序, 升级时按照文件中描 述指定的顺序执行, 将待升级的网元信息优化后的升级顺序转发到 M3模块。 假设计 算优化 n个网元构成的网络拓扑升级顺序耗时 T(n), 该时间依赖于采用的算法复杂度 和网管服务器的处理能力, 一般 Τ (η) 远小于激活 η个网元所需要的时间。 步骤 S706、 M3模块根据 Ml模块设置的升级任务管理列表容量 TASKtota 最大 并发数 TASKmax等参数, 对升级任务线程进行实时监控调度管理。 M3模块接收 M2 模块得请求升级信息, 检测当前任务列表为空, 按照升级顺序立即创建 TASKtotal条 任务加入到任务列表中, 并启动列表末端最高优先级的 TASKmax条 Ready状态任务。 调度线程实时监控任务列表中的任务状态, 任务执行完立即移出释放内存空间, 并启 动列表最末端的 Ready状态任务。对于下载操作, 假设 TASKmax, 网元下载版本文件 平均需要时间 Tdownload,基于本专利调度方法, 除最后少于 TASKmax个待执行任务 夕卜, 每个时刻同时并行执行的下载任务均为 TASKmax个。 n个网元的下载相当于分为 n/Tmax批, 所有网元完成下载耗时 T=Tdownload* n/Tmax, 加上优化排序时间 T(n), 总耗时为 Τ(η)+Τ。 当检测到当前任务列表为 TASKtotal个任务时, M3不再创建任务 对象, 而是等待一段时间 Twait后在继续检测任务管理列表, 以判断是否可以继续创 建新的任务对象。 其中 Twait的计算方法如下: 假设下载命令响应超时时间为 Tack, 则 Twait=Tack* (TASKtotal/TASKmax-1 )。启动的线程将命令发送到 M6模块。对于激 活操作, 假设 TASKmax, 网元对激活命令的响应超时时间为 Tack秒, 网元完成重启 加载版本文件使版本生效平均需要时间 Tacitve, 基于本专利调度方法, 除最后少于 TASKmax个待执行任务外, 每个时刻同时并行执行的激活任务均为 TASKmax个。 n 个网元的激活操作可分为 n/Tmax批, 激活耗时 T= Tack* n/Tmax +Tacitve, 加上优化 升级顺序处理时间, 总耗时 T(n)+T分钟。 当检测到当前任务列表为 TASKtotal个任务 时, M3不再创建任务对象, 而是等待一段时间 Twait后在继续检测任务管理列表, 以 判断是否可以继续创建新的任务对象。 其中 Twait的计算方法如下: 则 TWait= TaCk * (Ttotal/Tmax-1 )。 启动的线程将激活命令发送到 M6模块。 步骤 S708、 M6模块从 M3模块接收到命令, 如收到的是下载命令, 则向 M5模 块申请下载版本文件, 并将下载进度和结果上报 M4模块; 如收到的是激活命令, 则 校验参数和备用版本, 并将校验结果上报 M4模块, 如校验正确后指示网元加载版本 文件, 重启生效。 步骤 S710、 M4发送网元版本下载 /激活进度和结果信息到 Ml模块, Ml模块将 相关信息显示给用户, 用户也可以通过 Ml模块监控升级进度和结果, 并且根据进度 和结果信息进行相应的管理操作, 比如取消下载, 下载完后进行激活等。 实施例四 本实施例与实施例二及实施例三的区别在于, 对网元版本进行升级前, 用户可以 通过人机界面操作模块, 配置好升级顺序。 升级时按照配置的顺序执行。 本实施例的具体流程如图 8所示, 包括: 步骤 S802、 用户根据网管服务器软硬件配置资源情况, 在 Ml模块配置网管服务 器的升级任务管理列表容量、最大并发数等参数, 将这些配置的参数转发到 M3模块; 在 Ml模块导入版本文件, 选择需要进行升级的网元, 将版本信息和待升级网元标识 转发到 M2模块, 启动本次升级操作。 步骤 S804、 对网元版本进行升级前, 用户可以通过人机界面操作模块, 配置好升 级顺序。 升级时按照配置的顺序执行。 将待升级的网元信息优化后的升级顺序转发到 M3模块。 假设计算优化 n个网元构成的网络拓扑升级顺序耗时 T(n), 该时间依赖于 采用的算法复杂度和网管服务器的处理能力, 一般 Τ (η)远小于激活 η个网元所需要 的时间。 步骤 S806、 M3模块根据 Ml模块设置的升级任务管理列表容量 TASKtota 最大 并发数 TASKmax等参数, 对升级任务线程进行实时监控调度管理。 M3模块接收 M2 模块得请求升级信息, 检测当前任务列表为空, 按照升级顺序立即创建 TASKtotal条 任务加入到任务列表中, 并启动列表末端最高优先级的 TASKmax条 Ready状态任务。 调度线程实时监控任务列表中的任务状态, 任务执行完立即移出释放内存空间, 并启 动列表最末端的 Ready状态任务。对于下载操作, 假设 TASKmax, 网元下载版本文件 平均需要时间 Tdownload,基于本专利调度方法, 除最后少于 TASKmax个待执行任务 夕卜, 每个时刻同时并行执行的下载任务均为 TASKmax个。 n个网元的下载相当于分为 n/Tmax批, 所有网元完成下载耗时 T=Tdownload* n/Tmax, 加上优化排序时间 T(n), 总耗时为 Τ(η)+Τ。 当检测到当前任务列表为 TASKtotal个任务时, M3不再创建任务 对象, 而是等待一段时间 Twait后在继续检测任务管理列表, 以判断是否可以继续创 建新的任务对象。 其中 Twait的计算方法如下: 假设下载命令响应超时时间为 Tack, 则 Twait=Tack* (TASKtotal/TASKmax-1 )。启动的线程将命令发送到 M6模块。对于激 活操作, 假设 TASKmax, 网元对激活命令的响应超时时间为 Tack秒, 网元完成重启 加载版本文件使版本生效平均需要时间 Tacitve, 基于本专利调度方法, 除最后少于 TASKmax个待执行任务外, 每个时刻同时并行执行的激活任务均为 TASKmax个。 n 个网元的激活操作可分为 n/Tmax批, 激活耗时 T= Tack* n/Tmax +Tacitve, 加上优化 升级顺序处理时间, 总耗时 T(n)+T分钟。 当检测到当前任务列表为 TASKtotal个任务 时, M3不再创建任务对象, 而是等待一段时间 Twait后在继续检测任务管理列表, 以 判断是否可以继续创建新的任务对象。 其中 Twait的计算方法如下: 则 TWait= TaCk * (Ttotal/Tmax-1 )。 启动的线程将激活命令发送到 M6模块。 步骤 S808、 M6模块从 M3模块接收到命令, 如收到的是下载命令, 则向 M5模 块申请下载版本文件, 并将下载进度和结果上报 M4模块; 如收到的是激活命令, 则 校验参数和备用版本, 并将校验结果上报 M4模块, 如校验正确后指示网元加载版本 文件, 重启生效。 步骤 S810、 M4发送网元版本下载 /激活进度和结果信息到 Ml模块, Ml模块将 相关信息显示给用户, 用户也可以通过 Ml模块监控升级进度和结果, 并且根据进度 和结果信息进行相应的管理操作, 比如取消下载, 下载完后进行激活等。 无论哪种实施方式, 方案符合本发明实施例的本质思想, 升级分离下载和激活流 程, 升级调度顺序依据网络拓扑结构优化, 升级任务调度管理按照服务器配置资源进 行优化, 均属于本发明实施例的保护范围。 基于同一发明构思, 本发明实施例还提供了一种网元升级装置, 其结构示意图如 图 9所示, 包括: 下载模块 901, 设置为对指定的需要升级的至少一个网元进行升级版本的下载; 激活模块 902, 与下载模块 901耦合, 设置为待至少一个网元的升级版本均下载 结束后, 激活各网元下载的升级版本, 对各网元进行升级。 在一个优选的实施例中, 下载模块 901还可以设置为对至少一个网元按升级顺序 依次进行升级版本的下载。 在一个优选的实施例中, 下载模块 901还可以设置为根据至少一个网元的网元列 表、 网络拓扑结构计算升级顺序; 或者, 根据至少一个网元的网元列表、 网络拓扑结 构和链路的带宽信息计算升级顺序; 或者, 由用户通过文件方式配置制定升级顺序。 从以上的描述中, 可以看出, 本发明实现了如下技术效果: 在本发明实施例中, 对指定的需要升级的至少一个网元进行升级版本的下载, 待 指定的至少一个网元的升级版本均下载结束后, 激活各网元下载的升级版本, 对各网 元进行升级。 即在本发明实施例中, 所有网元均下载完升级版本后才进行激活, 而不 是单个网元下载完升级版本后就进行激活, 避免了远端网元的下载及业务中断, 提高 下载速度及业务质量。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 工业实用性 本发明可应用于通信领域中网元的版本升级, 一方面, 通过所有网元均下载完升 级版本后才进行激活, 而不是单个网元下载完升级版本后就进行激活, 从而避免了远 端网元的下载及业务中断, 提高了下载速度及业务质量; 另一方面, 通过从远端到近 端的顺序批量激活版本, 从而可避免激活过程中重启设备, 导致远端设备脱管使得远 端设备无法进行升级的问题, 进而达到提高升级效率的效果。 The following technical problems can be solved by using the embodiments of the present invention: the bandwidth of the high-volume network element in the prior art is a bottleneck when the version is downloaded, and the shortcoming of the remote network element is caused by the restart of the local network element, which solves the shortcomings in the prior art. Upgrade risk and upgrade time issues. In the embodiment of the present invention, the downloading and activation of the version are separated, and the version is downloaded first and then the network element is restarted to minimize the risk of upgrading. The embodiment of the present invention calculates an optimal upgrade sequence according to a network element list and a network topology structure (which may also utilize the bandwidth information of the link), or the user configures an optimal upgrade sequence, and then schedules the upgrade according to the sequence. task. According to the configuration of the network management server software and hardware resources, the user sets the size of the upgrade task management list and starts the number of concurrent downloads. The task management scheduling module performs real-time scheduling on the upgrade tasks in the most order, thereby maximizing the utilization of server hardware and software resources and the whole. The bandwidth of the network minimizes service interruption time, efficiently completes the upgrade of the NE software version, and automatically monitors and records the progress report of the upgrade progress, so that users can query the operation progress and result information at any time, and reduce manual intervention. The second embodiment is a specific embodiment of the network element upgrade. In this example, the upgrade sequence of the network element upgrade is determined by the network management server. The specific process is as shown in FIG. 6, which includes the following steps: Step S602: The user configures the software and hardware according to the network management server. For the resource status, configure the parameters of the upgrade task management list and the maximum number of concurrent connections in the M1 module, and forward the parameters of the configuration to the M3 module. In the M1 module, import the version file and select the NE to be upgraded. The NE ID to be upgraded is forwarded to the M2 module to start the upgrade. Step S604: The M2 module uses a breadth-first ordering scheme (which can be weighted by the bandwidth information of the link), and the network elements selected by the user received from the M1 module are sorted in the order from the remote end to the near end in the order of the network management server, and the calculation is performed. The optimal upgrade sequence is to forward the optimized upgrade sequence of the NE information to be upgraded to the M3 module. It is assumed that the network topology upgrade order time interval T(n) composed of n network elements is calculated, and the time depends on the algorithm complexity and the processing capacity of the network management server. Generally, Τ(η) is much smaller than that required to activate n network elements. time. Step S606: The M3 module performs real-time monitoring and scheduling management on the upgrade task thread according to parameters such as the upgrade task management list capacity TASKtota maximum concurrent number TASKmax set by the M1 module. The M3 module receives the request for upgrade information from the M2 module, detects that the current task list is empty, and immediately creates a TASKtotal task in the upgrade order to join the task list, and starts the TASKmax bar Ready state task with the highest priority at the end of the list. The scheduling thread monitors the task status in the task list in real time, and immediately removes the free memory space after the task is executed, and starts the Ready state task at the end of the list. For the download operation, assuming TASKmax, the network element download version file takes an average time Tdownload. According to this patent scheduling method, except for the last less than TASKmax tasks to be executed, the download tasks simultaneously executed in parallel at each time are TASKmax. The download of n network elements is equivalent to being divided into n/Tmax batches. All network elements complete the download time T=Tdownload* n/Tmax, plus the optimized sorting time T(n), and the total time consumption is Τ(η)+Τ . When it is detected that the current task list is TASKtotal tasks, M3 no longer creates the task object, but waits for a period of time after Twait to continue to detect the task management list to determine whether it is possible to continue to create a new task object. The calculation method of Twait is as follows: Assume that the download command response timeout time is Tack, then Twait=Tack* (TASKtotal/TASKmax-1). The started thread sends the command to the M6 module. For the activation operation, suppose TASKmax, the response timeout time of the NE to the activation command is Tack seconds, and the NE needs to restart the loading version file to make the version take effect. The average time required is Tacitve, based on this patent scheduling method, except for the last less than TASKmax tasks to be executed. In addition, the activation tasks that are simultaneously executed in parallel at each moment are TASKmax. The activation operation of n network elements can be divided into n/Tmax batches, the activation time T=Tack* n/Tmax +Tacitve, plus the optimized upgrade sequence processing time, the total time consumption T(n)+T minutes. When it is detected that the current task list is TASKtotal tasks, M3 no longer creates the task object, but waits for a period of time after Twait to continue to detect the task management list to determine whether it is possible to continue to create a new task object. The calculation method of Twait is as follows: Then T W ait= Ta C k * (Ttotal/Tmax-1 ). The started thread sends an activation command to the M6 module. Step S608, the M6 module receives the command from the M3 module, and if the download command is received, requests the M5 module to download the version file, and reports the download progress and the result to the M4 module; if the activation command is received, the verification is performed. The parameter and the backup version are reported to the M4 module. If the verification is correct, the NE is loaded with the version file, and the restart takes effect. Steps S610 and M4 send the NE version download/activation progress and result information to the M1 module, and the M1 module displays related information to the user, and the user can also monitor the upgrade progress and results through the M1 module, and perform corresponding management according to the progress and result information. Operation, such as canceling the download, activation after downloading, etc. The third embodiment of the second embodiment optimizes the upgrade sequence in S604. The network management server automatically calculates the optimal upgrade sequence according to the network topology information. The difference between this embodiment and the second embodiment is that before the network element version is upgraded, The optimal upgrade sequence can be configured by the user through the file mode, and the upgrade information is imported through the file, and the information includes the upgrade sequence, and the upgrade is performed in the order specified in the file. The specific process of this embodiment is shown in FIG. 7, and includes: Step S702: The user allocates the parameters of the upgrade task management list capacity and the maximum number of concurrent connections of the network management server to the M3 module according to the configuration of the network management server software and hardware, and the parameters of the configuration are forwarded to the M3 module in the M1 module. The NE that needs to be upgraded forwards the version information and the NE ID to be upgraded to the M2 module to start the upgrade. Step S704: Before upgrading the NE version, the user can configure an optimal upgrade sequence through the file mode, and import the upgrade information through the file, where the information includes the upgrade sequence, and the upgrade is performed in the order specified in the file. The optimized upgrade sequence of the NE information to be upgraded is forwarded to the M3 module. It is assumed that the network topology upgrade order time interval T(n) composed of n network elements is calculated, and the time depends on the algorithm complexity and the processing capacity of the network management server. Generally, Τ(η) is much smaller than that required to activate n network elements. time. Step S706: The M3 module performs real-time monitoring and scheduling management on the upgrade task thread according to parameters such as the upgrade task management list capacity TASKtota maximum concurrent number TASKmax set by the M1 module. The M3 module receives the request for upgrade information from the M2 module, detects that the current task list is empty, and immediately creates a TASKtotal task in the upgrade order to join the task list, and starts the TASKmax bar Ready state task with the highest priority at the end of the list. The scheduling thread monitors the task status in the task list in real time, and immediately removes the free memory space after the task is executed, and starts the Ready state task at the end of the list. For the download operation, assuming TASKmax, the network element download version file takes an average time Tdownload. According to this patent scheduling method, except for the last less than TASKmax tasks to be executed, the download tasks simultaneously executed in parallel at each time are TASKmax. The download of n network elements is equivalent to being divided into n/Tmax batches. All network elements complete the download time T=Tdownload* n/Tmax, plus the optimized sorting time T(n), and the total time consumption is Τ(η)+Τ . When it is detected that the current task list is TASKtotal tasks, M3 no longer creates the task object, but waits for a period of time after Twait to continue to detect the task management list to determine whether it is possible to continue to create a new task object. The calculation method of Twait is as follows: Assume that the download command response timeout time is Tack, then Twait=Tack* (TASKtotal/TASKmax-1). The started thread sends the command to the M6 module. For the activation operation, suppose TASKmax, the response timeout time of the NE to the activation command is Tack seconds, and the NE needs to restart the loading version file to make the version take effect. The average time required is Tacitve, based on this patent scheduling method, except for the last less than TASKmax tasks to be executed. In addition, the activation tasks that are simultaneously executed in parallel at each moment are TASKmax. The activation operation of n network elements can be divided into n/Tmax batches, the activation time T=Tack* n/Tmax +Tacitve, plus the optimized upgrade sequence processing time, the total time consumption T(n)+T minutes. When it is detected that the current task list is TASKtotal tasks, M3 no longer creates the task object, but waits for a period of time after Twait to continue to detect the task management list to determine whether it is possible to continue to create a new task object. The calculation method of Twait is as follows: Then T W ait= Ta C k * (Ttotal/Tmax-1 ). The started thread sends an activation command to the M6 module. Step S708: The M6 module receives the command from the M3 module, and if the download command is received, requests the M5 module to download the version file, and reports the download progress and the result to the M4 module; if the activation command is received, Check the parameters and the backup version, and report the verification result to the M4 module. If the verification is correct, the NE is loaded with the version file, and the restart takes effect. Steps S710 and M4 send the NE version download/activation progress and result information to the M1 module, and the M1 module displays related information to the user. The user can also monitor the upgrade progress and results through the M1 module, and perform corresponding management according to the progress and result information. Operation, such as canceling the download, activation after downloading, etc. The fourth embodiment differs from the second embodiment and the third embodiment in that, before upgrading the network element version, the user can configure the upgrade sequence through the human-machine interface operation module. The upgrade is performed in the order in which they are configured. The specific process of this embodiment is as shown in FIG. 8, and includes: Step S802: The user configures the resource according to the software and hardware configuration of the network management server, and configures the parameter of the upgrade task management list capacity and the maximum number of concurrent connections of the network management server in the M1 module, and configures the parameters. The parameter is forwarded to the M3 module. The M1 module imports the version file and selects the NE to be upgraded. The version information and the NE ID to be upgraded are forwarded to the M2 module to start the upgrade. Step S804: Before upgrading the NE version, the user can configure the upgrade sequence through the human-machine interface operation module. The upgrade is performed in the order in which they are configured. The optimized upgrade sequence of the NE information to be upgraded is forwarded to the M3 module. It is assumed that the network topology upgrade sequence time interval T(n) composed of n network elements is calculated, which depends on the algorithm complexity and the processing capacity of the network management server. Generally, Τ(η) is much smaller than that required to activate n network elements. time. Step S806: The M3 module performs real-time monitoring and scheduling management on the upgrade task thread according to parameters such as the upgrade task management list capacity TASKtota maximum concurrent number TASKmax set by the M1 module. The M3 module receives the request for upgrade information from the M2 module, detects that the current task list is empty, and immediately creates a TASKtotal task in the upgrade order to join the task list, and starts the TASKmax bar Ready state task with the highest priority at the end of the list. The scheduling thread monitors the task status in the task list in real time, and immediately removes the free memory space after the task is executed, and starts the Ready state task at the end of the list. For the download operation, assuming TASKmax, the network element download version file takes an average time Tdownload. According to this patent scheduling method, except for the last less than TASKmax tasks to be executed, the download tasks simultaneously executed in parallel at each time are TASKmax. The download of n network elements is equivalent to being divided into n/Tmax batches. All network elements complete the download time T=Tdownload* n/Tmax, plus the optimized sorting time T(n), and the total time consumption is Τ(η)+Τ . When it is detected that the current task list is TASKtotal tasks, M3 no longer creates the task object, but waits for a period of time after Twait to continue to detect the task management list to determine whether it is possible to continue to create a new task object. The calculation method of Twait is as follows: Suppose the download command response timeout time is Tack, Then Twait=Tack* (TASKtotal/TASKmax-1). The started thread sends the command to the M6 module. For the activation operation, suppose TASKmax, the response timeout time of the NE to the activation command is Tack seconds, and the NE needs to restart the loading version file to make the version take effect. The average time required is Tacitve, based on this patent scheduling method, except for the last less than TASKmax tasks to be executed. In addition, the activation tasks that are simultaneously executed in parallel at each moment are TASKmax. The activation operation of n network elements can be divided into n/Tmax batches, the activation time T=Tack* n/Tmax +Tacitve, plus the optimized upgrade sequence processing time, the total time consumption T(n)+T minutes. When it is detected that the current task list is TASKtotal tasks, M3 no longer creates the task object, but waits for a period of time after Twait to continue to detect the task management list to determine whether it is possible to continue to create a new task object. The calculation method of Twait is as follows: Then T W ait= Ta C k * (Ttotal/Tmax-1 ). The started thread sends an activation command to the M6 module. Step S808: The M6 module receives the command from the M3 module. If the download command is received, the M5 module is requested to download the version file, and the download progress and the result are reported to the M4 module; if the activation command is received, the verification is performed. The parameter and the backup version are reported to the M4 module. If the verification is correct, the NE is loaded with the version file, and the restart takes effect. Steps S810 and M4 send the NE version download/activation progress and result information to the M1 module, and the M1 module displays related information to the user. The user can also monitor the upgrade progress and results through the M1 module, and perform corresponding management according to the progress and result information. Operation, such as canceling the download, activation after downloading, etc. Regardless of the embodiment, the solution is in accordance with the essential idea of the embodiment of the present invention, and the upgrade downloading and activation process is upgraded. The upgrade scheduling sequence is optimized according to the network topology structure, and the upgrade task scheduling management is optimized according to the server configuration resources, which are all in the embodiment of the present invention. protected range. Based on the same inventive concept, an embodiment of the present invention further provides a network element upgrading apparatus, and a schematic structural diagram thereof is shown in FIG. 9, which includes: a downloading module 901, configured to perform an upgraded version on at least one network element that needs to be upgraded. The activation module 902 is coupled to the download module 901, and is configured to activate the upgrade version downloaded by each network element after the download of the upgraded version of the at least one network element is completed, and upgrade each network element. In a preferred embodiment, the downloading module 901 can also be configured to sequentially download the upgraded version of the at least one network element in the upgrade order. In a preferred embodiment, the downloading module 901 may be further configured to calculate an upgrade sequence according to the network element list and the network topology of the at least one network element; or, according to the network element list, the network topology, and the link of the at least one network element. The bandwidth information is used to calculate the upgrade sequence; or, the user configures the upgrade sequence through file configuration. From the above description, it can be seen that the present invention achieves the following technical effects: In the embodiment of the present invention, at least one network element that needs to be upgraded is downloaded, and at least one network element to be upgraded is upgraded. After the version is downloaded, activate the upgraded version of each NE to upgrade the NEs. That is, in the embodiment of the present invention, all the network elements are activated after the upgraded version is downloaded, instead of being activated after the single network element downloads the upgraded version, which avoids the downloading and service interruption of the remote network element, and improves the download speed. And the quality of the business. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention. INDUSTRIAL APPLICABILITY The present invention can be applied to the version upgrade of a network element in the communication field. On the one hand, activation is performed after all network elements have downloaded the upgraded version, instead of being activated after a single network element downloads the upgraded version, thereby avoiding The downloading and service interruption of the remote network element improves the download speed and service quality. On the other hand, by serially activating the version from the remote end to the near end, the device can be restarted during the activation process, and the remote device is taken off. The problem that the remote device cannot be upgraded can improve the efficiency of the upgrade.

Claims

权 利 要 求 书 Claim
1. 一种网元升级方法, 包括: 1. A method for upgrading a network element, including:
对指定的需要升级的至少一个网元进行升级版本的下载;  Download the upgraded version of the specified at least one NE that needs to be upgraded;
待所述至少一个网元的升级版本均下载结束后, 激活各网元下载的升级版 本, 对各网元进行升级。  After the upgrade versions of the at least one network element are downloaded, the upgraded version downloaded by each network element is activated, and the network elements are upgraded.
2. 根据权利要求 1所述的方法, 其中, 所述对指定的需要升级的至少一个网元进 行升级版本的下载, 包括: 对所述至少一个网元按升级顺序依次进行升级版本 的下载。 The method according to claim 1, wherein the downloading the upgraded version of the specified at least one network element that needs to be upgraded comprises: downloading the upgraded version of the at least one network element in the upgrade order.
3. 根据权利要求 2所述的方法, 其中, 所述升级顺序按如下步骤确定: 根据所述 至少一个网元的网元列表、 网络拓扑结构确定所述升级顺序。 The method according to claim 2, wherein the upgrading sequence is determined according to the following steps: determining the upgrading sequence according to the network element list and the network topology of the at least one network element.
4. 根据权利要求 2所述的方法, 其中, 所述升级顺序按如下步骤确定: 根据所述 至少一个网元的网元列表、网络拓扑结构和链路的带宽信息确定所述升级顺序。 The method according to claim 2, wherein the upgrading sequence is determined according to the following steps: determining the upgrading sequence according to the network element list of the at least one network element, the network topology, and the bandwidth information of the link.
5. 根据权利要求 3或 4所述的方法, 其中, 确定所述升级顺序还包括: 对所述至 少一个网元按照网元与网管服务器的距离起点从远端到近端的顺序对所述至少 一个网元的升级顺序进行排序。 The method according to claim 3 or 4, wherein determining the upgrade sequence further comprises: performing, in the order of the distance from the far end to the near end of the at least one network element according to a distance between the network element and the network management server Sort the upgrade order of at least one network element.
6. 根据权利要求 2所述的方法, 其中, 所述升级顺序按如下步骤确定: 由用户通 过文件方式配置制定所述升级顺序。 6. The method according to claim 2, wherein the upgrading sequence is determined as follows: The upgrading sequence is formulated by a user by file mode configuration.
7. 根据权利要求 1至 4、 6中任一项所述的方法, 其中, 所述对指定的需要升级的 至少一个网元进行升级版本的下载之前, 包括: 根据对网元进行升级的系统的 资源配置信息设置升级任务管理列表容量大小, 启动并发下载数量。 The method according to any one of claims 1 to 4, wherein before the downloading of the upgraded version of the at least one network element that needs to be upgraded, the method includes: The resource configuration information sets the size of the upgrade task management list, and starts the number of concurrent downloads.
8. 根据权利要求 1至 4、 6中任一项所述的方法, 其中, 在下载过程中, 网管服务 器对各网元的升级任务进行实时调度, 记录各网元的升级进度结果。 The method according to any one of claims 1 to 4, wherein, in the downloading process, the network management server performs real-time scheduling on the upgrade tasks of the network elements, and records the upgrade progress results of the network elements.
9. 一种网元升级装置, 包括: 9. A network element upgrading apparatus, comprising:
下载模块,设置为对指定的需要升级的至少一个网元进行升级版本的下载; 激活模块, 设置为待所述至少一个网元的升级版本均下载结束后, 激活各 网元下载的升级版本, 对各网元进行升级。 The downloading module is configured to download the upgraded version of the at least one network element that needs to be upgraded. The activation module is configured to activate the upgraded version downloaded by each network element after the upgraded version of the at least one network element is downloaded. Upgrade each network element.
10. 根据权利要求 9所述的装置, 其中, 所述下载模块还设置为对所述至少一个网 元按升级顺序依次进行升级版本的下载。 10. The apparatus according to claim 9, wherein the downloading module is further configured to sequentially download the upgraded version of the at least one network element in an upgrade order.
11. 根据权利要求 10所述的装置,其中,所述下载模块还设置为根据所述至少一个 网元的网元列表、 网络拓扑结构计算所述升级顺序; 或者, 根据所述至少一个 网元的网元列表、 网络拓扑结构和链路的带宽信息计算所述升级顺序; 或者, 由用户通过文件方式配置制定所述升级顺序。 The device according to claim 10, wherein the downloading module is further configured to calculate the upgrade sequence according to a network element list and a network topology of the at least one network element; or, according to the at least one network element The network element list, the network topology, and the bandwidth information of the link calculate the upgrade sequence; or, the user upgrades the file by the file mode.
PCT/CN2012/077697 2011-11-25 2012-06-28 Network element upgrading method and device WO2013075488A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011103805009A CN103139245A (en) 2011-11-25 2011-11-25 Method and device for updating network elements
CN201110380500.9 2011-11-25

Publications (1)

Publication Number Publication Date
WO2013075488A1 true WO2013075488A1 (en) 2013-05-30

Family

ID=48469069

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/077697 WO2013075488A1 (en) 2011-11-25 2012-06-28 Network element upgrading method and device

Country Status (2)

Country Link
CN (1) CN103139245A (en)
WO (1) WO2013075488A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105207971A (en) * 2014-06-13 2015-12-30 艾默生网络能源有限公司 Data transmission method and device
CN105763345A (en) * 2014-12-15 2016-07-13 中兴通讯股份有限公司 Network element upgrade management method, device and system
CN105867952A (en) * 2015-01-20 2016-08-17 中国科学院上海高等研究院 Software upgrading method and system
CN106301863A (en) * 2015-06-11 2017-01-04 中兴通讯股份有限公司 The edition upgrading processing method of microwave equipment and microwave equipment
CN107168685B (en) * 2016-03-08 2021-01-29 阿里巴巴集团控股有限公司 Method and device for updating script and computer terminal
CN108023745B (en) * 2016-11-02 2022-07-01 中兴通讯股份有限公司 Method and device for automatically setting restart sequence of network equipment
CN107147519B (en) * 2017-04-10 2021-03-26 北京德威特电气科技股份有限公司 Method, device and system for upgrading equipment
US10191732B2 (en) * 2017-06-09 2019-01-29 Citrix Systems, Inc. Systems and methods for preventing service disruption during software updates
CN110362362A (en) * 2019-07-24 2019-10-22 北京明略软件系统有限公司 Method for scheduling task and device, storage medium, electronic device
CN110505705B (en) * 2019-08-06 2023-04-11 京信网络系统股份有限公司 Data transmission method, data transmission device, computer equipment and storage medium
CN112486537A (en) * 2020-12-04 2021-03-12 京信通信系统(中国)有限公司 Upgrading processing method and system of forward transmission system
CN113572636A (en) * 2021-07-13 2021-10-29 武汉迈威通信股份有限公司 Batch upgrading method for switches in ring network topology structure and ring network topology structure

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009599A (en) * 2007-01-24 2007-08-01 华为技术有限公司 Remote load method, system and device of patch package file to the network element node
CN101383720A (en) * 2007-09-05 2009-03-11 大唐移动通信设备有限公司 Software updating method of controlled network element, controlled network element and operation maintaining center
CN101447884A (en) * 2007-11-26 2009-06-03 华为技术有限公司 Method for achieving software upgrade by cooperation among network elements, equipment and system therefor

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010049737A1 (en) * 2000-03-20 2001-12-06 Carolan Sean E. Method and apparatus for coordinating user selection of network service providers over a broadband communications network
CN101924643A (en) * 2009-06-10 2010-12-22 中兴通讯股份有限公司 Updating method and system of card software in communication system equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009599A (en) * 2007-01-24 2007-08-01 华为技术有限公司 Remote load method, system and device of patch package file to the network element node
CN101383720A (en) * 2007-09-05 2009-03-11 大唐移动通信设备有限公司 Software updating method of controlled network element, controlled network element and operation maintaining center
CN101447884A (en) * 2007-11-26 2009-06-03 华为技术有限公司 Method for achieving software upgrade by cooperation among network elements, equipment and system therefor

Also Published As

Publication number Publication date
CN103139245A (en) 2013-06-05

Similar Documents

Publication Publication Date Title
WO2013075488A1 (en) Network element upgrading method and device
JP7192103B2 (en) DATA PROCESSING METHOD AND APPARATUS, AND COMPUTING NODE
CN105357296A (en) Elastic caching system based on Docker cloud platform
US10255102B2 (en) Transaction control arrangement for device management system
US8863137B2 (en) Systems and methods for automated provisioning of managed computing resources
US20220014434A1 (en) Slice Resource Deployment Method and Apparatus, and Slice Manager and Computer Storage Medium
US20170134526A1 (en) Seamless cluster servicing
WO2019153488A1 (en) Service configuration management method, apparatus, storage medium and server
WO2009003385A1 (en) Methods, apparatus and systems for updating equipment
WO2012163093A1 (en) Software updating system and method
CN107689976B (en) File transmission method and device
CN111556488A (en) OTA (over the air) upgrading method and system for terminal equipment
CN113946358A (en) Automatic driving vehicle software remote upgrading method based on vehicle management system
CN104184756A (en) Data synchronization method, device and system
CN111131146A (en) Multi-supercomputing center software system deployment and incremental updating method in wide area environment
CN111813583B (en) Transaction management method, device, equipment and storage medium under micro-service architecture
CN111858046B (en) Service request processing method and device, storage medium and electronic device
CN110515696A (en) Information monitoring method and device
WO2023071999A1 (en) User matching method and apparatus, and device and storage medium
CN111736809A (en) Distributed robot cluster network management framework and implementation method thereof
CN104104701A (en) Online service configuration updating method and system
CN115640169A (en) Method, system, device and storage medium for ensuring that a master cluster stops providing services
CN115658096A (en) Cluster control method, system and device for remote OTA (over the air) upgrade of client software
US11115269B1 (en) System and method for updating an application for a population of computers
CN115080338A (en) System and method for automatically monitoring application process in edge device container

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12851983

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12851983

Country of ref document: EP

Kind code of ref document: A1