CN105743948A - Network version upgrading method and apparatus - Google Patents
Network version upgrading method and apparatus Download PDFInfo
- Publication number
- CN105743948A CN105743948A CN201410763930.2A CN201410763930A CN105743948A CN 105743948 A CN105743948 A CN 105743948A CN 201410763930 A CN201410763930 A CN 201410763930A CN 105743948 A CN105743948 A CN 105743948A
- Authority
- CN
- China
- Prior art keywords
- version
- network equipment
- upgrading
- upgrade
- edition
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000008569 process Effects 0.000 claims description 22
- 230000006855 networking Effects 0.000 claims description 14
- 238000012795 verification Methods 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 4
- 230000005540 biological transmission Effects 0.000 claims 7
- 208000011580 syndromic disease Diseases 0.000 claims 1
- 238000004891 communication Methods 0.000 abstract description 5
- 125000004122 cyclic group Chemical group 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明提供一种网络版本升级的方法及装置,涉及网络通信领域,解决传统的升级方法耗费大量的人力,并且软件的升级可能会对运营中业务产生的影响,同时也影响了客户体验的问题。其中所述方法应用于网络设备,所述方法包括:网络设备接收版本升级命令;网络设备根据版本升级命令从版本服务器获取升级版本文件;在获取到升级版本文件后,网络设备根据升级版本文件进行版本升级;在网络设备升级完成之后,网络设备向处于同一组网与网络设备相邻的网络设备发送第一版本更新请求,由相邻的网络设备根据第一版本更新请求进行版本升级,其中第一版本更新请求中包括版本更新所需的升级版本文件的相关信息。
The present invention provides a method and device for network version upgrade, which relates to the field of network communication, and solves the problem that the traditional upgrade method consumes a lot of manpower, and the software upgrade may affect the business in operation, and also affects the customer experience. . Wherein the method is applied to a network device, and the method includes: the network device receives a version upgrade command; the network device obtains the upgrade version file from the version server according to the version upgrade command; after obtaining the upgrade version file, the network device performs the upgrade according to the upgrade version file Version upgrade; after the upgrade of the network device is completed, the network device sends the first version update request to the network device adjacent to the network device in the same network, and the adjacent network device performs version upgrade according to the first version update request, where the first A version update request includes relevant information about the upgraded version file required for the version update.
Description
技术领域technical field
本发明涉及网络通信领域,特别是涉及一种网络版本升级的方法及装置。The invention relates to the field of network communication, in particular to a method and device for upgrading a network version.
背景技术Background technique
随着移动互联的快速发展,网络带宽需求爆炸式增长,同时通信网络设备多种技术快速的融合,相继出现了多种新的设备形态,并融合已有通信设备的多种功能,例如表现为设备容量大、接口丰富等兼容多种业务形态,另外一方面随着业务需求多样性也带来了设备组网的多样化,使得组网更复杂和多变。With the rapid development of mobile Internet, the demand for network bandwidth is increasing explosively. At the same time, various technologies of communication network equipment are rapidly integrated, and a variety of new equipment forms have emerged one after another, and various functions of existing communication equipment have been integrated. For example, the Large equipment capacity, rich interfaces, etc. are compatible with various business forms. On the other hand, the diversity of business requirements also brings diversification of equipment networking, making the networking more complex and changeable.
还有网络的快速发展带来了通信设备软件庞大,复杂度急剧上升,使得软件存在的问题更多,同时通信软件版本的升级变得频繁。In addition, the rapid development of the network has brought huge communication equipment software and a sharp increase in complexity, resulting in more software problems, and frequent upgrades of communication software versions.
由于运营商的网络存在网络复杂及节点众多的实际情况,针对传统的升级方法中的网络中的设备,都是通过接入网元从版本服务器获取版本,多个设备同时升级的时候,接入网元面临着非常大的带宽压力,而由于组网的差异造成的多个设备通过同一个中间设备进行版本下载,会受下载带宽限制,从而影响版本升级速度,也造成升级较慢;而逐个节点升级效率低,会造成运行维护的繁琐。Due to the fact that the network of the operator has a complex network and many nodes, the devices in the network in the traditional upgrade method obtain the version from the version server by accessing network elements. When multiple devices are upgraded at the same time, access Network elements are facing a very large bandwidth pressure, and due to differences in networking, multiple devices download versions through the same intermediate device, which will be limited by the download bandwidth, which will affect the version upgrade speed and cause slow upgrades; and one by one The node upgrade efficiency is low, which will cause cumbersome 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.
发明内容Contents of the invention
本发明的目的在于提供一种网络版本升级的方法及装置,快速的完成网络中众多设备的升级,对运营商非常有价值,也可以减轻版本服务器的负荷,同时快速完成网络版本的升级,还提高了用户体验效果。The purpose of the present invention is to provide a method and device for network version upgrade, which can quickly complete the upgrade of many devices in the network, which is very valuable to the operator, and can also reduce the load on the version server, and at the same time quickly complete the upgrade of the network version. Improved user experience.
为了实现上述目的,本发明实施例提供的一种网络版本升级的方法,应用于网络设备,所述方法包括:In order to achieve the above purpose, a method for upgrading a network version provided by an embodiment of the present invention is applied to a network device, and the method includes:
所述网络设备接收版本升级命令;The network device receives a version upgrade command;
所述网络设备根据所述版本升级命令从版本服务器获取升级版本文件;The network device obtains an upgraded version file from a version server according to the version upgrade command;
在获取到所述升级版本文件后,所述网络设备根据所述升级版本文件进行版本升级;After obtaining the upgrade version file, the network device performs version upgrade according to the upgrade version file;
在所述网络设备升级完成之后,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送第一版本更新请求,由所述相邻的网络设备根据所述第一版本更新请求进行版本升级,其中所述第一版本更新请求中包括版本更新所需的升级版本文件的相关信息。After the upgrade of the network device is completed, the network device sends a first version update request to a network device adjacent to the network device in the same network group, and the adjacent network device updates according to the first version A version upgrade request is requested, wherein the first version update request includes information about the upgraded version file required for the version update.
其中,所述网络设备根据所述版本升级命令从版本服务器获取升级版本文件时,所述方法还包括:Wherein, when the network device obtains the upgraded version file from the version server according to the version upgrade command, the method further includes:
所述网络设备接收到处于同一组网与所述网络设备相邻的网络设备的发送的第二版本更新请求,其中所述第二版本更新请求中包括版本更新所需的升级版本文件的相关信息;The network device receives a second version update request sent by a network device adjacent to the network device in the same network, wherein the second version update request includes information about an upgraded version file required for version update ;
所述网络设备比较所述第一版本更新请求中的版本更新所需的升级版本文件的相关信息与所述第二版本更新请求中的版本更新所需的升级版本文件的相关信息,得到版本比较结果;The network device compares the relevant information of the upgraded version file required for the version update in the first version update request with the relevant information of the upgraded version file required for the version update in the second version update request to obtain a version comparison result;
所述网络设备根据所述版本比较结果进行版本升级。The network device performs version upgrade according to the version comparison result.
进一步的,所述版本更新所需的升级版本文件的相关信息至少包括版本号、发布版本的时间、版本内容、版本大小及版本名称中的一种或多种。Further, the relevant information of the upgraded version file required for the version update includes at least one or more of version number, release time, version content, version size and version name.
进一步的,所述网络设备根据所述版本比较结果进行版本升级的步骤,具体包括:Further, the step of upgrading the version of the network device according to the version comparison result specifically includes:
在所述版本比较结果为所述第一版本更新请求中的版本号小于所述第二版本更新请求中的版本号,所述网络设备终止当前升级进程,根据所述第二版本更新请求中的版本更新所需的升级版本文件的相关信息进行版本升级;或者If 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, and according to the version number in the second version update request The relevant information of the upgraded version file required for the version update to upgrade the version; or
在所述版本比较结果为所述第一版本更新请求中的版本号大于或者等于所述第二版本更新请求中的版本号,所述网络设备忽略所述第二版本更新请求,继续获取当前的升级版本文件进行升级。If the version comparison result is that the version number in the first version update request is greater than or equal to the version number in the second version update request, the network device ignores the second version update request and continues to obtain the current Upgrade version file to upgrade.
进一步的,所述在获取到所述升级版本文件后,所述网络设备根据所述升级版本文件进行版本升级的步骤,具体包括:Further, after the upgrade version file is obtained, the step of the network device performing version upgrade according to the upgrade version file specifically includes:
在获取到所述升级版本文件后,所述网络设备进行升级过程中接收到中断当前升级所述升级版本文件的停止命令;或者After obtaining the upgrade version file, the network device receives a stop command to interrupt the current upgrade of the upgrade version file during the upgrade process; or
在接收到所述停止命令后,所述网络设备获取处于同一组网与所述网络设备相邻且已升级的网络设备的升级版本文件的相关信息进行升级。After receiving the stop command, the network device acquires relevant information of an upgraded version file of an upgraded network device adjacent to the network device in the same network group to perform the upgrade.
进一步的,所述在所述网络设备升级完成之后,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送第一版本更新请求,由所述相邻的网络设备根据所述第一版本更新请求进行版本升级的步骤,具体包括:Further, after the upgrade of the network device is completed, the network device sends a first version update request to a network device adjacent to the network device in the same network, and the adjacent network device Steps for upgrading the version of the first version update request, including:
在所述网络设备升级完成之后,所述网络设备校验所更新的升级版本文件是否完整;After the upgrade of the network device is completed, the network device checks whether the updated upgrade version file is complete;
在校验所更新的升级版本文件为不完整时,所述网络设备重新获取所述版本服务器的升级版本文件进行升级;When verifying that the updated upgrade version file is incomplete, the network device reacquires the upgrade version file of the version server for upgrade;
在校验所更新的升级版本文件为完整时,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送所述第一版本更新请求。When verifying that the updated upgrade version file is complete, the network device sends the first version update request to a network device adjacent to the network device in the same network group.
为了实现上述目的,本发明还提供一种网络版本升级的装置,应用于网络设备,所述装置包括:In order to achieve the above object, the present invention also provides a device for network version upgrade, which is applied to network equipment, and the device includes:
第一接收模块,用于所述网络设备接收版本升级命令;A first receiving module, configured for the network device to receive a version upgrade command;
获取模块,用于所述网络设备根据所述版本升级命令从版本服务器获取升级版本文件;An acquisition module, configured for the network device to acquire an upgraded version file from a version server according to the version upgrade command;
第一升级模块,用于在获取到所述升级版本文件后,所述网络设备根据所述升级版本文件进行版本升级;A first upgrade module, configured to perform version upgrade of the network device according to the upgrade version file after acquiring the upgrade version file;
发送模块,用于在所述网络设备升级完成之后,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送第一版本更新请求,由所述相邻的网络设备根据所述第一版本更新请求进行版本升级,其中所述第一版本更新请求中包括版本更新所需的升级版本文件的相关信息。A sending module, configured to send a first version update request to a network device adjacent to the network device in the same network after the network device upgrade is completed, and the adjacent network device sends a request for updating the first version according to the The first version update request is used to perform version upgrade, wherein the first version update request includes information about the upgraded version file required for version update.
其中,所述装置还包括:Wherein, the device also includes:
第二接收模块,用于所述网络设备接收到处于同一组网与所述网络设备相邻的网络设备的发送的第二版本更新请求,其中所述第二版本更新请求中包括版本更新所需的升级版本文件的相关信息;The second receiving module is used for the network device to receive the second version update request sent by the network device adjacent to the network device in the same network group, wherein the second version update request includes the version update required Information about the upgraded version of the file;
比较模块,用于所述网络设备比较所述第一版本更新请求中的版本更新所需的升级版本文件的相关信息与所述第二版本更新请求中的版本更新所需的升级版本文件的相关信息,得到版本比较结果;A comparison module, configured for the network device to compare the relevant information of the upgraded version file required for the version update in the first version update request with the related information of the upgraded version file required for the version update in the second version update request Information to get the version comparison result;
第二升级模块,用于所述网络设备根据所述版本比较结果进行版本升级。The second upgrade module is used for the network device to upgrade the version according to the version comparison result.
进一步的,所述版本更新所需的升级版本文件的相关信息至少包括版本号、发布版本的时间、版本内容、版本大小及版本名称中的一种或多种。Further, the relevant information of the upgraded version file required for the version update includes at least one or more of version number, release time, version content, version size and version name.
进一步的,所述第二升级模块包括:Further, the second upgrade module includes:
第一升级子模块,用于在所述版本比较结果为所述第一版本更新请求中的版本号小于所述第二版本更新请求中的版本号,所述网络设备终止当前升级进程,根据所述第二版本更新请求中的版本更新所需的升级版本文件的相关信息进行版本升级;或者The first upgrade submodule is configured to terminate the current upgrade process of the network device 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, and according to the The relevant information of the upgraded version file required for the version update in the above-mentioned second version update request is used to upgrade the version; or
第二升级子模块,用于在所述版本比较结果为所述第一版本更新请求中的版本号大于或者等于所述第二版本更新请求中的版本号,所述网络设备忽略所述第二版本更新请求,继续获取当前的升级版本文件进行升级。The second upgrade submodule is configured to, when the version comparison result is that the version number in the first version update request is greater than or equal to the version number in the second version update request, the network device ignores the second version update request Version update request, continue to obtain the current upgrade version file for upgrade.
进一步的,所述升级模块包括:Further, the upgrade module includes:
接收子模块,用于在获取到所述升级版本文件后,所述网络设备进行升级过程中接收到中断当前升级所述升级版本文件的停止命令;The receiving submodule is configured to receive a stop command for interrupting the current upgrade of the upgrade version file during the upgrade process of the network device after the upgrade version file is obtained;
升级子模块,用于在接收到所述停止命令后,所述网络设备获取处于同一组网与所述网络设备相邻且已升级的网络设备的升级版本文件的相关信息进行升级。The upgrade submodule is configured to obtain, after receiving the stop command, the network device to obtain relevant information about an upgraded version file of an upgraded network device that is adjacent to the network device in the same network and upgrades it.
进一步的,所述发送模块包括:Further, the sending module includes:
校验子模块,用于在所述网络设备升级完成之后,所述网络设备校验所更新的升级版本文件是否完整;A verification sub-module, configured to verify whether the updated upgraded version file of the network device is complete after the upgrade of the network device is completed;
处理子模块,用于在校验所更新的升级版本文件为不完整时,所述网络设备重新获取所述版本服务器的升级版本文件进行升级;或者The processing submodule is used to reacquire the upgraded version file of the version server by the network device for upgrading when the updated upgraded version file is verified to be incomplete; or
发送子模块,用于在校验所更新的升级版本文件为完整时,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送所述第一版本更新请求。The sending sub-module is configured to send the first version update request to a network device adjacent to the network device in the same network when verifying that the updated upgrade version file is complete.
本发明的上述技术方案的有益效果如下:The beneficial effects of above-mentioned technical scheme of the present invention are as follows:
本发明方案中,通过向网络设备发起升级命令,然后接收到升级命令的网络设备通过从版本服务器下载版本文件进行版本升级,在升级后完成后,向其他邻居网络设备主动发送升级请求,相继完成相邻网络设备的版本升级。这样可以将升级完成的设备作为其他设备升级下载的升级版本的基础,不需要同时从一个版本服务器上下载或者需要多个版本服务器,也能快速的完成网络中众多设备的升级,对运营商非常有价值,也可以减轻版本服务器的负荷,同时快速完成网络版本的升级,还提高了用户体验效果。In the solution of the present invention, by initiating an upgrade command to the network device, the network device that receives the upgrade command downloads the version file from the version server to upgrade the version, and after the upgrade is completed, it actively sends upgrade requests to other neighboring network devices, and the upgrade is completed successively. Version upgrades of adjacent network devices. In this way, the upgraded device can be used as the basis for upgrading and downloading the upgraded version of other devices. It does not need to download from one version server at the same time or need multiple version servers, and can quickly complete the upgrade of many devices in the network, which is very useful for operators. It is valuable, and can also reduce the load on the version server, and at the same time quickly complete the upgrade of the network version, and also improve the user experience effect.
附图说明Description of drawings
图1为本发明实施例的网络版本升级的方法的步骤示意图;Fig. 1 is a schematic diagram of steps of a method for network version upgrade according to an embodiment of the present invention;
图2为本发明实施例的典型组网下网络版本升级的流程图;Fig. 2 is the flow chart of network version upgrade under the typical networking of the embodiment of the present invention;
图3为本发明实施例的邻居网元中断情况下网络版本升级的流程图;FIG. 3 is a flow chart of network version upgrade when neighbor network elements are interrupted according to an embodiment of the present invention;
图4为本发明实施例的发现新邻居的处理流程图;Fig. 4 is the process flowchart of discovering new neighbors in the embodiment of the present invention;
图5为本发明实施例的网络版本升级的装置的结构示意图。FIG. 5 is a schematic structural diagram of an apparatus for upgrading a network version according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.
本发明针对现有技术中传统的升级方法耗费大量的人力,且软件的升级可能会对运营中业务产生影响,同时也影响了客户体验以及网络设备升级慢及设备升级效率低的问题。The present invention aims at the problems that the traditional upgrade method in the prior art consumes a lot of manpower, and the software upgrade may affect the business in operation, and also affects the customer experience, slow upgrade of network equipment and low efficiency of equipment upgrade.
本发明提供一种网络版本升级的方法及装置,在网元收到升级命令,从版本服务器获得升级版本文件进行版本升级,再版本更新完成后,向邻居网元更新的版本文件,邻居网元也完成版本文件的更新后,继续向其他邻居网元更新最新的版本文件,这样可以减轻版本服务器的负荷,也可以快速完成网络版本的升级,同时提高了用户体验效果。The present invention provides a method and device for network version upgrade. After a network element receives an upgrade command, it obtains an upgrade version file from a version server for version upgrade. After the version update is completed, the updated version file is sent to neighbor network elements, and After the update of the version file is completed, continue to update the latest version file to other neighbor network elements, which can reduce the load on the version server, and can also quickly complete the upgrade of the network version, and at the same time improve the user experience effect.
如图1所示,本发明实施例的网络版本升级的方法,应用于网络设备,所述方法包括:As shown in Figure 1, the method for upgrading the network version of the embodiment of the present invention is applied to a network device, and the method includes:
步骤11,所述网络设备接收版本升级命令;Step 11, the network device receives a version upgrade command;
如果处于无线网络中,网络设备则是核心网接入设备;如果是承载设备,网络设备则是基站或者汇聚层接入设备等设备,任何一种网络设备,均属于本发明的保护实体。If it is in a wireless network, the network device is a core network access device; if it is a bearer device, the network device is a base station or a convergence layer access device. Any kind of network device belongs to the protection entity of the present invention.
升级命令是直接用户发起的,也可以是用户通过网管系统进行发起的。The upgrade command is directly initiated by the user, or initiated by the user through the network management system.
步骤12,所述网络设备根据所述版本升级命令从版本服务器获取升级版本文件;Step 12, the network device obtains an upgraded version file from a version server according to the version upgrade command;
如果所述网络设备为直接连接于所述版本服务器的网络设备,则所述网络设备可以直接从版本服务器获取到升级版本文件下载得到升级版本文件。If the network device is a network device directly connected to the version server, the network device may directly obtain the upgrade version file from the version server and download the upgrade version file.
如果所述网络设备为间接连接于所述版本服务器的网络设备,则所述网络设备间接从版本服务器获取到升级版本文件,也就是通过直接与版本服务器的网络设备转发得到升级版本文件。If the network device is indirectly connected to the version server, the network device indirectly obtains the upgraded version file from the version server, that is, the upgraded version file is obtained by directly forwarding with the network device of the version server.
其中所述版本服务器可以是PC(personcomputer,个人电脑)服务器。The version server may be a PC (person computer, personal computer) server.
步骤13,在获取到所述升级版本文件后,所述网络设备根据所述升级版本文件进行版本升级;Step 13, after obtaining the upgrade version file, the network device performs version upgrade according to the upgrade version file;
步骤14,在所述网络设备升级完成之后,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送第一版本更新请求,由所述相邻的网络设备根据所述第一版本更新请求进行版本升级,其中所述第一版本更新请求中包括版本更新所需的升级版本文件的相关信息。Step 14, after the upgrade of the network device is completed, the network device sends a first version update request to a network device adjacent to the network device in the same network, and the adjacent network device sends a first version update request according to the first version update request. A version update request for version upgrade, wherein the first version update request includes information about the upgraded version file required for version update.
其中所述版本更新所需的升级版本文件的相关信息至少包括版本号、发布版本的时间、版本内容、版本大小及版本名称中的一种或多种,任何一种能够进行说明待升级版本的具体内容的相关信息,均属于本发明的保护范围。本方案只是为了明确说明待升级的版本,在此列举了升级版本文件上述的相关信息。The relevant information of the upgraded version file required for the version update includes at least one or more of the version number, release time, version content, version size and version name, any one that can explain the version to be upgraded The relevant information of the specific content belongs to the protection scope of the present invention. This solution is only to clearly explain the version to be upgraded, and the above-mentioned relevant information of the upgraded version file is listed here.
在步骤11至步骤14中,通过向网络设备发起升级命令(步骤11),然后接收到升级命令的网络设备通过从版本服务器下载版本文件(步骤12)进行版本升级(步骤13),在升级后完成后,向其他邻居网络设备主动发送升级请求,相继完成相邻网络设备的版本升级(步骤14)。这样可以将升级完成的设备作为其他设备升级下载的升级版本的基础,不需要同时从一个版本服务器上下载或者需要多个版本服务器,也能快速的完成网络中众多设备的升级对运营商非常有价值,同时也不会影响运营中的业务。In step 11 to step 14, by initiating an upgrade command (step 11) to the network equipment, then the network equipment that receives the upgrade command carries out the version upgrade (step 13) by downloading the version file (step 12) from the version server, after the upgrade After completion, an upgrade request is actively sent to other neighboring network devices, and version upgrades of neighboring network devices are completed successively (step 14). In this way, the upgraded device can be used as the basis for upgrading and downloading the upgraded version of other devices. It does not need to be downloaded from one version server at the same time or requires multiple version servers. It can also quickly complete the upgrade of many devices in the network, which is very useful for operators. value without compromising the running business.
如果依据本方案,可以让用户对于多个设备同时发送升级命令,然后就会从多个设备开始升级,这样进一步的快速完成升级,但是如果从多个设备升级然后向相邻的设备更新请求时,同一设备可能接收到两个相邻设备发起的更新请求,需要进行相关处理,因此本发明实施例的网络版本升级的方法中,在执行步骤12时,所述网络版本升级的方法还包括:According to this scheme, the user can send upgrade commands to multiple devices at the same time, and then the upgrade will start from multiple devices, so that the upgrade can be completed quickly, but if you upgrade from multiple devices and then update requests to adjacent devices , the same device may receive update requests initiated by two adjacent devices, and needs to perform related processing. Therefore, in the method for upgrading the network version in the embodiment of the present invention, when step 12 is performed, the method for upgrading the network version further includes:
步骤15,所述网络设备接收到处于同一组网与所述网络设备相邻的网络设备的发送的第二版本更新请求,其中所述第二版本更新请求中包括版本更新所需的升级版本文件的相关信息;Step 15, the network device receives a second version update request sent by a network device adjacent to the network device in the same network, wherein the second version update request includes an upgraded version file required for version update relevant information;
步骤16,所述网络设备比较所述第一版本更新请求中的版本更新所需的升级版本文件的相关信息与所述第二版本更新请求中的版本更新所需的升级版本文件的相关信息,得到版本比较结果;Step 16, the network device compares the relevant information of the upgraded version file required for the version update in the first version update request with the relevant information of the upgraded version file required for the version update in the second version update request, Get the version comparison result;
步骤17,所述网络设备根据所述版本比较结果进行版本升级。Step 17, the network device upgrades the version according to the version comparison result.
通过步骤15至步骤17可以实现从多个设备开始的升级时,同一设备可能接收到两个相邻设备发起的更新请求比较后,进行版本升级。When upgrading from multiple devices can be implemented through steps 15 to 17, the same device may perform version upgrade after receiving and comparing update requests initiated by two neighboring devices.
具体的本发明实施例的网络版本升级的方法,步骤17具体包括:The method for upgrading the network version of the specific embodiment of the present invention, step 17 specifically includes:
步骤171,在所述版本比较结果为所述第一版本更新请求中的版本号小于所述第二版本更新请求中的版本号,所述网络设备终止当前升级进程,根据所述第二版本更新请求中的版本更新所需的升级版本文件的相关信息进行版本升级;或者Step 171, when the result of the version comparison 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, and updates according to the second version Information about the upgraded version file required for the version update in the request for version upgrade; or
根据所述第二版本更新请求中的版本更新所需的升级版本文件进行版本升级时,记录当前相邻的网络设备的ID,在更新完成后,不用再重新向该设备发送更新请求消息,避免了重复升级,同时不重复发送更新请求消息也减轻了网络的负荷。When performing version upgrade according to the required upgrade version file in the version update request in the second version update request, the ID of the current adjacent network device is recorded, and after the update is completed, it is not necessary to resend the update request message to the device, avoiding Repeated upgrades are avoided, and the load on the network is also reduced by not sending update request messages repeatedly.
步骤172,在所述版本比较结果为所述第一版本更新请求中的版本号大于或者等于所述第二版本更新请求中的版本号,所述网络设备忽略所述第二版本更新请求,继续获取当前的升级版本文件进行升级。Step 172, when the version comparison result is that the version number in the first version update request is greater than or equal to the version number in the second version update request, the network device ignores the second version update request, and continues Get the current upgrade version file to upgrade.
在版本更新过程中,又收到其他邻居的版本更新请求,进行版本比较,如果新发送的版本更新请求版本更新,则终止当前版本更新,更新最新的版本;如果新发送的版本更新请求版本和当前正在更新版本一致,则记录邻居的ID,在当前网元版本更新完成后,不向已经收到过更新请求的网元发送更新请求;如果新发送的版本更新请求版本比当前正在更新的版本旧,则忽略此版本更新请求,不做处理。During the version update process, it receives version update requests from other neighbors for version comparison. If the newly sent version update request version update, terminate the current version update and update the latest version; if the newly sent version update request version and If the version currently being updated is consistent, record the ID of the neighbor. After the update of the current network element version is completed, no update request will be sent to the network element that has received the update request; if the newly sent version update request version is higher than the version currently being updated If it is old, ignore this version update request and do not process it.
本发明通过邻居间自动版本文件比较和自动更新,解决上述问题,尤其是在当前网络分层组网,网络组网类似树状结构中进行应用,然后通过本发明能快速完成网络版本的更新。本方案只是以似树状结构举例,但并不是仅仅应用于这一种结构,任何能够实现邻居发现,使用本方案进行的版本升级,均属于本发明的保护范围。The present invention solves the above-mentioned problems through automatic version file comparison and automatic update among neighbors, and is especially applied in the current network layered network, which is similar to a tree structure, and then the network version update can be quickly completed through the present invention. This solution is just an example of a tree-like structure, but it is not only applied to this structure. Any version upgrade that can realize neighbor discovery and use this solution belongs to the protection scope of the present invention.
如图2所示,本发明的具体在典型的组网下的举例如下。As shown in FIG. 2 , specific examples of the present invention in a typical networking are as follows.
举例一:一般升级是将版本升级为最新版本,且直接于所述PC服务器连接的网络设备也可以称为接入网元即接入网元A,间接连接于所述PC服务器连接的网络设备也可以称为邻居网元。通过PC服务器,在接入网元A进行版本更新:Example 1: A general upgrade is to upgrade the version to the latest version, and the network device directly connected to the PC server can also be called an access network element, that is, access network element A, which is indirectly connected to the network device connected to the PC server It can also be called a neighbor network element. Use the PC server to update the version on access NE A:
1.接入网元A通过PC服务器的升级版本文件进行版本升级(标号1);1. The access network element A performs a version upgrade through the upgrade version file of the PC server (label 1);
2.接入网元A点完成版本升级后,通知邻居网元B、邻居网元C、邻居网元D进行版本升级,邻居网元B、邻居网元C、邻居网元D在收到版本更新请求后,比较本点版本号和待升级版本号,发现待升级版本号更新,邻居网元B、邻居网元C、邻居网元D向接入网元A请求最新版本(标号2);2. After the access NE A completes the version upgrade, it notifies the neighbor NE B, neighbor NE C, and neighbor NE D of the version upgrade, and the neighbor NE B, neighbor NE C, and neighbor NE D receive the version After the update request, compare the version number of this point with the version number to be upgraded, and find that the version number to be upgraded is updated, and neighbor network element B, neighbor network element C, and neighbor network element D request the latest version from access network element A (label 2);
3.邻居网元C完成版本升级后,没有其他邻居网元,版本升级完成(标号2);3. After the neighbor network element C completes the version upgrade, there are no other neighbor network elements, and the version upgrade is completed (label 2);
4.邻居网元B、邻居网元D完成版本升级后,继续向其他邻居网元发送版本升级请求,其中邻居网元B向邻居网元E发送版本更新请求,邻居网元D向邻居网元E、邻居网元F发送版本更新请求(标号3);4. Neighbor NE B and neighbor NE D continue to send version upgrade requests to other neighbor NEs after the version upgrade is completed. Neighbor NE B sends a version update request to neighbor NE E, and neighbor NE D sends a version update request to neighbor NE E. The neighbor network element F sends a version update request (label 3);
5.邻居网元F比较版本后,从邻居网元D版本升级;5. After comparing the versions of neighbor NE F, upgrade from the version of neighbor NE D;
6.邻居网元E先后收到了邻居网元B、邻居网元D的版本更新请求,邻居网元E从最先收到请求的网元版本升级,假设是邻居网元B,则保存邻居网元D的版本更新请求,在从邻居网元B完成版本升级后,不再向邻居网元D发送版本更新请求;6. Neighbor NE E has successively received version update requests from neighbor NE B and neighbor NE D. Neighbor NE E is upgraded from the version of the network element that first received the request. Assuming it is neighbor NE B, save the neighbor network For the version update request of element D, after the version upgrade from neighbor network element B is completed, no version update request is sent to neighbor network element D;
7.邻居网元F完成版本升级后,继续向其他邻居网元H版本升级;邻居网元E完成版本升级后,继续向其他邻居网元K版本升级(标号4);7. After the neighbor network element F completes the version upgrade, it continues to upgrade to the other neighbor network element H version; after the neighbor network element E completes the version upgrade, it continues to upgrade to the other neighbor network element K version (label 4);
8.邻居网元H从邻居网元F版本升级,版本升级完成后,继续向邻居网元I发送版本更新请求;邻居网元K从邻居网元E版本升级,版本升级完成后,继续向邻居网元J发送版本更新请求(标号5);8. Neighbor NE H upgrades from neighbor NE F. After the version upgrade is completed, it continues to send a version update request to neighbor NE I; neighbor NE K upgrades from neighbor NE E. After the version upgrade is completed, it continues to send a version update request to neighbor NE I. Network element J sends a version update request (label 5);
9.邻居网元I从邻居网元H版本升级,邻居网元J从邻居网元K版本升级,更新完成后,邻居网元I、邻居网元J向彼此发送版本更新请求(标号6);9. The neighbor network element I is upgraded from the neighbor network element H version, and the neighbor network element J is upgraded from the neighbor network element K version. After the update is completed, the neighbor network element I and the neighbor network element J send version update requests to each other (label 6);
10.邻居网元I、邻居网元J检查待更升级版本号和本地版本号一致,忽略版本更新请求。10. Neighbor network element I and neighbor network element J check that the version number to be updated is consistent with the local version number, and ignore the version update request.
举例二:比如从接入网元A和邻居网元E开始升级,则接入网元A通过PC服务器的升级版本文件直接进行版本升级,同时邻居网元E接收到转发的升级版本文件进行升级:Example 2: For example, starting 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 forwarded upgrade version file for upgrade :
1.接入网元A点完成版本升级后,通知邻居网元B、邻居网元C、邻居网元D进行版本升级,与此同时邻居网元E完成升级后,通知邻居网元B、邻居网元K、邻居网元D进行版本升级,由于邻居网元C和邻居网元K没有收到邻居网元E的版本请求,只需要比较本点版本号和待升级版本号,发现待升级版本号更新,但邻居网元B和邻居网元D在收到版本更新请求后,比较本点版本号和待升级的两个版本号,发现待升级版本号最新版本,邻居网元B和邻居网元D向最新版本的网元请求最新版本(标号2),邻居网元C向接入网元A请求更新版本,邻居网元K向接入网元E请求更新版本;1. After the access network element A completes the version upgrade, it notifies the neighbor network element B, neighbor network element C, and neighbor network element D to perform the version upgrade. NE K and neighbor NE D perform version upgrades. Since neighbor NE C and neighbor NE K have not received the version request from neighbor NE E, they only need to compare the local version number with the version number to be upgraded, and find the version to be upgraded. However, after receiving the version update request, neighbor NE B and neighbor NE D compare the local version number with the two versions to be upgraded, and find that the version number to be upgraded is the latest version. Neighbor NE B and neighbor network Element D requests the latest version (label 2) from the network element of the latest version, neighbor network element C requests an updated version from the access network element A, and neighbor network element K requests an update version from the access network element E;
2.邻居网元C完成版本升级后,没有其他邻居网元,版本升级完成(标号2);2. After the neighbor network element C completes the version upgrade, there are no other neighbor network elements, and the version upgrade is completed (label 2);
3.邻居网元B已经记录了之前邻居网元E的ID,因此不会再向邻居网元E发更新请求,版本升级完成;3. Neighbor NE B has already recorded the ID of neighbor NE E, so it will not send an update request to neighbor NE E again, and the version upgrade is complete;
4.邻居网元D已经记录了之前邻居网元E的ID完成版本升级后,也不再向邻居网元E发更新请求,继续向其他邻居网元发送版本升级请求,其中邻居网元D向邻居网元F发送版本更新请求;4. After the neighbor network element D has recorded the ID of the previous neighbor network element E and completes the version upgrade, it will no longer send update requests to the neighbor network element E, and continue to send version upgrade requests to other neighbor network elements. Neighbor network element F sends a version update request;
5.邻居网元K完成版本升级后,向邻居网元J发送版本更新请求;5. After the neighbor network element K completes the version upgrade, it sends a version update request to the neighbor network element J;
6.邻居网元F比较版本后,从邻居网元D版本升级,向邻居网元H发送版本更新请求;6. After the neighbor network element F compares the versions, it upgrades from the version of the neighbor network element D, and sends a version update request to the neighbor network element H;
7.邻居网元J比较版本后,从邻居网元K版本升级,向邻居网元I发送版本更新请求;7. After the neighbor network element J compares the version, it upgrades from the neighbor network element K version, and sends a version update request to the neighbor network element I;
8.邻居网元H比较版本后,从邻居网元F版本升级,向邻居网元I发送版本更新请求;8. After the neighbor network element H compares the versions, it upgrades from the neighbor network element F version, and sends a version update request to the neighbor network element I;
9.邻居网元I从邻居网元H版本升级,邻居网元J从邻居网元K版本升级,更新完成后,邻居网元I、邻居网元J向彼此发送版本更新请求;9. Neighbor NE I is upgraded from neighbor NE H version, and neighbor NE J is upgraded from neighbor NE K version. After the update is completed, neighbor NE I and neighbor NE J send version update requests to each other;
10.邻居网元I、邻居网元J检查待更升级版本号和本地版本号一致,忽略版本更新请求。10. Neighbor network element I and neighbor network element J check that the version number to be updated is consistent with the local version number, and ignore the version update request.
如果在升级过程中出现的中断,本发明实施例的网络版本升级的方法中,步骤13具体包括:If there is an interruption during the upgrade process, in the method for network version upgrade in the embodiment of the present invention, step 13 specifically includes:
步骤131,在获取到所述升级版本文件后,所述网络设备进行升级过程中接收到中断当前升级所述升级版本文件的停止命令;Step 131, after obtaining the upgrade version file, the network device receives a stop command to interrupt the current upgrade of the upgrade version file during the upgrade process;
步骤132,在接收到所述停止命令后,所述网络设备获取处于同一组网与所述网络设备相邻且已升级的网络设备的升级版本文件的相关信息进行升级。Step 132, after receiving the stop command, the network device acquires relevant information of an upgraded version file of a network device adjacent to the network device in the same network group and upgrades.
如果是进行下载的升级版本的设备出现故障或者断电而引起的中断,则网络设备可以从相邻的网络设备已升级的记录的(邻居发送的版本和在更新的版本一致)设备中选取一个网络设备的升级版本文件进行版本升级。If the upgraded version of the device that is being downloaded fails or is interrupted by a power outage, the network device can select one of the devices that have been upgraded (the version sent by the neighbor is consistent with the updated version) from the records of the adjacent network devices. The upgraded version file of the network equipment is upgraded.
在版本更新过程中,如果出现网络中断,同时收到相邻的网络设备的版本更新请求,则将所述网络设备与相邻的网络设备的进行版本比较,如果新发送的版本更新请求版本更新,则终止当前版本更新,更新最新的版本;如果新发送的版本更新请求版本和当前正在更新版本一致,则从新的邻居网元版本升级;如果新发送的版本更新请求版本比当前正在更新的版本旧,则忽略此版本更新请求,不做处理,待网络恢复正常后,继续原本的版本升级。During the version update process, if a network interruption occurs and a version update request from an adjacent network device is received at the same time, the version of the network device is compared with that of the adjacent network device, and if the newly sent version update request , then terminate the current version update and update the latest version; if the newly sent version update request version is consistent with the current version being updated, then upgrade from the new neighbor network element version; if the newly sent version update request version is higher than the current version being updated If it is old, ignore this version update request and do not process it. After the network returns to normal, continue the original version upgrade.
如图3所示,本发明的具体实施例举例如下。As shown in FIG. 3 , specific embodiments of the present invention are given as follows.
在邻居网元E点通过网元B点进行版本更新的过程中,网络中断,结合本发明,进行升级过程说明。In the process of updating the version of the neighbor network element E through the network element B, the network is interrupted, and the upgrade process is described in combination with the present invention.
1.邻居网元E收到了网元B的版本更新请求,从网元B进行版本更新,更新过程中,收到了邻居网元D的版本更新请求,比较版本号,发现和当前正在更新的版本号一致,则保存邻居网元D的版本更新请求。1. Neighbor NE E receives the version update request from NE B, and performs a version update from NE B. During the update process, it receives a version update request from neighbor NE D, compares the version number, and finds the version that is currently being updated. If the numbers are consistent, save the version update request of the neighbor network element D.
2.邻居网元E和网元B之间的链路中断,版本更新失败。2. The link between neighbor NE E and NE B is interrupted, and the version update fails.
3.邻居网元E从保存的版本更新列表查找,发现邻居网元D的版本号和更新失败的版本号一致,则邻居网元E重新从邻居网元D开始版本升级。3. Neighbor NE E searches the saved version update list and finds that the version number of neighbor NE D is consistent with the version number of the failed update, then neighbor NE E restarts the version upgrade from neighbor NE D.
4.邻居网元E版本升级完成,继续向邻居网元K版本升级。4. The neighbor network element E version upgrade is completed, continue to upgrade to the neighbor network element K version.
如果在升级过程中出现网络问题引起的升级版本文件错误,本发明实施例的网络问题网络版本升级的方法中,步骤14具体包括:If an upgrade version file error caused by a network problem occurs during the upgrade process, in the method for upgrading the network version of the network problem in the embodiment of the present invention, step 14 specifically includes:
步骤141,在所述网络设备升级完成之后,所述网络设备校验所更新的升级版本文件是否完整;Step 141, after the upgrade of the network device is completed, the network device checks whether the updated upgrade version file is complete;
步骤142,在校验所更新的升级版本文件为不完整时,所述网络设备重新获取所述版本服务器的升级版本文件进行升级;或者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 upgrade; or
步骤143,在校验所更新的升级版本文件为完整时,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送所述第一版本更新请求。Step 143, when it is verified that the updated upgrade version file is complete, the network device sends the first version update request to a network device adjacent to the network device in the same network.
在发送升级版本文件时本身就会带有校验,本方案此处的校验(可以采用CRC(CyclicRedundancyCheck,循环冗余校验码))是为了提高升级的精确性。When the upgraded version file is sent, it will have a checksum. The checksum (CRC (Cyclic Redundancy Check, Cyclic Redundancy Check, Cyclic Redundancy Check)) used in this solution is to improve the accuracy of the upgrade.
如果是有限的网络设备,在统一更新完成后,会进行统一检查所有的网络设备的更新情况,如果有遗漏则将遗漏的设备进行版本升级,如果没有遗漏则检查无误,完成本次升级。If it is a limited network device, after the unified update is completed, the update status of all network devices will be checked uniformly. If there is any omission, the version of the missing device will be upgraded. If there is no omission, the check will be correct and the upgrade will be completed.
如果在升级完成之后,网元在运行过过程中,重启后需要确认当前的版本是否与邻居网元的版本一样。不管网元是否下载过,只要是重启或者发现新的邻居网元,则需要进行版本确认。在发现新的邻居网元需要进行版本升级。因此如图4所示,本发明的具体实施例的举例如下。If the NE is running after the upgrade is complete, you need to confirm whether the current version is the same as that of the neighbor NE after restarting. Regardless of whether the network element has been downloaded or not, as long as it is restarted or a new neighbor network element is discovered, version confirmation is required. When a new neighbor network element is discovered, a version upgrade is required. Therefore, as shown in FIG. 4 , examples of specific embodiments of the present invention are as follows.
如果网元运行过程中,发生重启或者和发现新的邻居网元:If the network element restarts or discovers a new neighbor network element during operation:
步骤41,向邻居网元发送版本比较请求,携带本点版本号;Step 41, sending a version comparison request to the neighbor network element, carrying the version number of the local point;
步骤42,邻居网元向发送请求网元应答本网元的版本号;邻居网元进行版本号比较,如果邻居网元版本号比发送请求网元版本号旧,则向发送网元请求最新版本,如果邻居网元版本号与发送请求网元版本号一样新,则执行步骤46结束版本升级;Step 42, the neighbor network element responds to the sending request network element with the version number of the own network element; the neighbor network element compares the version number, if the neighbor network element version number is older than the sending request network element version number, then requests the latest version to the sending network element , if the version number of the neighbor network element is as new as the version number of the network element sending the request, perform step 46 to end the version upgrade;
步骤43,网元收到邻居网元应答的网元版本号,进行版本号比较,如果邻居网元的版本新,则向邻居网元请求最新版本;Step 43, the network element receives the network element version number answered by the neighbor network element, compares the version numbers, and if the version of the neighbor network element is new, then requests the latest version from the neighbor network element;
步骤44,邻居网元完成版本更新;Step 44, the neighbor network element completes the version update;
步骤45,邻居网元完成版本更新后,继续向其他邻居网元更新版本。Step 45, after the neighbor network element completes the version update, continue to update the version to other neighbor network elements.
如图5所示,相应的,本发明还提供一种网络版本升级的装置,应用于网络设备,所述装置包括:As shown in FIG. 5, correspondingly, the present invention also provides a device for upgrading a network version, which is applied to network equipment, and the device includes:
第一接收模块51,用于所述网络设备接收版本升级命令;A first receiving module 51, configured for the network device to receive a version upgrade command;
获取模块52,用于所述网络设备根据所述版本升级命令从版本服务器获取升级版本文件;An acquisition module 52, configured for the network device to acquire an upgraded version file from a version server according to the version upgrade command;
第一升级模块53,用于在获取到所述升级版本文件后,所述网络设备根据所述升级版本文件进行版本升级;The first upgrade module 53 is configured to perform version upgrade of the network device according to the upgrade version file after obtaining the upgrade version file;
发送模块54,用于在所述网络设备升级完成之后,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送第一版本更新请求,由所述相邻的网络设备根据所述第一版本更新请求进行版本升级,其中所述第一版本更新请求中包括版本更新所需的升级版本文件的相关信息。A sending module 54, configured to send a first version update request to a network device adjacent to the network device in the same network group after the upgrade of the network device is completed, and the adjacent network device sends a request for updating the first version according to the The first version update request is for version upgrade, wherein the first version update request includes information about the upgraded version file required for version update.
第一接收模块51得到向网络设备发起的升级命令,然后网络设备的获取模块52从版本服务器下载版本文件,利用第一升级模块53进行版本升级,最后发送模块54在升级后完成后,向其他邻居网络设备主动发送升级请求,相继完成相邻网络设备的版本升级。这样可以将升级完成的设备作为其他设备升级下载的升级版本的基础,不需要同时从一个版本服务器上下载或者需要多个版本服务器,也能快速的完成网络中众多设备的升级对运营商非常有价值,同时也不会影响运营中的业务。The first receiving module 51 obtains the upgrade command initiated to the network device, then the acquisition module 52 of the network device downloads the version file from the version server, uses the first upgrade module 53 to upgrade the version, and finally sends the module 54 to other users after the upgrade is completed. Neighboring network devices actively send upgrade requests, and successively complete version upgrades of neighboring network devices. In this way, the upgraded device can be used as the basis for upgrading and downloading the upgraded version of other devices. It does not need to be downloaded from one version server at the same time or requires multiple version servers. It can also quickly complete the upgrade of many devices in the network, which is very useful for operators. value without compromising the running business.
本发明的又一实施例的网络版本升级的装置还包括:The device for network version upgrade of another embodiment of the present invention also includes:
第二接收模块51,用于所述网络设备接收到处于同一组网与所述网络设备相邻的网络设备的发送的第二版本更新请求,其中所述第二版本更新请求中包括版本更新所需的升级版本文件的相关信息;The second receiving module 51 is used for the network device to receive a second version update request sent by a network device adjacent to the network device in the same network, wherein the second version update request includes the version update information Information about the required upgrade version files;
比较模块,用于所述网络设备比较所述第一版本更新请求中的版本更新所需的升级版本文件的相关信息与所述第二版本更新请求中的版本更新所需的升级版本文件的相关信息,得到版本比较结果;A comparison module, configured for the network device to compare the relevant information of the upgraded version file required for the version update in the first version update request with the related information of the upgraded version file required for the version update in the second version update request Information to get the version comparison result;
第二升级模块,用于所述网络设备根据所述版本比较结果进行版本升级。The second upgrade module is used for the network device to upgrade the version according to the version comparison result.
本发明的又一实施例的网络版本升级的装置中,所述版本更新所需的升级版本文件的相关信息至少包括版本号、发布版本的时间、版本内容、版本大小及版本名称中的一种或多种。In the device for network version upgrade according to another embodiment of the present invention, the relevant information of the upgrade version file required for the version update includes at least one of version number, release time, version content, version size and version name or more.
本发明的又一实施例的网络版本升级的装置中,所述第二升级模块包括:In the device for network version upgrade in another embodiment of the present invention, the second upgrade module includes:
第一升级子模块,用于在所述版本比较结果为所述第一版本更新请求中的版本号小于所述第二版本更新请求中的版本号,所述网络设备终止当前升级进程,根据所述第二版本更新请求中的版本更新所需的升级版本文件的相关信息进行版本升级;或者The first upgrade submodule is configured to terminate the current upgrade process of the network device 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, and according to the The relevant information of the upgraded version file required for the version update in the above-mentioned second version update request is used to upgrade the version; or
第二升级子模块,用于在所述版本比较结果为所述第一版本更新请求中的版本号大于或者等于所述第二版本更新请求中的版本号,所述网络设备忽略所述第二版本更新请求,继续获取当前的升级版本文件进行升级。The second upgrade submodule is configured to, when the version comparison result is that the version number in the first version update request is greater than or equal to the version number in the second version update request, the network device ignores the second version update request Version update request, continue to obtain the current upgrade version file for upgrade.
本发明的又一实施例的网络版本升级的装置中,所述升级模块包括:In the device for network version upgrade of another embodiment of the present invention, the upgrade module includes:
接收子模块,用于在获取到所述升级版本文件后,所述网络设备进行升级过程中接收到中断当前升级所述升级版本文件的停止命令;The receiving submodule is configured to receive a stop command for interrupting the current upgrade of the upgrade version file during the upgrade process of the network device after the upgrade version file is obtained;
升级子模块,用于在接收到所述停止命令后,所述网络设备获取处于同一组网与所述网络设备相邻且已升级的网络设备的升级版本文件的相关信息进行升级。The upgrade submodule is configured to obtain, after receiving the stop command, the network device to obtain relevant information about an upgraded version file of an upgraded network device that is adjacent to the network device in the same network and upgrades it.
本发明的又一实施例的网络版本升级的装置中,所述发送模块54包括:In the device for network version upgrade of another embodiment of the present invention, the sending module 54 includes:
校验子模块,用于在所述网络设备升级完成之后,所述网络设备校验所更新的升级版本文件是否完整;A verification sub-module, configured to verify whether the updated upgraded version file of the network device is complete after the upgrade of the network device is completed;
处理子模块,用于在校验所更新的升级版本文件为不完整时,所述网络设备重新获取所述版本服务器的升级版本文件进行升级;或者The processing submodule is used to reacquire the upgraded version file of the version server by the network device for upgrading when the updated upgraded version file is verified to be incomplete; or
发送子模块,用于在校验所更新的升级版本文件为完整时,所述网络设备向处于同一组网与所述网络设备相邻的网络设备发送所述第一版本更新请求。The sending sub-module is configured to send the first version update request to a network device adjacent to the network device in the same network when verifying that the updated upgrade version file is complete.
需要说明的是,本发明提供的装置是应用上述网络版本升级的方法的装置,则上述网络版本升级的方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。It should be noted that the device provided by the present invention is a device applying the above-mentioned network version upgrade method, and all embodiments of the above-mentioned network version upgrade method are applicable to the device, and can achieve the same or similar beneficial effects.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.
Claims (12)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410763930.2A CN105743948A (en) | 2014-12-11 | 2014-12-11 | Network version upgrading method and apparatus |
| PCT/CN2015/078991 WO2016090846A1 (en) | 2014-12-11 | 2015-05-14 | Network version upgrade method and apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410763930.2A CN105743948A (en) | 2014-12-11 | 2014-12-11 | Network version upgrading method and apparatus |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105743948A true CN105743948A (en) | 2016-07-06 |
Family
ID=56106567
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410763930.2A Withdrawn CN105743948A (en) | 2014-12-11 | 2014-12-11 | Network version upgrading method and apparatus |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105743948A (en) |
| WO (1) | WO2016090846A1 (en) |
Cited By (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107301054A (en) * | 2017-07-14 | 2017-10-27 | 杭州敦崇科技股份有限公司 | A kind of Oftware updating method based on MANET |
| CN107483224A (en) * | 2017-05-16 | 2017-12-15 | 上海博达数据通信有限公司 | Wireless routing version upgrading method based on DR election |
| CN109298963A (en) * | 2018-09-06 | 2019-02-01 | 锐捷网络股份有限公司 | A kind of method and device of system self reover |
| CN111277435A (en) * | 2020-01-16 | 2020-06-12 | 南京大鱼半导体有限公司 | Method and device for upgrading network equipment, storage medium and electronic equipment |
| CN111610991A (en) * | 2020-04-09 | 2020-09-01 | 西安万像电子科技有限公司 | Version upgrade method and device |
| CN112398673A (en) * | 2019-08-16 | 2021-02-23 | 中兴通讯股份有限公司 | Upgrading method, communication equipment and computer readable storage medium |
| CN112737847A (en) * | 2020-12-28 | 2021-04-30 | 青岛海尔科技有限公司 | Node upgrading method and device, storage medium and electronic device |
| CN112929189A (en) * | 2019-12-05 | 2021-06-08 | 浙江宇视科技有限公司 | Upgrading method, device, equipment and storage medium of network terminal equipment |
| CN114115953A (en) * | 2021-11-30 | 2022-03-01 | 新华三信息技术有限公司 | A firmware upgrade method, device, system, device and storage medium |
| CN114327563A (en) * | 2021-12-31 | 2022-04-12 | 医渡云(北京)技术有限公司 | Data synchronization method, device, system, storage medium and computer system |
| CN114422486A (en) * | 2022-03-14 | 2022-04-29 | 潍柴动力股份有限公司 | Software version upgrading method and system for terminal and vehicle |
| CN114928523A (en) * | 2022-04-19 | 2022-08-19 | 广州爱浦路网络技术有限公司 | Network element upgrading method and upgrading device based on 5G OAM |
| CN115119229A (en) * | 2021-03-17 | 2022-09-27 | 几维通信技术(深圳)有限公司 | 5G distributed base station upgrading system |
| CN115665766A (en) * | 2022-09-27 | 2023-01-31 | 成都长虹网络科技有限责任公司 | Method for detecting upgrading networking of Mesh network system |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110489146A (en) * | 2019-08-13 | 2019-11-22 | 翱捷科技(深圳)有限公司 | A kind of neighbouring OTA upgrade-system and method of terminal device |
| CN113419771B (en) * | 2021-05-31 | 2023-01-24 | 济南浪潮数据技术有限公司 | Method and system for making upgrade package of application software and method and system for upgrading |
| CN116866966A (en) * | 2022-03-28 | 2023-10-10 | 中兴通讯股份有限公司 | Method for downloading base station version, network management server, base station, equipment and medium |
| CN115421764B (en) * | 2022-08-31 | 2025-08-22 | 济南浪潮数据技术有限公司 | Method, device, equipment and storage medium for identifying modules to be upgraded |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101145948A (en) * | 2007-03-21 | 2008-03-19 | 中兴通讯股份有限公司 | Software upgrade method, device and network element |
| CN101478446A (en) * | 2008-12-30 | 2009-07-08 | 华为技术有限公司 | Network appliance version loading method, apparatus and system |
| CN103152206A (en) * | 2013-03-25 | 2013-06-12 | 安科智慧城市技术(中国)有限公司 | Method and system for updating multiple devices |
| US20140123123A1 (en) * | 2012-11-01 | 2014-05-01 | Cooper Technologies Company | Distribution of software updates in wireless multihop networks |
-
2014
- 2014-12-11 CN CN201410763930.2A patent/CN105743948A/en not_active Withdrawn
-
2015
- 2015-05-14 WO PCT/CN2015/078991 patent/WO2016090846A1/en active Application Filing
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101145948A (en) * | 2007-03-21 | 2008-03-19 | 中兴通讯股份有限公司 | Software upgrade method, device and network element |
| CN101478446A (en) * | 2008-12-30 | 2009-07-08 | 华为技术有限公司 | Network appliance version loading method, apparatus and system |
| US20140123123A1 (en) * | 2012-11-01 | 2014-05-01 | Cooper Technologies Company | Distribution of software updates in wireless multihop networks |
| CN103152206A (en) * | 2013-03-25 | 2013-06-12 | 安科智慧城市技术(中国)有限公司 | Method and system for updating multiple devices |
Cited By (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107483224A (en) * | 2017-05-16 | 2017-12-15 | 上海博达数据通信有限公司 | Wireless routing version upgrading method based on DR election |
| CN107301054A (en) * | 2017-07-14 | 2017-10-27 | 杭州敦崇科技股份有限公司 | A kind of Oftware updating method based on MANET |
| CN107301054B (en) * | 2017-07-14 | 2021-02-23 | 杭州敦崇科技股份有限公司 | Software updating method based on ad hoc network |
| CN109298963A (en) * | 2018-09-06 | 2019-02-01 | 锐捷网络股份有限公司 | A kind of method and device of system self reover |
| CN112398673A (en) * | 2019-08-16 | 2021-02-23 | 中兴通讯股份有限公司 | Upgrading method, communication equipment and computer readable storage medium |
| CN112929189A (en) * | 2019-12-05 | 2021-06-08 | 浙江宇视科技有限公司 | Upgrading method, device, equipment and storage medium of network terminal equipment |
| CN111277435A (en) * | 2020-01-16 | 2020-06-12 | 南京大鱼半导体有限公司 | Method and device for upgrading network equipment, storage medium and electronic equipment |
| CN111610991A (en) * | 2020-04-09 | 2020-09-01 | 西安万像电子科技有限公司 | Version upgrade method and device |
| CN112737847A (en) * | 2020-12-28 | 2021-04-30 | 青岛海尔科技有限公司 | Node upgrading method and device, storage medium and electronic device |
| CN112737847B (en) * | 2020-12-28 | 2023-02-03 | 青岛海尔科技有限公司 | Node upgrading method and device, storage medium and electronic device |
| CN115119229A (en) * | 2021-03-17 | 2022-09-27 | 几维通信技术(深圳)有限公司 | 5G distributed base station upgrading system |
| CN114115953A (en) * | 2021-11-30 | 2022-03-01 | 新华三信息技术有限公司 | A firmware upgrade method, device, system, device and storage medium |
| CN114327563A (en) * | 2021-12-31 | 2022-04-12 | 医渡云(北京)技术有限公司 | Data synchronization method, device, system, storage medium and computer system |
| CN114422486A (en) * | 2022-03-14 | 2022-04-29 | 潍柴动力股份有限公司 | Software version upgrading method and system for terminal and vehicle |
| CN114422486B (en) * | 2022-03-14 | 2024-01-16 | 潍柴动力股份有限公司 | A terminal software version upgrade method, system and vehicle |
| CN114928523A (en) * | 2022-04-19 | 2022-08-19 | 广州爱浦路网络技术有限公司 | Network element upgrading method and upgrading device based on 5G OAM |
| CN114928523B (en) * | 2022-04-19 | 2023-09-05 | 广州爱浦路网络技术有限公司 | 5G OAM-based network element upgrading method and upgrading device |
| CN115665766A (en) * | 2022-09-27 | 2023-01-31 | 成都长虹网络科技有限责任公司 | Method for detecting upgrading networking of Mesh network system |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2016090846A1 (en) | 2016-06-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105743948A (en) | Network version upgrading method and apparatus | |
| CN100391291C (en) | A data backup and recovery method and system thereof | |
| WO2021083244A1 (en) | Multi-device batch firmware upgrade method for mesh network device | |
| WO2011006328A1 (en) | System and method for updating device firmware, device management server and mobile terminal | |
| CN103874113B (en) | Wireless network maintaining method, device and system | |
| EP2582089A1 (en) | System and method for implementing automatic configuration for equipments | |
| WO2011137793A1 (en) | Method, apparatus and network system for achieving remote update of zigbee devices | |
| CN101593119B (en) | Method and device for firmware over-the-air of exclusive flash memory combined equipment | |
| CN106843957A (en) | System firmware upgrade method and device | |
| CN103281373A (en) | Home gateway intelligent upgrading device and upgrading method | |
| CN111817874A (en) | A remote maintenance system and method for terminal equipment of power Internet of Things | |
| CN101447884A (en) | Method for achieving software upgrade by cooperation among network elements, equipment and system therefor | |
| WO2022142153A1 (en) | Electricity meter upgrading method and system, smart meter, and storage medium | |
| US20120047245A1 (en) | Method for provisioning parameters of terminal, system thereof, and terminal management device | |
| WO2012174799A1 (en) | Method, server and system for downloading and installing upgrade package | |
| CN102624875B (en) | A method for replacing or updating a language pack of a terminal device | |
| CN101478446A (en) | Network appliance version loading method, apparatus and system | |
| CN110535776B (en) | Gateway current limiting method, device, gateway, system and storage medium | |
| CN101848101A (en) | Method, device and system for network element management in network system | |
| CN103327133B (en) | A kind of geographical location information update method and device | |
| CN112423322B (en) | Model information sending method, device, storage medium and electronic device | |
| CN105988882B (en) | A kind of application software fault repair method and terminal device | |
| CN105162769A (en) | Gateway authority transfer method and gateway authority transfer device | |
| CN1937461B (en) | Terminal test device based on terminal management service | |
| CN109189403B (en) | Operating system OS batch installation method and device and network equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| WW01 | Invention patent application withdrawn after publication |
Application publication date: 20160706 |
|
| WW01 | Invention patent application withdrawn after publication |