WO2012083643A1 - 一种分布式集中调度升级网元软件版本的方法和系统 - Google Patents

一种分布式集中调度升级网元软件版本的方法和系统 Download PDF

Info

Publication number
WO2012083643A1
WO2012083643A1 PCT/CN2011/075328 CN2011075328W WO2012083643A1 WO 2012083643 A1 WO2012083643 A1 WO 2012083643A1 CN 2011075328 W CN2011075328 W CN 2011075328W WO 2012083643 A1 WO2012083643 A1 WO 2012083643A1
Authority
WO
WIPO (PCT)
Prior art keywords
download
network element
data unit
network
upgrade
Prior art date
Application number
PCT/CN2011/075328
Other languages
English (en)
French (fr)
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 WO2012083643A1 publication Critical patent/WO2012083643A1/zh

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/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 technologies, and in particular, to a method and system for distributed centralized scheduling upgrade of a network element software version. Background technique
  • the software version of the network element is upgraded through the network management system.
  • the data transmission volume is very large, ranging from a few hundred KB to a large number of tens of MKB, or even hundreds of MKB. If the number of NEs managed by the NMS is relatively large, it takes a long time to complete the upgrade of the NE software version. However, the current status quo is that operators have a lot of demands and changes very quickly. In this way, equipment manufacturers have to update the network software version frequently to meet new demands. In addition, the software version upgrade often leads to service interruption. At this time, it is required to upgrade the software version of a large number of network elements in a relatively short time. As shown in Figure 1, it is a network topology between a general network management system and network elements.
  • the maximum bandwidth theoretically available to each network element depends not only on the narrowest segment of the link on the link to the network management, but also on the number of concurrent downloads on each link to the network management. For example, if the bandwidth of each link is 1M, when the network elements 8 and B are simultaneously downloaded, the bandwidth obtained by each network element is 1M. However, if A and AA are downloaded at the same time, they will share 1M bandwidth. If A, AA, AB, AAA, etc. are downloaded concurrently, the problem is more serious. The bandwidth is obviously bottleneck, resulting in lower upgrade efficiency. Summary of the invention
  • the main purpose of the present invention is to provide a method and system for distributed centralized scheduling and upgrading of network element software versions, which is used to solve the problem of low upgrade efficiency when a large number of network element software upgrades are performed in the prior art.
  • the present invention provides a method for distributed centralized scheduling to upgrade a software version of a network element, including:
  • Step 1 The network management server generates a context for recording the progress information of the downloading of the network element for each selected network element to be upgraded based on the configured download control parameter, and sends the upgrade control information to each network element to be upgraded.
  • Step 2 The network element to be upgraded downloads the upgrade software version information to the specified download source according to the received upgrade control information, and feeds the download progress information to the network management server;
  • Step 3 The network management server saves the download The progress information is sent to the context, and the downloading operation of each network element is determined to meet the preset download constraint condition. If not, the upgrade control information is adjusted and sent to the corresponding network element, and the process returns to step 2 until all the networks to be upgraded are sent. Yuan completes the download of the software version.
  • the selected network element to be upgraded includes:
  • the network management server selects some or all of the NEs to be upgraded in the NE to be upgraded by the user; or
  • the network management server selects some or all of the remaining NEs to be upgraded in the remaining NEs to be upgraded after the NEs are to be upgraded.
  • the network management server selects the link intermediate network element as the selected part to be upgraded network element in the network element to be upgraded by the user according to the network topology structure and the link bandwidth according to the network topology structure and the link bandwidth.
  • the network management server selects the network element that is connected to the file download source as the selected network element to be upgraded according to the network topology and the link bandwidth;
  • the file download source is the network management and/or Download all or part of the NE that upgrades the software version information.
  • the configured download control parameters include: an upgrade software version number, a start download time, and a software version maximum download time.
  • the download control parameter of the configuration further includes: dividing the software version file by the most Big data unit length value and data unit maximum download time.
  • the generating the context of the recording network element download progress information includes: the network management server performs data unit division on the software version file corresponding to the software version number according to the download control parameter, and is based on the division
  • the data unit generates a data unit download control table for each network element to be upgraded, and the table includes: a data unit ID number, a data unit download source, a download start address and an end address corresponding to the data unit, a download start time, and an already downloaded The number of bytes, the download end time, and the download result; wherein, the data unit download control table corresponding to each network element has a data unit download control table ID number.
  • the generating the context of downloading the progress information of the network element further includes: generating a network element download status table, where the table includes the network element ID number, and the upgrade software version number corresponding to the network element ID number, and the data unit download control Table ID number, download start time, download end time, download status, and download result.
  • the upgrade control information includes: a data unit ID number, a data unit download source, a data unit download start address, and an end address.
  • the preset download constraint in the step 3 includes one or more of the following condition parameters: a software version maximum download time, a software version minimum download rate, and a data unit maximum download time.
  • the network management server adjusts the upgrade control information to include:
  • the network management server generates a new data unit in the data unit download control table, and uses the ID number, the download source, the download start address, and the end address corresponding to the new data unit as the adjusted upgrade control information;
  • the download start address of the new data unit is the next byte of the data that has not been downloaded by the data unit corresponding to the download constraint; the download source of the new data unit is the network management or is connected on the network topology and has been downloaded.
  • An NE that upgrades software version information in whole or in part.
  • the network management server fails to send the upgrade control information to the network element, the network management server sends a link failure alarm to the upper layer, and downloads the corresponding network element in the network element download status table and downstream of the corresponding network element.
  • the download status of the NE is changed to the end of the download, and the download result is modified to the network element not online.
  • the network management server changes the download end time in the network element download status table to the current time, and changes the download status to the download end, and the download result is modified to The download succeeds; and when all the network elements are downloaded, the network element download status table is stored in the database.
  • the present invention further provides a distributed centralized scheduling system for upgrading a network element software version, including:
  • Network management server including:
  • the upgrade control information sending module is configured to generate a context for recording the progress information of the downloading of the network element for each selected network element to be upgraded, and send the upgrade control information to each network element to be upgraded;
  • a detecting module configured to receive download progress information sent by the network element to the context, and detect, according to the context, whether the download operation of each network element satisfies a preset download constraint condition
  • a scheduling module configured to: after the detecting module detects that the network element downloading operation does not meet the preset downloading constraint condition, adjust the upgrade control information, and send the information to the corresponding network element;
  • the data sending module is configured to send the software version information to the requesting end based on the received software version information download request when the network management server is used as the download source.
  • the network element including:
  • a version management control module configured to: when receiving the upgrade control information sent by the network management server, trigger a version management file receiving module, and feed back download progress information to the network management server; and a version management file receiving module, configured to upgrade to the network management server
  • the download source specified in the control information sends a software version information download request, and saves the downloaded software version information;
  • the version management file sending module is configured to send the software version information to the requesting end based on the received software version information download request when the network element is used as the download source.
  • the upgrade control information is sent by the module, and the context for generating the record network element download progress information for each selected network element to be upgraded includes:
  • the upgrade control information is sent by the module, and the data version is divided into the data unit according to the download control parameter, and the data unit download control table is generated for each to-be-upgraded network element based on the divided data unit, where the table includes: The data unit ID number, the data unit download source, the download start address and the end address corresponding to the data unit, the download start time, the number of bytes that have been downloaded, the download end time, and the download result; wherein, the data unit corresponding to each network element is downloaded
  • the control table has a data unit download control table ID number.
  • the upgrade control information delivered by the upgrade control information delivery module includes: a data unit ID number, a data unit download source, a data unit download start address, and an end address.
  • the scheduling module generates a new data unit in the data unit download control table, and uses the ID number, the download source, the download start address, and the end address corresponding to the new data unit as the adjusted upgrade control information to the corresponding network element.
  • the download start address of the new data unit is the next byte of the data that has not been downloaded by the data unit corresponding to the download constraint; the download source of the new data unit is the network management or is connected on the network topology and has been downloaded.
  • An NE that upgrades software version information in whole or in part.
  • the solution of the present invention determines to start the download task of all or a part of the network element according to the network topology structure and the bandwidth of the link.
  • the network management server downloads the task progress report, the network topology structure, and the current according to the network element.
  • the downloading of the network element software version of the entire network element schedules the network element download task, and instructs the network element to download the specified version data to a suitable location (network management or network element), and simultaneously downloads from multiple locations in parallel to maximize the utilization.
  • a suitable location network management or network element
  • the solution according to the present invention is scheduled according to the topology structure and the actual downloading of the network element, and the control information and the software version data are separated during the downloading process.
  • Simple the code is easy to implement;
  • Third, the implementation process of the invention is simple, and only relying on software implementation does not increase the hardware investment of the operator.
  • FIG. 1 is a topology diagram of a network management server and a network element network in the prior art
  • FIG. 2 is a schematic flowchart of a method for distributed centralized scheduling upgrade network element software version provided by the present invention
  • FIG. 3 is a schematic flowchart of a method for distributed centralized scheduling and upgrading a network element software version according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of a system structure of a distributed centralized scheduling upgrade network element software version according to the present invention. detailed description
  • the present invention provides a method and system for distributed centralized scheduling upgrade of a network element software version in order to solve the problem of low efficiency of upgrading a large number of network element software upgrades in the prior art.
  • the network management server is first based on The specified NE list to be upgraded and the network topology (including the bandwidth of the link) determine to start the download task of some NEs. After the download task starts, the NMS server downloads the task progress report, network topology, and current status according to the NE.
  • the downloading of the network element software version of the entire network element schedules the network element download task, and instructs the network element to download the specified version data to a suitable location (network management or network element), and simultaneously downloads from multiple locations in parallel to maximize the utilization.
  • the bandwidth of the entire network quickly completes the upgrade of the network software version.
  • a method for distributed centralized scheduling to upgrade a network element software version includes:
  • Step 201 The network management server generates a context for recording the download progress information of the network element for each selected network element to be upgraded based on the configured download control parameter, and sends the upgrade control information to each of the to-be-upgraded network elements.
  • Step 202 Each upgraded network element downloads the upgrade software version information to the specified download source according to the received upgrade control information, and feeds the download progress information to the network management server.
  • Step 203 The network management server saves the download progress information to the context, and detects, according to the context, whether the download operation of each network element satisfies a preset download constraint condition. If not, adjust the download source of the upgrade control information to the corresponding network. The element sends the adjusted upgrade control information, and returns to step 202 until all the upgraded network elements complete the download of the software version.
  • the method of the present invention determines to start the download task of all or part of the network elements according to the network topology structure and the bandwidth of the link.
  • the network management server downloads the task progress report, the network topology structure, and the current entire network according to the network element download.
  • the network element software version downloads the network element download task, and instructs the network element to download the specified version data to the appropriate location (network management or network element), and simultaneously downloads from multiple locations in parallel to maximize the utilization of the entire network. Bandwidth, quickly complete the upgrade of the network software version.
  • the method of the present invention is applied to the topology system of the network management system and the network element network as shown in FIG. 1.
  • the method implements phase data download and control information data flow phase separation on the traditional network element version upgrade process.
  • the server can schedule the data download process of the network element in real time.
  • the system specifically includes a network management client, a network management server, and multiple network elements:
  • the network management client provides a human-computer interaction interface. The user can select the NE to be upgraded that needs to be upgraded by the software version, and set the download control parameters of the network management server.
  • the download control parameters include: an upgrade software version number, a software version file download start time, and a maximum download time of the software version file; further, when the upgrade software version is large, the maximum data unit length of the software version file may also be configured. Value and maximum download time of the data unit;
  • the above-mentioned download control parameters are not exhaustive, and the user can flexibly configure according to specific requirements, for example, parameters such as software version download speed can also be configured;
  • the software version download speed, the maximum download time of the software version file, and the maximum download time of the data unit can be used as the constraint parameters for subsequent scheduling, which provides a reference for the network management to perform scheduling. For example, if the network management detects the software version download rate. If the specified download speed cannot be reached, a new file download source is selected for the network element to download.
  • the network management server sends the upgrade control information to the selected network element according to the download control parameter configured by the user, and generates a context for each network element that needs to be upgraded; wherein the context can be persisted in the file or the database.
  • the generating context is to generate a download progress control table for each software element that needs to be downloaded by the network element, and the specific performance is as follows:
  • the network management server divides the upgraded software version file into data units according to the configured download control parameters, and allocates a data unit ID for each data unit to determine the download of each data unit. Download progress information such as source, download start address and end address, download start time, number of bytes that have been downloaded, download end time, and download result. It should be noted that, if the length value of the divided data unit is not configured in the configured download control parameter, the data unit may be a separate file in the software version file.
  • the network management server dynamically generates a data unit download control table for each network element, and each data unit download control table has a unique identification ID.
  • Each data element download control table of each network element includes one or more data units, and each data unit has a unique unit ID; wherein each data unit includes the following contents: a data unit ID, a file of the unit download data Name (if the software version that the NE needs to upgrade has only one file, this field may not be needed), file download source, file download start address, file download end address, downloaded bytes, download start time, download end time, The download result (for example, the definition 0 means success, 1 means failure); wherein, the file download source may be a network management system, or may be a network element that has downloaded some or all corresponding software version information, of course, the selected network element is downloaded as a file. When the source is connected, the network element is connected to the network topology between the network elements of the file download destination.
  • the upgrade software version A includes four files, namely Fl (2049K), F2 (30K), F3 (10K), and F4 (1023K).
  • the network management server segments each file according to the maximum data unit length information. After segmentation, multiple data blocks, each data block corresponds to one data unit, one upgrade software version file has at least one data unit, and one data unit can only have at most one file data.
  • the ID of the data unit is unique and can only be split and cannot be merged;
  • a network element download status table is also generated.
  • the NE download status table includes: an NE ID, a downloaded version number corresponding to the NE ID, a data unit download control table ID, a start download time, a download end time, and a download status (for example, setting 0 indicates ready, 1) Indicates that the download is in progress, 2 indicates pause, 3 indicates the end, and the download result (for example, setting 0 to success, 1 for timeout, 2 means network element is not online, etc.);
  • the network management server sends the upgrade control information to the selected network element, including: a data unit ID, a file download start address, a file download end address, and a file download source; when there are multiple data units, Preferably, the file name information corresponding to the data unit is carried.
  • the network management server further receives the download progress information fed back by the network element, for example, the number of bytes that have been downloaded by the network element to the network management server, and the network management server detects whether the download operation of each network element satisfies the condition according to the preset download constraint condition. If not, select a new download source connected to the network according to the network topology, adjust the upgrade control information, and send the adjusted upgrade control information to the corresponding network element.
  • the preset download constraint may be a binding control parameter in the user-configured download control parameter, for example: a software version maximum download time, a software version minimum download rate, and a data unit maximum download time.
  • the scheduling thread of the network management server detects that the data download speed in one or more data units recorded in the data unit download control table of a network element is less than the set download speed; or the scheduling thread of the network management server detects the network If the time for downloading the data exceeds the set time value, the network management server selects a new file download source according to the topology structure, generates a new data unit, assigns an ID number to the data unit, and determines a download start address and End address, where the download start address is the next byte of the data unit that has not satisfied the download constraint; the end address is still the download end address corresponding to the data unit that does not satisfy the download constraint; The original data unit download end address satisfying the download constraint is modified to the data unit file download start address + the number of bytes that have been downloaded -1.
  • a plurality of new data units may also be generated in the above process.
  • the new data units are splits that do not satisfy the constraint data unit.
  • the new data units as a whole have a starting address that does not satisfy the download constraint.
  • the data unit has downloaded the next byte of data; the end address is still the download end address corresponding to the data unit that does not satisfy the download constraint.
  • the data download sources for these data units can vary.
  • the network management detects that the download operation of the data unit ID0 does not satisfy the download constraint, the data unit ID0 is known according to the download progress information fed back by the network element. The 10 bytes of data are downloaded. At this time, the network management server generates a new data unit ID6, the start address of the data unit is 11, the download end address is 683*1024-1, and the corresponding download source is the network element A. And the download result of the data unit ID0 is marked as 0, indicating success;
  • the network management server sends the ID number, the download source, the download start address, and the end address corresponding to the new data unit to the corresponding network element.
  • the corresponding network element stops the data download operation of the data unit that does not satisfy the download constraint condition. Downloading data from the download source corresponding to the new data unit; wherein, the network element knows to stop the data unit data download operation according to the download address; of course, in order to reduce the self-logical judgment of the network element, the network management server may directly respond to The network element sends a notification message that stops downloading the data corresponding to the download constraint condition data unit, and the notification message is carried in the adjusted upgrade control information.
  • the present invention can make full use of the bandwidth of the entire network and save download time.
  • the network element including:
  • the version management control module receives the upgrade control information sent by the network management server, and invokes the version management file receiving module to download data of the data unit from the file download source specified in the upgrade control information according to the upgrade control information, and periodically feeds back the download progress information to the network management server. And receiving the scheduling information from the network management server (ie, the adjusted upgrade control information), and adjusting its own download operation according to the scheduling information.
  • the version management file receiving module according to the instruction of the version management control module, initiates a data download request to the version management file sending module in the file download source, and receives the data to the network element.
  • the version management file receiving module saves the downloaded software version information in the generated temporary data file, where the data file includes a file name, a data start address, and a data end address information of the downloaded data.
  • the temporary data file combination is a formal upgrade file for version upgrade.
  • the version management file sending module passively receives the data download request from the version management file receiving module in the download requesting network element when the network element is used as the download source, and sends the data to the corresponding network element.
  • the method includes:
  • Step 301 The user selects some or all NEs to upgrade the software version to a certain version A through the network management client, and sets the download control parameters of the network management server.
  • the software version A is set to have four files: F1 (2049K), F2 (30K), F3 (10K), and F4 (1023K).
  • Step 302 The network management server selects a part of the network element as the initial upgrade network element in the network element selected by the user according to the pre-configured policy, and generates a software download context for the initially selected network element according to the configured download control parameter, that is, generates a software download context.
  • the data unit downloads the control table.
  • the pre-configuration policy may be, but is not limited to, selecting a link intermediate network element in the network topology.
  • the NMS can download the version based on the intermediate NEs in all the NEs.
  • the topology of the current network is as shown in Figure 1.
  • the intermediate network element is the A, BA, and CA network elements. After the A, BA, and CA network elements are selected, the IDs of the corresponding three data unit download control tables are ID0, ID8, and IDll, and the contents of the three tables can be identical.
  • Step 303 The network management server sends the upgrade control information to the A, BA, and CA network elements, and instructs each network element to download data to the specified file download source.
  • the network management server further detects whether the upgrade control information is successfully sent. If the detection succeeds, the subsequent steps are continued; otherwise, the corresponding link failure is performed, and an alarm operation is performed.
  • the network management server can learn that the BAA network element is the BA network element.
  • modify the content of the NE download status table change the download status of the two NEs, BA and BAA, to the end, and set the download result to "Network element not online", and set the download completion time to the current time.
  • Step 304 After receiving the upgrade control information, the A and CA network elements generate a temporary file for the storage data unit on the respective storage device, and allocate space for the file;
  • the temporary file is named the ID of the data unit and has the extension tmp, such as 0.tmp.
  • Step 305 The A and the CA network element download the data to the specified file download source, and periodically report the download progress information to the network management server.
  • Step 306 The network management server receives the download progress information reported by the network element, and detects, according to the information recorded in the data unit download control table, whether the download operation of each network element satisfies a preset download constraint condition. If not, according to the network topology structure and chain. After selecting a new download source, the bandwidth of the road sends scheduling information to the corresponding network element, and modifies the data unit download control table information corresponding to the network element.
  • Step 307 A, the CA network element receives the scheduling information, and adjusts the current download operation according to the scheduling information. Step 308, step 305 to step 307 are repeated until all the data unit data of the corresponding network element to the software version is downloaded.
  • Step 309 The network management server detects, after downloading all the data units of a certain network element, according to the download progress information fed back by the network element, sends a control information to the network element, indicating that the download is complete.
  • Step 310 The network element merges the files of the multiple data units into one file, and after the upgrade is performed based on the upgrade file, sends the NE version upgrade success message to the network management server.
  • Step 311 After receiving the network element version upgrade success control information, the network management server modifies the record information corresponding to the network element in the network element download status table. Specifically, the download end time is the current time, the download status is set to 3, and the download result is set to 0.
  • the network management server may sequentially start the remaining network elements set by the user to perform the download and upgrade operations according to the pre-configuration.
  • the pre-configuration may be, but is not limited to, the following implementation manner: the network management server selects, according to the network topology structure and the link bandwidth, the network element that is connected to the file download source as the selected network element to be upgraded; The network element and/or the network element that has downloaded all or part of the upgraded software version information.
  • the download upgrade process is the same as the initial upgrade of the network element download upgrade process.
  • the timing at which the network management server starts all or part of the remaining network elements includes but is not limited to the following manner, and can be flexibly controlled according to specific conditions:
  • all or part of the remaining network elements are turned on; wherein, if some remaining network elements are enabled, the part of the network element that is connected to the network element that has downloaded all or part of the software version information may be preferentially opened; or According to the download progress information fed back by the network element, when all or part of the data is downloaded by a network element, the upgrade download process of the remaining network elements is started.
  • the network management server After the network element selected by the user is downloaded, the network management server saves the content of the NE download status table to the database.
  • the method of the present invention determines to start the download task of all or a part of the network element according to the network topology structure and the bandwidth of the link.
  • the network management server downloads the task progress report according to the network element. Reporting, network topology, and current downloading of the network element software version to schedule the network element download task, instructing the network element to the appropriate location (network management or network element) to download the specified version data, and at the same time, multiple The location is downloaded in parallel, thereby maximizing the bandwidth of the entire network and quickly completing the upgrade of the network software version;
  • the method of the present invention performs scheduling according to the topology structure and the actual downloading condition of the network element, so that the control information and the software version data are separated during the downloading process, the software architecture is simple, and the code implementation is easy. Moreover, the implementation process of the present invention is simple, and only relying on software implementation does not increase operator hardware investment.
  • the present invention further provides a distributed centralized scheduling system for upgrading a network element software version, comprising: a network management server and at least one network element;
  • Network management server including:
  • the upgrade control information sending module is configured to generate a context for recording the progress information of the downloading of the network element for each selected network element to be upgraded, and send the upgrade control information to each network element to be upgraded;
  • a detecting module configured to receive download progress information sent by the network element to the context, and detect, according to the context, whether the download operation of each network element satisfies a preset download constraint condition
  • a scheduling module configured to: after the detecting module detects that the network element downloading operation does not meet the preset downloading constraint condition, adjust the upgrade control information, and send the information to the corresponding network element;
  • the data sending module is configured to send the software version information to the requesting end based on the received software version information download request when the network management server is used as the download source.
  • the network element including:
  • a version management control module configured to: when receiving the upgrade control information sent by the network management server, trigger a version management file receiving module, and feed back download progress information to the network management server; and a version management file receiving module, configured to upgrade to the network management server
  • the download source specified in the control information sends a software version information download request, and saves the downloaded software version information;
  • the version management file sending module is configured to send the software version information to the requesting end based on the received software version information download request when the network element is used as the download source.

Abstract

本发明公开了一种分布式集中调度升级网元软件版本的方法和系统,所述方法包括:步骤1、网管服务器基于配置的下载控制参数,为选定的每个待升级网元生成记录网元下载进度信息的上下文,并向各待升级网元下发升级控制信息;步骤2、所述每个待升级网元根据接收到的升级控制信息,到指定下载源下载升级软件版本信息,并将下载进度信息反馈至所述网管服务器;步骤3、网管服务器保存所述下载进度信息到上下文,并基于该上下文检测各网元下载操作是否满足预设的下载约束条件,若不满足,调整所述升级控制信息后向对应网元发送,返回步骤2,直到所有待升级网元完成软件版本的下载。本发明所述方法提高了网元软件升级时的效率。

Description

一种分布式集中调度升级网元软件版本的方法和系统 技术领域
本发明涉及通信技术领域, 尤其涉及一种分布式集中调度升级网元软 件版本的方法和系统。 背景技术
通过网管对网元进行软件版本升级,数据传输量非常大,小的上百 KB, 大的几十 MKB, 甚至上百 MKB。 这样如果该网管管理的网元数量比较大 的时候, 每次完成网元软件版本升级需要很长的时间。 但是, 目前的现状 是运营商的需求非常多, 变化非常快, 这样, 设备制造商不得不经常更新 网元软件版本来满足新的需求。 还有, 软件版本升级往往导致业务中断, 这时候, 必须要求在比较短的时间将大量网元的软件版本完成升级。如图 1 所示, 为一般网管、 网元之间的组网拓朴。 每个网元理论上能够得到的最 大带宽不但取决于其到达网管的链路上带宽最窄的一段, 而且还取决于其 到达网管的每段链路上的并发下载数量。 举例说明如下, 假如每段链路的 带宽都是 1M, 那么网元八、 B同时下载的时候, 每个网元获得的带宽都是 1M。 但是如果是 A、 AA同时下载, 那么他们将共享 1M带宽; 如果 A、 AA、 AB、 AAA等一起并发下载的时候, 问题就更严重了, 带宽显然是瓶 颈, 导致升级效率较低。 发明内容
有鉴于此, 本发明的主要目的在于提供一种分布式集中调度升级网元 软件版本的方法和系统, 用以解决现有技术中当进行大量网元软件升级时 升级效率较低的问题。 具体的, 本发明提供一种分布式集中调度升级网元软件版本的方法, 包括:
步骤 1、 网管服务器基于配置的下载控制参数, 为选定的每个待升级网 元生成记录网元下载进度信息的上下文, 并向各待升级网元下发升级控制 信息;
步骤 2、 所述每个待升级网元根据接收到的升级控制信息, 到指定下载 源下载升级软件版本信息, 并将下载进度信息反馈至所述网管服务器; 步骤 3、 网管服务器保存所述下载进度信息到上下文, 并基于该上下文 检测各网元下载操作是否满足预设的下载约束条件, 若不满足, 调整所述 升级控制信息后向对应网元发送,返回步骤 2, 直到所有待升级网元完成软 件版本的下载。
本发明所述方法中, 选定的待升级网元包括:
下载任务开始时, 网管服务器在用户设定的待升级网元中选定的部分 或全部待升级网元; 或者,
下载任务开始后, 网管服务器在用户设定的待升级网元中选定部分待 升级网元后, 在剩余待升级网元中选定的部分或全部待升级网元。
其中, 在下载任务开始时, 所述网管服务器根据网络拓朴结构和链路 带宽, 在用户设定的待升级网元中选择链路中间网元作为选定的部分待升 级网元;
在下载任务开始后, 所述网管服务器根据网络拓朴结构和链路带宽, 选择与文件下载源相连通的网元作为选定的待升级网元; 所述文件下载源 为网管和 /或已经下载全部或部分升级软件版本信息的网元。
本发明所述方法中, 配置的下载控制参数包括: 升级软件版本号、 开 始下载时间和软件版本最大下载时间。
进一步的, 所述配置的下载控制参数还包括: 划分软件版本文件的最 大数据单元长度值和数据单元最大下载时间。
本发明所述方法中, 所述生成记录网元下载进度信息的上下文包括: 所述网管服务器根据所述下载控制参数, 对所述软件版本号对应的软 件版本文件进行数据单元划分, 并基于划分的数据单元为每个待升级网元 生成数据单元下载控制表,该表中包括:数据单元 ID号、数据单元下载源、 数据单元对应的下载开始地址及结束地址、 下载开始时间、 已经下载的字 节数、 下载结束时间和下载结果; 其中, 每个网元对应的数据单元下载控 制表均具有数据单元下载控制表 ID号。
进一步的, 所述生成记录网元下载进度信息的上下文时还包括: 生成 网元下载状态表, 该表包括网元 ID号, 以及与网元 ID号对应的升级软件 版本号、 数据单元下载控制表 ID号、 下载开始时间、 下载结束时间、 下载 状态和下载结果。
本发明所述方法中, 升级控制信息包括: 数据单元 ID号、 数据单元下 载源、 数据单元下载开始地址及结束地址。
本发明所述方法中, 所述步骤 3 中预设的下载约束条件包括下述条件 参数的一个或多个: 软件版本最大下载时间、 软件版本最小下载速率和数 据单元最大下载时间。
本发明所述方法中, 所述步骤 3 中, 网管服务器调整所述升级控制信 息包括:
所述网管服务器在所述数据单元下载控制表中生成新的数据单元, 并 将新数据单元对应的 ID号、 下载源、 下载开始地址和结束地址作为调整后 的升级控制信息;
其中, 所述新数据单元的下载开始地址为不满足下载约束条件对应的 数据单元已经下载数据的下一个字节; 所述新数据单元的下载源为网管或 在网络拓朴上连通且已经下载全部或部分升级软件版本信息的网元。 本发明所述方法中, 所述网管服务器在向网元发送升级控制信息失败 时, 向上层发送链路故障告警, 并将所述网元下载状态表中对应网元以及 在对应网元的下游网元的下载状态修改为下载结束, 将下载结果修改为网 元不在线。
本发明所述方法中, 所述网管服务器在某网元升级完成后, 将所述网 元下载状态表中的下载结束时间修改为当前时间, 将下载状态修改为下载 结束, 将下载结果修改为下载成功; 并在所有网元均下载完成时, 将所述 网元下载状态表存入数据库中。
进一步的, 本发明还提供一种分布式集中调度升级网元软件版本的系 统, 包括:
网管服务器, 包括:
升级控制信息下发模块, 用于基于配置的下载控制参数, 为选定的每 个待升级网元生成记录网元下载进度信息的上下文, 并向各待升级网元下 发升级控制信息;
检测模块, 用于接收网元发送的下载进度信息到所述上下文, 基于该 上下文检测各网元下载操作是否满足预设的下载约束条件;
调度模块, 用于在所述检测模块检测到网元下载操作不满足预设的下 载约束条件时, 调整所述升级控制信息后向对应网元发送;
数据发送模块, 用于在网管服务器作为下载源时, 基于接收的软件版 本信息下载请求, 向请求端发送软件版本信息。
网元, 包括:
版本管理控制模块, 用于接收所述网管服务器发送的升级控制信息时, 触发版本管理文件接收模块, 并将下载进度信息反馈至所述网管服务器; 版本管理文件接收模块, 用于向所述升级控制信息中指定的下载源发 送软件版本信息下载请求, 并将下载的软件版本信息保存; 版本管理文件发送模块, 用于在网元作为下载源时, 基于接收的软件 版本信息下载请求, 向请求端发送软件版本信息。
进一步的, 本发明所述系统中:
所述升级控制信息下发模块, 为选定的每个待升级网元生成记录网元 下载进度信息的上下文包括:
所述升级控制信息下发模块, 根据所述下载控制参数, 对软件版本文 件进行数据单元划分, 并基于划分的数据单元为每个待升级网元生成数据 单元下载控制表, 该表中包括: 数据单元 ID号、 数据单元下载源、 数据单 元对应的下载开始地址及结束地址、 下载开始时间、 已经下载的字节数、 下载结束时间和下载结果; 其中, 每个网元对应的数据单元下载控制表均 具有数据单元下载控制表 ID号。
所述升级控制信息下发模块下发的升级控制信息包括:数据单元 ID号、 数据单元下载源、 数据单元下载开始地址及结束地址。
所述调度模块, 在所述数据单元下载控制表中生成新的数据单元, 并 将新数据单元对应的 ID号、 下载源、 下载开始地址和结束地址作为调整后 的升级控制信息向对应网元发送;
其中, 所述新数据单元的下载开始地址为不满足下载约束条件对应的 数据单元已经下载数据的下一个字节; 所述新数据单元的下载源为网管或 在网络拓朴上连通且已经下载全部或部分升级软件版本信息的网元。
与现有技术相比, 本发明有益效果如下:
首先, 本发明所述方案根据网络拓朴结构和链路的带宽决定启动全部 或部分网元的下载任务, 下载任务启动后, 网管服务器根据网元下载任务 进度报告、 网络拓朴结构、 以及当前整个网络网元软件版本下载情况对网 元下载任务进行调度, 指示网元到合适的位置 (网管或网元) 下载指定的 版本数据, 而且同时可以从多个位置并行下载, 从而最大限度的利用整个 网络的带宽, 快速完成网元软件版本的升级, 提高升级效率; 其次, 本发明所述方案根据拓朴结构、 网元实际下载情况进行调度, 下载过程中控制信息和软件版本数据分离, 软件架构简单, 代码实现容易; 第三, 本发明实现流程简单, 仅仅依靠软件实现, 不会增加运营商硬 件投入。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的 附图。
图 1为现有技术中网管服务器及网元组网拓朴图;
图 2为本发明提供的一种分布式集中调度升级网元软件版本的方法流 程示意图;
图 3 为本发明实施例提供的一种分布式集中调度升级网元软件版本的 方法流程示意图;
图 4为本发明提供的一种分布式集中调度升级网元软件版本的系统结 构示意图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有做出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。 为了解决现有技术中进行大量网元软件升级时升级效率低下的问题, 本发明提供一种分布式集中调度升级网元软件版本的方法和系统, 所述方 法的核心思想是: 网管服务器首先根据指定的待升级网元列表、 网络拓朴 结构 (包括链路的带宽) 决定先启动部分网元的下载任务; 下载任务启动 后, 网管服务器根据网元下载任务进度报告、 网络拓朴结构、 当前整个网 络网元软件版本下载情况对网元下载任务进行调度, 指示网元到合适的位 置 (网管或网元) 下载指定的版本数据, 而且同时可以从多个位置并行下 载, 从而最大限度的利用整个网络的带宽, 快速完成网元软件版本的升级。
如图 2所示, 本发明提供的一种分布式集中调度升级网元软件版本的 方法, 包括:
步骤 201、 网管服务器基于配置的下载控制参数, 为选定的每个待升级 网元生成记录网元下载进度信息的上下文, 并向各待升级网元下发升级控 制信息;
步骤 202、每个待升级网元根据接收到的升级控制信息, 到指定下载源 下载升级软件版本信息, 并将下载进度信息反馈至所述网管服务器;
步骤 203、 网管服务器保存所述下载进度信息到上下文, 并基于该上下 文检测各网元下载操作是否满足预设的下载约束条件, 若不满足, 调整所 述升级控制信息的下载源, 向对应网元发送调整后的升级控制信息, 返回 步骤 202, 直到所有待升级网元完成软件版本的下载。
本发明所述方法根据网络拓朴结构和链路的带宽决定启动全部或部分 网元的下载任务, 下载任务启动后, 网管服务器根据网元下载任务进度报 告、 网络拓朴结构、 以及当前整个网络网元软件版本下载情况对网元下载 任务进行调度, 指示网元到合适的位置 (网管或网元) 下载指定的版本数 据, 而且同时可以从多个位置并行下载, 从而最大限度的利用整个网络的 带宽, 快速完成网元软件版本的升级 下面根据图 3给出本发明一个较佳的实施例, 并结合对实施例的描述, 进一步给出本发明的技术细节, 使其能够更好地说明本发明所述方法的具 体实现过程。
本发明所述方法应用在如图 1 所示的网管、 网元组网的拓朴系统中, 该方法在传统的网元版本升级流程上实现了版本数据下载和控制信息数据 流相分离, 网管服务器可以实时调度网元的数据下载过程。
所述系统具体包括网管客户端、 网管服务器和多个网元:
网管客户端: 提供一个人机交互界面, 用户可以选择需要进行软件版 本升级的待升级网元, 并设置网管服务器的下载控制参数;
其中, 下载控制参数包括: 升级软件版本号、 软件版本文件下载开始 时间、 软件版本文件的最大下载时间; 进一步的, 当升级软件版本较大时, 还可以配置划分软件版本文件的最大数据单元长度值和数据单元最大下载 时间; 当然, 上述列举的下载控制参数并非穷举, 用户可以根据具体需求 进行灵活配置, 例如, 还可以配置软件版本下载速度等参数;
上述的软件版本下载速度、 软件版本文件的最大下载时间、 数据单元 最大下载时间等均可以作为后续进行调度的约束条件参数, 为网管进行调 度提供参考依据, 例如, 若网管检测到软件版本下载速率不能达到指定的 下载速度, 则选取新的文件下载源供网元下载。
网管服务器: 根据用户配置的下载控制参数, 向选定的网元发送升级 控制信息, 并为每个需要进行版本升级的网元生成一个上下文; 其中, 所 述的上下文可以持久化在文件或数据库中;
所述生成上下文就是为每个网元需要下载的软件版本生成一个下载进 度控制表, 具体表现为:
网管服务器根据配置的下载控制参数将升级的软件版本文件进行数据 单元划分, 并为每个数据单元分配数据单元 ID, 确定每个数据单元的下载 源、 下载开始地址和结束地址, 下载开始时间、 已经下载的字节数、 下载 结束时间和下载结果等下载进度信息。 需要说明的是, 若配置的下载控制 参数中未配置划分数据单元的长度值, 则上述数据单元可以是软件版本文 件中的一个独立的文件。
即, 网管服务器为每个网元动态生成一个数据单元下载控制表, 每个 数据单元下载控制表存在唯一的标识 ID。
每个网元的数据单元下载控制表内包含一个或多个数据单元, 每个数 据单元存在唯一的单元 ID; 其中, 每个数据单元均包含如下内容: 数据单 元 ID、 该单元下载数据的文件名 (如果该网元需要升级的软件版本只有一 个文件, 该字段可以不需要)、 文件下载源、 文件下载开始地址、 文件下载 结束地址、 已经下载字节数、 下载开始时间、 下载结束时间、 下载结果(例 如, 定义 0表示成功、 1表示失败); 其中, 文件下载源可以是网管, 也可 以是已经下载了部分或全部对应软件版本信息的网元, 当然, 选定网元作 为文件下载源时, 该网元与文件下载目的网元间网络拓朴上连通。
例如,升级软件版本 A包括四个文件,分别为 Fl ( 2049K )、 F2 ( 30K )、 F3 ( 10K )、 F4 ( 1023K ); 网管服务器根据最大数据单元长度信息, 对各文 件进行分段, 得到分段后的多个数据块, 每个数据块对应着一个数据单元, 一个升级软件版本文件至少有一个数据单元, 一个数据单元最多只能有一 个文件的数据。 数据单元的 ID是唯一的, 只能拆分不能合并;
基于上述示例, 得到的某一网元数据单元下载控制表如表一所示: 表一
数据单 文件 文件开始 文件结束 文件下 下载开始 已经下载 下载结 下 载 元 ID 名 地址 地址 时间 字节数 束时间 结果
0 F1 0 683*1024-1 网管 开始时间 0
1 F1 683*1024 1366*1024-1 网管 开始时间 0
2 F1 1366*1024 2048*1024-1 网管 开始时间 0
3 F2 0 30*1024-1 网管 开始时间 0 4 F3 0 10*1024-1 网管 开始时间 0
5 F4 0 1022*1024-1 网管 开始时间 0
进一步的, 网管服务器在为每个需要进行版本升级的网元生成一个上 下文时, 优选的, 还生成一个网元下载状态表;
网元下载状态表, 包含: 网元 ID、 与该网元 ID对应的下载的版本号、 数据单元下载控制表 ID、 开始下载时间、 下载结束时间、 下载状态(例如, 设置 0表示就绪、 1表示正在下载、 2表示暂停、 3表示结束)、下载结果(例 如, 设置 0为成功、 1表示超时、 2表示网元不在线等);
其表现形式如表二所示:
表二
Figure imgf000012_0001
网管服务器向选定的网元发送升级控制信息包括: 数据单元 ID、 文件 下载开始地址、 文件下载结束地址和文件下载源; 当具有多个数据单元时, 优选的, 携带数据单元对应的文件名信息。
进一步的, 网管服务器还接收网元反馈的下载进度信息, 例如: 网元 发送的当前已经下载的字节数至网管服务器, 网管服务器根据预设的下载 约束条件检测各网元下载操作是否满足条件, 若不满足, 则根据网络拓朴 结构选择一新的在网络上连通的下载源, 调整升级控制信息, 并将调整后 的升级控制信息发送至对应的网元。
其中, 预设的下载约束条件可以是用户配置的下载控制参数中的具有 约束力的控制参数, 例如: 软件版本最大下载时间、 软件版本最小下载速 率和数据单元最大下载时间等。
具体的, 当网管服务器的调度线程检测到某一网元的数据单元下载控 制表中记录的一个或多个数据单元中数据下载速度小于设定下载速度; 或 者, 网管服务器的调度线程检测到网元下载数据的时间超出了设定的时间 值, 则网管服务器会根据拓朴结构选择一个新的文件下载源, 并生成一个 新的数据单元, 为该数据单元分配 ID号, 确定下载开始地址和结束地址, 其中, 下载开始地址为不满足下载约束条件的数据单元已经下载数据的下 一个字节; 结束地址仍为不满足下载约束条件的数据单元对应的下载结束 地址; 同时, 将对应的不满足下载约束条件的原数据单元下载结束地址修 改为该数据单元文件下载开始地址 +已经下载的字节数 -1。
当然, 上述过程中也可以生成多个新的数据单元, 这些新的数据单元 为不满足约束条件数据单元的拆分, 这些新的数据单元从整体上看, 其开 始地址为不满足下载约束条件的数据单元已经下载数据的下一个字节; 结 束地址仍为不满足下载约束条件的数据单元对应的下载结束地址。 这些数 据单元的数据下载源可以不同。
例如, 继续以表一为例说明, 若网管检测到数据单元 ID0下载操作不 满足下载约束条件, 根据网元反馈的下载进度信息可知数据单元 ID0 当前 下载了 10个字节的数据, 此时, 网管服务器生成一新的数据单元 ID6, 该 数据单元的开始地址为 11 , 下载结束地址为 683*1024-1 , 对应的下载源为 网元 A, 并将数据单元 ID0的下载结果标注为 0, 表示成功; 具体如下表所
Figure imgf000014_0001
网管服务器将新数据单元对应的 ID号、 下载源、 下载开始地址和结束 地址发送至对应的网元; 对应网元接收到上述控制信息后, 停止不满足下 载约束条件对应数据单元的数据下载操作, 从新的数据单元对应的下载源 进行数据下载; 其中, 网元是根据下载地址来获知停止不满足数据单元数 据下载操作的; 当然, 为了减少网元自我逻辑判断, 网管服务器也可以直 接向对应网元发送停止下载不满足下载约束条件数据单元对应数据的通知 消息, 该通知消息携带在调整后的升级控制信息内。
本发明通过上述调度过程, 可以做到充分利用整个网络的带宽, 节省 下载时间。
网元, 包括:
版本管理控制模块, 接收来自网管服务器发送的升级控制信息, 根据 升级控制信息调用版本管理文件接收模块从升级控制信息中指定的文件下 载源下载数据单元的数据, 并定期向网管服务器反馈下载进度信息; 并在 接收来自网管服务器的调度信息(即调整后的升级控制信息), 根据调度信 息调整自己的下载操作。 版本管理文件接收模块, 该模块根据版本管理控制模块的指示, 向文 件下载源中的版本管理文件发送模块发起数据下载请求, 并接收数据到网 元。
其中, 版本管理文件接收模块将下载的软件版本信息保存在生成的临 时数据文件中, 该数据文件包括下载数据的文件名、 数据起始地址、 数据 结束地址信息, 当网元下载完成时, 将临时的数据文件组合为正式升级文 件进行版本升级。
版本管理文件发送模块, 在网元作为下载源时, 被动接收来自下载请 求网元中的版本管理文件接收模块的数据下载请求, 并发送数据到对应网 元。
结合上述系统描述, 下面从方法流程上对本发明所述方法进行进一步 说明, 如图 3所示, 包括:
步骤 301、用户通过网管客户端选择部分或所有网元升级软件版本到某 一版本 A, 并设置网管服务器的下载控制参数;
其中, 设置的下载控制参数有部分是根据经验设置的, 例如设置最大 下载时间 Tdmax=60分钟、数据单元最大下载时间 Tdumax=5分钟、最大数 据单元长度值 Lmax=1024K等等。
本实施例中, 设定软件版本 A有 4 个文件: F1(2049K)、 F2(30K)、 F3(10K)、 F4(1023K)。
步骤 302、网管服务器根据预先配置策略在用户选定的网元中先选择部 分网元作为初始升级网元, 并根据配置的下载控制参数为初始选定的各网 元生成软件下载上下文, 即生成数据单元下载控制表。
其中, 预先配置策略可以但不限于选择网络拓朴中链路中间网元。 例 如, 当用户选定对所有网元升级时, 网管可以根据选择所有网元中的中间 网元先进行版本下载; 举例说明, 当前网络的拓朴图如图 1 所示, 此时, 中间网元即为 A、 BA、 CA网元。 选定 A、 BA、 CA网元后, 对应的三个 数据单元下载控制表的 ID分别为 ID0、 ID8、 IDll , 这三张表内容可以完 全一样。
为了描述清楚, 后续步骤均以选定 A、 BA、 CA网元为例进行说明。 步骤 303、 网管服务器下发升级控制信息到 A、 BA、 CA网元, 指示各 网元到指定的文件下载源下载数据。
优选的, 该步骤中, 网管服务器还对发送升级控制信息是否成功进行 检测, 若检测成功, 则继续后续步骤; 否则, 说明对应的链路故障, 进行 报警操作。
本实施例中, 4叚设向 A、 CA网元发送升级控制信息成功, 向 BA网元 发送升级控制信息失败,此时网管服务器根据网络拓朴结构,可以获知 BAA 网元是 BA网元的下游网元, 修改网元下载状态表的内容, 将 BA和 BAA 这两个网元的下载状态改为结束, 并设置下载结果为 "网元不在线", 设置 下载完成时间为当前时间。
步骤 304、 A、 CA网元接收升级控制信息后, 为存储数据单元在各自 的存储设备上生成了一个临时文件, 并为该文件分配的空间;
其中, 临时文件名为数据单元的 ID, 扩展名为 tmp, 比如 0.tmp。 步骤 305、 A、 CA网元向指定的文件下载源下载数据, 并定期向网管 服务器上报下载进度信息。
步骤 306、 网管服务器接收网元上报的下载进度信息, 并基于数据单元 下载控制表记录的信息检测各网元下载操作是否满足预设的下载约束条 件, 若不满足, 根据网络拓朴结构和链路的带宽选择一新的下载源后, 向 对应的网元发送调度信息, 并修改该网元对应的数据单元下载控制表信息。
步骤 307、 A、 CA网元接收到调度信息, 根据调度信息对当前下载操 作进行调整。 步骤 308、 重复步骤 305至步骤 307, 直到对应网元对软件版本的所有 数据单元数据下载完毕。
步骤 309、 网管服务器根据网元反馈的下载进度信息,检测到某个网元 所有的数据单元都下载完毕后, 向该网元发送控制信息, 指示下载完成。
步骤 310、 网元将多个数据单元的文件合并成为一个文件,基于该升级 文件进行升级后, 发送该网元版本升级成功消息到网管服务器。
步骤 311、 网管服务器收到网元版本升级成功控制信息后, 修改网元下 载状态表中该网元对应的记录的信息。 具体是将下载结束时间为当前时间, 将下载状态设置为 3 , 下载结果设置为 0。
在上述过程中, 网管服务器可以根据预先配置依次启动用户设定的剩 余的网元进行下载升级操作。 其中, 预先配置可以但不限于以下实现方式: 所述网管服务器根据网络拓朴结构和链路带宽, 选择与文件下载源相连通 的网元作为选定的待升级网元; 所述文件下载源为网管和 /或已经下载全部 或部分升级软件版本信息的网元。 对于, 后启动的网元, 其下载升级过程 与初始启动的网元下载升级过程相同。
其中, 网管服务器启动剩余的全部或部分网元的时机包括但不限于下 述方式, 用于可以根据具体情况灵活控制:
在设定的时间到达时, 开启全部或者部分剩余网元; 其中, 若开启部 分剩余网元, 可以优先开启与已经下载了全部或部分软件版本信息的网元 相连通的那部分网元; 或者, 根据网元反馈的下载进度信息, 在某网元下 载了全部或部分数据时, 开启剩余网元的升级下载过程。
网管服务器在用户选定的网元都下载完成后, 将网元下载状态表的内 容保存到数据库。
本发明所述方法根据网络拓朴结构和链路的带宽决定启动全部或部分 网元的下载任务, 下载任务启动后, 网管服务器根据网元下载任务进度报 告、 网络拓朴结构、 以及当前整个网络网元软件版本下载情况对网元下载 任务进行调度, 指示网元到合适的位置 (网管或网元) 下载指定的版本数 据, 而且同时可以从多个位置并行下载, 从而最大限度的利用整个网络的 带宽, 快速完成网元软件版本的升级;
另外, 本发明所述方法根据拓朴结构、 网元实际下载情况进行调度, 使下载过程中控制信息和软件版本数据分离, 软件架构简单, 代码实现容 易。 并且, 本发明实现流程简单, 仅仅依靠软件实现, 不会增加运营商硬 件投入。
如图 4所示, 本发明还提供一种分布式集中调度升级网元软件版本的 系统, 包括: 网管服务器和至少一个网元;
网管服务器, 包括:
升级控制信息下发模块, 用于基于配置的下载控制参数, 为选定的每 个待升级网元生成记录网元下载进度信息的上下文, 并向各待升级网元下 发升级控制信息;
检测模块, 用于接收网元发送的下载进度信息到所述上下文, 基于该 上下文检测各网元下载操作是否满足预设的下载约束条件;
调度模块, 用于在所述检测模块检测到网元下载操作不满足预设的下 载约束条件时, 调整所述升级控制信息后向对应网元发送;
数据发送模块, 用于在网管服务器作为下载源时, 基于接收的软件版 本信息下载请求, 向请求端发送软件版本信息。
网元, 包括:
版本管理控制模块, 用于接收所述网管服务器发送的升级控制信息时, 触发版本管理文件接收模块, 并将下载进度信息反馈至所述网管服务器; 版本管理文件接收模块, 用于向所述升级控制信息中指定的下载源发 送软件版本信息下载请求, 并将下载的软件版本信息保存; 版本管理文件发送模块, 用于在网元作为下载源时, 基于接收的软件 版本信息下载请求, 向请求端发送软件版本信息。 本发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权 利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在 内。

Claims

权利要求书
1、一种分布式集中调度升级网元软件版本的方法,其特征在于, 包括: 步骤 1、 网管服务器基于配置的下载控制参数, 为选定的每个待升级网 元生成记录网元下载进度信息的上下文, 并向各待升级网元下发升级控制 信息;
步骤 2、 所述每个待升级网元根据接收到的升级控制信息, 到指定下载 源下载升级软件版本信息, 并将下载进度信息反馈至所述网管服务器; 步骤 3、 网管服务器保存所述下载进度信息到上下文, 并基于该上下文 检测各网元下载操作是否满足预设的下载约束条件, 若不满足, 调整所述 升级控制信息后向对应网元发送,返回步骤 2, 直到所有待升级网元完成软 件版本的下载。
2、 如权利要求 1所述的方法, 其特征在于, 所述选定的待升级网元包 括:
下载任务开始时, 网管服务器在用户设定的待升级网元中选定的部分 或全部待升级网元; 或者,
下载任务开始后, 网管服务器在用户设定的待升级网元中选定部分待 升级网元后, 在剩余待升级网元中选定的部分或全部待升级网元。
3、 如权利要求 1或 2所述的方法, 其特征在于,
在下载任务开始时, 所述网管服务器根据网络拓朴结构和链路带宽, 在用户设定的待升级网元中选择链路中间网元作为选定的部分待升级网 元;
在下载任务开始后, 所述网管服务器根据网络拓朴结构和链路带宽, 选择与文件下载源相连通的网元作为选定的待升级网元; 所述文件下载源 为网管和 /或已经下载全部或部分升级软件版本信息的网元。
4、 如权利要求 1所述的方法, 其特征在于, 所述配置的下载控制参数 包括: 升级软件版本号、 开始下载时间和软件版本最大下载时间。
5、 如权利要求 4所述的方法, 其特征在于, 所述配置的下载控制参数 还包括: 划分软件版本文件的最大数据单元长度值和数据单元最大下载时 间。
6、 如权利要求 1所述的方法, 其特征在于, 所述生成记录网元下载进 度信息的上下文包括:
所述网管服务器根据所述下载控制参数, 对所述软件版本号对应的软 件版本文件进行数据单元划分, 并基于划分的数据单元为每个待升级网元 生成数据单元下载控制表,该表中包括:数据单元 ID号、数据单元下载源、 数据单元对应的下载开始地址及结束地址、 下载开始时间、 已经下载的字 节数、 下载结束时间和下载结果; 其中, 每个网元对应的数据单元下载控 制表均具有数据单元下载控制表 ID号。
7、 如权利要求 6所述的方法, 其特征在于, 所述生成记录网元下载进 度信息的上下文时还包括: 生成网元下载状态表, 该表包括网元 ID号, 以 及与网元 ID号对应的升级软件版本号、 数据单元下载控制表 ID号、 下载 开始时间、 下载结束时间、 下载状态和下载结果。
8、 如权利要求 6所述的方法, 其特征在于, 所述升级控制信息包括: 数据单元 ID号、 数据单元下载源、 数据单元下载开始地址及结束地址。
9、 如权利要求 1或 4至 8任一所述的方法, 其特征在于, 所述步骤 3 中预设的下载约束条件包括下述条件参数的一个或多个: 软件版本最大下 载时间、 软件版本最 d、下载速率和数据单元最大下载时间。
10、 如权利要求 6、 7或 8所述的方法, 其特征在于, 所述步骤 3中, 网管服务器调整所述升级控制信息包括:
所述网管服务器在所述数据单元下载控制表中生成新的数据单元, 并 将新数据单元对应的 ID号、 下载源、 下载开始地址和结束地址作为调整后 的升级控制信息;
其中, 所述新数据单元的下载开始地址为不满足下载约束条件对应的 数据单元已经下载数据的下一个字节; 所述新数据单元的下载源为网管或 在网络拓朴上连通且已经下载全部或部分升级软件版本信息的网元。
11、 如权利要求 7 所述的方法, 其特征在于, 所述网管服务器在向网 元发送升级控制信息失败时, 向上层发送链路故障告警, 并将所述网元下 束, 将下载结果修改为网元不在线。
12、 如权利要求 7所述的方法, 其特征在于,
所述网管服务器在某网元升级完成后, 将所述网元下载状态表中的下 载结束时间修改为当前时间, 将下载状态修改为下载结束, 将下载结果修 改为下载成功; 并在所有网元均下载完成时, 将所述网元下载状态表存入 数据库中。
13、 一种分布式集中调度升级网元软件版本的系统, 其特征在于, 包 括:
网管服务器, 包括:
升级控制信息下发模块, 用于基于配置的下载控制参数, 为选定的每 个待升级网元生成记录网元下载进度信息的上下文, 并向各待升级网元下 发升级控制信息;
检测模块, 用于接收网元发送的下载进度信息到所述上下文, 基于该 上下文检测各网元下载操作是否满足预设的下载约束条件;
调度模块, 用于在所述检测模块检测到网元下载操作不满足预设的下 载约束条件时, 调整所述升级控制信息后向对应网元发送;
数据发送模块, 用于在网管服务器作为下载源时, 基于接收的软件版 本信息下载请求, 向请求端发送软件版本信息; 网元, 包括:
版本管理控制模块, 用于接收所述网管服务器发送的升级控制信息时, 触发版本管理文件接收模块, 并将下载进度信息反馈至所述网管服务器; 版本管理文件接收模块, 用于向所述升级控制信息中指定的下载源发 送软件版本信息下载请求, 并将下载的软件版本信息保存;
版本管理文件发送模块, 用于在网元作为下载源时, 基于接收的软件 版本信息下载请求, 向请求端发送软件版本信息。
14、 如权利要求 13所述的系统, 其特征在于, 所述升级控制信息下发 模块, 为选定的每个待升级网元生成记录网元下载进度信息的上下文包括: 所述升级控制信息下发模块, 根据所述下载控制参数, 对软件版本文 件进行数据单元划分, 并基于划分的数据单元为每个待升级网元生成数据 单元下载控制表, 该表中包括: 数据单元 ID号、 数据单元下载源、 数据单 元对应的下载开始地址及结束地址、 下载开始时间、 已经下载的字节数、 下载结束时间和下载结果; 其中, 每个网元对应的数据单元下载控制表均 具有数据单元下载控制表 ID号。
15、 如权利要求 14所述的系统, 其特征在于, 所述升级控制信息下发 模块下发的升级控制信息包括: 数据单元 ID号、 数据单元下载源、 数据单 元下载开始地址及结束地址。
16、 如权利要求 14或 15所述的系统, 其特征在于,
所述调度模块, 在所述数据单元下载控制表中生成新的数据单元, 并 将新数据单元对应的 ID号、 下载源、 下载开始地址和结束地址作为调整后 的升级控制信息向对应网元发送;
其中, 所述新数据单元的下载开始地址为不满足下载约束条件对应的 数据单元已经下载数据的下一个字节; 所述新数据单元的下载源为网管或 在网络拓朴上连通且已经下载全部或部分升级软件版本信息的网元。
PCT/CN2011/075328 2010-12-23 2011-06-03 一种分布式集中调度升级网元软件版本的方法和系统 WO2012083643A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010601960.5A CN102546207B (zh) 2010-12-23 2010-12-23 一种分布式集中调度升级网元软件版本的方法和系统
CN201010601960.5 2010-12-23

Publications (1)

Publication Number Publication Date
WO2012083643A1 true WO2012083643A1 (zh) 2012-06-28

Family

ID=46313092

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/075328 WO2012083643A1 (zh) 2010-12-23 2011-06-03 一种分布式集中调度升级网元软件版本的方法和系统

Country Status (2)

Country Link
CN (1) CN102546207B (zh)
WO (1) WO2012083643A1 (zh)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051674A (zh) * 2012-11-23 2013-04-17 深圳市航天泰瑞捷电子有限公司 一种远程升级无线通信模块的方法、装置及手持单元
CN104469960B (zh) 2013-09-25 2019-12-10 中兴通讯股份有限公司 调度配置方法与装置
CN105306237A (zh) * 2014-06-26 2016-02-03 中兴通讯股份有限公司 网管的分布式管理方法及装置
CN105357056A (zh) * 2015-12-07 2016-02-24 成都广达新网科技股份有限公司 一种基于策略的eoc局端设备升级方法
CN110380979A (zh) * 2018-04-17 2019-10-25 北京升鑫网络科技有限公司 一种链式数据分发的方法及系统
CN109284116B (zh) * 2018-09-11 2022-03-08 陕西千山航空电子有限责任公司 一种多类型大数据量综合数管的数据管理方法
CN112422305B (zh) * 2019-08-21 2023-08-01 南京中兴新软件有限责任公司 通信设备的升级方法及装置
CN110716734B (zh) * 2019-09-20 2024-04-23 北京奇艺世纪科技有限公司 一种软件升级的方法、装置、电子设备及介质
CN113590147A (zh) * 2021-06-19 2021-11-02 特瓦特能源科技有限公司 一种充电桩升级系统及升级方法
CN115001957A (zh) * 2022-05-26 2022-09-02 苏州思萃工业互联网技术研究所有限公司 一种软件快速自动升级系统及方法
CN115473853A (zh) * 2022-08-19 2022-12-13 智己汽车科技有限公司 车辆的软件升级包下载防阻塞的方法及装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1758607A (zh) * 2005-11-10 2006-04-12 中国工商银行 分布式业务系统中的软件版本升级系统及其方法
CN101079732A (zh) * 2007-05-21 2007-11-28 武汉虹信通信技术有限责任公司 基于ftp协议的嵌入式系统软件远程升级方法
CN101145941A (zh) * 2006-12-13 2008-03-19 中兴通讯股份有限公司 一种通讯系统软件版本分布式存储和加载的方法及系统

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100403263C (zh) * 2006-08-16 2008-07-16 华为技术有限公司 按配置下载设备软件的方法
CN101227335A (zh) * 2008-01-25 2008-07-23 中兴通讯股份有限公司 一种网元设备的软件版本升级方法
CN101478424A (zh) * 2008-12-18 2009-07-08 深圳华为通信技术有限公司 局域网侧设备软件升级数据的分发方法、设备和系统
CN101854745B (zh) * 2009-04-02 2014-09-10 中兴通讯股份有限公司 软件版本的传输方法及装置
CN101645801B (zh) * 2009-08-27 2012-02-08 中兴通讯股份有限公司 基于集群管理的软件版本升级方法及命令交换机

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1758607A (zh) * 2005-11-10 2006-04-12 中国工商银行 分布式业务系统中的软件版本升级系统及其方法
CN101145941A (zh) * 2006-12-13 2008-03-19 中兴通讯股份有限公司 一种通讯系统软件版本分布式存储和加载的方法及系统
CN101079732A (zh) * 2007-05-21 2007-11-28 武汉虹信通信技术有限责任公司 基于ftp协议的嵌入式系统软件远程升级方法

Also Published As

Publication number Publication date
CN102546207B (zh) 2016-04-20
CN102546207A (zh) 2012-07-04

Similar Documents

Publication Publication Date Title
WO2012083643A1 (zh) 一种分布式集中调度升级网元软件版本的方法和系统
US10506062B2 (en) Network-optimized content delivery for high demand non-live contents
CN103841155B (zh) 一种软件下载方法和软件下载装置
EP1876798B1 (en) Cache memory storage
CN107483627A (zh) 一种文件分发、下载方法、分发服务器、客户端及系统
WO2008028364A1 (fr) Procédé de mise à jour de terminaux par lots
WO2012000251A1 (zh) 一种以太网无源光网络中光节点的软件升级方法及系统
CN101686139B (zh) 一种组播升级的方法、装置和系统
WO2011137793A1 (zh) 实现zigbee设备远程升级的方法、装置及网络系统
CN102420863B (zh) 一种快速分发文件系统和方法及装置
CN103188305A (zh) 一种多线程断点续传方法及系统
WO2013075488A1 (zh) 网元升级方法及装置
WO2012174799A1 (zh) 升级包下载及安装的方法、服务器及系统
WO2016070566A1 (zh) 云终端升级方法、系统、网管服务器及代理服务器
CN101505300B (zh) 基于Linux下服务器与终端间的数据同步系统及其同步方法
CN105357056A (zh) 一种基于策略的eoc局端设备升级方法
US20170031672A1 (en) Telecommunications node configuration management
KR101553603B1 (ko) 멀티캐스트 기반의 m2m 단말 파일 업그레이드 방법 및 시스템
CN106850273A (zh) 服务器及其流媒体服务提供方法
CN113055723A (zh) 一种版本调测及升级的方法、装置、设备以及存储介质
WO2021017617A1 (zh) 网络设备的开通方法及装置
JP5324498B2 (ja) 資源配付方法及びシステム
WO2008074225A1 (fr) Procédé de remplacement de modèle, système et périphérique
CN114840243A (zh) 一种分布式边缘节点的操作系统升级系统
WO2014012220A1 (zh) 基于capwap协议的wlan wtp固件版本升级的方法、装置和系统

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: 11851848

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: 11851848

Country of ref document: EP

Kind code of ref document: A1