WO2016095533A1 - 一种版本升级的方法及装置 - Google Patents

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

Info

Publication number
WO2016095533A1
WO2016095533A1 PCT/CN2015/085763 CN2015085763W WO2016095533A1 WO 2016095533 A1 WO2016095533 A1 WO 2016095533A1 CN 2015085763 W CN2015085763 W CN 2015085763W WO 2016095533 A1 WO2016095533 A1 WO 2016095533A1
Authority
WO
WIPO (PCT)
Prior art keywords
version
upgraded
file
multicast
upgrading
Prior art date
Application number
PCT/CN2015/085763
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 WO2016095533A1 publication Critical patent/WO2016095533A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • This document relates to, but is not limited to, the field of optical communication technology, and in particular, to a method and apparatus for version upgrade.
  • the network device software version upgrade is a version file transmission in a unicast manner.
  • the version file is downloaded to the device through the unicast mode on the NMS channel.
  • the network management channel generally has a bandwidth limitation.
  • the version download rate is limited, which seriously affects the version downloading efficiency and increases the upgrade time.
  • the purpose of the embodiments of the present invention is to provide a method and an apparatus for upgrading a version to solve the technical problem of how to save a large amount of network management channel bandwidth, reduce the version transmission time, simplify the upgrade operation steps, and improve the efficiency of the version upgrade.
  • the embodiment of the invention provides a method for upgrading a version by using a multicast mode, including:
  • the version server obtains the multicast addresses of multiple devices to be upgraded.
  • the version server obtains a version file corresponding to the multicast addresses of the devices to be upgraded according to the correspondence between the preset multicast address and the version file.
  • the version server sends a version file to multiple devices to be upgraded through a multicast address.
  • the method further comprises:
  • the version server configures the mapping between the multicast address and the version file.
  • the method further comprises:
  • the version server stops sending the version file to the device to be upgraded.
  • the version server sends the version file to the multiple devices to be upgraded through the multicast address, including:
  • the version server fragments the version file to obtain multiple fragment version files.
  • Multi-segment version files are sent to the device to be upgraded through the multicast address in multicast mode.
  • the version server sends the version file to the multiple devices to be upgraded through the multicast address, and includes:
  • the version server receives the file retransmission request packet sent by the device to be upgraded, and the file retransmission request packet is generated and sent when the device to be upgraded detects that the received fragment version file is missing.
  • the version server retransmits the missing fragment version file to the device to be upgraded according to the file retransmission request message.
  • the embodiment of the invention further provides an apparatus for upgrading a version by using a multicast mode, including:
  • the first obtaining module is configured to obtain a multicast address of multiple devices to be upgraded
  • the second obtaining module is configured to obtain a version file corresponding to the multicast addresses of the plurality of devices to be upgraded according to the correspondence between the preset multicast address and the version file;
  • the sending module is configured to send a version file to multiple to-be-upgraded devices through a multicast address.
  • the device further comprises:
  • the device further comprises:
  • the sending module includes:
  • a sharding unit configured to shard the version file to obtain a plurality of shard version files
  • the sending unit is configured to send multiple fragment version files in a multicast manner to the device to be upgraded through the multicast address.
  • the sending module further includes:
  • the receiving unit is configured to receive a file retransmission request message sent by the device to be upgraded, where the file retransmission request message is generated and sent when the device to be upgraded detects that the received fragment version file is missing;
  • the retransmission unit is configured to retransmit the missing fragment version file to the device to be upgraded according to the file retransmission request message.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the above method.
  • the method of obtaining the multicast address of the device to be upgraded is obtained, and the group corresponding to the device to be upgraded is obtained according to the correspondence between the preset multicast address and the version file.
  • the version file corresponding to the broadcast address is sent to the device to be upgraded through the multicast address, and the device to be upgraded is upgraded according to the received version file.
  • Multicast mode upgrade can save a lot of network management channel bandwidth, reduce version transmission time, simplify upgrade operations, and improve version upgrade efficiency and carrier satisfaction.
  • FIG. 1 is a flow chart showing the steps of a method for upgrading a version by using a multicast mode according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a device networking in a method for upgrading a version by using a multicast mode according to an embodiment of the present invention
  • FIG. 3 is a flow chart 1 of the steps of upgrading a version in a method for upgrading a version by using a multicast mode according to an embodiment of the present invention
  • FIG. 4 is a flowchart 2 showing a step of upgrading a version in a method for upgrading a version by using a multicast mode according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a method for upgrading a version by using a multicast mode according to an embodiment of the present invention
  • FIG. 6 is a block diagram showing an apparatus for upgrading a version by using a multicast mode according to an embodiment of the present invention
  • FIG. 7 is a block diagram 1 of a transmitting module in an apparatus for upgrading a version by using a multicast mode according to an embodiment of the present invention
  • FIG. 8 is a block diagram 2 of a transmitting module in an apparatus for upgrading a version by using a multicast mode according to an embodiment of the present invention.
  • the version file When the version file is transmitted by using the unicast mode in the related art, the version file is downloaded in a unicast mode.
  • the version download rate caused by multiple stream sharing links is limited, which seriously affects the version.
  • Downloading the efficiency and increasing the upgrade time, and providing a method and device for upgrading the version by using the multicast mode obtaining the multicast address of the device to be upgraded, and corresponding to the version file according to the preset multicast address
  • the version file corresponding to the multicast address of the device to be upgraded is obtained, and the version file is sent to the device to be upgraded through the multicast address, and the device to be upgraded is upgraded according to the received version file.
  • Multicast mode upgrade can save a lot of network management channel bandwidth, reduce version transmission time, simplify upgrade operations, and improve version upgrade efficiency and carrier satisfaction.
  • an embodiment of the present invention provides a method for upgrading a version by using a multicast mode, including:
  • Step S100 The version server acquires multiple multicast addresses of the device to be upgraded.
  • Step S200 The version server obtains a version file corresponding to the multicast addresses of the plurality of devices to be upgraded according to the correspondence between the preset multicast address and the version file.
  • Step S300 The version server sends the version file to the plurality of devices to be upgraded through the multicast address.
  • the version upgrade is performed by the plurality of devices to be upgraded according to the received version file.
  • the devices A, B, C, and D to be upgraded enable the protocol-independent multicast PIM function of the network management channel.
  • a and B are the device type 1 to be upgraded
  • C and D are the device type 2 to be upgraded.
  • # Configure the device to be upgraded to join the multicast address Group1 and configure the device to be upgraded to join the multicast address Group2.
  • the auxiliary devices E, F, G, and H enable the PIM function of the network management channel. To improve security, you can join a multicast address by using a multicast source.
  • the version server obtains the multicast address Group1 of the devices A and B to be upgraded, and the multicast address Group2 of the devices C and D to be upgraded, according to the corresponding relationship between the pre-configured multicast address and the version file. Upgrade the version files corresponding to the multicast addresses of devices A and B, and then send the corresponding version files to devices A, B, and C and D to be upgraded. D performs a version upgrade based on the corresponding version file received.
  • the method before the step S100, the method further includes:
  • the version server configures the mapping between the multicast address and the version file.
  • the version files to be upgraded are different, and the required version files are different.
  • a mapping relationship between the version file and the multicast address can be established.
  • a and B are the device type 1 to be upgraded, and the version file is Version 1;
  • C and D are the device type 2 to be upgraded, and the version file is Version 2.
  • the method for identifying the correspondence between the version file and the multicast address is as follows:
  • the device to be upgraded can obtain the corresponding version file through the multicast address.
  • the method further includes:
  • the version server stops sending the version file to the device to be upgraded, and the multicast address is deleted by the device to be upgraded.
  • the version server stops sending the version file to the device to be upgraded.
  • the PIM function is disabled and the multicast address is deleted. Because the version server cannot obtain the multicast address, the version file corresponding to the multicast address cannot be sent, and the version upgrade is stopped.
  • the version server sends the version file to the plurality of devices to be upgraded through the multicast address, and the version of the device to be upgraded is upgraded according to the received version file, as shown in FIG. 3, including:
  • Step S301 The version server fragments the version file to obtain a plurality of slice version files.
  • Step S302 Send the multiple sharded version files to the device to be upgraded by using the multicast address in the multicast mode, and upgrade the device to be upgraded.
  • the version server transmits the version file Version1 to the devices A and B to be upgraded with the multicast address being Group1, and transmits the version file Version2 to the devices to be upgraded C and D whose multicast address is Group2.
  • the version file Version1 and the version file Version2 are fragmented, and the version files Version1 and Version2 of the fragment are obtained.
  • the multiple version of the version file Version1 is multicasted through the multicast address Group1.
  • the device is sent to the devices to be upgraded, A and B.
  • the devices A and B to be upgraded reassemble the received version of the version file Version1 to complete the version upgrade.
  • the version 2 of the version 2 is sent to the devices C and D to be upgraded through the multicast address Group 2 in the multicast mode, and the version 2 of the fragmented version II received by the devices C and D to be upgraded is reorganized. , complete the version upgrade.
  • the version server sends the version file to the plurality of devices to be upgraded through the multicast address, and the version of the device to be upgraded is upgraded according to the received version file, as shown in FIG. 4, and further includes:
  • Step S303 The version server receives the file retransmission request message sent by the device to be upgraded, and the file retransmission request message is generated and sent when the device to be upgraded detects that the received fragment version file is missing.
  • Step S304 The version server retransmits the missing fragment version file to the device to be upgraded according to the file retransmission request message.
  • the version server receives the file retransmission request message sent when the version file Version1 of the fragment received by the devices A and B to be upgraded is missing, and starts the file retransmission timer to the devices A and B to be upgraded.
  • the version file Version1 of the missing fragment is sent, and the version file Version1 of the fragmented version is completely reassembled by the devices A and B to be upgraded, and the version is upgraded.
  • the version server receives the file retransmission request message sent when the version file Version 2 of the fragment received by the devices C and D to be upgraded is missing, and starts the file retransmission timer to be upgraded.
  • the level devices C and D send the missing version of the version file Version 2, and the version files Version 2, which are completely received by the devices C and D to be upgraded, are reorganized to complete the version upgrade.
  • FIG. 5 it is a flowchart of a method for upgrading a version by using a multicast mode according to an embodiment of the present invention.
  • the configuration version server includes configuring a multicast address and a version file to be transmitted by the version server.
  • the device includes the device to be upgraded and the auxiliary device. You only need to configure the automatic upgrade function for the device to be upgraded.
  • a multicast address has been added.
  • the version server obtains the version file obtained by the version server.
  • the device to be upgraded receives the corresponding version file according to the multicast address.
  • the device to be upgraded needs to send the file retransmission request message and start.
  • the retransmission timer the version server receives the file retransmission request message sent by the device to be upgraded, and sends the missing version file to the device to be upgraded according to the file retransmission request message. If the device does not receive the missing version file after the timer expires, the automatic upgrade function of the device to be upgraded is disabled. If the device does not expire and the device to be upgraded receives the missing version file, the integrity of the version file needs to be performed. Verify that when the version file received by the device to be upgraded is complete, the automatic upgrade function of the device to be upgraded is disabled and the upgrade is terminated.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the above method.
  • An embodiment of the present invention further provides an apparatus for upgrading a version by using a multicast mode, as shown in FIG. 6, including:
  • the first obtaining module 10 is configured to obtain a multicast address of multiple devices to be upgraded
  • the second obtaining module 20 is configured to obtain a version file corresponding to the multicast addresses of the plurality of devices to be upgraded according to the correspondence between the preset multicast address and the version file;
  • the sending module 30 is configured to send a version file to the plurality of devices to be upgraded through the multicast address, and the plurality of devices to be upgraded perform version upgrade according to the received version file.
  • the device further includes:
  • the configuration module 40 is configured to configure a correspondence between the multicast address and the version file.
  • the device further includes:
  • the module 50 is deleted, and is set to stop sending the version file to the device to be upgraded after the upgrade is completed.
  • the device to be upgraded and the multicast address is deleted by the device to be upgraded.
  • the sending module 30 includes:
  • the fragmentation unit 31 is configured to slice the version file to obtain a plurality of slice version files
  • the sending unit 32 is configured to send the multiple fragment version files to the device to be upgraded through the multicast address in a multicast manner, and upgrade the device to be upgraded.
  • the sending module 30 further includes:
  • the receiving unit 33 is configured to receive a file retransmission request message sent by the device to be upgraded, where the file retransmission request message is generated and sent when the device to be upgraded detects that the received fragment version file is missing;
  • the retransmission unit 34 is configured to retransmit the missing fragment version file to the device to be upgraded according to the file retransmission request message.
  • the method of obtaining the multicast address of the device to be upgraded is obtained, and the group corresponding to the device to be upgraded is obtained according to the correspondence between the preset multicast address and the version file.
  • the version file corresponding to the broadcast address is sent to the device to be upgraded through the multicast address, and the device to be upgraded is upgraded according to the received version file.
  • Multicast mode upgrade can save a lot of network management channel bandwidth, reduce version transmission time, simplify upgrade operations, and improve version upgrade efficiency and carrier satisfaction. You can upgrade the one-off version of multiple types of devices to be upgraded on the network to reduce the cumbersome operations caused by batch execution.
  • the device for upgrading the version by using the multicast mode provided by the embodiment of the present invention is the device applying the foregoing method, and all the embodiments of the foregoing method are applicable to the device, and all of the same or similar beneficial effects can be achieved.
  • all or part of the steps of the above embodiments may also be implemented using an integrated circuit.
  • the steps may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps may be fabricated into a single integrated circuit module.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the above-mentioned technical solutions can be upgraded by using the multicast mode. This saves a lot of network management channel bandwidth, reduces version transmission time, simplifies upgrade operations, improves version upgrade efficiency, and improves carrier satisfaction.
  • a one-time version upgrade of multiple types of devices to be upgraded in different types of networks exists in the network, which reduces the cumbersome operation caused by batch execution.

Abstract

一种利用组播方式升级版本的方法及装置,其中方法包括:版本服务器获取多个待升级设备的组播地址;版本服务器根据预设的组播地址与版本文件的对应关系,得到与多个待升级设备的组播地址对应的版本文件;版本服务器通过组播地址向多个待升级设备发送版本文件,由多个待升级设备根据接收到的版本文件进行版本升级。通过利用组播方式进行版本升级,可节省大量的网管通道带宽,减少版本传输时间,简化升级操作步骤,提高版本升级的效率及运营商满意度。同时也可对网络中存在的不同类型的多个待升级设备,进行一次性版本升级。

Description

一种版本升级的方法及装置 技术领域
本文涉及但不限于光通讯技术领域,尤其涉及一种版本升级的方法及装置。
背景技术
目前相关技术中,网络设备软件版本升级都是以单播方式进行版本文件传输。版本文件在网管通道上通过单播方式下载到设备,在多台设备同时升级时,存在多条流共用链路的情况。而网管通道一般都会有带宽限制,在多台设备同时升级时,版本下载速率会受到限制,严重影响版本下载效率,增加升级时间。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。(The following is a brief summary of subject matter that is described in greater detail herein.This summary is not intended to be limiting as to the scope of the claims.)
本发明实施例的目的在于提供一种版本升级的方法及装置,以解决如何节省大量的网管通道带宽,减少版本传输时间,简化升级操作步骤,提高版本升级的效率的技术问题。
本发明实施例提供一种利用组播方式升级版本的方法,包括:
版本服务器获取多个待升级设备的组播地址;
版本服务器根据预设的组播地址与版本文件的对应关系,得到与多个待升级设备的组播地址对应的版本文件;
版本服务器通过组播地址向多个待升级设备发送版本文件。
其中,该方法还包括:
版本服务器配置组播地址与版本文件的对应关系。
其中,该方法还包括:
当待升级设备完成升级后,版本服务器停止将版本文件发送至待升级设备。
其中,版本服务器通过组播地址向多个待升级设备发送版本文件,包括:
版本服务器将版本文件进行分片,得到多个分片版本文件;
将多个分片版本文件以组播方式通过组播地址发送至待升级设备。
其中,版本服务器通过组播地址向多个待升级设备发送版本文件,还包括:
版本服务器接收待升级设备发送的文件重传请求报文,文件重传请求报文由待升级设备检测到接收到的分片版本文件存在缺失时生成并发送;
版本服务器根据文件重传请求报文向待升级设备重传缺失的分片版本文件。
本发明实施例还提供一种利用组播方式升级版本的装置,包括:
第一获取模块,设置为获取多个待升级设备的组播地址;
第二获取模块,设置为根据预设的组播地址与版本文件的对应关系,得到与多个待升级设备的组播地址对应的版本文件;
发送模块,设置为通过组播地址向多个待升级设备发送版本文件。
其中,该装置还包括:
配置模块,设置为配置组播地址与版本文件的对应关系。
其中,该装置还包括:
删除模块,设置为当待升级设备完成升级后,停止将版本文件发送至待升级设备。
其中,发送模块包括:
分片单元,设置为将版本文件进行分片,得到多个分片版本文件;
发送单元,设置为将多个分片版本文件以组播方式通过组播地址发送至待升级设备。
其中,发送模块还包括:
接收单元,设置为接收待升级设备发送的文件重传请求报文,文件重传请求报文由待升级设备检测到接收到的分片版本文件存在缺失时生成并发送;
重传单元,设置为根据文件重传请求报文向待升级设备重传缺失的分片版本文件。
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述的方法。
上述技术方案至少具有如下有益效果:
本发明实施例利用组播方式升级版本的方法中,通过获取多个待升级设备的组播地址,并根据预设的组播地址与版本文件的对应关系,得到与多个待升级设备的组播地址对应的版本文件,将版本文件通过组播地址发送至多个待升级设备,由多个待升级设备根据接收到的版本文件进行版本升级。利用组播方式进行版本升级,可节省大量的网管通道带宽,减少版本传输时间,简化升级操作步骤,提高版本升级的效率及运营商满意度。
利用组播方式进行版本升级可实现对网络中存在的不同类型的多个待升级设备的一次性版本升级,减少分批执行带来的繁琐操作。
在阅读并理解了附图和详细描述后,可以明白其他方面。(Other aspects will be appreciated upon reading and understanding the attached figures and detailed description)
附图概述
图1表示本发明实施例利用组播方式升级版本的方法步骤流程图;
图2表示本发明实施例利用组播方式升级版本的方法中设备组网示意图;
图3表示本发明实施例利用组播方式升级版本的方法中版本升级的步骤流程图一;
图4表示本发明实施例利用组播方式升级版本的方法中版本升级的步骤流程图二;
图5表示本发明实施例利用组播方式升级版本的方法流程图;
图6表示本发明实施例利用组播方式升级版本的装置框图;
图7表示本发明实施例利用组播方式升级版本的装置中发送模块框图一;
图8表示本发明实施例利用组播方式升级版本的装置中发送模块框图二。
本发明的较佳实施方式
下面将结合附图及具体实施例对本发明进行详细描述。
本发明实施例针对相关技术中利用单播方式进行版本文件传输时,版本文件通过单播方式下载,在多台设备同时升级时多条流共用链路造成的版本下载速率受限,严重影响版本下载效率,增加升级时间的问题,提供了一种利用组播方式升级版本的方法及装置,通过获取多个待升级设备的组播地址,并根据预设的组播地址与版本文件的对应关系,得到与多个待升级设备的组播地址对应的版本文件,将版本文件通过组播地址发送至多个待升级设备,由多个待升级设备根据接收到的版本文件进行版本升级。利用组播方式进行版本升级,可节省大量的网管通道带宽,减少版本传输时间,简化升级操作步骤,提高版本升级的效率及运营商满意度。
如图1所示,本发明实施例提供一种利用组播方式升级版本的方法,包括:
步骤S100、版本服务器获取多个待升级设备的组播地址;
步骤S200、版本服务器根据预设的组播地址与版本文件的对应关系,得到与多个待升级设备的组播地址对应的版本文件;
步骤S300、版本服务器通过组播地址向多个待升级设备发送版本文件, 由多个待升级设备根据接收到的版本文件进行版本升级。
如图2所示,待升级设备A、B、C和D开启网管通道的协议无关组播PIM功能,A、B为待升级设备类型1,C、D为待升级设备类型2,根据设备类型配置待升级设备A、B加入组播地址Group1,配置待升级设备C、D加入组播地址Group2,辅助设备E、F、G和H开启网管通道的PIM功能。为了提高安全性,可以采用带组播源的方式加入组播地址。
可选的,版本服务器获取待升级设备A、B的组播地址Group1,待升级设备C、D的组播地址Group2,根据预先设定好的组播地址与版本文件的对应关系,得到与待升级设备A、B和C、D的组播地址对应的版本文件,然后通过组播地址向待升级设备A、B和C、D发送对应的版本文件,由待升级设备A、B和C、D根据接收到的相应的版本文件进行版本升级。
在本发明上述实施例中,该方法在步骤S100之前,还包括:
版本服务器配置组播地址与版本文件的对应关系。
可选地,由于待升级设备类型不同,需要的版本文件也不同,为了区分不同的版本文件,可以在版本文件和组播地址之间建立对应关系。可选地,A、B为待升级设备类型1,版本文件为Version1;C、D为待升级设备类型2,版本文件为Version2。版本文件和组播地址之间的对应关系的标识方法如下:
<Version1,Group1>
<Version2,Group2>
根据组播地址与版本文件的对应关系,待升级设备可以通过组播地址获得对应的版本文件。
在本发明上述实施例中,该方法还包括:
当待升级设备完成升级后,版本服务器停止将版本文件发送至待升级设备,并由待升级设备删除组播地址。
可选的,当待升级设备完成升级后,需要关闭升级功能,这时版本服务器停止向待升级设备发送版本文件,待升级设备关闭PIM功能,删除组播地址。由于版本服务器无法获得组播地址,也无法得到与组播地址对应的版本文件进行发送,停止版本的升级。
在本发明上述实施例中,版本服务器通过组播地址向多个待升级设备发送版本文件,由多个待升级设备根据接收到的版本文件进行版本升级,如图3所示,包括:
步骤S301、版本服务器将版本文件进行分片,得到多个分片版本文件;
步骤S302、将多个分片版本文件以组播方式通过组播地址发送至待升级设备,由待升级设备进行升级。
可选的,版本服务器向组播地址为Group1的待升级设备A和B传送版本文件Version1,向组播地址为Group2的待升级设备C和D传送版本文件Version2。传输时,需要将版本文件Version1和版本文件Version2进行分片,得到多个分片后的版本文件Version1和版本文件Version2,将多个分片后的版本文件Version1以组播方式通过组播地址Group1发送至待升级设备A和B,由待升级设备A和B对接收到的多个分片后的版本文件Version1进行重组,完成版本升级。将多个分片后的版本文件Version2以组播方式通过组播地址Group2发送至待升级设备C和D,由待升级设备C和D对接收到的多个分片后的版本文件Version2进行重组,完成版本升级。
在本发明上述实施例中,版本服务器通过组播地址向多个待升级设备发送版本文件,由多个待升级设备根据接收到的版本文件进行版本升级,如图4所示,还包括:
步骤S303、版本服务器接收待升级设备发送的文件重传请求报文,文件重传请求报文由待升级设备检测到接收到的分片版本文件存在缺失时生成并发送;
步骤S304、版本服务器根据文件重传请求报文向待升级设备重传缺失的分片版本文件。
可选的,版本服务器接收当待升级设备A和B接收到的分片后的版本文件Version1缺失时发送的文件重传请求报文,并启动文件重传定时器,向待升级设备A和B发送缺失的分片后的版本文件Version1,由待升级设备A和B完整接收分片后的版本文件Version1后进行重组,完成版本升级。
版本服务器接收当待升级设备C和D接收到的分片后的版本文件Version2缺失时发送的文件重传请求报文,并启动文件重传定时器,向待升 级设备C和D发送缺失的分片后的版本文件Version2,由待升级设备C和D完整接收分片后的版本文件Version2后进行重组,完成版本升级。
如图5所示,为本发明实施例利用组播方式升级版本的方法流程图,在进行升级之前,首先配置版本服务器,这里的配置版本服务器包括配置组播地址与版本服务器要传输的版本文件之间的对应关系,配置完成后需要对设备的自动升级功能进行配置,这里的设备包括待升级设备和辅助设备,仅需配置待升级设备的自动升级功能,需要说明的是,待升级设备中加入了组播地址。配置完成后版本服务器传输获取的版本文件,由待升级设备根据组播地址来接收相对应的版本文件,若接收到版本文件不完整,则需要由待升级设备发送文件重传请求报文并启动重传定时器,版本服务器接收待升级设备发送的文件重传请求报文,并根据文件重传请求报文向待升级设备发送缺失的版本文件。若定时器超时待升级设备仍未接收到缺失的版本文件,则关闭待升级设备的自动升级功能,若定时器未超时待升级设备接收到缺失的版本文件,则需要对版本文件的完整性进行校验,当待升级设备接收到的版本文件完整时,关闭待升级设备的自动升级功能,结束升级。
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述的方法。
本发明实施例还提供一种利用组播方式升级版本的装置,如图6所示,包括:
第一获取模块10,设置为获取多个待升级设备的组播地址;
第二获取模块20,设置为根据预设的组播地址与版本文件的对应关系,得到与多个待升级设备的组播地址对应的版本文件;
发送模块30,设置为通过组播地址向多个待升级设备发送版本文件,由多个待升级设备根据接收到的版本文件进行版本升级。
在本发明上述实施例中,该装置还包括:
配置模块40,设置为配置组播地址与版本文件的对应关系。
在本发明上述实施例中,该装置还包括:
删除模块50,设置为当待升级设备完成升级后,停止将版本文件发送至 待升级设备,并由待升级设备删除组播地址。
在本发明上述实施例中,如图7所示,发送模块30包括:
分片单元31,设置为将版本文件进行分片,得到多个分片版本文件;
发送单元32,设置为将多个分片版本文件以组播方式通过组播地址发送至待升级设备,由待升级设备进行升级。
在本发明上述实施例中,如图8所示,发送模块30还包括:
接收单元33,设置为接收待升级设备发送的文件重传请求报文,文件重传请求报文由待升级设备检测到接收到的分片版本文件存在缺失时生成并发送;
重传单元34,设置为根据文件重传请求报文向待升级设备重传缺失的分片版本文件。
本发明实施例利用组播方式升级版本的方法中,通过获取多个待升级设备的组播地址,并根据预设的组播地址与版本文件的对应关系,得到与多个待升级设备的组播地址对应的版本文件,将版本文件通过组播地址发送至多个待升级设备,由多个待升级设备根据接收到的版本文件进行版本升级。利用组播方式进行版本升级,可节省大量的网管通道带宽,减少版本传输时间,简化升级操作步骤,提高版本升级的效率及运营商满意度。利用组播方式进行版本升级可实现对网络中存在的不同类型的多个待升级设备的一次性版本升级,减少分批执行带来的繁琐操作。
本发明实施例提供的利用组播方式升级版本的装置是应用上述方法的装置,则上述方法的所有实施例均适用于该装置,且均能达到相同或相似的有益效果。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这 些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
工业实用性
上述技术方案利用组播方式进行版本升级,可节省大量的网管通道带宽,减少版本传输时间,简化升级操作步骤,提高版本升级的效率及运营商满意度;利用组播方式进行版本升级可实现对网络中存在的不同类型的多个待升级设备的一次性版本升级,减少分批执行带来的繁琐操作。

Claims (11)

  1. 一种利用组播方式升级版本的方法,所述方法包括:
    版本服务器获取多个待升级设备的组播地址;
    所述版本服务器根据预设的组播地址与版本文件的对应关系,得到与所述多个待升级设备的组播地址对应的版本文件;
    所述版本服务器通过所述组播地址向所述多个待升级设备发送所述版本文件。
  2. 如权利要求1所述的利用组播方式升级版本的方法,所述方法还包括:
    所述版本服务器配置所述组播地址与所述版本文件的对应关系。
  3. 如权利要求1所述的利用组播方式升级版本的方法,所述方法还包括:
    当所述待升级设备完成升级后,所述版本服务器停止将所述版本文件发送至所述待升级设备。
  4. 如权利要求1所述的利用组播方式升级版本的方法,其中,所述版本服务器通过所述组播地址向所述多个待升级设备发送所述版本文件,包括:
    所述版本服务器将所述版本文件进行分片,得到多个分片版本文件;
    将所述多个分片版本文件以组播方式通过所述组播地址发送至所述待升级设备。
  5. 如权利要求4所述的利用组播方式升级版本的方法,所述版本服务器通过所述组播地址向所述多个待升级设备发送所述版本文件,还包括:
    所述版本服务器接收所述待升级设备发送的文件重传请求报文,所述文件重传请求报文由所述待升级设备检测到接收到的所述分片版本文件存在缺失时生成并发送;
    所述版本服务器根据所述文件重传请求报文向所述待升级设备重传缺失的所述分片版本文件。
  6. 一种利用组播方式升级版本的装置,所述装置包括:
    第一获取模块,设置为获取多个待升级设备的组播地址;
    第二获取模块,设置为根据预设的组播地址与版本文件的对应关系,得到与所述多个待升级设备的组播地址对应的版本文件;
    发送模块,设置为通过所述组播地址向所述多个待升级设备发送所述版本文件。
  7. 如权利要求6所述的利用组播方式升级版本的装置,所述装置还包括:
    配置模块,设置为配置所述组播地址与所述版本文件的对应关系。
  8. 如权利要求6所述的利用组播方式升级版本的装置,所述装置还包括:
    删除模块,设置为当所述待升级设备完成升级后,停止将所述版本文件发送至所述待升级设备。
  9. 如权利要求6所述的利用组播方式升级版本的装置,其中,所述发送模块包括:
    分片单元,设置为将所述版本文件进行分片,得到多个分片版本文件;
    发送单元,设置为将所述多个分片版本文件以组播方式通过所述组播地址发送至所述待升级设备。
  10. 如权利要求9所述的利用组播方式升级版本的装置,所述发送模块还包括:
    接收单元,设置为接收所述待升级设备发送的文件重传请求报文,所述文件重传请求报文由所述待升级设备检测到接收到的所述分片版本文件存在缺失时生成并发送;
    重传单元,设置为根据所述文件重传请求报文向所述待升级设备重传缺失的所述分片版本文件。
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1~5任一项所述的方法。
PCT/CN2015/085763 2014-12-16 2015-07-31 一种版本升级的方法及装置 WO2016095533A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410784108.4A CN105763350A (zh) 2014-12-16 2014-12-16 一种利用组播方式升级版本的方法及装置
CN201410784108.4 2014-12-16

Publications (1)

Publication Number Publication Date
WO2016095533A1 true WO2016095533A1 (zh) 2016-06-23

Family

ID=56125830

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/085763 WO2016095533A1 (zh) 2014-12-16 2015-07-31 一种版本升级的方法及装置

Country Status (2)

Country Link
CN (1) CN105763350A (zh)
WO (1) WO2016095533A1 (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110474791A (zh) * 2018-05-11 2019-11-19 上海智峥科技有限公司 多核网络设备固件升级方法及其装置
US10932248B2 (en) 2016-09-28 2021-02-23 Huawei Technologies Co., Ltd. Signal transmission method and related device
CN113141267A (zh) * 2020-01-19 2021-07-20 阿里巴巴集团控股有限公司 固件升级、信息处理方法、装置及设备
WO2022179513A1 (zh) * 2021-02-23 2022-09-01 苏州欧普照明有限公司 一种智能设备自动升级方法以及云服务器
CN115174392A (zh) * 2022-09-07 2022-10-11 武汉长光科技有限公司 光网络单元onu的升级方法、服务器和存储介质
CN117459393A (zh) * 2023-12-25 2024-01-26 天地阳光通信科技(北京)有限公司 组网设备升级方法、系统、电子装置及可读存储介质

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106304151B (zh) * 2016-08-30 2020-02-11 新华三技术有限公司 一种版本更新方法和装置
CN106970814B (zh) * 2017-03-31 2020-06-02 Oppo广东移动通信有限公司 软件升级的处理方法、装置及系统
CN107301054B (zh) * 2017-07-14 2021-02-23 杭州敦崇科技股份有限公司 一种基于自组网的软件更新方法
CN109426510B (zh) * 2017-08-16 2021-03-26 北京金山云网络技术有限公司 软件处理方法、装置、电子设备及计算机可读存储介质
CN109992292A (zh) * 2018-01-03 2019-07-09 上海艾拉比智能科技有限公司 一种基于块回写的自适应双向差分算法
CN110795111B (zh) * 2019-09-29 2023-04-18 深圳华臻信息技术有限公司 一种通信设备远程自动升级方法及管理终端
CN112104487B (zh) * 2020-08-31 2023-06-20 北京智芯微电子科技有限公司 物联网终端的远程升级方法、物联网主站及存储介质
CN112328278A (zh) * 2020-10-26 2021-02-05 浙江大华技术股份有限公司 对网络中的设备进行安装升级的方法、平台及存储介质
CN112306511A (zh) * 2020-11-04 2021-02-02 深圳市友华软件科技有限公司 组播升级方法和装置
CN112737847B (zh) * 2020-12-28 2023-02-03 青岛海尔科技有限公司 节点升级方法及装置、存储介质及电子装置
CN116954643B (zh) * 2023-06-02 2024-04-05 深圳市华芯控股有限公司 基于can总线自组网系统的点播及组播固件升级方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996894A (zh) * 2006-12-25 2007-07-11 杭州华为三康技术有限公司 一种嵌入式设备远程批量升级的方法和装置
CN101222363A (zh) * 2008-01-29 2008-07-16 中兴通讯股份有限公司 一种ip接入网关批量升级系统和方法
CN102143508A (zh) * 2010-12-06 2011-08-03 华为终端有限公司 无线中继设备的升级方法和装置
US8036172B1 (en) * 2006-07-17 2011-10-11 Sprint Communications Company L.P. Stateful home agent recovery protocol (SHARP)
CN102395144A (zh) * 2011-11-11 2012-03-28 福建星网锐捷网络有限公司 无线接入点升级方法、系统及设备
CN103209362A (zh) * 2013-04-12 2013-07-17 深圳市共进电子股份有限公司 一种无源光网络设备间多设备之间升级的方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101196823B (zh) * 2007-12-24 2011-04-13 杭州华三通信技术有限公司 一种开放应用架构中软件在线升级的方法、系统及设备
KR20090103637A (ko) * 2008-03-28 2009-10-01 삼성전자주식회사 방송 시스템에서 펌웨어를 업데이트하는 방법과 장치 및 그시스템
CN102104810A (zh) * 2009-12-21 2011-06-22 中兴通讯股份有限公司 无源光网络单元软件版本批量升级方法及系统
CN101951369A (zh) * 2010-09-14 2011-01-19 太仓市同维电子有限公司 基于自动发现的终端批量升级方法及其系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8036172B1 (en) * 2006-07-17 2011-10-11 Sprint Communications Company L.P. Stateful home agent recovery protocol (SHARP)
CN1996894A (zh) * 2006-12-25 2007-07-11 杭州华为三康技术有限公司 一种嵌入式设备远程批量升级的方法和装置
CN101222363A (zh) * 2008-01-29 2008-07-16 中兴通讯股份有限公司 一种ip接入网关批量升级系统和方法
CN102143508A (zh) * 2010-12-06 2011-08-03 华为终端有限公司 无线中继设备的升级方法和装置
CN102395144A (zh) * 2011-11-11 2012-03-28 福建星网锐捷网络有限公司 无线接入点升级方法、系统及设备
CN103209362A (zh) * 2013-04-12 2013-07-17 深圳市共进电子股份有限公司 一种无源光网络设备间多设备之间升级的方法

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10932248B2 (en) 2016-09-28 2021-02-23 Huawei Technologies Co., Ltd. Signal transmission method and related device
CN110474791A (zh) * 2018-05-11 2019-11-19 上海智峥科技有限公司 多核网络设备固件升级方法及其装置
CN113141267A (zh) * 2020-01-19 2021-07-20 阿里巴巴集团控股有限公司 固件升级、信息处理方法、装置及设备
WO2022179513A1 (zh) * 2021-02-23 2022-09-01 苏州欧普照明有限公司 一种智能设备自动升级方法以及云服务器
CN115174392A (zh) * 2022-09-07 2022-10-11 武汉长光科技有限公司 光网络单元onu的升级方法、服务器和存储介质
CN115174392B (zh) * 2022-09-07 2023-01-31 武汉长光科技有限公司 光网络单元onu的升级方法、服务器和存储介质
CN117459393A (zh) * 2023-12-25 2024-01-26 天地阳光通信科技(北京)有限公司 组网设备升级方法、系统、电子装置及可读存储介质
CN117459393B (zh) * 2023-12-25 2024-03-19 天地阳光通信科技(北京)有限公司 组网设备升级方法、系统、电子装置及可读存储介质

Also Published As

Publication number Publication date
CN105763350A (zh) 2016-07-13

Similar Documents

Publication Publication Date Title
WO2016095533A1 (zh) 一种版本升级的方法及装置
RU2520385C2 (ru) Способ и система для обновления сетевого устройства
US10849008B2 (en) Processing method and device for radio bearer for transmitting data stream
US8112531B2 (en) Grouping of session objects
CA2967358C (en) Auto-configuration of wireless network extender
BR112020021871A2 (pt) método para sinalização de serviço de difusão
US7764683B2 (en) Reliable multicast operating system (OS) provisioning
CN112449315B (zh) 一种网络切片的管理方法及相关装置
CN106233815B (zh) 用于通过一个或多个流为一个或多个用户设备提供服务的系统及方法
WO2016078431A1 (zh) 策略文件同步管理的方法及策略同步服务器和管理设备
WO2010031304A1 (zh) 一种组播升级文件的方法、装置和系统
WO2015143794A1 (zh) 制作、升级方法及服务器、终端、升级系统和存储介质
CN110337071B (zh) 一种基于LoRaWAN实现分组广播的方法及系统
WO2023005410A1 (zh) 信息同步方法及系统、存储介质、电子装置
US10178085B2 (en) Establishing a secure file transfer session for secure file transfer to a demarcation device
WO2010031260A1 (zh) 一种处理数据的方法、系统和节点设备
WO2018196463A1 (zh) 网络接入方法、装置、存储介质及处理器
US10516502B2 (en) File repair method, related apparatus, and system
CN101409704B (zh) 组播成员管理协议的处理方法及装置
US10931529B2 (en) Terminal device management method, server, and terminal device for managing terminal devices in local area network
WO2020135700A1 (zh) 数据的收发、波长的配置方法及装置
CN108834081B (zh) 一种组播业务处理方法及ap
WO2018219305A1 (zh) 报文的重传方法及装置
US8700900B2 (en) Communicating admission decisions and status information to a client
CN113132986B (zh) 基于DPP协议实现WiFi的mesh网络的实现方法及装置、存储介质

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

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

Country of ref document: EP

Kind code of ref document: A1