WO2016078362A1 - 一种双主控隔离的逐板升级的方法及装置 - Google Patents

一种双主控隔离的逐板升级的方法及装置 Download PDF

Info

Publication number
WO2016078362A1
WO2016078362A1 PCT/CN2015/078789 CN2015078789W WO2016078362A1 WO 2016078362 A1 WO2016078362 A1 WO 2016078362A1 CN 2015078789 W CN2015078789 W CN 2015078789W WO 2016078362 A1 WO2016078362 A1 WO 2016078362A1
Authority
WO
WIPO (PCT)
Prior art keywords
main control
control board
global
upgraded
upgrade
Prior art date
Application number
PCT/CN2015/078789
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 WO2016078362A1 publication Critical patent/WO2016078362A1/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
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Definitions

  • This paper relates to a distributed system of multiprocessors, and more particularly to a method and apparatus for upgrading a main control board.
  • the device to be upgraded is a distributed device with a global main control board, a global standby main control board, and several interface boards.
  • the global main control board is running normally, upgrade the global standby main control board to create a version rollback timer.
  • (2) Perform an active/standby switchover to make the upgraded standby main control board become the new global.
  • the main control board replaces the original active main control board and upgrades all the interface boards.
  • (3) When the version rollback timer expires in step (2), the upgrade fails, the version is rolled back, and the upgrade is completed.
  • This document provides a method and device for board-to-board upgrade of dual-master isolation to solve the defect that the upgrade fails and the probability of upgrade failure is high due to multiple factors in the related art.
  • a method for board-to-board upgrade of dual master isolation comprising:
  • the first global active main control board provides version upgrade data
  • the global standby main control board performs version upgrade according to the version upgrade data.
  • the global standby main control board After the version of the global standby main control board is successfully upgraded, the global standby main control board is set as the second global main control board, and the second global main control board is isolated and not upgraded. And internal communication of the first global main control board.
  • the method further includes:
  • Each interface board to be upgraded is upgraded according to the version upgrade data.
  • it also includes:
  • the first global main control board is upgraded and set as the global standby main control board, and internal communication with the second global main control board and each interface board is established. .
  • it also includes:
  • the first global active main control board creates a version rollback timer
  • the version upgrade of the global standby main control board successfully includes:
  • the upgrade of the interface board to be upgraded successfully includes:
  • the version of the interface board to be upgraded is successfully upgraded when the interface board to be upgraded is successfully loaded and the interface is successfully loaded.
  • it also includes:
  • a device for dual-master isolation and board-to-board upgrade comprising:
  • the data providing module is configured in the first global main control board, and is configured to: provide version upgrade data;
  • the first upgrade module is set in the global standby main control board, and is set to: perform version upgrade according to the version upgrade data;
  • the configuration module is configured to: after the version of the global standby main control board is successfully upgraded, set the global standby main control board as the second global main control board, and isolate the second global active main control The board communicates with the unupgraded interface board and the internal communication of the first global active main control board.
  • the device further includes:
  • the second upgrade module is configured to: each interface board to be upgraded is upgraded according to the version upgrade data;
  • the configuration module is further configured to: when the version of the interface board to be upgraded is successfully upgraded, establish internal communication with the second global main control board and the successfully upgraded interface board, and isolate and upgrade the interface board and the Internal communication of the first global main control board.
  • the configuration module is further configured to: after the upgrade of all the interface boards, the first global main control board is upgraded to be the global standby main control board, and the second global main control board and each of the second global main control boards are established. Internal communication of the interface board.
  • the data providing module is further configured to: create a version rollback timer
  • the successful upgrade of the version of the global standby main control board refers to:
  • the version of the global standby master is successfully upgraded when the upgraded version of the global standby main control board is successfully loaded and runs normally during the time specified by the version rollback timer.
  • the successful upgrade of the interface board to be upgraded refers to:
  • the version of the interface board to be upgraded is successfully loaded, the version of the interface board to be upgraded is successfully upgraded.
  • the device further includes:
  • the version rollback module is configured to: rollback the version and re-upgrade the global standby main control board when the upgrade of the global standby main control board fails; or set to: when any upgrade of the interface board to be upgraded fails When you roll back the version and re-upgrade the interface board to be upgraded.
  • a computer readable storage medium storing computer executable instructions for performing the method of any of the above.
  • the communication between the main control board and other un-upgraded boards is isolated and converted into the main control board.
  • the system 1 in which the original main control board is the global main control board and the system 2 in which the upgraded main control board is the global main control board are two systems that do not interfere with each other. That is, the system 1 in which the original main control board is the global main control board and the system 2 in which the upgraded main control board is the global main control board. Failure of any step in the upgrade process will not lead to the failure of the entire upgrade process, which increases the probability of successful upgrade.
  • the global active main control board does not have to take into account the control software upgrade process and the protocol packet sent by the agent to send the upgrade interface board CPU, which reduces the burden on the CPU of the global main control board and avoids sending by the proxy.
  • the protocol packets sent by the CPU of the interface board are delayed, causing topology flapping.
  • Embodiment 1 is a schematic structural diagram of an equipment to be upgraded in Embodiment 2 of the present invention.
  • FIG. 2 is a schematic structural diagram of an internal link of a device to be upgraded in an upgrade process according to Embodiment 2 of the present invention
  • Embodiment 3 is a flowchart of a board-to-board upgrade method for dual master isolation in Embodiment 2 of the present invention
  • FIG. 4 is a schematic structural diagram of an apparatus for upgrading a dual-master isolation board-by-board according to Embodiment 3 of the present invention.
  • a method for upgrading a dual-master isolation board-by-board includes:
  • the first global active main control board provides version upgrade data
  • the global standby main control board performs version upgrade according to the version upgrade data.
  • the method further includes:
  • Each interface board to be upgraded is upgraded according to the version upgrade data.
  • the first global main control board is upgraded to the global standby main control board, and internal communication with the second global main control board and each interface board is established.
  • the method further includes:
  • the first global active main control board creates a version rollback timer.
  • the successful upgrade of the version of the global standby main control board includes:
  • the upgrade of the interface board to be upgraded successfully includes:
  • the version of the interface board to be upgraded is successfully upgraded.
  • the version of the interface board to be upgraded is successfully upgraded.
  • the method further includes:
  • the structure of the device to be upgraded in the embodiment of the present invention includes:
  • the global active main control board 101 is mainly responsible for controlling the device upgrade process.
  • Global main control board The software upgrade data is stored and the software upgrade data management module is installed. The board can interact with other boards through the internal communication network, and the stored software upgrade data is loaded into other boards through the internal communication network.
  • the global active main control board and the global standby main control board synchronize data and status during the running of the device through the internal communication network. After the global standby main control board is upgraded, the function of the main control board can be completed.
  • the global standby main control board 102 is mainly used to request and load the upgrade data. After the upgrade and the normal operation, the upgrade operation is confirmed, and the internal communication between the main active main control board and other non-upgrade boards is isolated and converted into the main control board.
  • the protocol packet sent by the proxy interface board n1-nN cannot be sent due to software upgrade and CPU restart.
  • the interface board n1-nN is used to request and load the upgrade data.
  • the protocol packets that cannot be sent due to the CPU restart are sent by the upgraded original global standby main control board.
  • N is a positive integer greater than 1. .
  • the link structure of the internal communication network of the device to be upgraded in the upgrade process according to the embodiment of the present invention includes:
  • the global main control board 201 is mainly responsible for the control of the device upgrade process.
  • the software upgrade data is stored, and the software upgrade data management module is installed, and the other boards can interact with each other through the internal communication network, and the stored software upgrade data is loaded into other boards through the internal communication network.
  • the global standby main control board 202 obtains the corresponding upgrade data from the global active main control board 201, and the internal communication of the main active main control board and other non-upgraded boards is isolated after being upgraded.
  • the proxy sends the protocol packets that the interface board n1-nN cannot send due to software upgrade and CPU restart.
  • the upgraded interface board m3 After the upgraded interface board m3 obtains the corresponding upgrade data from the global main control board 201 and successfully upgrades it, it isolates the internal communication with the global main control board 201 and establishes the upgraded global standby main control board. 202 internal communication, restore interface board function.
  • the interface board n4 is connected to the global main control board 201 through the internal communication network, and isolates the communication with the upgraded standby main control board 202 and the upgraded interface board m3. At the same time, the global main control board 201 is awaiting the board upgrade.
  • the upgrade module of the main control board in standby mode is the same as the normal upgrade interface board.
  • Step 1 The global active main control board sends a version upgrade request to the global standby main control board.
  • Step 2 The global standby main control board obtains the physical information of the board according to the request parameters, and requests the data to be upgraded from the global main control board.
  • Step 3 The global active main control board searches for and responds to the request for data to be upgraded, and creates a version rollback timer.
  • Step 4 The global standby main control board loads the software data to be upgraded and upgrades the software. The upgrade is successfully confirmed to the global main control board.
  • Step 5 The global standby main control board is successfully upgraded, and the internal communication between the active main control board and the non-upgraded interface board is isolated and converted into the global main control board to start the work of the global main control board.
  • the main control board is still used as the main control board.
  • Step 6 After the global main control board confirms that the global standby main control board is successfully upgraded, the version rollback timer is stopped, and a software upgrade request is sent to the interface board n.
  • Step 7 The interface board n obtains the physical information of the board according to the request parameter, and requests the data to be upgraded from the global main control board.
  • Step 8 The global active main control board searches for and responds to the request for data to be upgraded, and resets the version rollback timer.
  • Step 9 The interface board n loads the software data to be upgraded and upgrades the software.
  • the upgrade succeeds to the global main control board.
  • the global main control board stops the version rollback timer.
  • Step 10 After the upgrade of the interface board n is successful, the internal communication between the global main control board and other unupgraded interface boards is isolated, and the internal communication between the upgraded global standby main control board and other upgraded interface boards is established. Interface board work;
  • Step 11 Repeat the above upgrade process of the interface board n until all the interface board upgrades are successfully completed.
  • Step 12 The global main control board is converted to the global standby main control board, and the internal communication of the upgraded global standby main control board and other upgraded interface boards is established to perform software upgrade, and the upgrade process ends.
  • the global standby main control board is upgraded. After the global standby main control board is successfully upgraded, the interface board is upgraded in sequence. If the interface board is upgraded, you can upgrade the interface board according to the time set by the rollback timer. If an interface board fails to be upgraded within the specified time, you can upgrade the next interface board. Of course, in other embodiments, the order of upgrading the interface board can be adjusted accordingly.
  • An embodiment of the present invention further provides an apparatus for upgrading a device, where the apparatus includes:
  • the data providing module 11 is disposed in the first global main control board and configured to: provide version upgrade data;
  • the first upgrade module 12 is configured in the global standby main control board, and is configured to: perform version upgrade according to the version upgrade data;
  • the configuration module 13 is configured to: after the version of the global standby main control board is successfully upgraded, set the global standby main control board as a second global main control board, and isolate the second global main host. The internal communication between the control board and the unupgraded interface board and the first global active main control board.
  • the device further includes:
  • the second upgrade module 14 is configured to: each interface board to be upgraded is upgraded according to the version upgrade data;
  • the configuration module 13 is further configured to: when the version of the interface board to be upgraded is successfully upgraded, establish internal communication with the second global main control board and the successfully upgraded interface board, and isolate and upgrade the interface board and the interface. The internal communication of the first global active main control board.
  • the configuration module 13 is further configured to: after the upgrade of all the interface boards, the first global main control board is upgraded to be the global standby main control board, and the second global main control board is Internal communication for each interface board.
  • the data providing module is further configured to: create a version rollback timer
  • the successful upgrade of the version of the global standby main control board refers to:
  • the version of the global standby master is successfully upgraded when the upgraded version of the global standby main control board is successfully loaded and runs normally during the time specified by the version rollback timer.
  • the successful upgrade of the interface board to be upgraded refers to:
  • the version of the interface board to be upgraded is successfully upgraded when the interface board to be upgraded is successfully loaded and the interface is successfully loaded.
  • the device further includes:
  • the version rollback module 15 is configured to: roll back the version and re-upgrade the global standby main control board when the upgrade of the global standby main control board fails; or set to: when any upgrade of the interface board to be upgraded fails, Roll back the version and re-upgrade the interface board to be upgraded.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • 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.
  • the device/function module/functional unit in the above embodiment When the 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 communication between the main control board and the other un-upgraded boards is isolated and converted into the main control board.
  • the system 1 is the system 1 with the original main control board as the global main control board and the system 2 with the upgraded main control board as the global main control board. Failure of any step in the upgrade process will not lead to the failure of the entire upgrade process, which increases the probability of successful upgrade.
  • the global active main control board does not have to take into account the control software upgrade process and the protocol packets sent by the agent to send the upgrade interface board CPU, which reduces the burden on the global main control board CPU and avoids the proxy sending interface.
  • the protocol packets sent by the CPU are delayed and the topology flaps.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)
  • Hardware Redundancy (AREA)

Abstract

一种双主控隔离的逐板升级方法,所述方法包括:第一全局主用主控板提供版本升级数据;全局备用主控板根据所述版本升级数据进行版本升级;当所述全局备用主控板的版本升级成功后,将所述全局备用主控板设为第二全局主用主控板,并隔离所述第二全局主用主控板与未升级的接口板以及第一全局主用主控板的内部通讯。

Description

一种双主控隔离的逐板升级的方法及装置 技术领域
本文涉及多处理机的分布式***,尤其涉及一种主控板的升级方法及装置。
背景技术
随着信息时代的来临,PC电脑的普及,以及互联网的广泛应用,电脑信息技术与各行各业进行了有效的结合,各种新技术、新业务不断涌现,用户对于数据的带宽需求都越来越高。为了满足单个用户高带宽的需求,运营商要求网络设备具有大容量、高接入和高处理性能。为了达到大容量、高接入和高处理性能的需求,目前的网络设备多采用部署大量的CPU的分布式***。随着多处理机的分布式***在电信行业逐渐推广和大规模使用,以及用户对网络设备性能需求的提高,设备的软件升级更加频繁。
相关技术实现设备软件升级的方法是:待升级设备是一台具有一块全局主用主控板、一块全局备用主控板以及若干块接口板的分布式设备。(1)在全局主用主控板正常运行的情况下,升级全局备用主控板,创建版本回滚定时器;(2)进行主备倒换,让已经升级的备用主控板成为新的全局主用主控板,接替原全局主用主控板工作,并升级所有接口板;(3)进行步骤(2)时版本回滚定时器超时,则升级失败,进行版本回退,升级结束;否则确认新全局主用主控板的升级操作,版本回滚定时器被删除;(4)依次升级其他主控板;(5)直到所有单板都升级到新版本,升级过程结束。该方法存在以下不足:一、无论是主控板的主备倒换失败,还是任何一块接口板的升级失败都会导致整个升级的失败,增大了设备升级失败的概率;二、在接口板升级的过程中,由于接口板的CPU会被重启,使得由接口板CPU发送的协议报文需要由主控板CPU代理发送,主控板CPU本身的业务繁忙,同时控制设备升级过程,可能无法及时代理发送接口板CPU发送的协议报文,导致网络拓扑发生震荡。
发明内容
本文提供一种双主控隔离的逐板升级的方法和装置,以解决相关技术中多个因素导致升级失败,升级失败的概率大的缺陷。
一种双主控隔离的逐板升级的方法,所述方法包括:
第一全局主用主控板提供版本升级数据;
全局备用主控板根据所述版本升级数据进行版本升级;
当所述全局备用主控板的版本升级成功后,将所述全局备用主控板设为第二全局主用主控板,所述第二全局主用主控板隔离与未升级的接口板以及第一全局主用主控板的内部通讯。
可选地,
隔离所述第二全局主用主控板与未升级的接口板的内部通讯后还包括:
每个待升级的接口板依次根据所述版本升级数据进行版本升级;
当任一待升级的接口板版本升级成功后,建立同第二全局主用主控板以及升级成功的接口板的内部通讯,并隔离与未升级的接口板以及所述第一全局主用主控板的内部通讯。
可选地,还包括:
当所有接口板升级成功后,将所述第一全局主用主控板升级后设为全局备用主控板,并建立同所述第二全局主用主控板以及每个接口板的内部通讯。
可选地,还包括:
所述第一全局主用主控板创建版本回滚定时器;
所述全局备用主控板的版本升级成功包括:
当在版本回滚定时器规定的时间内所述全局备用主控板成功加载升级版本并运行正常时,则所述全局备用主控的版本升级成功;
所述待升级的接口板升级成功包括:
当在版本回滚定时器规定的时间内所述待升级的接口板成功加载升级版本并运行正常时,则所述待升级的接口板的版本升级成功。
可选地,还包括:
当所述全局备用主控板升级失败时,回滚版本并重新升级该全局备用主控板;
当任一待升级的接口板升级失败时,回滚版本并重新升级该待升级的接 口板。
一种双主控隔离的逐板升级的装置,所述装置包括:
数据提供模块,设置于第一全局主用主控板中,设置为:提供版本升级数据;
第一升级模块,设置于全局备用主控板中,设置为:根据所述版本升级数据进行版本升级;
配置模块,设置为:当所述全局备用主控板的版本升级成功后,将所述全局备用主控板设为第二全局主用主控板,并隔离所述第二全局主用主控板与未升级的接口板以及所述第一全局主用主控板的内部通讯。
可选地,所述装置还包括:
第二升级模块,设置为:每个待升级的接口板依次根据所述版本升级数据进行版本升级;
配置模块还设置为:当任一待升级的接口板版本升级成功后,建立同第二全局主用主控板以及升级成功的接口板的内部通讯,并隔离与未升级的接口板以及所述第一全局主用主控板的内部通讯。
可选地,
配置模块还设置为:当所有接口板升级成功后,将所述第一全局主用主控板升级后设为全局备用主控板,并建立同所述第二全局主用主控板以及每个接口板的内部通讯。
可选地,
所述数据提供模块还设置为:创建版本回滚定时器;
所述全局备用主控板的版本升级成功是指:
当在版本回滚定时器规定的时间内所述全局备用主控板的成功加载升级版本并运行正常时,则所述全局备用主控的版本升级成功;
所述待升级的接口板升级成功是指:
当在版本回滚定时器规定的时间内所述待升级的接口板成功加载版本升级数据时,则所述待升级的接口板的版本升级成功。
可选地,所述装置还包括:
版本回滚模块,设置为:当所述全局备用主控板升级失败时,回滚版本并重新升级该全局备用主控板;还设置为:当任一待升级的接口板升级失败 时,回滚版本并重新升级该待升级的接口板。
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项的方法。
上述方案在全局备用主控板升级成功后,隔离同主用主控板及其他未升级单板之间的通讯,转换为主用主控板,此时设备中存在两个互不干扰的***,即以原主控板为全局主用主控板的***1和以升级后的主控板为全局主用主控板的***2。升级过程中任何一个步骤自身的失败都不会独立导致整个升级过程的失败,提高了升级成功的概率。
此外,在设备升级过程中,全局主用主控板不必兼顾控制软件升级过程和代理发送升级接口板CPU发送的协议报文,减轻了全局主用主控板CPU的负担,避免了由于代理发送接口板CPU发送的协议报文延时,而导致拓扑震荡。
附图概述
图1是本发明实施例二中待升级设备的结构示意图;
图2是本发明实施例二中待升级设备在升级过程中设备内部链接的结构示意图;
图3是本发明实施例二中双主控隔离的逐板升级方法的流程图;
图4是本发明实施例三中双主控隔离的逐板升级的装置的结构示意图。
本发明的实施方式
下面结合附图对本发明的实施方式进行详细说明。需要说明的是,在不冲突的情况下,本文中的实施例及实施例中的特征可以相互任意组合。
实施例一
本发明实施例提供的一种双主控隔离的逐板升级的方法,所述方法包括:
第一全局主用主控板提供版本升级数据;
全局备用主控板根据所述版本升级数据进行版本升级;
当全局备用主控板的版本升级成功后,将全局备用主控板设为第二全局主用主控板,并隔离第二全局主用主控板与未升级的接口板以及第一全局主用主控板的内部通讯。
隔离第二全局主用主控板与未升级的接口板的内部通讯后还包括:
每个待升级的接口板依次根据所述版本升级数据进行版本升级;
当任一待升级的接口板版本升级成功后,建立同第二全局主用主控板以及升级成功的接口板的内部通讯,并隔离与未升级的接口板以及所述第一全局主用主控板的内部通讯。
当所有接口板升级成功后,将第一全局主用主控板升级后设为全局备用主控板,并建立同所述第二全局主用主控板以及每个接口板的内部通讯。
可选地,所述方法还包括:
第一全局主用主控板创建版本回滚定时器;
全局备用主控板的版本升级成功包括:
当在版本回滚定时器规定的时间内所述全局备用主控板成功加载升级版本并运行正常时,则全局备用主控的版本升级成功;
待升级的接口板升级成功包括:
当在版本回滚定时器规定的时间内所述待升级的接口板成功加载升级版本并运行正常时,则待升级的接口板的版本升级成功。
可选地,所述方法还包括:
当所述全局备用主控板升级失败时,回滚版本并重新升级该全局备用主控板;
当任一待升级的接口板升级失败时,回滚版本并重新升级该待升级的接口板。
实施例二
如图1所示,本发明实施例的待升级设备的结构包括:
全局主用主控板101,主要负责设备升级过程的控制。全局主用主控板 中存储着软件升级数据,并安装了软件升级数据管理模块,该单板可与其他单板通过内部通讯网络交互,将其存储的软件升级数据通过内部通讯网络加载到其他单板中。全局主用主控板与全局备用主控板通过内部通讯网络在设备运行过程中已实现数据和状态同步,在全局备用主控板升级后,可以完成主用主控板的功能。
全局备用主控板102,主要用于请求并加载升级数据,升级并运行正常后确认升级操作,隔离同全局主用主控板及其他未升级单板的内部通讯,转换为主用主控板,代理发送接口板n1-nN由于软件升级,CPU重启而无法发送的协议报文。
接口板n1-nN,主要用于请求并加载升级数据,在升级过程中,由于CPU重启而无法发送的协议报文由升级后的原全局备用主控板代理发送,N为大于1的正整数。
如图2所示,本发明实施例的待升级设备在升级过程中设备内部通讯网络的链接结构包括:
全局主用主控板201,主要负责设备升级过程的控制。其中存储着软件升级数据,并安装了软件升级数据管理模块,可与其他单板通过内部通讯网络交互,将其存储的软件升级数据通过内部通讯网络加载到其他单板中。
升级后的全局备用主控板202,从全局主用主控板201获得相应的升级数据升级成功并运行正常后隔离同全局主用主控板及其他未升级单板的内部通讯,转换为主用主控板,代理发送接口板n1-nN由于软件升级,CPU重启而无法发送的协议报文。
升级后的接口板m3,从全局主用主控板201获得相应的升级数据升级成功并运行正常后,隔离同全局主用主控板201的内部通讯,建立同升级后的全局备用主控板202的内部通讯,恢复接口板功能。
接口板n4,通过内部通讯网络同全局主用主控板201相连,隔离同升级后的备用主控板202及升级后的接口板m3的通讯。同时,等待全局主用主控板201发起单板升级,
如图3所示,双主控隔离的逐板升级方法流程如下:
处于备用状态的主控单板其升级模块的设计与普通待升级接口板相同。
步骤1:全局主用主控板向全局备用主控板发送版本升级请求;
步骤2:全局备用主控板根据请求参数扫描获得本单板的物理信息,并向全局主用主控板请求待升级数据;
步骤3:全局主用主控板查找并应答待升级数据的请求,并创建版本回滚定时器;
步骤4:全局备用主控板加载待升级软件数据并进行软件升级,升级成功向全局主用主控板确认;
步骤5:全局备用主控板升级成功,隔离同全局主用主控板及未升级接口板的内部通讯,转换为全局主用主控板,开始全局主用主控板的工作,原全局主用主控板仍为主用主控板。
步骤6:全局主用主控板确认全局备用主控板升级成功后,停止版本回滚定时器,向接口板n发送软件升级请求;
步骤7:接口板n根据请求参数扫描获得本单板的物理信息,并向全局主用主控板请求待升级数据;
步骤8:全局主用主控板查找并应答待升级数据的请求,并重置版本回滚定时器;
步骤9:接口板n加载待升级软件数据并进行软件升级,升级成功向全局主用主控板确认,全局主用主控板停止版本回滚定时器;
步骤10:接口板n升级成功,隔离同全局主用主控板及其他未升级接口板的内部通讯,建立同升级后的全局备用主控板及其他已升级接口板的内部通讯,开始升级后接口板的工作;
步骤11:重复上述接口板n升级过程,直到所有接口板升级成功完成;
步骤12:全局主用主控板转换为全局备用主控板,建立同升级后的全局备用主控板及其他升级后的接口板的内部通讯,进行软件升级,升级过程结束。
在本实施例中,首先进行全局备用主控板的升级,待全局备用主控板升级成功后,依次进行接口板的升级。在进行接口板的升级时,可以根据回滚定时器设定的时间依次对接口板进行升级,如果一个接口板在规定的时间内未成功升级则可先进行下个接口板的升级操作。当然,在其它的实施例中接口板的升级顺序可以做相应的调整。
实施例三
本发明实施例还提供一种设备升级的装置,所述装置包括:
数据提供模块11,设置于第一全局主用主控板中,设置为:提供版本升级数据;
第一升级模块12,设置于全局备用主控板中,设置为:根据所述版本升级数据进行版本升级;
配置模块13,设置为:当所述全局备用主控板的版本升级成功后,将所述全局备用主控板设为第二全局主用主控板,并隔离所述第二全局主用主控板与未升级的接口板以及所述第一全局主用主控板的内部通讯。
可选地,所述装置还包括:
第二升级模块14,设置为:每个待升级的接口板依次根据所述版本升级数据进行版本升级;
配置模块13还设置为:当任一待升级的接口板版本升级成功后,建立同第二全局主用主控板以及升级成功的接口板的内部通讯,并隔离与未升级的接口板以及所述第一全局主用主控板的内部通讯。
可选地,
配置模块13还设置为:当所有接口板升级成功后,将所述第一全局主用主控板升级后设为全局备用主控板,并建立同所述第二全局主用主控板以及每个接口板的内部通讯。
可选地,
所述数据提供模块还设置为:创建版本回滚定时器;
所述全局备用主控板的版本升级成功是指:
当在版本回滚定时器规定的时间内所述全局备用主控板的成功加载升级版本并运行正常时,则所述全局备用主控的版本升级成功;
所述待升级的接口板升级成功是指:
当在版本回滚定时器规定的时间内所述待升级的接口板成功加载升级版本并运行正常时,则所述待升级的接口板的版本升级成功。
可选地,所述装置还包括:
版本回滚模块15,设置为:当所述全局备用主控板升级失败时,回滚版本并重新升级该全局备用主控板;还设置为:当任一待升级的接口板升级失败时,回滚版本并重新升级该待升级的接口板。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如***、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
工业实用性
本发明实施中,全局备用主控板升级成功后,隔离同主用主控板及其他未升级单板之间的通讯,转换为主用主控板,此时设备中存在两个互不干扰 的***,即以原主控板为全局主用主控板的***1和以升级后的主控板为全局主用主控板的***2。升级过程中任何一个步骤自身的失败都不会独立导致整个升级过程的失败,提高了升级成功的概率。此外,在设备升级过程中,全局主用主控板不必兼顾控制软件升级过程和代理发送升级接口板CPU发送的协议报文,减轻了全局主用主控板CPU的负担,避免由于代理发送接口板CPU发送的协议报文延时而导致拓扑震荡。

Claims (11)

  1. 一种双主控隔离的逐板升级的方法,包括:
    第一全局主用主控板提供版本升级数据;
    全局备用主控板根据所述版本升级数据进行版本升级;
    当所述全局备用主控板的版本升级成功后,将所述全局备用主控板设为第二全局主用主控板,所述第二全局主用主控板隔离与未升级的接口板以及第一全局主用主控板的内部通讯。
  2. 如权利要求1所述的方法,隔离所述第二全局主用主控板与未升级的接口板的内部通讯后,还包括:
    每个待升级的接口板依次根据所述版本升级数据进行版本升级;
    当任一待升级的接口板版本升级成功后,建立同第二全局主用主控板以及升级成功的接口板的内部通讯,并隔离与未升级的接口板以及所述第一全局主用主控板的内部通讯。
  3. 如权利要求2所述的方法,还包括:
    当所有接口板升级成功后,将所述第一全局主用主控板升级后设为全局备用主控板,并建立同所述第二全局主用主控板以及每个接口板的内部通讯。
  4. 如权利要求2或3所述的方法,还包括:
    所述第一全局主用主控板创建版本回滚定时器;
    所述全局备用主控板的版本升级成功包括:
    当在版本回滚定时器规定的时间内所述全局备用主控板成功加载升级版本并运行正常时,则所述全局备用主控的版本升级成功;
    所述待升级的接口板升级成功包括:
    当在版本回滚定时器规定的时间内所述待升级的接口板成功加载升级版本并运行正常时,则所述待升级的接口板的版本升级成功。
  5. 如权利要求4所述的方法,还包括:
    当所述全局备用主控板升级失败时,回滚版本并重新升级所述全局备用主控板;
    当任一待升级的接口板升级失败时,回滚版本并重新升级所述待升级的接口板。
  6. 一种双主控隔离的逐板升级的装置,其中,所述装置包括:
    数据提供模块,设置于第一全局主用主控板中,设置为:提供版本升级数据;
    第一升级模块,设置于全局备用主控板中,设置为:根据所述版本升级数据进行版本升级;
    配置模块,设置为:当所述全局备用主控板的版本升级成功后,将所述全局备用主控板设为第二全局主用主控板,并隔离所述第二全局主用主控板与未升级的接口板以及所述第一全局主用主控板的内部通讯。
  7. 如权利要求6所述的装置,其中,所述装置还包括:
    第二升级模块,设置为:每个待升级的接口板依次根据所述版本升级数据进行版本升级;
    配置模块还设置为:当任一待升级的接口板版本升级成功后,建立同第二全局主用主控板以及升级成功的接口板的内部通讯,并隔离与未升级的接口板以及所述第一全局主用主控板的内部通讯。
  8. 如权利要求7所述的装置,其中:
    配置模块还设置为:当所有接口板升级成功后,将所述第一全局主用主控板升级后设为全局备用主控板,并建立同所述第二全局主用主控板以及每个接口板的内部通讯。
  9. 如权利要求7或8所述的装置,其中:
    所述数据提供模块还设置为:创建版本回滚定时器;
    所述全局备用主控板的版本升级成功是指:
    当在版本回滚定时器规定的时间内所述全局备用主控板的成功加载升级 版本并运行正常时,则所述全局备用主控的版本升级成功;
    所述待升级的接口板升级成功是指:
    当在版本回滚定时器规定的时间内所述待升级的接口板成功加载版本升级数据时,则所述待升级的接口板的版本升级成功。
  10. 如权利要求9所述的装置,其中,所述装置还包括:
    版本回滚模块,设置为:当所述全局备用主控板升级失败时,回滚版本并重新升级所述全局备用主控板;还设置为:当任一待升级的接口板升级失败时,回滚版本并重新升级所述待升级的接口板。
  11. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-5任一项的方法。
PCT/CN2015/078789 2014-11-21 2015-05-12 一种双主控隔离的逐板升级的方法及装置 WO2016078362A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410679600.5A CN105677380B (zh) 2014-11-21 2014-11-21 一种双主控隔离的逐板升级的方法及装置
CN201410679600.5 2014-11-21

Publications (1)

Publication Number Publication Date
WO2016078362A1 true WO2016078362A1 (zh) 2016-05-26

Family

ID=56013209

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078789 WO2016078362A1 (zh) 2014-11-21 2015-05-12 一种双主控隔离的逐板升级的方法及装置

Country Status (2)

Country Link
CN (1) CN105677380B (zh)
WO (1) WO2016078362A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459869A (zh) * 2017-12-28 2018-08-28 新华三技术有限公司 Issu升级方法及装置

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106817259A (zh) * 2017-01-18 2017-06-09 杭州迪普科技股份有限公司 Vsm***的升级方法及装置
CN107046476A (zh) * 2017-02-21 2017-08-15 杭州迪普科技股份有限公司 一种版本升级的方法及装置
CN106886440A (zh) * 2017-02-24 2017-06-23 郑州云海信息技术有限公司 一种bmc的版本更新测试方法及装置
CN107678764B (zh) * 2017-09-30 2020-09-08 杭州迪普科技股份有限公司 一种基于issu升级vsm***的方法及装置
CN109600270B (zh) * 2019-01-25 2021-08-06 新华三技术有限公司 网络设备控制方法及网络设备
CN112445503A (zh) * 2019-08-28 2021-03-05 中兴通讯股份有限公司 一种升级方法、通信设备以及计算机可读存储介质
CN113127031A (zh) * 2021-03-23 2021-07-16 广东芬尼克兹节能设备有限公司 双主控板远程升级的方法、装置、终端装置及可存储介质
CN113220507B (zh) * 2021-04-28 2023-08-22 杭州迪普科技股份有限公司 双主控***的版本一致性检验方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003021465A1 (en) * 2001-09-05 2003-03-13 Pluris, Inc. Method and apparatus for performing a software upgrade of a router while the router is online
CN101206575A (zh) * 2006-12-19 2008-06-25 大唐移动通信设备有限公司 一种软件补丁在线升级方法、单板及***
CN101888304A (zh) * 2009-05-15 2010-11-17 华为技术有限公司 一种路由设备的升级方法、装置和***
CN102136930A (zh) * 2010-09-03 2011-07-27 华为技术有限公司 一种版本升级方法和路由设备
CN102571443A (zh) * 2012-01-20 2012-07-11 华为技术有限公司 一种异常处理的方法和装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5754785A (en) * 1995-04-27 1998-05-19 General Datacomm Communications network equipment
CN100340982C (zh) * 2005-03-03 2007-10-03 中兴通讯股份有限公司 一种传输设备单板软件在线升级出错后的恢复方法
CN102244669B (zh) * 2010-05-12 2014-02-26 杭州华三通信技术有限公司 一种堆叠设备中软件升级的方法和堆叠设备
CN102594656B (zh) * 2011-12-20 2016-05-04 杭州华三通信技术有限公司 一种路由迭代方法及路由交换设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003021465A1 (en) * 2001-09-05 2003-03-13 Pluris, Inc. Method and apparatus for performing a software upgrade of a router while the router is online
CN101206575A (zh) * 2006-12-19 2008-06-25 大唐移动通信设备有限公司 一种软件补丁在线升级方法、单板及***
CN101888304A (zh) * 2009-05-15 2010-11-17 华为技术有限公司 一种路由设备的升级方法、装置和***
CN102136930A (zh) * 2010-09-03 2011-07-27 华为技术有限公司 一种版本升级方法和路由设备
CN102571443A (zh) * 2012-01-20 2012-07-11 华为技术有限公司 一种异常处理的方法和装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459869A (zh) * 2017-12-28 2018-08-28 新华三技术有限公司 Issu升级方法及装置

Also Published As

Publication number Publication date
CN105677380B (zh) 2020-11-06
CN105677380A (zh) 2016-06-15

Similar Documents

Publication Publication Date Title
WO2016078362A1 (zh) 一种双主控隔离的逐板升级的方法及装置
US10983880B2 (en) Role designation in a high availability node
EP3588296A1 (en) Dynamically scaled hyperconverged system
US8196142B2 (en) Use of external services with clusters
CN107634984B (zh) 一种基于单向传输通道的文件同步方法
EP4083786A1 (en) Cloud operating system management method and apparatus, server, management system, and medium
CN102185718B (zh) 一种***升级方法及其装置
JP5674825B2 (ja) ソフトウェアのホットデプロイメント
CN105607954A (zh) 一种有状态容器在线迁移的方法和装置
US10083098B1 (en) Network function virtualization (NFV) virtual network function (VNF) crash recovery
US20070006020A1 (en) Inter-host data transfer method, program, and system
US10826812B2 (en) Multiple quorum witness
US11403319B2 (en) High-availability network device database synchronization
WO2014127628A1 (zh) 固件的升级方法及***
CN102238093A (zh) 防止业务中断的方法和装置
JP6431197B2 (ja) スナップショット処理方法および関係付けられたデバイス
WO2016045439A1 (zh) 一种vnfm容灾保护的方法、装置和nfvo、存储介质
EP3879875A1 (en) Resource change method and device, apparatus, and storage medium
WO2020134199A1 (zh) 实现数据一致性的方法和装置、服务器和终端
JP4659872B2 (ja) クラスタシステム制御プログラム、クラスタシステム、クラスタシステム制御方法
CN111752577B (zh) 一种***版本的升级方法及设备
CN103907094B (zh) 在多主机计算环境下对数据访问的串行化
WO2021057880A1 (zh) 物联网设备的程序升级方法、装置及物联网设备
KR102033489B1 (ko) 서버 클러스터 관리 방법 및 서버
WO2011157175A2 (zh) 通信设备升级控制方法、芯片及通信设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15860212

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

Country of ref document: EP

Kind code of ref document: A1