WO2017124741A1 - Method and device for synchronizing apparatus version - Google Patents

Method and device for synchronizing apparatus version Download PDF

Info

Publication number
WO2017124741A1
WO2017124741A1 PCT/CN2016/096233 CN2016096233W WO2017124741A1 WO 2017124741 A1 WO2017124741 A1 WO 2017124741A1 CN 2016096233 W CN2016096233 W CN 2016096233W WO 2017124741 A1 WO2017124741 A1 WO 2017124741A1
Authority
WO
WIPO (PCT)
Prior art keywords
version
upgrade
message
upgraded
module
Prior art date
Application number
PCT/CN2016/096233
Other languages
French (fr)
Chinese (zh)
Inventor
羊兆磊
杨健
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017124741A1 publication Critical patent/WO2017124741A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history

Definitions

  • This document refers to, but is not limited to, the field of communications, and more particularly to a device version synchronization method and apparatus.
  • Version upgrade refers to the improvement of the vulnerability of the operating system or the pre-software version, or the addition of new application functions to the software, so that the software is more perfect, that is, the version is upgraded, or the error information such as bugs in the original system is modified. Wait.
  • the version upgrade method includes: web (World Wide Web) page upgrade, installation CD, remote network management upgrade, and universal serial bus (USB, Universal Serial Bus) upgrade, etc., the following one for each version upgrade method An introduction:
  • Web page upgrade Communication network devices (such as home gateways) generally provide a local configuration interface.
  • the configuration interface has a version upgrade function.
  • the device manufacturer provides the version.
  • the installer configures the relevant version path through the web interface to upgrade.
  • Installation CD The version file is directly provided on the installation CD. After the terminal and network device are connected, upgrade the network device by running the installation CD in the terminal.
  • Remote network management upgrade Generally, the tr069 protocol is configured by the official to configure the version information on the network management system.
  • the remote procedure call protocol (Remote Procedure Call Protocol) is executed. After the remote download (download), the version is upgraded.
  • USB upgrade Provide the version in the U disk and other devices, and then insert the U disk into the network device to automatically upgrade the version.
  • USB upgrade there are currently many devices in a network. If you upgrade the device in the above manner, you need to manually set the device to upgrade. The operation is more complicated and time consuming.
  • the embodiment of the invention provides a device version synchronization method and device, which can be implemented simply Multiple devices in the network are upgraded.
  • a device version synchronization method including: after a version upgrade, sending a message that the version upgrade is successful to an associated device; receiving a version request message; and using version information for upgrading the version Send to the device that sent the version request message.
  • the version upgrade success message carries the version number of the current version upgrade.
  • the associated device is in the same multicast group as the device that is successfully upgraded, and the message that the version is successfully upgraded is sent to the associated device, and the message that the version is successfully upgraded is sent to the same multicast group through the multicast message. device of.
  • the message that the version upgrade succeeds includes: an Internet Protocol IP address and port number interconnected between the multicast networks, a serial number of the device, an organization unique identifier OUI of the device, and a version number of the device.
  • the associated device is the same as the device model that is currently upgraded successfully.
  • Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
  • a device version synchronization apparatus including:
  • the first sending module is configured to send a message that the version upgrade succeeds to the associated device after the version is upgraded;
  • a receiving module configured to receive a version request message
  • the second sending module is configured to send the version information used by the version upgrade to the device that sends the version request.
  • the version upgrade success message carries the version number of the current version upgrade.
  • the associated device is in the same multicast group as the device that is successfully upgraded.
  • the first sending module is configured to: after the version is upgraded, the message that the version is successfully upgraded is sent to the same multicast through the multicast message. The devices within the group.
  • the message that the version upgrade succeeds includes: an Internet Protocol IP address and port number interconnected between the multicast networks, a serial number of the device, an organization unique identifier OUI of the device, and a version number of the device.
  • the associated device is the same as the device model that is currently upgraded successfully.
  • the solution provided by the embodiment of the present invention after the device version is successfully upgraded, informs the other device that the version upgrade is successful, so that other devices can obtain the version information from the device that has successfully upgraded the current version, and complete the version synchronization upgrade, thereby simply implementing the Multiple devices in the network are upgraded.
  • FIG. 1 is a flowchart of a device version synchronization method according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic diagram of a network networking in Embodiment 2 of the present invention.
  • FIG. 3 is a structural diagram of a device module according to Embodiment 2 of the present invention.
  • FIG. 5 is a structural block diagram of a device version synchronization apparatus according to Embodiment 3 of the present invention.
  • the embodiment of the present invention provides a device version synchronization method and device.
  • the embodiments of the present invention are further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
  • FIG. 1 is a flowchart of a device version synchronization method according to Embodiment 1 of the present invention. As shown in FIG. 1 , the method includes the following steps. :
  • Step 101 After the version upgrade is performed, the message that the version upgrade succeeds is sent to the associated device.
  • the version upgraded version carries the version number of the version upgrade (that is, the upgraded version number). Based on this, the associated device parses the version number from the message after receiving the message that the version upgrade succeeds. Compare the version number with its own version number; determine its own version number If the version number is lower than the parsed version, request to obtain the version information, and then use the obtained version information for version upgrade.
  • the associated device is a device that is in the same multicast group as the device that is successfully upgraded, and the message that the version is successfully upgraded is sent to the associated device, and the message that the version upgrade succeeds is sent through the multicast message.
  • the device in the same multicast group is the same as the device with the current upgrade. Based on this, the device of the same model can automatically synchronize the version of the upgraded device.
  • the message may include:
  • IP Internet Protocol
  • OUI Organizationally Unique Identifier
  • Step 102 Receive a version request message.
  • Step 103 Send the version information used by the version upgrade to the device that sends the version request message.
  • the version information includes the version file used for the version upgrade.
  • the device that sends the version request message verifies the validity of the version information, and then performs version upgrade according to the version information.
  • This embodiment further describes the device version synchronization method provided by the present invention by disclosing more technical features.
  • the embodiment provides a synchronization mechanism, so that the device can automatically synchronize the upgraded version in the same network.
  • all devices in the embodiment have the same model.
  • FIG. 2 is a schematic diagram of network networking in Embodiment 2 of the present invention.
  • multiple switches are connected to one router. The same is true.
  • Other switches B, C, D, and E can automatically discover the difference between the version and the version of switch A, and trigger the version synchronization upgrade.
  • Maintenance personnel only need to upgrade one device, its His equipment is automatically synchronized and upgrades, significantly reducing maintenance costs.
  • the device in this embodiment may also be a power network bridge, and the power network bridge, which is also called a power cat, appears in pairs in the application.
  • the user or Maintenance personnel upgrade one of the power cats, and the other power cat can also automatically upgrade.
  • FIG. 3 is a structural diagram of a device module according to Embodiment 2 of the present invention; as shown in FIG. 3, the device includes an upgrade module, a version update notification module, a version information receiving module, a version download module, and an http (HyperText Transfer Protocol).
  • Server (service) module httpserver module among them,
  • the upgrade module is set to verify the validity of the version and upgrade the version.
  • the version update notification module is configured to use the multicast to send the notification information after the device is upgraded, where the notification information includes the upgraded version number, the ip address, the port, and the like, and the following version updates the notification message format:
  • the version information receiving module is configured to receive the version update notification information issued by another device, and if the received version number is newer than the version number of the device, the version synchronization upgrade is performed;
  • the version download module is set to download the latest version to the upgraded device. After the download is successful, notify the upgrade module to upgrade the version.
  • the httpserver module is set to download versions to other devices for this device.
  • FIG. 4 is a flow chart of version synchronization between devices according to Embodiment 2 of the present invention. As shown in FIG. 4, the process mainly includes the following processing:
  • Step 1 the medium (web, tr069, tr064, usb) triggers the device A upgrade;
  • Step 2 After the device A is upgraded, the upgrade module of the device A notifies the version update notification module;
  • Step 3 After receiving the information that the version upgrade is successful, the version update notification module of the device A sends the multicast information to notify other devices that the version is updated.
  • Step 4 The version information receiving module of the device B captures the device update information, and parses the version information (version number);
  • Step 5 the device B compares the parsed version information with the existing version information, and if they are consistent, the process ends; if not, the version download module is notified, and step 6 is performed;
  • Step 6 the version download module is connected to the http (HyperText Transfer Protocol) server (service) module of the device A, and the version is downloaded;
  • http HyperText Transfer Protocol
  • Step 7 the httpserver module of device A, transmits the version file to device B;
  • Step 8 After the version downloading module of the device B is successfully downloaded, the version upgrade module is notified, and the version upgrade module verifies and upgrades the version. After the upgrade is successful, step 2 is performed.
  • the above method can be implemented by each device in the network that requires a version upgrade.
  • FIG. 5 It is a structural block diagram of the device version synchronization device provided by Embodiment 3 of the present invention. As shown in FIG. 5, the device 50 includes the following components:
  • the first sending module 51 is configured to send a message that the version upgrade succeeds to the associated device after the version upgrade is performed;
  • the version upgraded message carries the version number of the version upgrade.
  • the successful version upgrade message includes: the IP address and port number of the interconnection between the multicast networks, the serial number of the device, and the organization unique identifier of the device. OUI and the version number of the device.
  • the receiving module 52 is configured to receive a version request message.
  • the second sending module 53 is configured to send the version information used for the version upgrade to the device that sends the version request.
  • the associated device is a device that is in the same multicast group as the device that is successfully upgraded.
  • the first sending module 51 is configured to send the message that the version upgrade succeeds to the multicast message after the version is upgraded. Devices in the same multicast group.
  • the associated device is the same as the device model that is successfully upgraded.
  • the solution provided by the embodiment of the present invention after the device version is successfully upgraded, informs the other device that the version upgrade is successful, so that other devices can obtain the version information from the device that has successfully upgraded the current version, and complete the version synchronization upgrade, thereby simply implementing the Multiple devices in the network are upgraded.
  • Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
  • each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program in a storage and a memory by a processor. / instruction to achieve its corresponding function.
  • the invention is not limited to any specific form of combination of hardware and software.
  • the above technical solution simply implements upgrading a plurality of devices in the network.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided are a method and device for synchronizing an apparatus version. The method for synchronizing an apparatus version comprises: after performing a version upgrade, transmitting, to an associated apparatus, a version upgrade success message; receiving a version request message; and transmitting version information used for the version upgrade to an apparatus transmitting the version request message.

Description

一种设备版本同步方法及装置Device version synchronization method and device 技术领域Technical field
本文涉及但不限于通讯领域,尤指一种设备版本同步方法及装置。This document refers to, but is not limited to, the field of communications, and more particularly to a device version synchronization method and apparatus.
背景技术Background technique
版本升级是指对操作系统或软件前版本的漏洞进行完善,或者对软件添加新的应用功能的更新,使软件更加完善,即版本升级,或把原先系统中存在的bug等错误信息进行修改等等。其中,版本升级方法包括:万维网(web,World Wide Web)页面升级、安装光盘、远程网管升级以及通用串行总线(USB,Universal Serial Bus)升级等等,以下对每一种版本升级方法进行一一介绍:Version upgrade refers to the improvement of the vulnerability of the operating system or the pre-software version, or the addition of new application functions to the software, so that the software is more perfect, that is, the version is upgraded, or the error information such as bugs in the original system is modified. Wait. Among them, the version upgrade method includes: web (World Wide Web) page upgrade, installation CD, remote network management upgrade, and universal serial bus (USB, Universal Serial Bus) upgrade, etc., the following one for each version upgrade method An introduction:
web页面升级:通信网络设备(比如家庭网关)一般会提供本地的配置界面,配置界面里会有版本升级功能,设备厂商提供版本,安装人员通过web界面配置相关的版本路径进行升级。Web page upgrade: Communication network devices (such as home gateways) generally provide a local configuration interface. The configuration interface has a version upgrade function. The device manufacturer provides the version. The installer configures the relevant version path through the web interface to upgrade.
安装光盘:版本文件直接提供在安装光盘里,终端和网络设备连接好后,通过在终端运行安装光盘从而升级网络设备。Installation CD: The version file is directly provided on the installation CD. After the terminal and network device are connected, upgrade the network device by running the installation CD in the terminal.
远程网管升级:一般是tr069协议,由官方人员在网管上配置好版本信息,执行远程RPC(Remote Procedure Call Protocol,远程过程调用协议),远程下载(download)后进行版本升级。Remote network management upgrade: Generally, the tr069 protocol is configured by the official to configure the version information on the network management system. The remote procedure call protocol (Remote Procedure Call Protocol) is executed. After the remote download (download), the version is upgraded.
USB升级:在U盘等设备中提供版本,然后将U盘插入网络设备自动进行版本升级。然而,目前在一个网络中会有很多个设备,如果采用上述方式对设备进行版本升级,则需要手动设置逐个设备去升级,操作较为复杂,且较为耗时。USB upgrade: Provide the version in the U disk and other devices, and then insert the U disk into the network device to automatically upgrade the version. However, there are currently many devices in a network. If you upgrade the device in the above manner, you need to manually set the device to upgrade. The operation is more complicated and time consuming.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种设备版本同步方法及装置,能够简单地实现对网 络中的多个设备进行升级。The embodiment of the invention provides a device version synchronization method and device, which can be implemented simply Multiple devices in the network are upgraded.
根据本发明实施例的一个方面,提供了一种设备版本同步方法,包括:在进行版本升级后,将版本升级成功的消息发送给关联设备;接收版本请求消息;将版本升级所使用的版本信息发送给发送版本请求消息的设备。According to an aspect of the embodiments of the present invention, a device version synchronization method is provided, including: after a version upgrade, sending a message that the version upgrade is successful to an associated device; receiving a version request message; and using version information for upgrading the version Send to the device that sent the version request message.
可选的,版本升级成功的消息中携带有本次版本升级的版本号。Optionally, the version upgrade success message carries the version number of the current version upgrade.
可选的,关联设备为与当前升级成功的设备处于同一组播组的设备,将版本升级成功的消息发送给关联设备包括:将版本升级成功的消息通过组播消息发送给同一组播组内的设备。Optionally, the associated device is in the same multicast group as the device that is successfully upgraded, and the message that the version is successfully upgraded is sent to the associated device, and the message that the version is successfully upgraded is sent to the same multicast group through the multicast message. device of.
可选的,版本升级成功的消息中包括:组播网络之间互连的互联网协议IP地址和端口号、设备的序列号、设备的组织唯一标识符OUI以及设备的版本号。Optionally, the message that the version upgrade succeeds includes: an Internet Protocol IP address and port number interconnected between the multicast networks, a serial number of the device, an organization unique identifier OUI of the device, and a version number of the device.
可选的,关联设备与当前升级成功的设备型号相同。Optionally, the associated device is the same as the device model that is currently upgraded successfully.
本发明实施例还提出了一种计算机可读存储介质,存储有计算机可执行指令,计算机可执行指令用于执行上述描述的任意一个方法。Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
根据本发明实施例的另一个方面,提供了一种设备版本同步装置,包括:According to another aspect of the embodiments of the present invention, a device version synchronization apparatus is provided, including:
第一发送模块,设置为在进行版本升级后,将版本升级成功的消息发送给关联设备;The first sending module is configured to send a message that the version upgrade succeeds to the associated device after the version is upgraded;
接收模块,设置为接收版本请求消息;a receiving module, configured to receive a version request message;
第二发送模块,设置为将版本升级所使用的版本信息发送给发送版本请求的设备。The second sending module is configured to send the version information used by the version upgrade to the device that sends the version request.
可选的,版本升级成功的消息中携带有本次版本升级的版本号。Optionally, the version upgrade success message carries the version number of the current version upgrade.
可选的,关联设备为与当前升级成功的设备处于同一组播组的设备,第一发送模块是设置为:在进行版本升级后,将版本升级成功的消息通过组播消息发送给同一组播组内的设备。Optionally, the associated device is in the same multicast group as the device that is successfully upgraded. The first sending module is configured to: after the version is upgraded, the message that the version is successfully upgraded is sent to the same multicast through the multicast message. The devices within the group.
可选的,版本升级成功的消息中包括:组播网络之间互连的互联网协议IP地址和端口号、设备的序列号、设备的组织唯一标识符OUI以及设备的版本号。 Optionally, the message that the version upgrade succeeds includes: an Internet Protocol IP address and port number interconnected between the multicast networks, a serial number of the device, an organization unique identifier OUI of the device, and a version number of the device.
可选的,关联设备与当前升级成功的设备型号相同。Optionally, the associated device is the same as the device model that is currently upgraded successfully.
本发明实施例有益效果如下:The beneficial effects of the embodiments of the present invention are as follows:
本发明实施例提供的方案,在设备版本升级成功后,告知其他设备版本升级成功的消息,使得其他设备可以从当前版本升级成功的设备处获取版本信息完成版本同步升级,从而简单地实现了对网络中的多个设备进行升级。The solution provided by the embodiment of the present invention, after the device version is successfully upgraded, informs the other device that the version upgrade is successful, so that other devices can obtain the version information from the device that has successfully upgraded the current version, and complete the version synchronization upgrade, thereby simply implementing the Multiple devices in the network are upgraded.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1是本发明实施例1提供的设备版本同步方法的流程图;1 is a flowchart of a device version synchronization method according to Embodiment 1 of the present invention;
图2是本发明实施例2中的网络组网示意图;2 is a schematic diagram of a network networking in Embodiment 2 of the present invention;
图3是本发明实施例2的设备模块结构图;3 is a structural diagram of a device module according to Embodiment 2 of the present invention;
图4是本发明实施例2提供的设备间版本同步流程图;4 is a flowchart of synchronization between devices according to Embodiment 2 of the present invention;
图5是本发明实施例3提供的设备版本同步装置的结构框图。FIG. 5 is a structural block diagram of a device version synchronization apparatus according to Embodiment 3 of the present invention.
本发明的实施方式Embodiments of the invention
为了简单地实现对网络中的多个设备进行升级,本发明实施例提供了一种设备版本同步方法及装置,以下结合附图以及实施例,对本发明实施例进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。The embodiment of the present invention provides a device version synchronization method and device. The embodiments of the present invention are further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
实施例1Example 1
本实施例提供了一种设备版本同步方法,该方法可以应用于设备一侧,图1是本发明实施例1提供的设备版本同步方法的流程图,如图1所示,该方法包括如下步骤:This embodiment provides a device version synchronization method, which can be applied to the device side. FIG. 1 is a flowchart of a device version synchronization method according to Embodiment 1 of the present invention. As shown in FIG. 1 , the method includes the following steps. :
步骤101:在进行版本升级后,将版本升级成功的消息发送给关联设备;Step 101: After the version upgrade is performed, the message that the version upgrade succeeds is sent to the associated device.
其中,版本升级成功的消息中携带有本次版本升级的版本号(即升级后的版本号),基于此,关联设备在接收到版本升级成功的消息后,从该消息中解析出版本号,将该版本号与自身的版本号进行对比;在确定自身版本号 低于解析出的版本号本的情况下,请求获取版本信息,继而使用获取到的版本信息进行版本升级。The version upgraded version carries the version number of the version upgrade (that is, the upgraded version number). Based on this, the associated device parses the version number from the message after receiving the message that the version upgrade succeeds. Compare the version number with its own version number; determine its own version number If the version number is lower than the parsed version, request to obtain the version information, and then use the obtained version information for version upgrade.
在本实施例中,关联设备为与当前升级成功的设备处于同一组播组的设备,基于此,将版本升级成功的消息发送给关联设备,包括:将版本升级成功的消息通过组播消息发送给同一组播组内的设备,此外,关联设备与当前升级成功的设备型号相同,基于此,可以使得相同型号的设备能够自动同步已升级的设备的版本。In this embodiment, the associated device is a device that is in the same multicast group as the device that is successfully upgraded, and the message that the version is successfully upgraded is sent to the associated device, and the message that the version upgrade succeeds is sent through the multicast message. The device in the same multicast group is the same as the device with the current upgrade. Based on this, the device of the same model can automatically synchronize the version of the upgraded device.
可选的,在本实施例中版本升级成功的消息中可以包括:Optionally, in the message that the version upgrade succeeds in this embodiment, the message may include:
组播网络之间互连的互联网协议(IP,Internet Protocol)地址和端口号、设备的序列号、设备的组织唯一标识符(OUI,Organizationally Unique Identifier)以及设备的版本号。The Internet Protocol (IP) address and port number, the serial number of the device, the Organizationally Unique Identifier (OUI), and the version number of the device.
步骤102:接收版本请求消息;Step 102: Receive a version request message.
步骤103:将版本升级所使用的版本信息发送给发送版本请求消息的设备。Step 103: Send the version information used by the version upgrade to the device that sends the version request message.
本步骤中,版本信息包括版本升级所使用的版本文件。In this step, the version information includes the version file used for the version upgrade.
本步骤中,发送版本请求消息的设备接收到版本信息后,验证版本信息的合法性后,根据版本信息进行版本升级。In this step, after receiving the version information, the device that sends the version request message verifies the validity of the version information, and then performs version upgrade according to the version information.
实施例2Example 2
本实施通过公开更多的技术特征来对本发明提供的设备版本同步方法进行进一步的说明。This embodiment further describes the device version synchronization method provided by the present invention by disclosing more technical features.
本实施例提供一种同步机制使得在同一个网络中,设备能够自动同步升级版本的措施,可选的,在本实施例中所有设备的型号相同。The embodiment provides a synchronization mechanism, so that the device can automatically synchronize the upgraded version in the same network. Optionally, all devices in the embodiment have the same model.
在本实施例中,一个网络环境中有多个相同型号的设备,图2是本发明实施例2中的网络组网示意图,如图2所示,一个路由器下挂多个交换机,这些交换机型号均相同,首先可以通过web页面、网管等升级其中一台交换机(比如交换机A),其他交换机B、C、D、E能够自动发现和交换机A的版本型号的差异,并触发版本同步升级。维护人员只需要升级一台设备,其 他设备能够自动同步升级,大大减少维护成本。In this embodiment, there are multiple devices of the same model in a network environment. FIG. 2 is a schematic diagram of network networking in Embodiment 2 of the present invention. As shown in FIG. 2, multiple switches are connected to one router. The same is true. First, you can upgrade one of the switches (such as switch A) through web pages and network management. Other switches B, C, D, and E can automatically discover the difference between the version and the version of switch A, and trigger the version synchronization upgrade. Maintenance personnel only need to upgrade one device, its His equipment is automatically synchronized and upgrades, significantly reducing maintenance costs.
可选的,本实施例中的设备还可以是电力网络桥接器,电力网络桥接器又称电力猫,在应用中都是成对出现的,按照本实施例提供的设备版本同步方法,用户或者维护人员升级其中一台电力猫,另一台电力猫也能够自动同步升级。Optionally, the device in this embodiment may also be a power network bridge, and the power network bridge, which is also called a power cat, appears in pairs in the application. According to the device version synchronization method provided in this embodiment, the user or Maintenance personnel upgrade one of the power cats, and the other power cat can also automatically upgrade.
图3是本发明实施例2的设备模块结构图;如图3所示,设备包括升级模块、版本更新通知模块、版本信息接收模块、版本下载模块以及http(HyperText Transfer Protocol,超文本传输协议)server(服务)模块httpserver模块。其中,3 is a structural diagram of a device module according to Embodiment 2 of the present invention; as shown in FIG. 3, the device includes an upgrade module, a version update notification module, a version information receiving module, a version download module, and an http (HyperText Transfer Protocol). Server (service) module httpserver module. among them,
升级模块设置为验证版本合法性,进行版本升级;The upgrade module is set to verify the validity of the version and upgrade the version.
版本更新通知模块设置为在设备升级后,利用组播发送通知信息,其中,通知信息中包括升级后的版本号、ip地址、端口等,如下版本更新通知信息的报文格式:The version update notification module is configured to use the multicast to send the notification information after the device is upgraded, where the notification information includes the upgraded version number, the ip address, the port, and the like, and the following version updates the notification message format:
NOTIFY*HTTP/1.1NOTIFY*HTTP/1.1
Host:239.250.250.245:1800       //组播IP和端口,暂定Host: 239.250.250.245:1800 //Multicast IP and port, tentative
SN:SerialNumber                   //设备的序列号SN: SerialNumber // serial number of the device
OUI:ManuFacturerOui              //设备的ouiOUI: ManuFacturerOui // equipment oui
SV:SoftwareVer                    //设备的版本号SV: SoftwareVer // the version number of the device
ASV:AdditionalSoftwareVersion  //设备的扩展版本号ASV:AdditionalSoftwareVersion //The extended version number of the device
……                                 //可扩展信息...... //Extensible information
版本信息接收模块设置为接收另一个设备发布的版本更新通知信息,如果接收到的版本号比本设备的版本号新,则进行版本同步升级;The version information receiving module is configured to receive the version update notification information issued by another device, and if the received version number is newer than the version number of the device, the version synchronization upgrade is performed;
版本下载模块设置为向已经升级的设备下载最新版本,下载成功后通知升级模块进行版本升级;The version download module is set to download the latest version to the upgraded device. After the download is successful, notify the upgrade module to upgrade the version.
httpserver模块设置为为其他设备向本设备下载版本。 The httpserver module is set to download versions to other devices for this device.
图4是本发明实施例2提供的设备间版本同步流程图,如图4所示,该流程主要包括如下处理:4 is a flow chart of version synchronization between devices according to Embodiment 2 of the present invention. As shown in FIG. 4, the process mainly includes the following processing:
步骤1,媒介(web、tr069、tr064、usb)触发设备A升级;Step 1, the medium (web, tr069, tr064, usb) triggers the device A upgrade;
步骤2,设备A升级成后,设备A的升级模块通知版本更新通知模块;Step 2: After the device A is upgraded, the upgrade module of the device A notifies the version update notification module;
步骤3,设备A的版本更新通知模块收到版本升级成功的信息后,发送组播信息,告诉其他设备版本有更新;Step 3: After receiving the information that the version upgrade is successful, the version update notification module of the device A sends the multicast information to notify other devices that the version is updated.
步骤4,设备B的版本信息接收模块捕捉到设备更新信息,解析出版本信息(版本号);Step 4: The version information receiving module of the device B captures the device update information, and parses the version information (version number);
步骤5,设备B将解析出的版本信息和已有的版本信息进行比较,如果一致则结束;如果不一致,通知版本下载模块,执行步骤6;Step 5, the device B compares the parsed version information with the existing version information, and if they are consistent, the process ends; if not, the version download module is notified, and step 6 is performed;
步骤6,版本下载模块连接设备A的http(HyperText Transfer Protocol,超文本传输协议)server(服务)模块,进行版本下载;Step 6, the version download module is connected to the http (HyperText Transfer Protocol) server (service) module of the device A, and the version is downloaded;
步骤7,设备A的httpserver模块,将版本文件传输给设备B;Step 7, the httpserver module of device A, transmits the version file to device B;
步骤8,设备B的版本下载模块下载版本成功后,通知版本升级模块,由版本升级模块对版本进行校验并升级,升级成功后,执行上述步骤2。Step 8: After the version downloading module of the device B is successfully downloaded, the version upgrade module is notified, and the version upgrade module verifies and upgrades the version. After the upgrade is successful, step 2 is performed.
上述方法可以通过网络中每一个需要版本升级的设备实现。The above method can be implemented by each device in the network that requires a version upgrade.
实施例3Example 3
本实施例提供了一种设备版本同步装置,该装置设置为实现上述实施例1以及实施例2提供的设备版本同步方法,该装置可以设置于网络中每一个需要版本升级的设备上,图5是本发明实施例3提供的设备版本同步装置的结构框图,如图5所示,该装置50包括如下组成部分:This embodiment provides a device version synchronization device, which is configured to implement the device version synchronization method provided in Embodiment 1 and Embodiment 2, and the device can be set on each device in the network that needs to be upgraded, Figure 5 It is a structural block diagram of the device version synchronization device provided by Embodiment 3 of the present invention. As shown in FIG. 5, the device 50 includes the following components:
第一发送模块51,设置为在进行版本升级后,将版本升级成功的消息发送给关联设备;The first sending module 51 is configured to send a message that the version upgrade succeeds to the associated device after the version upgrade is performed;
其中,版本升级成功的消息中携带有本次版本升级的版本号;版本升级成功的消息中包括:组播网络之间互连的IP地址和端口号、设备的序列号、设备的组织唯一标识符OUI以及设备的版本号。The version upgraded message carries the version number of the version upgrade. The successful version upgrade message includes: the IP address and port number of the interconnection between the multicast networks, the serial number of the device, and the organization unique identifier of the device. OUI and the version number of the device.
接收模块52,设置为接收版本请求消息; The receiving module 52 is configured to receive a version request message.
第二发送模块53,设置为将版本升级所使用的版本信息发送给发送版本请求的设备。The second sending module 53 is configured to send the version information used for the version upgrade to the device that sends the version request.
其中,关联设备为与当前升级成功的设备处于同一组播组的设备,基于此,上述第一发送模块51是设置为:在进行版本升级后,将版本升级成功的消息通过组播消息发送给同一组播组内的设备。The associated device is a device that is in the same multicast group as the device that is successfully upgraded. The first sending module 51 is configured to send the message that the version upgrade succeeds to the multicast message after the version is upgraded. Devices in the same multicast group.
可选的,在本实施例中,关联设备与当前升级成功的设备型号相同。Optionally, in this embodiment, the associated device is the same as the device model that is successfully upgraded.
本发明实施例提供的方案,在设备版本升级成功后,告知其他设备版本升级成功的消息,使得其他设备可以从当前版本升级成功的设备处获取版本信息完成版本同步升级,从而简单地实现了对网络中的多个设备进行升级。The solution provided by the embodiment of the present invention, after the device version is successfully upgraded, informs the other device that the version upgrade is successful, so that other devices can obtain the version information from the device that has successfully upgraded the current version, and complete the version synchronization upgrade, thereby simply implementing the Multiple devices in the network are upgraded.
本发明实施例还提出了一种计算机可读存储介质,存储有计算机可执行指令,计算机可执行指令用于执行上述描述的任意一个方法。Embodiments of the present invention also provide a computer readable storage medium storing computer executable instructions for performing any of the methods described above.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储与存储器中的程序/指令来实现其相应功能。本发明不限于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program in a storage and a memory by a processor. / instruction to achieve its corresponding function. The invention is not limited to any specific form of combination of hardware and software.
尽管为示例目的,已经公开了本发明的可选实施例,本领域的技术人员将意识到一种或多种改进、增加和取代也是可能的,因此,本发明的保护范围应当不限于上述实施例。Although alternative embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that one or more modifications, additions and substitutions are also possible. Therefore, the scope of the present invention should not be limited to the implementation described above. example.
工业实用性Industrial applicability
上述技术方案简单地实现了对网络中的多个设备进行升级。 The above technical solution simply implements upgrading a plurality of devices in the network.

Claims (10)

  1. 一种设备版本同步方法,包括:A device version synchronization method includes:
    在进行版本升级后,将版本升级成功的消息发送给关联设备;After the version is upgraded, the message that the version upgrade succeeds is sent to the associated device.
    接收版本请求消息;Receiving a version request message;
    将版本升级所使用的版本信息发送给发送所述版本请求消息的设备。The version information used by the version upgrade is sent to the device that sent the version request message.
  2. 根据权利要求1所述的方法,其中,所述版本升级成功的消息中携带有本次版本升级的版本号。The method according to claim 1, wherein the version upgrade success message carries the version number of the current version upgrade.
  3. 根据权利要求1所述的方法,其中,所述关联设备为与当前升级成功的设备处于同一组播组的设备,所述将版本升级成功的消息发送给关联设备包括:The method of claim 1, wherein the associated device is a device that is in the same multicast group as the device that is successfully upgraded, and the sending the message that the version is successfully upgraded to the associated device includes:
    将版本升级成功的消息通过组播消息发送给同一组播组内的设备。The message that the version upgrade succeeds is sent to the device in the same multicast group through the multicast message.
  4. 根据权利要求1所述的方法,其中,所述版本升级成功的消息中包括:The method of claim 1, wherein the message that the version upgrade succeeds includes:
    组播网络之间互连的互联网协议IP地址和端口号、设备的序列号、设备的组织唯一标识符OUI以及设备的版本号。The Internet Protocol IP address and port number, the serial number of the device, the organization unique identifier OUI of the device, and the version number of the device.
  5. 根据权利要求1至4任意一项所述的方法,其中,所述关联设备与当前升级成功的设备型号相同。The method according to any one of claims 1 to 4, wherein the associated device is the same as the device model currently successfully upgraded.
  6. 一种设备版本同步装置,包括:A device version synchronization device includes:
    第一发送模块,设置为在进行版本升级后,将版本升级成功的消息发送给关联设备;The first sending module is configured to send a message that the version upgrade succeeds to the associated device after the version is upgraded;
    接收模块,设置为接收版本请求消息;a receiving module, configured to receive a version request message;
    第二发送模块,设置为将版本升级所使用的版本信息发送给发送所述版本请求的设备。The second sending module is configured to send version information used by the version upgrade to the device that sends the version request.
  7. 根据权利要求6所述的装置,其中,所述版本升级成功的消息中携带有本次版本升级的版本号。The device according to claim 6, wherein the version upgrade success message carries the version number of the current version upgrade.
  8. 根据权利要求6所述的装置,其中,所述关联设备为与当前升级成功 的设备处于同一组播组的设备,所述第一发送模块是设置为:The apparatus of claim 6, wherein the associated device is successfully upgraded with the current one The device is in the same multicast group, and the first sending module is set to:
    在进行版本升级后,将版本升级成功的消息通过组播消息发送给同一组播组内的设备。After the version is upgraded, the message that the version is successfully upgraded is sent to the devices in the same multicast group through multicast messages.
  9. 根据权利要求6所述的装置,其中,所述版本升级成功的消息中包括:The apparatus according to claim 6, wherein the message that the version upgrade succeeds includes:
    组播网络之间互连的互联网协议IP地址和端口号、设备的序列号、设备的组织唯一标识符OUI以及设备的版本号。The Internet Protocol IP address and port number, the serial number of the device, the organization unique identifier OUI of the device, and the version number of the device.
  10. 根据权利要求6至9任意一项所述的装置,其中,所述关联设备与当前升级成功的设备型号相同。 The apparatus according to any one of claims 6 to 9, wherein the associated device is the same as the device model in which the current upgrade is successful.
PCT/CN2016/096233 2016-01-18 2016-08-22 Method and device for synchronizing apparatus version WO2017124741A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610030431.1 2016-01-18
CN201610030431.1A CN106982130A (en) 2016-01-18 2016-01-18 A kind of device version synchronous method and device

Publications (1)

Publication Number Publication Date
WO2017124741A1 true WO2017124741A1 (en) 2017-07-27

Family

ID=59340210

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/096233 WO2017124741A1 (en) 2016-01-18 2016-08-22 Method and device for synchronizing apparatus version

Country Status (2)

Country Link
CN (1) CN106982130A (en)
WO (1) WO2017124741A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109358876A (en) * 2018-09-28 2019-02-19 联想(北京)有限公司 A kind of version synchronization method and device, equipment, storage medium
CN110489147A (en) * 2019-08-15 2019-11-22 深圳市丰润达科技有限公司 Things-internet gateway remote upgrade method, device and computer readable storage medium
CN112118322B (en) * 2020-09-24 2022-08-30 杭州海康威视数字技术股份有限公司 Data synchronization method of network equipment, network equipment and system
CN114205227A (en) * 2021-12-10 2022-03-18 珠海格力电器股份有限公司 Synchronization method and device of equipment, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1584865A (en) * 2003-08-21 2005-02-23 珠海金山软件股份有限公司 Comptuer software updating method
US20050210124A1 (en) * 2004-03-19 2005-09-22 International Business Machines Corporation J2EE application versioning strategy
CN101494559A (en) * 2009-01-13 2009-07-29 中兴通讯股份有限公司 Method and system for implementing household gateway update
CN102053844A (en) * 2009-10-28 2011-05-11 无锡华润上华半导体有限公司 Software upgrading method and software upgrading system using same

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152206A (en) * 2013-03-25 2013-06-12 安科智慧城市技术(中国)有限公司 Method and system for updating multiple devices
US20140297774A1 (en) * 2013-03-29 2014-10-02 Bala Sridhar Munupalle System for managing configuration updates in cluster of computational devices
CN104503801B (en) * 2014-12-30 2018-07-06 北京奇安信科技有限公司 Software upgrade instruction distribution method, the communication server and terminal device
CN104994265B (en) * 2015-07-06 2019-02-15 浙江宇视科技有限公司 A kind of web camera batch upgrading method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1584865A (en) * 2003-08-21 2005-02-23 珠海金山软件股份有限公司 Comptuer software updating method
US20050210124A1 (en) * 2004-03-19 2005-09-22 International Business Machines Corporation J2EE application versioning strategy
CN101494559A (en) * 2009-01-13 2009-07-29 中兴通讯股份有限公司 Method and system for implementing household gateway update
CN102053844A (en) * 2009-10-28 2011-05-11 无锡华润上华半导体有限公司 Software upgrading method and software upgrading system using same

Also Published As

Publication number Publication date
CN106982130A (en) 2017-07-25

Similar Documents

Publication Publication Date Title
US10268471B2 (en) Method for upgrading terminal system, terminal, and system
CN102118263B (en) Method and system for distribution of configuration information
JP6217034B2 (en) Related plug-in management method, apparatus and system
WO2020135355A1 (en) Wireless network configuration method and device
CN107357571B (en) Maintenance method and system for equipment component program
JP5574544B2 (en) Unified device management method and system
WO2017124741A1 (en) Method and device for synchronizing apparatus version
WO2015117527A1 (en) Upgrade method and device
CN104767649A (en) Bare metal server deployment method and device
KR20050117936A (en) System and method of managing device for device managing technology
WO2012041683A1 (en) Server management using baseboard management controller to establish wireless network
CN106537957B (en) Method and server for managing configuration files
CN103580921A (en) Automatic network equipment upgrading method and automatic network equipment upgrading system
CN106911729A (en) A kind of operating system remote installation method suitable for domestic processor
WO2016078431A1 (en) Policy file synchronous management method, policy synchronous server and management device
WO2017059724A1 (en) Operating system starting method and device
CN105072398B (en) A kind of device updating method and device
CN106549789A (en) A kind of method and system for realizing that server is installed
CN102571446A (en) Method, device and system for upgrading network device
CN112737847B (en) Node upgrading method and device, storage medium and electronic device
WO2016026329A1 (en) Terminal upgrade method and apparatus
CN109358876A (en) A kind of version synchronization method and device, equipment, storage medium
CN111638891A (en) Equipment upgrading method and device, terminal equipment and storage medium
CN107968725B (en) Method and device for returning and configuring configuration information of home gateway unit type terminal device
CN112637221B (en) Equipment control method and device

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

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

Country of ref document: EP

Kind code of ref document: A1