WO2016090846A1 - 一种网络版本升级的方法及装置 - Google Patents

一种网络版本升级的方法及装置 Download PDF

Info

Publication number
WO2016090846A1
WO2016090846A1 PCT/CN2015/078991 CN2015078991W WO2016090846A1 WO 2016090846 A1 WO2016090846 A1 WO 2016090846A1 CN 2015078991 W CN2015078991 W CN 2015078991W WO 2016090846 A1 WO2016090846 A1 WO 2016090846A1
Authority
WO
WIPO (PCT)
Prior art keywords
version
upgrade
network device
network
file
Prior art date
Application number
PCT/CN2015/078991
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 WO2016090846A1 publication Critical patent/WO2016090846A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Definitions

  • the present invention relates to the field of network communications, and in particular, to a method and apparatus for upgrading a network version.
  • the devices in the network in the traditional upgrade method obtain the version from the version server through the access NE.
  • the access is performed.
  • the network element is facing a very large bandwidth pressure. Because multiple devices are downloaded through the same intermediate device due to network differences, the download bandwidth is limited, which affects the version upgrade speed and slower upgrade. Node upgrade efficiency is low, which will cause tedious operation and maintenance.
  • the problem with the traditional upgrade method is that it not only consumes a lot of manpower, but also the software upgrade may have an impact on the business in operation, and seriously affect the customer experience.
  • the object of the embodiments of the present invention is to provide a method and a device for upgrading a network version, which can quickly complete the upgrade of a plurality of devices in the network, which is very valuable to the operator, can also reduce the load of the version server, and quickly complete the upgrade of the network version. It also improves the user experience.
  • a method for upgrading a network version according to an embodiment of the present invention is applied to a network device, where the method includes:
  • the network device After obtaining the upgrade version file, the network device performs version upgrade according to the upgrade version file;
  • the network device After the network device is upgraded, the network device sends a first version update request to the network device that is adjacent to the network device in the same networking, and the neighboring network device updates according to the first version.
  • a version upgrade is requested, wherein the first version update request includes information about an upgrade version file required for the version update.
  • the method further includes: when the network device obtains an upgrade version file from the version server according to the version upgrade command, the method further includes:
  • the network device compares information about the upgrade version file required for the version update in the first version update request with the information about the upgrade version file required for the version update in the second version update request, and obtains a version comparison. result;
  • the network device performs version upgrade according to the version comparison result.
  • the information related to the upgrade version file required for the version update includes at least one of a version number, a release version time, a version content, a version size, and a version name.
  • the step of performing the version upgrade according to the version comparison result by the network device may include:
  • the network device terminates the current upgrade process according to the second version update request.
  • Version upgrade information related to the upgrade version file required for the version update.
  • the network device ignores the second version update request and continues to obtain the current version. Upgrade the version file to upgrade.
  • the step of the network device performing the version upgrade according to the upgrade version file after the obtaining the upgrade version file may include:
  • the network device After obtaining the upgrade version file, the network device receives a stop command for interrupting the current upgrade of the upgrade version file during the upgrade process; or
  • the network device After receiving the stop command, the network device acquires related information of an upgrade version file of the network device that is adjacent to the network device and is upgraded.
  • the network device sends a first version update request to a network device that is adjacent to the network device in the same networking group, where the neighboring network device is configured according to the neighboring network device.
  • the step of the first version update requesting a version upgrade may include:
  • the network device After the network device upgrade is completed, the network device verifies whether the updated upgrade version file is complete;
  • the network device When the updated upgrade version file is incomplete, the network device re-acquires the upgrade version file of the version server for upgrading;
  • the network device When verifying that the updated upgrade version file is complete, the network device sends the first version update request to a network device that is adjacent to the network device in the same networking.
  • an embodiment of the present invention further provides a device for upgrading a network version, which is applied to a network device, where the device includes:
  • a first receiving module configured to receive, by the network device, a version upgrade command
  • Obtaining a module configured to obtain, by the network device, an upgrade version file from the version server according to the version upgrade command;
  • a first upgrade module configured to: after obtaining the upgrade version file, the network device performs a version upgrade according to the upgrade version file;
  • a sending module configured to send, by the network device, a first version update request to a network device that is adjacent to the network device in the same networking after the network device is upgraded, where the neighboring network device is configured according to the The first version update request performs a version upgrade, wherein the first version update request includes information about an upgrade version file required for the version update.
  • the device further comprises:
  • a second receiving module configured to receive, by the network device, a second version update request sent by a network device that is adjacent to the network device in the same networking, where the second version update request includes a version update required Information about the upgraded version file;
  • a comparison module configured to compare, by the network device, information related to an upgrade version file required for a version update in the first version update request with an upgrade version file required for a version update in the second version update request Information, get the version comparison result;
  • the second upgrade module is configured to perform, by the network device, a version upgrade according to the version comparison result.
  • the information related to the upgrade version file required for the version update includes at least one of a version number, a release version time, a version content, a version size, and a version name.
  • the second upgrade module includes:
  • a first upgrade submodule configured to: when the version comparison result is that the version number in the first version update request is smaller than the version number in the second version update request, the network device terminates the current upgrade process, according to the Version upgrade information related to the upgrade version file required for the version update in the second version update request; or
  • a second upgrade submodule configured to: when the version comparison result is that the version number in the first version update request is greater than or equal to a version number in the second version update request, the network device ignores the second The version update request continues to obtain the current upgrade version file for upgrade.
  • the upgrading module includes:
  • Receiving a sub-module configured to: after receiving the upgrade version file, the network device receives a stop command for interrupting the current upgrade of the upgrade version file during the upgrade process;
  • the upgrade sub-module is configured to: after receiving the stop command, the network device acquires information related to an upgrade version file of the network device that is adjacent to the network device and is upgraded.
  • the sending module includes:
  • a verification submodule configured to verify, after the network device upgrade is completed, whether the updated upgrade version file is complete
  • the network device Processing the submodule, the network device re-acquiring the upgrade version file of the version server to be upgraded when the updated upgrade version file is incomplete;
  • the network device that initiates the upgrade command to the network device, and then the network device that receives the upgrade command performs the version upgrade by downloading the version file from the version server, and sends an upgrade request to the neighbor network device after the upgrade is completed.
  • the version upgrade of neighboring network devices is completed one after another.
  • the upgraded device can be used as the basis for upgrading the upgraded version of other devices. It is not necessary to download from one version server at the same time or multiple versions of the server are required, and the upgrade of many devices on the network can be completed quickly. Valuable, it can also reduce the load of the version server, and quickly complete the upgrade of the network version, and improve the user experience.
  • FIG. 1 is a schematic diagram of steps of a method for upgrading a network version according to an embodiment of the present invention
  • FIG. 2 is a flowchart of upgrading a network version under a typical networking according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a network version upgrade in a case where a neighboring network element is interrupted according to an embodiment of the present invention
  • FIG. 4 is a flowchart of processing for discovering a new neighbor according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an apparatus for upgrading a network version according to an embodiment of the present invention.
  • the traditional upgrade method in the prior art is a lot of manpower, and the software upgrade may affect the services in operation, and also affect the customer experience, the slow upgrade of the network equipment, and the low efficiency of the equipment upgrade.
  • the embodiment of the present invention provides a method and device for upgrading a network version. After the network element receives the upgrade command, obtains the upgrade version file from the version server, and upgrades the version, and then updates the version file to the neighbor network element, the neighbor is updated. After updating the version file, the NE continues to update the latest version files to other neighbor NEs. This can reduce the load on the version server, and can quickly complete the upgrade of the network version and improve the user experience.
  • a method for upgrading a network version according to an embodiment of the present invention is applied to a network device, and the method includes:
  • Step 11 The network device receives a version upgrade command.
  • the network device is the core network access device; if it is the bearer device, the network device is the device such as the base station or the aggregation layer access device, and any one of the network devices belongs to the protection entity of the embodiment of the present invention. .
  • the upgrade command is initiated by the direct user or by the user through the network management system.
  • Step 12 The network device obtains an upgrade version file from the version server according to the version upgrade command.
  • the network device can obtain the upgrade version file directly from the version server to obtain the upgrade version file.
  • the network device obtains the upgrade version file indirectly from the version server, that is, the upgrade version file is obtained by directly forwarding the network device with the version server.
  • the version server may be a PC (person computer) server.
  • Step 13 After obtaining the upgrade version file, the network device performs version upgrade according to the upgrade version file.
  • Step 14 After the network device upgrade is completed, the network device sends a first version update request to the network device that is adjacent to the network device in the same network, and the adjacent network device performs the version upgrade according to the first version update request, where the first A version update request includes information about the upgrade version file required for the version update.
  • the information about the upgrade version file required for the version update includes at least one of the version number, the release version time, the version content, the version size, and the version name, and any one of the specific contents that can be used to describe the upgraded version.
  • the related information belongs to the protection scope of the embodiment of the present invention. This solution is only for the purpose of clearly indicating the version to be upgraded.
  • the information about the upgrade version file mentioned above is the information about the upgrade version file mentioned above.
  • steps 11 to 14 by initiating an upgrade command to the network device (step 11), and then the network device receiving the upgrade command performs version upgrade by downloading the version file from the version server (step 12) (step 13), after the upgrade After the completion, the upgrade request is actively sent to other neighbor network devices, and the version upgrade of the adjacent network device is completed in succession (step 14).
  • the upgraded device can be used as the basis for upgrading the upgraded version of other devices. It is not necessary to download from one version server at the same time or multiple versions of the server are required, and the upgrade of many devices on the network can be completed quickly. Value does not affect the business in operation.
  • the network version upgrade method of the embodiment of the present invention when the step 12 is performed, the network version upgrade method is further performed. include:
  • Step 15 The network device receives the second version update request of the network device that is adjacent to the network device in the same network, where the second version update request includes information about the upgrade version file required for the version update.
  • Step 16 the network device compares information about the upgrade version file required for the version update in the first version update request with the information about the upgrade version file required for the version update in the second version update request, to obtain a version comparison result;
  • step 17 the network device performs version upgrade according to the version comparison result.
  • the same device may receive the update request initiated by two adjacent devices and then perform the version upgrade.
  • step 17 may include:
  • Step 171 in the version comparison result, the version number in the first version update request is smaller than the version number in the second version update request, the network device terminates the current upgrade process, and the required upgrade version is updated according to the version in the second version update request.
  • the version of the file is upgraded;
  • the ID of the current neighboring network device is recorded, and after the update is completed, the update request message is not sent again to the device, thereby avoiding duplication. Upgrading and not sending update request messages at the same time also reduces the load on the network.
  • Step 172 The version number in the version comparison result is greater than or equal to the version number in the second version update request, and the network device ignores the second version update request, and continues to obtain the current upgrade version file for upgrading.
  • the version update request of other neighbors is received again, and the version comparison is performed. If the newly sent version update requests the version update, the current version update is terminated, and the latest version is updated; if the newly sent version update requests the version and If the current update version is consistent, the ID of the neighbor is recorded. After the current NE version update is completed, the update request is not sent to the network element that has received the update request; if the newly sent version update request version is newer than the currently updated version Old, ignore this version update request, do not process.
  • the embodiment of the present invention solves the above problem by comparing the automatic version file between the neighbors and the automatic update, in particular, in the current network hierarchical networking, the network networking is applied in a tree-like structure, and then the network can be quickly completed through the embodiment of the present invention. Version update.
  • This solution is only a tree-like structure, but it is not only applied to this structure. Any version upgrade that can implement neighbor discovery and use this solution belongs to the protection scope of the embodiment of the present invention.
  • an example of a specific networking in the embodiment of the present invention is as follows.
  • Example 1 The general upgrade is to upgrade the version to the latest version, and the network device connected directly to the PC server can also be called the access network element, that is, access network element A.
  • the network device connected indirectly to the PC server can also be called Neighbor network element.
  • the version update is performed on the access network element A through the PC server:
  • Access network element A performs version upgrade (label 1) through the upgrade version file of the PC server;
  • the neighboring NE B, the neighbor NE and the neighbor NE are upgraded.
  • the neighbor NE B, the neighbor NE C, and the neighbor NE D are received.
  • the version number and the version number to be upgraded are compared, and the version number to be upgraded is updated.
  • the neighbor network element B, the neighbor network element C, and the neighbor network element D request the latest version (label 2) from the access network element A.
  • the neighboring network element B and the neighbor network element D are upgraded, the neighboring network element B sends a version update request to the neighbor network element E, and the neighbor network element D sends a version update request to the neighbor network element E.
  • the neighbor network element F sends a version update request (reference numeral 3);
  • the neighbor network element D is upgraded.
  • the neighbor network element E receives the version update request of the neighbor network element B and the neighbor network element D, and the neighbor network element E is upgraded from the network element version that first received the request, and if it is the neighbor network element B, the neighbor network is saved.
  • the version update request of the meta-D does not send a version update request to the neighbor network element D after the version upgrade is completed from the neighbor network element B;
  • the neighbor NE is upgraded to other neighbor NEs.
  • the neighbor NE is upgraded to other neighbors (version 4).
  • the neighboring network element H is upgraded from the neighboring network element F. After the version is upgraded, the neighboring network element I continues to send a version update request.
  • the neighboring network element K is upgraded from the neighboring network element E version.
  • the network element J sends a version update request (reference 5);
  • the neighboring network element I is upgraded from the neighboring network element H version, and the neighboring network element J is upgraded from the neighboring network element K version. After the update is completed, the neighboring network element I and the neighboring network element J send a version update request to each other (reference 6);
  • the neighboring network element I and the neighboring network element J check that the upgraded version number and the local version number are the same, and ignore the version update request.
  • Example 2 If the upgrade is performed from the access NE A and the neighbor NE E, the access NE A directly upgrades the version through the upgrade version file of the PC server, and the neighbor NE E receives the upgraded version file for the upgrade. :
  • the neighbor network element B and the neighbor network element D compare the current version number and the two version numbers to be upgraded, and find the latest version of the version number to be upgraded, neighbor network element B and neighbor network.
  • the source D requests the latest version (label 2) from the latest version of the network element
  • the neighbor network element C requests the access network element A to update the version
  • the neighbor network element K requests the access network element E to update the version
  • the neighbor NE has recorded the ID of the neighbor NE E, so the update request is not sent to the neighbor NE E, and the version upgrade is completed.
  • the update request is not sent to the neighboring network element E, and the version upgrade request is sent to the neighboring network element.
  • the neighbor network element F sends a version update request.
  • the neighbor NE is sent a version update request to the neighbor NE.
  • the neighbor network element D is upgraded, and a version update request is sent to the neighbor network element H.
  • the neighbor network element K is upgraded, and a version update request is sent to the neighbor network element I.
  • the neighbor network element F is upgraded, and a version update request is sent to the neighbor network element I.
  • the neighboring network element I is upgraded from the neighboring network element H version, and the neighboring network element J is upgraded from the neighboring network element K version. After the update is completed, the neighboring network element I and the neighboring network element J send version update requests to each other;
  • the neighboring network element I and the neighboring network element J check that the upgraded version number and the local version number are the same, and ignore the version update request.
  • the step 13 may include:
  • Step 131 After obtaining the upgrade version file, the network device receives a stop command for interrupting the current upgrade and upgrade version file during the upgrade process;
  • Step 132 After receiving the stop command, the network device acquires related information of the upgrade version file of the network device that is adjacent to the network device and is upgraded.
  • the network device may select one of the devices that have been upgraded by the adjacent network device (the version sent by the neighbor is the same as the version updated)
  • the upgrade version file of the network device is upgraded.
  • the network device During the version update process, if a network interruption occurs and a version update request of an adjacent network device is received, the network device is compared with the version of the adjacent network device, and if the newly sent version update requests the version update, Terminate the current version update, update the latest version; if the newly sent version update request version is consistent with the currently updated version, upgrade from the new neighbor NE version; if the newly sent version update request version is older than the currently updated version, The version update request is ignored, and no processing is performed. After the network is restored to normal, the original version upgrade is continued.
  • the network is interrupted, and the upgrade process is described in conjunction with the embodiment of the present invention.
  • the neighbor network element E receives the version update request of the network element B, and performs version update from the network element B. During the update process, the version update request of the neighbor network element D is received, the version number is compared, and the version currently being updated is found. If the number is consistent, the version update request of the neighbor NE D is saved.
  • the link between the neighbor NE and the NE B is interrupted, and the version update fails.
  • the neighbor NEs are searched from the saved version update list, and the version number of the neighboring network element D is the same as that of the neighboring network element D.
  • the NE version of the neighbor NE is upgraded.
  • the step 14 may include:
  • Step 141 After the network device upgrade is completed, the network device checks whether the updated upgrade version file is complete.
  • Step 142 When verifying that the updated upgrade version file is incomplete, the network device reacquires the upgrade version file of the version server for upgrading; or
  • Step 143 When verifying that the updated upgrade version file is complete, the network device sends a first version update request to the network device that is adjacent to the network device in the same networking.
  • Step 41 Send a version comparison request to the neighboring network element, and carry the version number of the point.
  • Step 42 The neighboring network element answers the version number of the local network element to the sending requesting network element, and compares the version number of the neighboring network element. If the neighboring network element version number is older than the sending requesting network element version number, the latest version is requested from the sending network element. If the neighbor NE version number is the same as the sending request NE version number, go to Step 46 to end the version upgrade.
  • Step 43 The network element receives the network element version number of the neighboring network element, and compares the version number. If the version of the neighboring network element is new, the network element requests the latest version from the neighboring network element.
  • Step 44 The neighbor network element completes the version update.
  • Step 45 After the neighbor network element completes the version update, the neighbor network element continues to update the version to other neighbor network elements.
  • the embodiment of the present invention further provides a device for upgrading a network version, which is applied to a network device, and the device includes:
  • the first receiving module 51 is configured to receive, by the network device, a version upgrade command.
  • the obtaining module 52 is configured to obtain, by the network device, the upgrade version file from the version server according to the version upgrade command;
  • the first upgrade module 53 is configured to: after obtaining the upgrade version file, the network device performs version upgrade according to the upgrade version file;
  • the sending module 54 is configured to: after the network device upgrade is completed, the network device sends a first version update request to the network device that is adjacent to the network device in the same networking, and the neighboring network device performs the version upgrade according to the first version update request. , wherein the first version update request includes information about an upgrade version file required for the version update.
  • the first receiving module 51 obtains an upgrade command initiated by the network device, and then the acquiring module 52 of the network device downloads the version file from the version server, performs the version upgrade by using the first upgrading module 53, and finally sends the module 54 to the other after the upgrade is completed.
  • the neighbor network device sends an upgrade request and completes the version upgrade of the neighboring network device. In this way, the upgraded device can be used as the basis for upgrading the upgraded version of other devices. It is not necessary to download from one version server at the same time or multiple versions of the server are required, and the upgrade of many devices on the network can be completed quickly. Value does not affect the business in operation.
  • the second receiving module 51 is configured to receive, by the network device, a second version update request sent by the network device adjacent to the network device in the same networking, where the second version update request includes the upgrade version file required for the version update.
  • the comparison module is configured to compare information about the upgrade version file required for the version update in the first version update request with the upgrade version file required for the version update in the second version update request, and obtain a version comparison result. ;
  • the second upgrade module is configured to perform a version upgrade according to the version comparison result of the network device.
  • the information about the upgrade version file required for the version update includes at least one of a version number, a release version time, a version content, a version size, and a version name.
  • the second upgrade module includes:
  • the first upgrade submodule is configured to: in the version comparison result, the version number in the first version update request is smaller than the version number in the second version update request, the network device terminates the current upgrade process, and the version update in the second version update request is performed. Version upgrade of the required upgrade version file; or
  • the second upgrade submodule is configured to set the version number in the first version update request to be greater than or equal to the version number in the second version update request, and the network device ignores the second version update request and continues to obtain the current upgrade version.
  • the file is upgraded.
  • the upgrading module includes:
  • the receiving submodule is configured to receive a stop command for interrupting the current upgrade and upgrade version file during the upgrade process of the network device after obtaining the upgrade version file;
  • the upgrade submodule is configured to upgrade the information about the upgraded version file of the upgraded network device that is in the same network and the network device after the stop command is received.
  • the sending module 54 includes:
  • the verification submodule is set to check whether the updated upgrade version file of the network device is complete after the network device upgrade is completed;
  • the network device reacquires the upgrade version file of the version server to be upgraded;
  • the sending submodule is configured to send the first version update request to the network device adjacent to the network device and the network device when the updated upgrade version file is complete.
  • the device provided by the present invention is a device that applies the method for upgrading the network version, and all the embodiments of the method for upgrading the network version are applicable to the device, and all of the same or similar beneficial effects can be achieved.
  • the embodiment of the invention relates to the field of network communication, and solves the problem that the traditional upgrade method consumes a large amount of manpower, and the software upgrade may affect the business in operation, and also affects the customer experience problem, and the upgraded device can be completed.
  • the basis for upgrading the upgraded version of other devices you do not need to download from one version server at the same time or need multiple versions of the server. It can also quickly upgrade many devices on the network. It is very valuable to operators and can also reduce the version.
  • the server load, while quickly completing the network version upgrade, also improves the user experience.

Landscapes

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

Abstract

本发明提供一种网络版本升级的方法及装置,涉及网络通信领域,解决传统的升级方法耗费大量的人力,并且软件的升级可能会对运营中业务产生的影响,同时也影响了客户体验的问题。其中所述方法应用于网络设备,所述方法包括:网络设备接收版本升级命令;网络设备根据版本升级命令从版本服务器获取升级版本文件;在获取到升级版本文件后,网络设备根据升级版本文件进行版本升级;在网络设备升级完成之后,网络设备向处于同一组网与网络设备相邻的网络设备发送第一版本更新请求,由相邻的网络设备根据第一版本更新请求进行版本升级,其中第一版本更新请求中包括版本更新所需的升级版本文件的相关信息。

Description

一种网络版本升级的方法及装置 技术领域
本发明涉及网络通信领域,特别是涉及一种网络版本升级的方法及装置。
背景技术
随着移动互联的快速发展,网络带宽需求爆炸式增长,同时通信网络设备多种技术快速的融合,相继出现了多种新的设备形态,并融合已有通信设备的多种功能,例如表现为设备容量大、接口丰富等兼容多种业务形态,另外一方面随着业务需求多样性也带来了设备组网的多样化,使得组网更复杂和多变。
还有网络的快速发展带来了通信设备软件庞大,复杂度急剧上升,使得软件存在的问题更多,同时通信软件版本的升级变得频繁。
由于运营商的网络存在网络复杂及节点众多的实际情况,针对传统的升级方法中的网络中的设备,都是通过接入网元从版本服务器获取版本,多个设备同时升级的时候,接入网元面临着非常大的带宽压力,而由于组网的差异造成的多个设备通过同一个中间设备进行版本下载,会受下载带宽限制,从而影响版本升级速度,也造成升级较慢;而逐个节点升级效率低,会造成运行维护的繁琐。
传统的升级方法存在的问题是不仅耗费大量的人力,而且软件的升级可能会对运营中业务产生影响,同时严重影响了客户体验。
发明内容
本发明实施例的目的在于提供一种网络版本升级的方法及装置,快速的完成网络中众多设备的升级,对运营商非常有价值,也可以减轻版本服务器的负荷,同时快速完成网络版本的升级,还提高了用户体验效果。
为了实现上述目的,本发明实施例提供的一种网络版本升级的方法,应用于网络设备,所述方法包括:
所述网络设备接收版本升级命令;
所述网络设备根据所述版本升级命令从版本服务器获取升级版本文件;
在获取到所述升级版本文件后,所述网络设备根据所述升级版本文件进行版本升级;
在所述网络设备升级完成之后,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送第一版本更新请求,由所述相邻的网络设备根据所述第一版本更新请求进行版本升级,其中所述第一版本更新请求中包括版本更新所需的升级版本文件的相关信息。
其中,所述网络设备根据所述版本升级命令从版本服务器获取升级版本文件时,所述方法还包括:
所述网络设备接收到处于同一组网与所述网络设备相邻的网络设备的发送的第二版本更新请求,其中所述第二版本更新请求中包括版本更新所需的升级版本文件的相关信息;
所述网络设备比较所述第一版本更新请求中的版本更新所需的升级版本文件的相关信息与所述第二版本更新请求中的版本更新所需的升级版本文件的相关信息,得到版本比较结果;
所述网络设备根据所述版本比较结果进行版本升级。
可选地,所述版本更新所需的升级版本文件的相关信息至少包括版本号、发布版本的时间、版本内容、版本大小及版本名称中的一种或多种。
可选地,所述网络设备根据所述版本比较结果进行版本升级的步骤,可以包括:
在所述版本比较结果为所述第一版本更新请求中的版本号小于所述第二版本更新请求中的版本号,所述网络设备终止当前升级进程,根据所述第二版本更新请求中的版本更新所需的升级版本文件的相关信息进行版本升级;或者
在所述版本比较结果为所述第一版本更新请求中的版本号大于或者等于所述第二版本更新请求中的版本号,所述网络设备忽略所述第二版本更新请求,继续获取当前的升级版本文件进行升级。
可选地,所述在获取到所述升级版本文件后,所述网络设备根据所述升级版本文件进行版本升级的步骤,可以包括:
在获取到所述升级版本文件后,所述网络设备进行升级过程中接收到中断当前升级所述升级版本文件的停止命令;或者
在接收到所述停止命令后,所述网络设备获取处于同一组网与所述网络设备相邻且已升级的网络设备的升级版本文件的相关信息进行升级。
可选地,所述在所述网络设备升级完成之后,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送第一版本更新请求,由所述相邻的网络设备根据所述第一版本更新请求进行版本升级的步骤,可以包括:
在所述网络设备升级完成之后,所述网络设备校验所更新的升级版本文件是否完整;
在校验所更新的升级版本文件为不完整时,所述网络设备重新获取所述版本服务器的升级版本文件进行升级;
在校验所更新的升级版本文件为完整时,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送所述第一版本更新请求。
为了实现上述目的,本发明实施例还提供一种网络版本升级的装置,应用于网络设备,所述装置包括:
第一接收模块,设置为所述网络设备接收版本升级命令;
获取模块,设置为所述网络设备根据所述版本升级命令从版本服务器获取升级版本文件;
第一升级模块,设置为在获取到所述升级版本文件后,所述网络设备根据所述升级版本文件进行版本升级;
发送模块,设置为在所述网络设备升级完成之后,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送第一版本更新请求,由所述相邻的网络设备根据所述第一版本更新请求进行版本升级,其中所述第一版本更新请求中包括版本更新所需的升级版本文件的相关信息。
其中,所述装置还包括:
第二接收模块,设置为所述网络设备接收到处于同一组网与所述网络设备相邻的网络设备的发送的第二版本更新请求,其中所述第二版本更新请求中包括版本更新所需的升级版本文件的相关信息;
比较模块,设置为所述网络设备比较所述第一版本更新请求中的版本更新所需的升级版本文件的相关信息与所述第二版本更新请求中的版本更新所需的升级版本文件的相关信息,得到版本比较结果;
第二升级模块,设置为所述网络设备根据所述版本比较结果进行版本升级。
可选地,所述版本更新所需的升级版本文件的相关信息至少包括版本号、发布版本的时间、版本内容、版本大小及版本名称中的一种或多种。
可选地,所述第二升级模块包括:
第一升级子模块,设置为在所述版本比较结果为所述第一版本更新请求中的版本号小于所述第二版本更新请求中的版本号,所述网络设备终止当前升级进程,根据所述第二版本更新请求中的版本更新所需的升级版本文件的相关信息进行版本升级;或者
第二升级子模块,设置为在所述版本比较结果为所述第一版本更新请求中的版本号大于或者等于所述第二版本更新请求中的版本号,所述网络设备忽略所述第二版本更新请求,继续获取当前的升级版本文件进行升级。
可选地,所述升级模块包括:
接收子模块,设置为在获取到所述升级版本文件后,所述网络设备进行升级过程中接收到中断当前升级所述升级版本文件的停止命令;
升级子模块,设置为在接收到所述停止命令后,所述网络设备获取处于同一组网与所述网络设备相邻且已升级的网络设备的升级版本文件的相关信息进行升级。
可选地,所述发送模块包括:
校验子模块,设置为在所述网络设备升级完成之后,所述网络设备校验所更新的升级版本文件是否完整;
处理子模块,设置为在校验所更新的升级版本文件为不完整时,所述网络设备重新获取所述版本服务器的升级版本文件进行升级;或者
发送子模块,设置为在校验所更新的升级版本文件为完整时,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送所述第一版本更新请求。
本发明实施例的上述技术方案的有益效果如下:
本发明实施例方案中,通过向网络设备发起升级命令,然后接收到升级命令的网络设备通过从版本服务器下载版本文件进行版本升级,在升级后完成后,向其他邻居网络设备主动发送升级请求,相继完成相邻网络设备的版本升级。这样可以将升级完成的设备作为其他设备升级下载的升级版本的基础,不需要同时从一个版本服务器上下载或者需要多个版本服务器,也能快速的完成网络中众多设备的升级,对运营商非常有价值,也可以减轻版本服务器的负荷,同时快速完成网络版本的升级,还提高了用户体验效果。
附图说明
图1为本发明实施例的网络版本升级的方法的步骤示意图;
图2为本发明实施例的典型组网下网络版本升级的流程图;
图3为本发明实施例的邻居网元中断情况下网络版本升级的流程图;
图4为本发明实施例的发现新邻居的处理流程图;
图5为本发明实施例的网络版本升级的装置的结构示意图。
具体实施方式
为使本发明实施例要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。
本发明实施例针对现有技术中传统的升级方法耗费大量的人力,且软件的升级可能会对运营中业务产生影响,同时也影响了客户体验以及网络设备升级慢及设备升级效率低的问题。
本发明实施例提供一种网络版本升级的方法及装置,在网元收到升级命令,从版本服务器获得升级版本文件进行版本升级,再版本更新完成后,向邻居网元更新的版本文件,邻居网元也完成版本文件的更新后,继续向其他邻居网元更新最新的版本文件,这样可以减轻版本服务器的负荷,也可以快速完成网络版本的升级,同时提高了用户体验效果。
如图1所示,本发明实施例的网络版本升级的方法,应用于网络设备,方法包括:
步骤11,网络设备接收版本升级命令;
如果处于无线网络中,网络设备则是核心网接入设备;如果是承载设备,网络设备则是基站或者汇聚层接入设备等设备,任何一种网络设备,均属于本发明实施例的保护实体。
升级命令是直接用户发起的,也可以是用户通过网管系统进行发起的。
步骤12,网络设备根据版本升级命令从版本服务器获取升级版本文件;
如果网络设备为直接连接于版本服务器的网络设备,则网络设备可以直接从版本服务器获取到升级版本文件下载得到升级版本文件。
如果网络设备为间接连接于版本服务器的网络设备,则网络设备间接从版本服务器获取到升级版本文件,也就是通过直接与版本服务器的网络设备转发得到升级版本文件。
其中版本服务器可以是PC(person computer,个人电脑)服务器。
步骤13,在获取到升级版本文件后,网络设备根据升级版本文件进行版本升级;
步骤14,在网络设备升级完成之后,网络设备向处于同一组网与网络设备相邻的网络设备发送第一版本更新请求,由相邻的网络设备根据第一版本更新请求进行版本升级,其中第一版本更新请求中包括版本更新所需的升级版本文件的相关信息。
其中版本更新所需的升级版本文件的相关信息至少包括版本号、发布版本的时间、版本内容、版本大小及版本名称中的一种或多种,任何一种能够进行说明待升级版本的具体内容的相关信息,均属于本发明实施例的保护范围。本方案只是为了明确说明待升级的版本,在此列举了升级版本文件上述的相关信息。
在步骤11至步骤14中,通过向网络设备发起升级命令(步骤11),然后接收到升级命令的网络设备通过从版本服务器下载版本文件(步骤12)进行版本升级(步骤13),在升级后完成后,向其他邻居网络设备主动发送升级请求,相继完成相邻网络设备的版本升级(步骤14)。这样可以将升级完成的设备作为其他设备升级下载的升级版本的基础,不需要同时从一个版本服务器上下载或者需要多个版本服务器,也能快速的完成网络中众多设备的升级对运营商非常有价值,同时也不会影响运营中的业务。
如果依据本方案,可以让用户对于多个设备同时发送升级命令,然后就会从多个设备开始升级,这样进一步的快速完成升级,但是如果从多个设备升级然后向相邻的 设备更新请求时,同一设备可能接收到两个相邻设备发起的更新请求,需要进行相关处理,因此本发明实施例的网络版本升级的方法中,在执行步骤12时,网络版本升级的方法还包括:
步骤15,网络设备接收到处于同一组网与网络设备相邻的网络设备的发送的第二版本更新请求,其中第二版本更新请求中包括版本更新所需的升级版本文件的相关信息;
步骤16,网络设备比较第一版本更新请求中的版本更新所需的升级版本文件的相关信息与第二版本更新请求中的版本更新所需的升级版本文件的相关信息,得到版本比较结果;
步骤17,网络设备根据版本比较结果进行版本升级。
通过步骤15至步骤17可以实现从多个设备开始的升级时,同一设备可能接收到两个相邻设备发起的更新请求比较后,进行版本升级。
具体的本发明实施例的网络版本升级的方法,步骤17可以包括:
步骤171,在版本比较结果为第一版本更新请求中的版本号小于第二版本更新请求中的版本号,网络设备终止当前升级进程,根据第二版本更新请求中的版本更新所需的升级版本文件的相关信息进行版本升级;或者
根据第二版本更新请求中的版本更新所需的升级版本文件进行版本升级时,记录当前相邻的网络设备的ID,在更新完成后,不用再重新向该设备发送更新请求消息,避免了重复升级,同时不重复发送更新请求消息也减轻了网络的负荷。
步骤172,在版本比较结果为第一版本更新请求中的版本号大于或者等于第二版本更新请求中的版本号,网络设备忽略第二版本更新请求,继续获取当前的升级版本文件进行升级。
在版本更新过程中,又收到其他邻居的版本更新请求,进行版本比较,如果新发送的版本更新请求版本更新,则终止当前版本更新,更新最新的版本;如果新发送的版本更新请求版本和当前正在更新版本一致,则记录邻居的ID,在当前网元版本更新完成后,不向已经收到过更新请求的网元发送更新请求;如果新发送的版本更新请求版本比当前正在更新的版本旧,则忽略此版本更新请求,不做处理。
本发明实施例通过邻居间自动版本文件比较和自动更新,解决上述问题,尤其是在当前网络分层组网,网络组网类似树状结构中进行应用,然后通过本发明实施例能快速完成网络版本的更新。本方案只是以似树状结构举例,但并不是仅仅应用于这一种结构,任何能够实现邻居发现,使用本方案进行的版本升级,均属于本发明实施例的保护范围。
如图2所示,本发明实施例的具体在典型的组网下的举例如下。
举例一:一般升级是将版本升级为最新版本,且直接于PC服务器连接的网络设备也可以称为接入网元即接入网元A,间接连接于PC服务器连接的网络设备也可以称为邻居网元。通过PC服务器,在接入网元A进行版本更新:
1.接入网元A通过PC服务器的升级版本文件进行版本升级(标号1);
2.接入网元A点完成版本升级后,通知邻居网元B、邻居网元C、邻居网元D进行版本升级,邻居网元B、邻居网元C、邻居网元D在收到版本更新请求后,比较本点版本号和待升级版本号,发现待升级版本号更新,邻居网元B、邻居网元C、邻居网元D向接入网元A请求最新版本(标号2);
3.邻居网元C完成版本升级后,没有其他邻居网元,版本升级完成(标号2);
4.邻居网元B、邻居网元D完成版本升级后,继续向其他邻居网元发送版本升级请求,其中邻居网元B向邻居网元E发送版本更新请求,邻居网元D向邻居网元E、邻居网元F发送版本更新请求(标号3);
5.邻居网元F比较版本后,从邻居网元D版本升级;
6.邻居网元E先后收到了邻居网元B、邻居网元D的版本更新请求,邻居网元E从最先收到请求的网元版本升级,假设是邻居网元B,则保存邻居网元D的版本更新请求,在从邻居网元B完成版本升级后,不再向邻居网元D发送版本更新请求;
7.邻居网元F完成版本升级后,继续向其他邻居网元H版本升级;邻居网元E完成版本升级后,继续向其他邻居网元K版本升级(标号4);
8.邻居网元H从邻居网元F版本升级,版本升级完成后,继续向邻居网元I发送版本更新请求;邻居网元K从邻居网元E版本升级,版本升级完成后,继续向邻居网元J发送版本更新请求(标号5);
9.邻居网元I从邻居网元H版本升级,邻居网元J从邻居网元K版本升级,更新完成后,邻居网元I、邻居网元J向彼此发送版本更新请求(标号6);
10.邻居网元I、邻居网元J检查待更升级版本号和本地版本号一致,忽略版本更新请求。
举例二:比如从接入网元A和邻居网元E开始升级,则接入网元A通过PC服务器的升级版本文件直接进行版本升级,同时邻居网元E接收到转发的升级版本文件进行升级:
1.接入网元A点完成版本升级后,通知邻居网元B、邻居网元C、邻居网元D进行版本升级,与此同时邻居网元E完成升级后,通知邻居网元B、邻居网元K、邻居网元D进行版本升级,由于邻居网元C和邻居网元K没有收到邻居网元E的版本请求,只需要比较本点版本号和待升级版本号,发现待升级版本号更新,但邻居网元B和邻居网元D在收到版本更新请求后,比较本点版本号和待升级的两个版本号,发现待升级版本号最新版本,邻居网元B和邻居网元D向最新版本的网元请求最新版本(标号2),邻居网元C向接入网元A请求更新版本,邻居网元K向接入网元E请求更新版本;
2.邻居网元C完成版本升级后,没有其他邻居网元,版本升级完成(标号2);
3.邻居网元B已经记录了之前邻居网元E的ID,因此不会再向邻居网元E发更新请求,版本升级完成;
4.邻居网元D已经记录了之前邻居网元E的ID完成版本升级后,也不再向邻居网元E发更新请求,继续向其他邻居网元发送版本升级请求,其中邻居网元D向邻居网元F发送版本更新请求;
5.邻居网元K完成版本升级后,向邻居网元J发送版本更新请求;
6.邻居网元F比较版本后,从邻居网元D版本升级,向邻居网元H发送版本更新请求;
7.邻居网元J比较版本后,从邻居网元K版本升级,向邻居网元I发送版本更新请求;
8.邻居网元H比较版本后,从邻居网元F版本升级,向邻居网元I发送版本更新请求;
9.邻居网元I从邻居网元H版本升级,邻居网元J从邻居网元K版本升级,更新完成后,邻居网元I、邻居网元J向彼此发送版本更新请求;
10.邻居网元I、邻居网元J检查待更升级版本号和本地版本号一致,忽略版本更新请求。
如果在升级过程中出现的中断,本发明实施例的网络版本升级的方法中,步骤13可以包括:
步骤131,在获取到升级版本文件后,网络设备进行升级过程中接收到中断当前升级升级版本文件的停止命令;
步骤132,在接收到停止命令后,网络设备获取处于同一组网与网络设备相邻且已升级的网络设备的升级版本文件的相关信息进行升级。
如果是进行下载的升级版本的设备出现故障或者断电而引起的中断,则网络设备可以从相邻的网络设备已升级的记录的(邻居发送的版本和在更新的版本一致)设备中选取一个网络设备的升级版本文件进行版本升级。
在版本更新过程中,如果出现网络中断,同时收到相邻的网络设备的版本更新请求,则将网络设备与相邻的网络设备的进行版本比较,如果新发送的版本更新请求版本更新,则终止当前版本更新,更新最新的版本;如果新发送的版本更新请求版本和当前正在更新版本一致,则从新的邻居网元版本升级;如果新发送的版本更新请求版本比当前正在更新的版本旧,则忽略此版本更新请求,不做处理,待网络恢复正常后,继续原本的版本升级。
如图3所示,本发明的具体实施例举例如下。
在邻居网元E点通过网元B点进行版本更新的过程中,网络中断,结合本发明实施例,进行升级过程说明。
1.邻居网元E收到了网元B的版本更新请求,从网元B进行版本更新,更新过程中,收到了邻居网元D的版本更新请求,比较版本号,发现和当前正在更新的版本号一致,则保存邻居网元D的版本更新请求。
2.邻居网元E和网元B之间的链路中断,版本更新失败。
3.邻居网元E从保存的版本更新列表查找,发现邻居网元D的版本号和更新失败的版本号一致,则邻居网元E重新从邻居网元D开始版本升级。
4.邻居网元E版本升级完成,继续向邻居网元K版本升级。
如果在升级过程中出现网络问题引起的升级版本文件错误,本发明实施例的网络问题网络版本升级的方法中,步骤14可以包括:
步骤141,在网络设备升级完成之后,网络设备校验所更新的升级版本文件是否完整;
步骤142,在校验所更新的升级版本文件为不完整时,网络设备重新获取版本服务器的升级版本文件进行升级;或者
步骤143,在校验所更新的升级版本文件为完整时,网络设备向处于同一组网与网络设备相邻的网络设备发送第一版本更新请求。
在发送升级版本文件时本身就会带有校验,本方案此处的校验(可以采用CRC(Cyclic Redundancy Check,循环冗余校验码))是为了提高升级的精确性。
如果是有限的网络设备,在统一更新完成后,会进行统一检查所有的网络设备的更新情况,如果有遗漏则将遗漏的设备进行版本升级,如果没有遗漏则检查无误,完成本次升级。
如果在升级完成之后,网元在运行过过程中,重启后需要确认当前的版本是否与邻居网元的版本一样。不管网元是否下载过,只要是重启或者发现新的邻居网元,则需要进行版本确认。在发现新的邻居网元需要进行版本升级。因此如图4所示,本发明的具体实施例的举例如下。
如果网元运行过程中,发生重启或者和发现新的邻居网元:
步骤41,向邻居网元发送版本比较请求,携带本点版本号;
步骤42,邻居网元向发送请求网元应答本网元的版本号;邻居网元进行版本号比较,如果邻居网元版本号比发送请求网元版本号旧,则向发送网元请求最新版本,如果邻居网元版本号与发送请求网元版本号一样新,则执行步骤46结束版本升级;
步骤43,网元收到邻居网元应答的网元版本号,进行版本号比较,如果邻居网元的版本新,则向邻居网元请求最新版本;
步骤44,邻居网元完成版本更新;
步骤45,邻居网元完成版本更新后,继续向其他邻居网元更新版本。
如图5所示,相应的,本发明实施例还提供一种网络版本升级的装置,应用于网络设备,装置包括:
第一接收模块51,设置为网络设备接收版本升级命令;
获取模块52,设置为网络设备根据版本升级命令从版本服务器获取升级版本文件;
第一升级模块53,设置为在获取到升级版本文件后,网络设备根据升级版本文件进行版本升级;
发送模块54,设置为在网络设备升级完成之后,网络设备向处于同一组网与网络设备相邻的网络设备发送第一版本更新请求,由相邻的网络设备根据第一版本更新请求进行版本升级,其中第一版本更新请求中包括版本更新所需的升级版本文件的相关信息。
第一接收模块51得到向网络设备发起的升级命令,然后网络设备的获取模块52从版本服务器下载版本文件,利用第一升级模块53进行版本升级,最后发送模块54在升级后完成后,向其他邻居网络设备主动发送升级请求,相继完成相邻网络设备的版本升级。这样可以将升级完成的设备作为其他设备升级下载的升级版本的基础,不需要同时从一个版本服务器上下载或者需要多个版本服务器,也能快速的完成网络中众多设备的升级对运营商非常有价值,同时也不会影响运营中的业务。
本发明的又一实施例的网络版本升级的装置还包括:
第二接收模块51,设置为网络设备接收到处于同一组网与网络设备相邻的网络设备的发送的第二版本更新请求,其中第二版本更新请求中包括版本更新所需的升级版本文件的相关信息;
比较模块,设置为网络设备比较第一版本更新请求中的版本更新所需的升级版本文件的相关信息与第二版本更新请求中的版本更新所需的升级版本文件的相关信息,得到版本比较结果;
第二升级模块,设置为网络设备根据版本比较结果进行版本升级。
本发明的又一实施例的网络版本升级的装置中,版本更新所需的升级版本文件的相关信息至少包括版本号、发布版本的时间、版本内容、版本大小及版本名称中的一种或多种。
本发明的又一实施例的网络版本升级的装置中,第二升级模块包括:
第一升级子模块,设置为在版本比较结果为第一版本更新请求中的版本号小于第二版本更新请求中的版本号,网络设备终止当前升级进程,根据第二版本更新请求中的版本更新所需的升级版本文件的相关信息进行版本升级;或者
第二升级子模块,设置为在版本比较结果为第一版本更新请求中的版本号大于或者等于第二版本更新请求中的版本号,网络设备忽略第二版本更新请求,继续获取当前的升级版本文件进行升级。
本发明的又一实施例的网络版本升级的装置中,升级模块包括:
接收子模块,设置为在获取到升级版本文件后,网络设备进行升级过程中接收到中断当前升级升级版本文件的停止命令;
升级子模块,设置为在接收到停止命令后,网络设备获取处于同一组网与网络设备相邻且已升级的网络设备的升级版本文件的相关信息进行升级。
本发明的又一实施例的网络版本升级的装置中,发送模块54包括:
校验子模块,设置为在网络设备升级完成之后,网络设备校验所更新的升级版本文件是否完整;
处理子模块,设置为在校验所更新的升级版本文件为不完整时,网络设备重新获取版本服务器的升级版本文件进行升级;或者
发送子模块,设置为在校验所更新的升级版本文件为完整时,网络设备向处于同一组网与网络设备相邻的网络设备发送第一版本更新请求。
需要说明的是,本发明提供的装置是应用上述网络版本升级的方法的装置,则上述网络版本升级的方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。
工业实用性
本发明实施例,涉及网络通信领域,解决了传统的升级方法耗费大量的人力,并且软件的升级可能会对运营中业务产生的影响,同时也影响了客户体验的问题,可以将升级完成的设备作为其他设备升级下载的升级版本的基础,不需要同时从一个版本服务器上下载或者需要多个版本服务器,也能快速的完成网络中众多设备的升级,对运营商非常有价值,也可以减轻版本服务器的负荷,同时快速完成网络版本的升级,还提高了用户体验效果。

Claims (12)

  1. 一种网络版本升级的方法,应用于网络设备,所述方法包括:
    所述网络设备接收版本升级命令;
    所述网络设备根据所述版本升级命令从版本服务器获取升级版本文件;
    在获取到所述升级版本文件后,所述网络设备根据所述升级版本文件进行版本升级;
    在所述网络设备升级完成之后,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送第一版本更新请求,由所述相邻的网络设备根据所述第一版本更新请求进行版本升级,其中所述第一版本更新请求中包括版本更新所需的升级版本文件的相关信息。
  2. 根据权利要求1所述的网络版本升级的方法,其中,所述网络设备根据所述版本升级命令从版本服务器获取升级版本文件时,所述方法还包括:
    所述网络设备接收到处于同一组网与所述网络设备相邻的网络设备的发送的第二版本更新请求,其中所述第二版本更新请求中包括版本更新所需的升级版本文件的相关信息;
    所述网络设备比较所述第一版本更新请求中的版本更新所需的升级版本文件的相关信息与所述第二版本更新请求中的版本更新所需的升级版本文件的相关信息,得到版本比较结果;
    所述网络设备根据所述版本比较结果进行版本升级。
  3. 根据权利要求1或2所述的网络版本升级的方法,其中,所述版本更新所需的升级版本文件的相关信息至少包括版本号、发布版本的时间、版本内容、版本大小及版本名称中的一种或多种。
  4. 根据权利要求3所述的网络版本升级的方法,其中,所述网络设备根据所述版本比较结果进行版本升级的步骤,包括:
    在所述版本比较结果为所述第一版本更新请求中的版本号小于所述第二版本更新请求中的版本号,所述网络设备终止当前升级进程,根据所述第二版本更新请求中的版本更新所需的升级版本文件的相关信息进行版本升级;或者
    在所述版本比较结果为所述第一版本更新请求中的版本号大于或者等于所述第二版本更新请求中的版本号,所述网络设备忽略所述第二版本更新请求,继续获取当前的升级版本文件进行升级。
  5. 根据权利要求1所述的网络版本升级的方法,其中,所述在获取到所述升级版本文件后,所述网络设备根据所述升级版本文件进行版本升级的步骤,包括:
    在获取到所述升级版本文件后,所述网络设备进行升级过程中接收到中断当前升级所述升级版本文件的停止命令;或者
    在接收到所述停止命令后,所述网络设备获取处于同一组网与所述网络设备相邻且已升级的网络设备的升级版本文件的相关信息进行升级。
  6. 根据权利要求1所述的网络版本升级的方法,其中,所述在所述网络设备升级完成之后,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送第一版本更新请求,由所述相邻的网络设备根据所述第一版本更新请求进行版本升级的步骤,包括:
    在所述网络设备升级完成之后,所述网络设备校验所更新的升级版本文件是否完整;
    在校验所更新的升级版本文件为不完整时,所述网络设备重新获取所述版本服务器的升级版本文件进行升级;
    在校验所更新的升级版本文件为完整时,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送所述第一版本更新请求。
  7. 一种网络版本升级的装置,应用于网络设备,所述装置包括:
    第一接收模块,设置为所述网络设备接收版本升级命令;
    获取模块,设置为所述网络设备根据所述版本升级命令从版本服务器获取升级版本文件;
    第一升级模块,设置为在获取到所述升级版本文件后,所述网络设备根据所述升级版本文件进行版本升级;
    发送模块,设置为在所述网络设备升级完成之后,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送第一版本更新请求,由所述相邻的网络设备根据所述第一版本更新请求进行版本升级,其中所述第一版本更新请求中包括版本更新所需的升级版本文件的相关信息。
  8. 根据权利要求7所述的网络版本升级的装置,其中,所述装置还包括:
    第二接收模块,设置为所述网络设备接收到处于同一组网与所述网络设备相邻的网络设备的发送的第二版本更新请求,其中所述第二版本更新请求中包括版本更新所需的升级版本文件的相关信息;
    比较模块,设置为所述网络设备比较所述第一版本更新请求中的版本更新所需的升级版本文件的相关信息与所述第二版本更新请求中的版本更新所需的升级版本文件的相关信息,得到版本比较结果;
    第二升级模块,设置为所述网络设备根据所述版本比较结果进行版本升级。
  9. 根据权利要求7或8所述的网络版本升级的装置,其中,所述版本更新所需的升级版本文件的相关信息至少包括版本号、发布版本的时间、版本内容、版本大小及版本名称中的一种或多种。
  10. 根据权利要求9所述的网络版本升级的装置,其中,所述第二升级模块包括:
    第一升级子模块,设置为在所述版本比较结果为所述第一版本更新请求中的版本号小于所述第二版本更新请求中的版本号,所述网络设备终止当前升级进程,根据所述第二版本更新请求中的版本更新所需的升级版本文件的相关信息进行版本升级;或者
    第二升级子模块,设置为在所述版本比较结果为所述第一版本更新请求中的版本号大于或者等于所述第二版本更新请求中的版本号,所述网络设备忽略所述第二版本更新请求,继续获取当前的升级版本文件进行升级。
  11. 根据权利要求7所述的网络版本升级的装置,其中,所述升级模块包括:
    接收子模块,设置为在获取到所述升级版本文件后,所述网络设备进行升级过程中接收到中断当前升级所述升级版本文件的停止命令;
    升级子模块,设置为在接收到所述停止命令后,所述网络设备获取处于同一组网与所述网络设备相邻且已升级的网络设备的升级版本文件的相关信息进行升级。
  12. 根据权利要求7所述的网络版本升级的装置,其中,所述发送模块包括:
    校验子模块,设置为在所述网络设备升级完成之后,所述网络设备校验所更新的升级版本文件是否完整;
    处理子模块,设置为在校验所更新的升级版本文件为不完整时,所述网络设备重新获取所述版本服务器的升级版本文件进行升级;或者
    发送子模块,设置为在校验所更新的升级版本文件为完整时,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送所述第一版本更新请求。
PCT/CN2015/078991 2014-12-11 2015-05-14 一种网络版本升级的方法及装置 WO2016090846A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410763930.2A CN105743948A (zh) 2014-12-11 2014-12-11 一种网络版本升级的方法及装置
CN201410763930.2 2014-12-11

Publications (1)

Publication Number Publication Date
WO2016090846A1 true WO2016090846A1 (zh) 2016-06-16

Family

ID=56106567

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078991 WO2016090846A1 (zh) 2014-12-11 2015-05-14 一种网络版本升级的方法及装置

Country Status (2)

Country Link
CN (1) CN105743948A (zh)
WO (1) WO2016090846A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489146A (zh) * 2019-08-13 2019-11-22 翱捷科技(深圳)有限公司 一种终端设备的邻近ota升级系统和方法
CN112398673A (zh) * 2019-08-16 2021-02-23 中兴通讯股份有限公司 一种升级方法、通信设备以及计算机可读存储介质
CN112929189A (zh) * 2019-12-05 2021-06-08 浙江宇视科技有限公司 网络终端设备的升级方法、装置、设备及存储介质
CN113419771A (zh) * 2021-05-31 2021-09-21 济南浪潮数据技术有限公司 一种应用软件的升级包制作方法、系统及升级方法、系统
WO2023185390A1 (zh) * 2022-03-28 2023-10-05 中兴通讯股份有限公司 基站版本下载的方法、网管服务器、基站、设备和介质

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107483224B (zh) * 2017-05-16 2021-01-19 上海博达数据通信有限公司 基于dr选举的无线路由版本升级方法
CN107301054B (zh) * 2017-07-14 2021-02-23 杭州敦崇科技股份有限公司 一种基于自组网的软件更新方法
CN109298963A (zh) * 2018-09-06 2019-02-01 锐捷网络股份有限公司 一种系统自恢复的方法及装置
CN111277435A (zh) * 2020-01-16 2020-06-12 南京大鱼半导体有限公司 升级网络设备的方法、装置、存储介质以及电子设备
CN111610991A (zh) * 2020-04-09 2020-09-01 西安万像电子科技有限公司 版本升级方法及装置
CN112737847B (zh) * 2020-12-28 2023-02-03 青岛海尔科技有限公司 节点升级方法及装置、存储介质及电子装置
CN114422486B (zh) * 2022-03-14 2024-01-16 潍柴动力股份有限公司 一种终端的软件版本升级方法、系统以及车辆
CN114928523B (zh) * 2022-04-19 2023-09-05 广州爱浦路网络技术有限公司 基于5g oam的网元升级方法及升级装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145948A (zh) * 2007-03-21 2008-03-19 中兴通讯股份有限公司 软件升级方法和装置、以及网元
CN101478446A (zh) * 2008-12-30 2009-07-08 华为技术有限公司 网络设备版本加载方法、装置和系统
CN103152206A (zh) * 2013-03-25 2013-06-12 安科智慧城市技术(中国)有限公司 一种多设备升级方法和系统
US20140123123A1 (en) * 2012-11-01 2014-05-01 Cooper Technologies Company Distribution of software updates in wireless multihop networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145948A (zh) * 2007-03-21 2008-03-19 中兴通讯股份有限公司 软件升级方法和装置、以及网元
CN101478446A (zh) * 2008-12-30 2009-07-08 华为技术有限公司 网络设备版本加载方法、装置和系统
US20140123123A1 (en) * 2012-11-01 2014-05-01 Cooper Technologies Company Distribution of software updates in wireless multihop networks
CN103152206A (zh) * 2013-03-25 2013-06-12 安科智慧城市技术(中国)有限公司 一种多设备升级方法和系统

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110489146A (zh) * 2019-08-13 2019-11-22 翱捷科技(深圳)有限公司 一种终端设备的邻近ota升级系统和方法
CN112398673A (zh) * 2019-08-16 2021-02-23 中兴通讯股份有限公司 一种升级方法、通信设备以及计算机可读存储介质
WO2021031889A1 (zh) * 2019-08-16 2021-02-25 中兴通讯股份有限公司 一种升级方法、通信设备以及计算机可读存储介质
CN112929189A (zh) * 2019-12-05 2021-06-08 浙江宇视科技有限公司 网络终端设备的升级方法、装置、设备及存储介质
CN113419771A (zh) * 2021-05-31 2021-09-21 济南浪潮数据技术有限公司 一种应用软件的升级包制作方法、系统及升级方法、系统
WO2023185390A1 (zh) * 2022-03-28 2023-10-05 中兴通讯股份有限公司 基站版本下载的方法、网管服务器、基站、设备和介质

Also Published As

Publication number Publication date
CN105743948A (zh) 2016-07-06

Similar Documents

Publication Publication Date Title
WO2016090846A1 (zh) 一种网络版本升级的方法及装置
CN106897086B (zh) 用于升级机器人操作系统的方法、装置及系统
US8874091B2 (en) Automatic device capabilities change notification
WO2016149908A1 (zh) 一种终端系统的升级方法、终端及系统
WO2011137793A1 (zh) 实现zigbee设备远程升级的方法、装置及网络系统
CN107357571B (zh) 设备组件程序的维护方法及系统
WO2011006328A1 (zh) 设备固件升级系统及方法、设备管理服务器及移动终端
CN101909282B (zh) 终端操作的触发方法、装置及系统
CN101184301A (zh) 移动终端远程固件升级方法及系统
CN106843933A (zh) 一种应用程序的漏洞修复方法、移动终端及补丁服务器
CN103281373A (zh) 家庭网关智能升级装置及升级方法
WO2012174799A1 (zh) 升级包下载及安装的方法、服务器及系统
CN105049502A (zh) 一种云端网络管理系统中设备软件更新的方法和装置
WO2022142153A1 (zh) 电表升级方法、系统、智能电表及存储介质
CN105260209A (zh) 一种程序热更新解决方法
CN101984406A (zh) 一种通过无线局域网对终端进行升级的方法和系统
CN104133715A (zh) 一种以太网供电设备固件升级方法和装置
WO2015139359A1 (zh) 无线网络维护方法、装置和系统
CN103685530A (zh) Wlan现网ap自动升级控制方法及系统
WO2021136233A1 (zh) 业务升级的方法、装置和系统
WO2011153771A1 (zh) 一种m2m终端远程升级的系统和方法
CN107395385A (zh) 软件升级方法及装置
WO2011076058A1 (zh) 分布式数据库升级的方法、升级处理装置及升级控制装置
CN114090033A (zh) Ota升级方法、装置、电子设备及可读介质
CN105487877A (zh) 一种版本更新方法、系统及基站

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

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

Country of ref document: EP

Kind code of ref document: A1