WO2021031889A1 - Upgrade method, communication device and computer-readable storage medium - Google Patents

Upgrade method, communication device and computer-readable storage medium Download PDF

Info

Publication number
WO2021031889A1
WO2021031889A1 PCT/CN2020/107883 CN2020107883W WO2021031889A1 WO 2021031889 A1 WO2021031889 A1 WO 2021031889A1 CN 2020107883 W CN2020107883 W CN 2020107883W WO 2021031889 A1 WO2021031889 A1 WO 2021031889A1
Authority
WO
WIPO (PCT)
Prior art keywords
upgraded
upgrade
communication device
communication
communication devices
Prior art date
Application number
PCT/CN2020/107883
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 WO2021031889A1 publication Critical patent/WO2021031889A1/en

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Definitions

  • the embodiments of the present invention relate to the technical field of communication device upgrades, and more specifically, to an upgrade method, a communication device, and a computer-readable storage medium.
  • Communication equipment has high requirements for safety, reliability, efficiency, and real-time performance.
  • Traditional communication equipment upgrade methods are increasingly unable to meet the needs of 5G network development.
  • communication The equipment has to be updated at a high frequency.
  • Figure 1 the existing traditional C/S upgrade mode. All connected communication equipment is upgraded through a server, which has the following obvious defects:
  • the reliability is low.
  • the server has to upgrade all communication equipment.
  • the load is large and it is prone to failures, causing the communication equipment to freeze, crash, and repeat resets during the upgrade, and the reliability is low.
  • the equipment upgrade time is long.
  • the current communication equipment upgrade method supports parallel upgrades.
  • the number of communication devices that can be upgraded in parallel at the same time is limited, resulting in a long upgrade time, which is not suitable for large-scale communication equipment. upgrade.
  • the traditional upgrade method takes a long time and is low in efficiency and reliability. It can be seen that, in the prior art, the upgrade time of communication equipment is long, the server load is heavy, and the efficiency is low.
  • the upgrade method, communication device, and computer-readable storage medium provided by the embodiments of the present invention mainly solve the technical problems that the communication device in the prior art has a long upgrade time, a heavy server load, and low efficiency.
  • an embodiment of the present invention provides an upgrade method, including:
  • the part of the communication equipment to be upgraded is successfully upgraded, it is regarded as the upgraded communication equipment, and the upgrade file is sent to the adjacent communication equipment to be upgraded;
  • the adjacent communication device to be upgraded is upgraded according to the upgrade file.
  • the embodiment of the present invention also provides a communication device, which includes a processor, a memory, and a communication bus;
  • the communication bus is configured to realize connection and communication between the processor and the memory
  • the processor is configured to execute one or more computer programs stored in the memory to implement the steps of the upgrade method described above.
  • the embodiment of the present invention also provides a computer-readable storage medium, and the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the upgrade method described above A step of.
  • the upgrade method, communication device, and computer-readable storage medium provided by the embodiment of the present invention are upgraded by selecting part of the communication devices to be upgraded among the communication devices to be upgraded.
  • some communication devices to be upgraded are regarded as upgraded communication devices after being successfully upgraded.
  • the upgrade file is sent to the adjacent communication device to be upgraded.
  • the adjacent communication device to be upgraded is upgraded according to the upgrade file; it solves the problem of long upgrade time, heavy server load and low efficiency of communication equipment in the prior art. problem.
  • part of the communication device to be upgraded is first upgraded, and then the upgraded communication device is used to share the upgrade load and balance the load, which greatly improves the upgrade Efficiency, while improving the reliability and availability of communication equipment.
  • Figure 1 is a schematic structural diagram of upgrading existing communication equipment
  • Embodiment 1 of the present invention is a schematic diagram of the basic flow of an upgrade method provided by Embodiment 1 of the present invention
  • FIG. 3 is a schematic structural diagram of an upgrade method provided by Embodiment 2 of the present invention.
  • Embodiment 4 is a schematic diagram of the basic flow of an upgrade method provided by Embodiment 2 of the present invention.
  • FIG. 5 is a schematic diagram of a process of obtaining an upgrade file through a get method according to Embodiment 3 of the present invention.
  • FIG. 6 is a schematic diagram of a process for obtaining an upgrade file in a put mode according to Embodiment 3 of the present invention.
  • FIG. 7 is a schematic structural diagram of a first communication device according to Embodiment 4 of the present invention.
  • FIG. 8 is a schematic structural diagram of a second communication device according to Embodiment 4 of the present invention.
  • FIG. 9 is a schematic structural diagram of a third communication device provided by Embodiment 4 of the present invention.
  • an upgrade method is provided in the embodiment of the present invention, by selecting part of the communication devices to be upgraded for upgrading, Optionally, some of the communication devices to be upgraded are successfully upgraded as upgraded communication devices, and the upgrade file is sent to the adjacent communication devices to be upgraded. Optionally, the adjacent communication devices to be upgraded are upgraded according to the upgrade file; see Figure 2 As shown, FIG. 2 is a schematic diagram of the basic flow of the upgrade method provided in this embodiment.
  • S201 Select part of the communication devices to be upgraded among the communication devices to be upgraded for upgrade.
  • the communication equipment in this embodiment includes, but is not limited to, any form of communication equipment such as network elements. In actual applications, it can be flexibly adjusted according to specific application scenarios.
  • the method before selecting some of the communication devices to be upgraded for upgrading, the method further includes:
  • selecting part of the communication devices to be upgraded for upgrading in the communication devices to be upgraded includes:
  • the 90 communication devices to be upgraded are divided into three categories based on the same device model.
  • the communication devices to be upgraded with numbers 1-30 are the first type, and those with numbers 31-60
  • the communication device to be upgraded is of the second type, and the communication devices to be upgraded with reference numbers 61-90 are of the third type; optionally, some of the communication devices to be upgraded are selected from the first, second, and third types of communication devices to be upgraded.
  • the communication equipment is upgraded.
  • the communication equipment to be upgraded with label 1 is selected from the communication equipment to be upgraded of the first type for upgrade
  • the communication equipment to be upgraded with label 31 is selected from the communication equipment to be upgraded of the second type for upgrade
  • the communication device to be upgraded with the number 61 is selected from the communication device to be upgraded of the third type to be upgraded.
  • part refers to the number of communication devices to be upgraded in the first type, second type, and third type. As in the above example, “part” should be greater than or equal to 1 and less than 30. It is worth noting that in actual applications, “parts” need to be flexibly adjusted according to specific application scenarios.
  • selecting part of the communication devices to be upgraded for upgrading in the communication devices to be upgraded includes:
  • some communication devices to be upgraded are selected from the communication devices to be upgraded, and the server performs the upgrade.
  • some communication devices to be upgraded are selected from the communication devices to be upgraded, and the upgrade is performed manually.
  • part of the communication equipment to be upgraded in this embodiment is successfully upgraded as an upgraded communication equipment, and the upgrade file is sent to the adjacent communication equipment to be upgraded, where “adjacent” refers to the upgraded communication equipment and
  • the communication equipment to be upgraded is connected through optical fiber, network cable, etc., or through wireless Vlan. It is worth noting that what are listed here are only several common connection modes, and the embodiment of the present invention is not limited to these several connection modes. In actual applications, it can be flexibly adjusted according to specific application scenarios.
  • the upgraded communication device compares the device model and software version number of the upgraded communication device and the adjacent communication device to be upgraded. When the device model is the same and the software version number is different, it is determined that the upgrade conditions are met, and the upgrade file is sent to the adjacent communication device to be upgraded .
  • the device models and software version numbers of some communication devices to be upgraded and adjacent communication devices to be upgraded before comparing the device models and software version numbers of some communication devices to be upgraded and adjacent communication devices to be upgraded, it further includes:
  • the upgraded communication device sends a request for the device model and software version to the adjacent communication device to be upgraded;
  • the neighboring communication device to be upgraded After receiving the device model and software version request, the neighboring communication device to be upgraded sends the device model and software version number to the upgraded communication device.
  • the upgraded communication device sends an upgrade request to the adjacent communication device to be upgraded
  • the adjacent communication device to be upgraded When the adjacent communication device to be upgraded receives the upgrade request, it sends a request to obtain the upgrade file to the upgraded communication device;
  • the upgraded communication device When the upgraded communication device receives the upgrade file request, it sends the upgrade file to the adjacent communication device to be upgraded.
  • S203 The adjacent communication device to be upgraded is upgraded according to the upgrade file.
  • the adjacent communication device to be upgraded is upgraded according to the upgrade file, and after the upgrade fails, it further includes:
  • the adjacent communication device to be upgraded is upgraded according to the upgrade file, and after the upgrade fails/successfully, it further includes:
  • the upgrade failure/success notification is sent to the upgraded communication device, and the upgraded communication device sends the upgrade failure/success notification to the server; thus, the staff can solve the upgrade exception correspondingly according to the upgrade failure notification.
  • an upgrade failure/success notification is sent to the server; thus, the staff can resolve the upgrade exception according to the upgrade failure notification.
  • the adjacent communication device to be upgraded is upgraded according to the upgrade file, and after the upgrade is successful, it is regarded as an upgraded communication device, which further includes:
  • the neighboring communication devices to be upgraded will be upgraded according to the upgrade files, and iteratively, until all the communication devices to be upgraded are successfully upgraded; that is, S202 and S203 need to be repeated until all the The upgraded communication equipment was successfully upgraded.
  • the upgraded communication device labeled 1 sends the upgrade file to the adjacent communication devices labeled 2 and 3 to be upgraded, and the communication devices labeled 2 and 3 to be upgraded are upgraded according to the upgrade file.
  • the upgraded communication device labeled 2 will send the upgrade file to the adjacent communication devices labeled 5, 6, 7 to be upgraded, labeled 5, 6, 7
  • the communication device to be upgraded is upgraded according to the upgrade file, and it will be regarded as the upgraded communication device after the upgrade is successful; at the same time, the upgraded communication device with label 3 will send the upgrade file to the adjacent waiting communication device with labels 8, 9, 10 Upgrade communication equipment.
  • the communication equipment to be upgraded with labels 8, 9, and 10 are upgraded according to the upgrade file. After the upgrade is successful, they will be regarded as upgraded communication equipment.
  • the cycle is similar. The process is similar. This time I will not repeat it until 30 to be upgraded.
  • the communication equipment has been upgraded.
  • the number of cycles is determined by the number of selected communication devices to be upgraded from the communication devices to be upgraded and the neighbor relationship between the communication devices. In actual applications, it needs to be flexibly adjusted according to specific application scenarios.
  • the upgrade method provided by the embodiment of the present invention first upgrades part of the communication equipment to be upgraded, and then uses the upgraded communication equipment to upgrade other communication equipment to be upgraded, which solves the problem of the long upgrade time and server load of the communication equipment in the prior art. Compared with the existing upgrade method, it has at least the following advantages:
  • the traditional upgrade method is limited by the performance of the server, and the number of devices that can be upgraded in parallel at the same time is small, and it takes a long time to upgrade the equipment. Not limited by server performance, it can upgrade a large number of devices at the same time, especially suitable for scenarios with many devices to be upgraded.
  • the dependence on the server becomes smaller. Even if the server fails during the upgrade process, the successfully upgraded communication device can still complete the upgrade of the communication device to be upgraded.
  • the distributed intelligent diffusion upgrade utilizes multiple communication devices to share the upgrade load and balance the load, which not only solves the bottleneck problem of single server upgrade in traditional communication equipment, but also improves the reliability and availability of the network system .
  • the embodiment of the present invention takes a more specific upgrade method process as an example for description.
  • This embodiment is described by taking the communication device as a network element as an example.
  • Figure 3 is a schematic structural diagram of the upgrade method provided in this embodiment, including the following steps:
  • Step 1 The server upgrades the network element 1.
  • Step two the first network element is successfully upgraded, and the first network element sends the upgrade file to its neighboring network element two, network element three, network element four, network element five, network element two, network element three, network element four, network Yuan five upgraded according to the upgrade file, and the upgrade was successful.
  • Step 3 The network element four sends the upgrade file to the adjacent network element n, and the network element n is upgraded according to the upgrade file.
  • the upgrade is successful, and all network elements are upgraded.
  • FIG. 4 is a schematic flowchart of the upgrade method provided in this embodiment, including the following steps:
  • the server upgrades the network element A to be upgraded.
  • the network element A sends a request for the device model and software version number to the neighboring network element B.
  • the neighboring network element B After receiving the request for the device model and software version number of the network element A, the neighboring network element B sends its own device model and software version number message to the network element A.
  • Network element A receives the message of its own device model and software version number of network element B, and compares the device model and software version number of the two.
  • the network element B sends a request to obtain the upgrade file to the network element A.
  • the network element A After receiving the request from the network element B to obtain the upgrade file, the network element A sends the upgrade file to the network element B through the transmission service.
  • the network element B activates the upgrade file, performs the upgrade according to the upgrade file, and the upgrade is completed.
  • a part of the network elements to be upgraded is selected for upgrading among the network elements to be upgraded.
  • some of the network elements to be upgraded are successfully upgraded as the upgraded network elements, and the upgrade file is sent to the adjacent
  • the network element to be upgraded optionally, the adjacent network element to be upgraded is upgraded according to the upgrade file; this solves the problems of long network element upgrade time, heavy server load, and low efficiency in the prior art.
  • the upgrade method provided by the embodiment of the present invention first upgrades some of the network elements to be upgraded, and then uses the upgraded network elements to upgrade its neighboring network elements, and loops in turn until all network elements are successfully upgraded, thereby realizing load sharing of the server ,
  • the rapid spread of the upgrade package enables rapid upgrade of large-scale network elements. Even if the server fails during the upgrade process, the upgraded network element can still be upgraded to the neighboring network element to be upgraded, and the reliability is greatly enhanced.
  • the embodiment of the present invention uses the C/S mode to transmit the upgrade file, and there are two transmission methods:
  • the first transmission method is that the upgraded communication device serves as the server, and the adjacent communication device that meets the upgrade conditions serves as the client;
  • the second transmission method is that the upgraded communication device serves as the client, and the adjacent communication device that meets the upgrade conditions serves as the server.
  • FIG. 5 is a schematic diagram of the process of obtaining the upgrade file through the get method provided in this embodiment, including the following steps:
  • the communication device A sends an upgrade request to the neighboring communication device B to be upgraded.
  • the communication device B After receiving the upgrade request, the communication device B configures itself as a client.
  • the communication device B sends a request for obtaining an upgrade file to the communication device A.
  • the communication device B receives the upgrade file, and performs the upgrade according to the upgrade file.
  • FIG. 6 is a schematic diagram of the process of obtaining the upgrade file through put method provided in this embodiment, including the following steps:
  • S602 Send an upgrade request to the neighboring communication device B to be upgraded.
  • the communication device B After receiving the upgrade request, the communication device B configures itself as a server.
  • the communication device B sends a confirmation upgrade request to the communication device A.
  • the communication device B receives the upgrade file, and performs the upgrade according to the upgrade file.
  • the communication equipment provided in this embodiment includes processing 701 and memory 702.
  • processor 701 in this embodiment is configured to execute one or more programs stored in the memory 702 to implement the following steps:
  • the adjacent communication equipment to be upgraded is upgraded according to the upgrade file.
  • the communication device further includes a communication bus 703, where the communication bus 703 is configured to implement connection and communication between the processor 701 and the memory 702.
  • the processor 701 and the memory 702 can also communicate in a wireless manner. In actual applications, they can be flexibly adjusted according to specific application scenarios.
  • the same communication device serves as the communication device to be upgraded before the upgrade, and can be upgraded after obtaining the upgrade file, and it is regarded as the upgraded communication device after the upgrade.
  • the communication equipment in this embodiment includes, but is not limited to, any form of communication equipment such as network elements. In actual applications, it can be flexibly adjusted according to specific application scenarios.
  • the method before selecting part of the communication devices to be upgraded for upgrading among the communication devices to be upgraded, the method further includes:
  • selecting part of the communication devices to be upgraded for upgrading in the communication devices to be upgraded includes:
  • part refers to the number of communication devices to be upgraded, and it should be greater than or equal to 1 and less than the number of communication devices to be upgraded. It is worth noting that in actual applications, “parts” need to be flexibly adjusted according to specific application scenarios.
  • selecting part of the communication devices to be upgraded for upgrading in the communication devices to be upgraded includes:
  • some communication devices to be upgraded are selected from the communication devices to be upgraded, and the server performs the upgrade.
  • some communication devices to be upgraded are selected from the communication devices to be upgraded, and the upgrade is performed manually.
  • part of the communication equipment to be upgraded in this embodiment is successfully upgraded as an upgraded communication equipment, and the upgrade file is sent to the adjacent communication equipment to be upgraded, where “adjacent” refers to the upgraded communication equipment and
  • the communication equipment to be upgraded is connected through optical fiber, network cable, etc., or through wireless Vlan. It is worth noting that what are listed here are only several common connection modes, and the embodiment of the present invention is not limited to these several connection modes. In actual applications, it can be flexibly adjusted according to specific application scenarios.
  • the upgraded communication device compares the device model and software version number of the upgraded communication device and the adjacent communication device to be upgraded. When the device model is the same and the software version number is different, it is determined that the upgrade conditions are met, and the upgrade file is sent to the adjacent communication device to be upgraded .
  • the device models and software version numbers of some communication devices to be upgraded and adjacent communication devices to be upgraded before comparing the device models and software version numbers of some communication devices to be upgraded and adjacent communication devices to be upgraded, it further includes:
  • the upgraded communication device sends a request for the device model and software version to the adjacent communication device to be upgraded;
  • the neighboring communication device to be upgraded After receiving the device model and software version request, the neighboring communication device to be upgraded sends the device model and software version number to the upgraded communication device.
  • the upgraded communication device sends an upgrade request to the adjacent communication device to be upgraded
  • the adjacent communication device to be upgraded When the adjacent communication device to be upgraded receives the upgrade request, it sends a request to obtain the upgrade file to the upgraded communication device;
  • the upgraded communication device When the upgraded communication device receives the upgrade file request, it sends the upgrade file to the adjacent communication device to be upgraded.
  • the adjacent communication device to be upgraded is upgraded according to the upgrade file, and after the upgrade fails, it further includes:
  • the adjacent communication device to be upgraded is upgraded according to the upgrade file, and after the upgrade fails/successfully, it further includes:
  • the upgrade failure/success notification is sent to the upgraded communication device, and the upgraded communication device sends the upgrade failure/success notification to the server; thus, the staff can solve the upgrade exception correspondingly according to the upgrade failure notification.
  • an upgrade failure/success notification is sent to the server; thus, the staff can resolve the upgrade exception according to the upgrade failure notification.
  • the adjacent communication device to be upgraded is upgraded according to the upgrade file, and after the upgrade is successful, it is regarded as an upgraded communication device, which further includes:
  • the upgrade file is sent to its neighboring communication device to be upgraded, and the neighboring communication device to be upgraded is upgraded according to the upgrade file, and the cycle is repeated until all the communication devices to be upgraded are successfully upgraded.
  • the number of cycles is determined by the number of selected communication devices to be upgraded from the communication devices to be upgraded and the neighbor relationship between the communication devices. In actual applications, it needs to be flexibly adjusted according to specific application scenarios.
  • the communication device includes a message module 901, a comparison module 902, an upgrade module 903, and a fallback module 904;
  • the message module 901 set to communicate messages between the upgraded communication device and the communication device to be upgraded, for example, the upgraded communication device sends a request message for the device model and software version number, upgrade request, etc., and the communication device to be upgraded sends its own device model And software version number message, get upgrade file request, etc.
  • the comparison module 902 is configured to compare the received device model and software version number of the adjacent communication device (communication device to be upgraded, the same below), and send the comparison result to the upgrade module 903.
  • the upgrade module 903 is configured to determine whether to upgrade the adjacent communication device according to the comparison result. When the comparison result is that the upgrade condition is satisfied, the communication device to be upgraded upgrades according to the upgrade file obtained by the message module 901 to complete the upgrade.
  • the rollback module 904 is set to obtain configuration information and business data from the database when the upgrade fails, so as to roll back to the previous software version according to the configuration information and business data.
  • the communication equipment provided by the embodiment of the present invention first upgrades part of the communication equipment to be upgraded, and then uses the upgraded communication equipment to upgrade other communication equipment to be upgraded, which solves the problem of the long upgrade time and server load of the communication equipment in the prior art. Compared with the existing upgrade methods, it has at least the following advantages:
  • the traditional upgrade method is limited by the performance of the server, and the number of devices that can be upgraded in parallel at the same time is small, and it takes a long time to upgrade the equipment. Not limited by server performance, it can upgrade a large number of devices at the same time, especially suitable for scenarios with many devices to be upgraded.
  • the dependence on the server becomes smaller. Even if the server fails during the upgrade process, the successfully upgraded communication device can still complete the upgrade of the communication device to be upgraded.
  • the distributed intelligent diffusion upgrade utilizes multiple communication devices to share the upgrade load and balance the load, which not only solves the bottleneck problem of single server upgrade in traditional communication equipment, but also improves the reliability and availability of the network system .
  • the embodiment of the present invention also provides a computer-readable storage medium.
  • the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned embodiments.
  • the computer-readable storage medium includes volatile or non-volatile, removable, or removable or non-volatile memory implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules, or other data).
  • Non-removable media Computer readable storage media include but are not limited to RAM (Random Access Memory), ROM (Read-Only Memory, read-only memory), EEPROM (Electrically Erasable Programmable read only memory, charged Erasable Programmable Read-Only Memory) ), flash memory or other storage technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, Or any other medium that can be used to store desired information and can be accessed by a computer.
  • the functional modules/units in the system, and the device can be implemented as software (which can be implemented by program code executable by a computing device) , Firmware, hardware and their appropriate combination.
  • the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may consist of several physical components. The components are executed cooperatively.
  • Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit .
  • the computer-readable medium may include computer storage Medium (or non-transitory medium) and communication medium (or temporary medium).
  • computer storage medium includes volatile and non-volatile memory implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data).
  • flexible, removable and non-removable media are examples of flexible, removable and non-removable media.
  • communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media . Therefore, the embodiments of the present invention are not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

Provided in embodiments of the present invention are an upgrade method, a communication device, and a computer-readable storage medium. The method comprises: selecting some communication devices to be upgraded from among communication devices to be upgraded for upgrading; optionally, after some of the communication devices to be upgraded are successfully upgraded, said devices serve as upgraded communication devices and send an upgrade file to adjacent communication devices to be upgraded; and optionally, the adjacent communication devices to be upgraded are upgraded according to the upgrade file. Thus, the problems in the prior art in which upgrade time for communication devices is long, the load on a server is heavy, and efficiency is low are solved. Furthermore, by means of the upgrade method, communication device, and computer-readable storage medium provided in embodiments of the present invention, some communication devices to be upgraded are upgraded first, and then the communication devices which have completed upgrading are used to share the upgrade load and balance the load, thus improving upgrade efficiency to a great extent while simultaneously improving the reliability and usability of communication devices.

Description

一种升级方法、通信设备以及计算机可读存储介质Upgrade method, communication equipment and computer readable storage medium 技术领域Technical field
本发明实施例涉及通信设备升级技术领域,更具体地说,涉及一种升级方法、通信设备以及计算机可读存储介质。The embodiments of the present invention relate to the technical field of communication device upgrades, and more specifically, to an upgrade method, a communication device, and a computer-readable storage medium.
背景技术Background technique
通信设备对安全性、可靠性、高效性、以及实时性要求很高,传统通信设备升级方式越来越不能满足5G网络发展的需要,目前,为了满足通信设备的安全性和功能完善性,通信设备不得不保持高频率的更新,如图1为现有传统C/S升级模式,通过一台服务器给连接的所有通信设备升级,具有以下明显的缺陷:Communication equipment has high requirements for safety, reliability, efficiency, and real-time performance. Traditional communication equipment upgrade methods are increasingly unable to meet the needs of 5G network development. At present, in order to meet the safety and functional integrity of communication equipment, communication The equipment has to be updated at a high frequency. As shown in Figure 1, the existing traditional C/S upgrade mode. All connected communication equipment is upgraded through a server, which has the following obvious defects:
第一,可靠性低,服务器要给所有通信设备升级,负荷较大,容易出现故障,导致升级中的通信设备卡顿、死机,重复复位等故障,可靠性低。First, the reliability is low. The server has to upgrade all communication equipment. The load is large and it is prone to failures, causing the communication equipment to freeze, crash, and repeat resets during the upgrade, and the reliability is low.
第二,严重降低了通信设备的高效性,实时性,现有的通信设备升级技术,升级过程中,通信设备必须中断业务处理,严重降低通信设备的高效性,实时性。Second, it seriously reduces the efficiency and real-time performance of communication equipment. With the existing communication equipment upgrade technology, the communication equipment must interrupt business processing during the upgrade process, which seriously reduces the efficiency and real-time performance of the communication equipment.
第三,设备升级时间长,目前的通信设备升级方式支持并行升级,然而受限于服务器的性能,能同时并行升级的通信设备数量有限,导致升级时间长,不适用于大规模大数量通信设备升级。Third, the equipment upgrade time is long. The current communication equipment upgrade method supports parallel upgrades. However, due to the performance of the server, the number of communication devices that can be upgraded in parallel at the same time is limited, resulting in a long upgrade time, which is not suitable for large-scale communication equipment. upgrade.
同时,由于部署业务平台的环境、通常是由数百上千的服务器组成,甚至一些业务平台由上万台服务器组成,传统的升级方式,耗时长,效率及可靠性低。可见,现有技术中通信设备的升级时间长,服务器负载重,效率低下。At the same time, because the environment in which the business platform is deployed is usually composed of hundreds to thousands of servers, and even some business platforms are composed of tens of thousands of servers, the traditional upgrade method takes a long time and is low in efficiency and reliability. It can be seen that, in the prior art, the upgrade time of communication equipment is long, the server load is heavy, and the efficiency is low.
发明内容Summary of the invention
本发明实施例提供的升级方法、通信设备以及计算机可读存储介质,主要解决的技术问题是现有技术中通信设备的升级时间长,服务器负载重, 效率低下。The upgrade method, communication device, and computer-readable storage medium provided by the embodiments of the present invention mainly solve the technical problems that the communication device in the prior art has a long upgrade time, a heavy server load, and low efficiency.
为解决上述技术问题,本发明实施例提供了一种升级方法,包括:To solve the above technical problems, an embodiment of the present invention provides an upgrade method, including:
在待升级通信设备中选择部分待升级通信设备进行升级;Select part of the communication equipment to be upgraded in the communication equipment to be upgraded for upgrading;
所述部分待升级通信设备升级成功后作为已升级通信设备,将升级文件发送至相邻待升级通信设备;After the part of the communication equipment to be upgraded is successfully upgraded, it is regarded as the upgraded communication equipment, and the upgrade file is sent to the adjacent communication equipment to be upgraded;
所述相邻待升级通信设备根据所述升级文件进行升级。The adjacent communication device to be upgraded is upgraded according to the upgrade file.
本发明实施例还提供了一种通信设备,所述通信设备包括处理器、存储器及通信总线;The embodiment of the present invention also provides a communication device, which includes a processor, a memory, and a communication bus;
所述通信总线设置为实现处理器和存储器之间的连接通信;The communication bus is configured to realize connection and communication between the processor and the memory;
所述处理器设置为执行存储器中存储的一个或者多个计算机程序,以实现如上所述的升级方法的步骤。The processor is configured to execute one or more computer programs stored in the memory to implement the steps of the upgrade method described above.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质存储有一个或者多个程序,一个或者多个程序可被一个或者多个处理器执行,以实现如上所述的升级方法的步骤。The embodiment of the present invention also provides a computer-readable storage medium, and the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the upgrade method described above A step of.
本发明实施例的有益效果是:The beneficial effects of the embodiments of the present invention are:
本发明实施例提供的升级方法、通信设备以及计算机可读存储介质,通过在待升级通信设备中选择部分待升级通信设备进行升级,可选地,部分待升级通信设备升级成功后作为已升级通信设备,将升级文件发送至相邻待升级通信设备,可选地,相邻待升级通信设备根据升级文件进行升级;解决了现有技术中通信设备的升级时间长,服务器负载重,效率低下的问题。也即本发明实施例提供的升级方法、通信设备以及计算机可读存储介质,先升级部分待升级通信设备,进而利用升级完成的通信设备分担升级负荷,平衡负载,在极大程度上提升了升级效率,同时提高了通信设备的可靠性和可用性。The upgrade method, communication device, and computer-readable storage medium provided by the embodiment of the present invention are upgraded by selecting part of the communication devices to be upgraded among the communication devices to be upgraded. Optionally, some communication devices to be upgraded are regarded as upgraded communication devices after being successfully upgraded. Device, the upgrade file is sent to the adjacent communication device to be upgraded. Optionally, the adjacent communication device to be upgraded is upgraded according to the upgrade file; it solves the problem of long upgrade time, heavy server load and low efficiency of communication equipment in the prior art. problem. That is, in the upgrade method, communication device, and computer-readable storage medium provided by the embodiment of the present invention, part of the communication device to be upgraded is first upgraded, and then the upgraded communication device is used to share the upgrade load and balance the load, which greatly improves the upgrade Efficiency, while improving the reliability and availability of communication equipment.
本发明实施例其他特征和相应的有益效果在说明书的后面部分进行阐述说明,且应当理解,至少部分有益效果从本发明说明书中的记载变的 显而易见。Other features and corresponding beneficial effects of the embodiments of the present invention are described in the latter part of the specification, and it should be understood that at least part of the beneficial effects will become obvious from the description in the specification of the present invention.
附图说明Description of the drawings
下面将结合附图及实施例对本发明作进一步说明,附图中:The present invention will be further described below in conjunction with the accompanying drawings and embodiments. In the accompanying drawings:
图1为现有通信设备进行升级的结构示意图;Figure 1 is a schematic structural diagram of upgrading existing communication equipment;
图2为本发明实施例一提供的一种升级方法的基本流程示意图;2 is a schematic diagram of the basic flow of an upgrade method provided by Embodiment 1 of the present invention;
图3为本发明实施例二提供的一种升级方法结构示意图;FIG. 3 is a schematic structural diagram of an upgrade method provided by Embodiment 2 of the present invention;
图4为本发明实施例二提供的一种升级方法的基本流程示意图;4 is a schematic diagram of the basic flow of an upgrade method provided by Embodiment 2 of the present invention;
图5为本发明实施例三提供的一种通过get方式获取升级文件的流程示意图;FIG. 5 is a schematic diagram of a process of obtaining an upgrade file through a get method according to Embodiment 3 of the present invention;
图6为本发明实施例三提供的一种通过put方式获取升级文件的流程示意图;FIG. 6 is a schematic diagram of a process for obtaining an upgrade file in a put mode according to Embodiment 3 of the present invention;
图7为本发明实施例四提供的第一种通信设备的结构示意图;FIG. 7 is a schematic structural diagram of a first communication device according to Embodiment 4 of the present invention;
图8为本发明实施例四提供的第二种通信设备的结构示意图;FIG. 8 is a schematic structural diagram of a second communication device according to Embodiment 4 of the present invention;
图9为本发明实施例四提供的第三种通信设备的结构示意图。FIG. 9 is a schematic structural diagram of a third communication device provided by Embodiment 4 of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,下面通过具体实施方式结合附图对本发明实施例作进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions, and advantages of the present invention clearer, the following further describes the embodiments of the present invention in detail through specific implementations in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention.
实施例一:Example one:
为了解决现有技术中通信设备的升级时间长,服务器负载重,效率低下的问题,在本发明实施例中提供一种升级方法,通过在待升级通信设备中选择部分待升级通信设备进行升级,可选地,部分待升级通信设备升级成功后作为已升级通信设备,将升级文件发送至相邻待升级通信设备,可选地,相邻待升级通信设备根据升级文件进行升级;请参见图2所示,如图2为本实施例提供的升级方法的基本流程示意图。In order to solve the problems of long upgrade time of communication equipment, heavy server load, and low efficiency in the prior art, an upgrade method is provided in the embodiment of the present invention, by selecting part of the communication devices to be upgraded for upgrading, Optionally, some of the communication devices to be upgraded are successfully upgraded as upgraded communication devices, and the upgrade file is sent to the adjacent communication devices to be upgraded. Optionally, the adjacent communication devices to be upgraded are upgraded according to the upgrade file; see Figure 2 As shown, FIG. 2 is a schematic diagram of the basic flow of the upgrade method provided in this embodiment.
S201:在待升级通信设备中选择部分待升级通信设备进行升级。S201: Select part of the communication devices to be upgraded among the communication devices to be upgraded for upgrade.
需要说明的是,本实施例中的通信设备包括但不限于网元等任意形式的通信设备,在实际应用中,可根据具体应用场景做灵活调整。It should be noted that the communication equipment in this embodiment includes, but is not limited to, any form of communication equipment such as network elements. In actual applications, it can be flexibly adjusted according to specific application scenarios.
可选地,本实施例中,在待升级通信设备中选择部分待升级通信设备进行升级之前,还包括:Optionally, in this embodiment, before selecting some of the communication devices to be upgraded for upgrading, the method further includes:
根据设备型号对待升级通信设备进行分类,将设备型号相同的待升级通信设备划分为同一类型;Classify the communication devices to be upgraded according to the device model, and classify the communication devices to be upgraded with the same device model into the same type;
可选地,在待升级通信设备中选择部分待升级通信设备进行升级,包括:Optionally, selecting part of the communication devices to be upgraded for upgrading in the communication devices to be upgraded includes:
从各类型的待升级通信设备中分别选择部分待升级通信设备进行升级。Select part of the communication devices to be upgraded from various types of communication devices to be upgraded for upgrade.
为了更好的理解,这里以一个较为具体的示例进行说明:For a better understanding, here is a more specific example for illustration:
例如,设待升级通信设备有90个,同时设根据相同的设备型号将90个待升级通信设备分为了三类,其中标号1-30的待升级通信设备为第一类型,标号31-60的待升级通信设备为第二类型,标号61-90的待升级通信设备为第三类型;可选地,从第一类型、第二类型、第三类型的待升级通信设备中分别选择部分待升级通信设备进行升级,如从第一类型的待升级通信设备中选择标号为1的待升级通信设备进行升级,从第二类型的待升级通信设备中选择标号为31的待升级通信设备进行升级,从第三类型的待升级通信设备中选择标号为61的待升级通信设备进行升级。For example, suppose there are 90 communication devices to be upgraded, and the 90 communication devices to be upgraded are divided into three categories based on the same device model. Among them, the communication devices to be upgraded with numbers 1-30 are the first type, and those with numbers 31-60 The communication device to be upgraded is of the second type, and the communication devices to be upgraded with reference numbers 61-90 are of the third type; optionally, some of the communication devices to be upgraded are selected from the first, second, and third types of communication devices to be upgraded. The communication equipment is upgraded. For example, the communication equipment to be upgraded with label 1 is selected from the communication equipment to be upgraded of the first type for upgrade, and the communication equipment to be upgraded with label 31 is selected from the communication equipment to be upgraded of the second type for upgrade, The communication device to be upgraded with the number 61 is selected from the communication device to be upgraded of the third type to be upgraded.
应当理解的是,“部分”是针对第一类型、第二类型、第三类型中各待升级通信设备的个数而言,如上述示例中,“部分”应大于等于1小于30。值得注意的是,在实际应用中,“部分”需根据具体应用场景做灵活调整。It should be understood that "part" refers to the number of communication devices to be upgraded in the first type, second type, and third type. As in the above example, "part" should be greater than or equal to 1 and less than 30. It is worth noting that in actual applications, "parts" need to be flexibly adjusted according to specific application scenarios.
在本实施例中,在待升级通信设备中选择部分待升级通信设备进行升级,包括:In this embodiment, selecting part of the communication devices to be upgraded for upgrading in the communication devices to be upgraded includes:
一些示例中,在待升级通信设备中选择部分待升级通信设备,由服务器进行升级。In some examples, some communication devices to be upgraded are selected from the communication devices to be upgraded, and the server performs the upgrade.
一些示例中,在待升级通信设备中选择部分待升级通信设备,手动进行升级。In some examples, some communication devices to be upgraded are selected from the communication devices to be upgraded, and the upgrade is performed manually.
S202:部分待升级通信设备升级成功后作为已升级通信设备,将升级文件发送至相邻待升级通信设备。S202: After some of the communication devices to be upgraded are successfully upgraded, they are regarded as upgraded communication devices, and the upgrade file is sent to the adjacent communication devices to be upgraded.
应当理解的是,本实施例中的部分待升级通信设备升级成功后作为已升级通信设备,将升级文件发送至相邻待升级通信设备,其中“相邻”指代的是已升级通信设备与待升级通信设备通过光纤、网线等进行连接,或通过无线Vlan等方式进行连接。值得注意的是,这里所列举的只是常见的几种连接方式,本发明实施例并不局限于这几种连接方式,在实际应用中,可根据具体应用场景做灵活调整。It should be understood that part of the communication equipment to be upgraded in this embodiment is successfully upgraded as an upgraded communication equipment, and the upgrade file is sent to the adjacent communication equipment to be upgraded, where “adjacent” refers to the upgraded communication equipment and The communication equipment to be upgraded is connected through optical fiber, network cable, etc., or through wireless Vlan. It is worth noting that what are listed here are only several common connection modes, and the embodiment of the present invention is not limited to these several connection modes. In actual applications, it can be flexibly adjusted according to specific application scenarios.
可选地,本实施例中,将升级文件发送至相邻待升级通信设备之前,还包括:Optionally, in this embodiment, before sending the upgrade file to the neighboring communication device to be upgraded, it further includes:
已升级通信设备比较已升级通信设备和相邻待升级通信设备的设备型号和软件版本号,在设备型号相同且软件版本号不同时判定满足升级条件,将升级文件发送至相邻待升级通信设备。The upgraded communication device compares the device model and software version number of the upgraded communication device and the adjacent communication device to be upgraded. When the device model is the same and the software version number is different, it is determined that the upgrade conditions are met, and the upgrade file is sent to the adjacent communication device to be upgraded .
应当理解的是,设备型号相同的通信设备其升级所需的升级文件相同,且在软件版本号不同时即表示当前的待升级通信设备并未升级,因此,在设备型号相同且软件版本号不同时判定满足升级条件,才将升级文件发送至相邻待升级通信设备。It should be understood that communication devices with the same device model have the same upgrade files required for upgrading, and when the software version number is different, it means that the current communication device to be upgraded has not been upgraded. Therefore, when the device model is the same and the software version number is different At the same time, it is determined that the upgrade conditions are met, and the upgrade file is sent to the adjacent communication device to be upgraded.
可选地,本实施例中,在比较部分待升级通信设备和相邻待升级通信设备的设备型号和软件版本号之前,还包括:Optionally, in this embodiment, before comparing the device models and software version numbers of some communication devices to be upgraded and adjacent communication devices to be upgraded, it further includes:
已升级通信设备向相邻待升级通信设备发送设备型号和软件版本请求;The upgraded communication device sends a request for the device model and software version to the adjacent communication device to be upgraded;
相邻待升级通信设备接收到设备型号和软件版本请求后,将设备型号和软件版本号发送至已升级通信设备。After receiving the device model and software version request, the neighboring communication device to be upgraded sends the device model and software version number to the upgraded communication device.
可选地,本实施例中,将升级文件发送至相邻待升级通信设备之前,还包括:Optionally, in this embodiment, before sending the upgrade file to the neighboring communication device to be upgraded, it further includes:
已升级通信设备向相邻待升级通信设备发送升级请求;The upgraded communication device sends an upgrade request to the adjacent communication device to be upgraded;
相邻待升级通信设备接收到升级请求时,向已升级通信设备发送获取升级文件请求;When the adjacent communication device to be upgraded receives the upgrade request, it sends a request to obtain the upgrade file to the upgraded communication device;
已升级通信设备接收到获取升级文件请求时,将升级文件发送至相邻待升级通信设备。When the upgraded communication device receives the upgrade file request, it sends the upgrade file to the adjacent communication device to be upgraded.
S203:相邻待升级通信设备根据升级文件进行升级。S203: The adjacent communication device to be upgraded is upgraded according to the upgrade file.
可选地,本实施例中,相邻待升级通信设备根据升级文件进行升级,在升级失败之后,还包括:Optionally, in this embodiment, the adjacent communication device to be upgraded is upgraded according to the upgrade file, and after the upgrade fails, it further includes:
从数据库获取配置信息以及业务数据,以根据配置信息以及业务数据回退到之前的软件版本。Obtain configuration information and business data from the database to roll back to the previous software version based on the configuration information and business data.
可选地,本实施例中,相邻待升级通信设备根据升级文件进行升级,在升级失败/成功之后,还包括:Optionally, in this embodiment, the adjacent communication device to be upgraded is upgraded according to the upgrade file, and after the upgrade fails/successfully, it further includes:
一些示例中,向已升级通信设备发送升级失败/成功通知,由已升级通信设备将升级失败/成功通知发送至服务器;由此,工作人员可根据升级失败通知对应解决升级异常。In some examples, the upgrade failure/success notification is sent to the upgraded communication device, and the upgraded communication device sends the upgrade failure/success notification to the server; thus, the staff can solve the upgrade exception correspondingly according to the upgrade failure notification.
一些示例中,向服务器发送升级失败/成功通知;由此,工作人员可根据升级失败通知对应解决升级异常。In some examples, an upgrade failure/success notification is sent to the server; thus, the staff can resolve the upgrade exception according to the upgrade failure notification.
在本实施例中,可选地,相邻待升级通信设备根据所述升级文件进行升级,在升级成功之后作为已升级通信设备,还包括:In this embodiment, optionally, the adjacent communication device to be upgraded is upgraded according to the upgrade file, and after the upgrade is successful, it is regarded as an upgraded communication device, which further includes:
将升级文件发送至其相邻待升级通信设备,相邻待升级通信设备根据升级文件进行升级,依次循环,直至所有待升级通信设备升级成功;也即S202和S203需重复执行,直至所有的待升级通信设备升级成功。Send the upgrade file to its neighboring communication devices to be upgraded. The neighboring communication devices to be upgraded will be upgraded according to the upgrade files, and iteratively, until all the communication devices to be upgraded are successfully upgraded; that is, S202 and S203 need to be repeated until all the The upgraded communication equipment was successfully upgraded.
为了更好的理解,这里以一个较为具体的示例进行说明:For a better understanding, here is a more specific example for illustration:
例如,设待升级通信设备有30个,且均属于相同的设备型号,标号 分别为1-30,从中选择标号为1的待升级通信设备进行升级,其升级成功后作为已升级通信设备;可选地,标号为1的已升级通信设备将升级文件发送至与之相邻的标号为2和3的待升级通信设备,标号为2和3的待升级通信设备根据升级文件进行升级,其升级成功后作为已升级通信设备;可选地,标号为2的已升级通信设备将升级文件发送至与之相邻的标号为5、6、7的待升级通信设备,标号为5、6、7的待升级通信设备根据升级文件进行升级,其升级成功后作为已升级通信设备;同时,标号为3的已升级通信设备将升级文件发送至与之相邻的标号为8、9、10的待升级通信设备,标号为8、9、10的待升级通信设备根据升级文件进行升级,其升级成功后作为已升级通信设备,依次循环下去,过程类似,此次不再赘述,直至30个待升级通信设备均升级完成。For example, suppose that there are 30 communication devices to be upgraded, all of which belong to the same device model, with labels 1-30, respectively, and the communication device to be upgraded with label 1 is selected for upgrade, and the upgrade is successful as the upgraded communication device; Optionally, the upgraded communication device labeled 1 sends the upgrade file to the adjacent communication devices labeled 2 and 3 to be upgraded, and the communication devices labeled 2 and 3 to be upgraded are upgraded according to the upgrade file. After success, it is regarded as an upgraded communication device; optionally, the upgraded communication device labeled 2 will send the upgrade file to the adjacent communication devices labeled 5, 6, 7 to be upgraded, labeled 5, 6, 7 The communication device to be upgraded is upgraded according to the upgrade file, and it will be regarded as the upgraded communication device after the upgrade is successful; at the same time, the upgraded communication device with label 3 will send the upgrade file to the adjacent waiting communication device with labels 8, 9, 10 Upgrade communication equipment. The communication equipment to be upgraded with labels 8, 9, and 10 are upgraded according to the upgrade file. After the upgrade is successful, they will be regarded as upgraded communication equipment. The cycle is similar. The process is similar. This time I will not repeat it until 30 to be upgraded. The communication equipment has been upgraded.
应当理解的是,循环次数由从待升级通信设备中选择部分待升级通信设备的个数以及各通信设备之间的相邻关系确定,在实际应用中,需根据具体应用场景做灵活调整。It should be understood that the number of cycles is determined by the number of selected communication devices to be upgraded from the communication devices to be upgraded and the neighbor relationship between the communication devices. In actual applications, it needs to be flexibly adjusted according to specific application scenarios.
本发明实施例提供的升级方法,通过先升级部分待升级通信设备,进而利用升级完成的通信设备对其他的待升级通信设备进行升级,解决了现有技术中通信设备的升级时间长,服务器负载重,效率低下的问题;与现有的升级方式相比,至少具备以下优点:The upgrade method provided by the embodiment of the present invention first upgrades part of the communication equipment to be upgraded, and then uses the upgraded communication equipment to upgrade other communication equipment to be upgraded, which solves the problem of the long upgrade time and server load of the communication equipment in the prior art. Compared with the existing upgrade method, it has at least the following advantages:
第一,减少了大规模,大数量设备升级耗费的总时间,传统的升级方式,受限于服务器的性能,能够同时并行升级的设备数量较少,升级设备需要时间长,并行智能扩散升级则不会被服务器性能所限,能够同时对大量设备升级,尤其适合待升级的设备较多的场景。First, it reduces the total time consumed for large-scale, large-scale equipment upgrades. The traditional upgrade method is limited by the performance of the server, and the number of devices that can be upgraded in parallel at the same time is small, and it takes a long time to upgrade the equipment. Not limited by server performance, it can upgrade a large number of devices at the same time, especially suitable for scenarios with many devices to be upgraded.
第二,对服务器的依赖变小,升级过程中即使服务器出现故障,依然可以由升级成功的通信设备对待升级的通信设备完成升级。Second, the dependence on the server becomes smaller. Even if the server fails during the upgrade process, the successfully upgraded communication device can still complete the upgrade of the communication device to be upgraded.
第三,升级过程中对业务的影响较小,由于是分布式并行升级,有相当一部分待升级设备以及升级完成的设备来处理业务,总体上减小了升级耗费的时间,降低了服务器升级负载,提高了通信设备的可靠性,高效性。Third, the impact on the business during the upgrade process is small. Because it is a distributed and parallel upgrade, a considerable part of the equipment to be upgraded and the upgraded equipment are used to process the business, which reduces the time spent on upgrading as a whole and reduces the server upgrade load , Improve the reliability and efficiency of communication equipment.
第四,降低了服务器的负载,分布式智能扩散升级利用多台通信设备分担升级负荷,平衡负载,不但解决了传统通信设备中单服务器升级的瓶颈问题,还提高了网络系统的可靠性、可用性。Fourth, the server load is reduced. The distributed intelligent diffusion upgrade utilizes multiple communication devices to share the upgrade load and balance the load, which not only solves the bottleneck problem of single server upgrade in traditional communication equipment, but also improves the reliability and availability of the network system .
实施例二:Example two:
本发明实施例在实施例一的基础上,以较为具体的升级方法过程为例进行说明。On the basis of the first embodiment, the embodiment of the present invention takes a more specific upgrade method process as an example for description.
本实施例以通信设备为网元为例进行说明。This embodiment is described by taking the communication device as a network element as an example.
首先,请参见图3所示,如图3为本实施例提供的升级方法结构示意图,包括以下步骤:First, please refer to Figure 3, which is a schematic structural diagram of the upgrade method provided in this embodiment, including the following steps:
步骤一、服务器给网元一升级。Step 1. The server upgrades the network element 1.
步骤二、网元一升级成功,网元一将升级文件发送至与之相邻网元二、网元三、网元四、网元五,网元二、网元三、网元四、网元五根据升级文件进行升级,升级成功。Step two, the first network element is successfully upgraded, and the first network element sends the upgrade file to its neighboring network element two, network element three, network element four, network element five, network element two, network element three, network element four, network Yuan five upgraded according to the upgrade file, and the upgrade was successful.
步骤三、网元四将升级文件发送至与之相邻的网元n,网元n根据升级文件进行升级,升级成功,至此所有网元均完成升级。Step 3: The network element four sends the upgrade file to the adjacent network element n, and the network element n is upgraded according to the upgrade file. The upgrade is successful, and all network elements are upgraded.
其次,请参见图4所示,如图4为本实施例提供的升级方法的流程示意图,包括以下步骤:Secondly, please refer to FIG. 4, which is a schematic flowchart of the upgrade method provided in this embodiment, including the following steps:
S401、服务器给待升级网元A升级。S401. The server upgrades the network element A to be upgraded.
S402、网元A升级成功后,启动升级进程和传输服务。S402: After the network element A is successfully upgraded, start the upgrade process and transmission service.
S403、网元A向相邻网元B发送设备型号和软件版本号请求。S403: The network element A sends a request for the device model and software version number to the neighboring network element B.
S404、相邻网元B收到网元A的设备型号和软件版本号请求后,向网元A发送自身的设备型号和软件版本号消息。S404. After receiving the request for the device model and software version number of the network element A, the neighboring network element B sends its own device model and software version number message to the network element A.
S405、网元A收到网元B的自身的设备型号和软件版本号消息,比较两者的设备型号和软件版本号。S405. Network element A receives the message of its own device model and software version number of network element B, and compares the device model and software version number of the two.
S406、当比较结果是设备型号相同且软件版本号不同时,网元A向网元B发送升级请求。S406: When the comparison result is that the device models are the same and the software version numbers are different, the network element A sends an upgrade request to the network element B.
S407、网元B收到网元A的升级请求后,启用升级进程和传输服务。S407: After receiving the upgrade request from the network element A, the network element B starts the upgrade process and the transmission service.
S408、网元B向网元A发送获取升级文件请求。S408: The network element B sends a request to obtain the upgrade file to the network element A.
S409、网元A收到网元B的获取升级文件请求后,通过传输服务发送升级文件到网元B。S409. After receiving the request from the network element B to obtain the upgrade file, the network element A sends the upgrade file to the network element B through the transmission service.
S4010、网元B接收到升级文件后,激活升级文件,根据升级文件进行升级,升级完成。S4010. After receiving the upgrade file, the network element B activates the upgrade file, performs the upgrade according to the upgrade file, and the upgrade is completed.
重复S402至S4010,区别仅在于网元A替换为与之相邻的网元B,网元B替换为与之相邻的网元N,直至所有网元升级完成。Repeat S402 to S4010, the only difference is that the network element A is replaced with the adjacent network element B, and the network element B is replaced with the adjacent network element N, until all the network elements are upgraded.
本发明实施例提供的升级方法,通过在待升级网元中选择部分待升级网元进行升级,可选地,部分待升级网元升级成功后作为已升级网元,将升级文件发送至相邻待升级网元,可选地,相邻待升级网元根据升级文件进行升级;解决了现有技术中网元的升级时间长,服务器负载重,效率低下的问题。也即本发明实施例提供的升级方法,先升级部分待升级网元,进而利用升级完成的网元对其相邻网元进行升级,依次循环直至所有网元升级成功,实现了服务器的负载分担,迅速扩散升级包,使得大规模网元能够快速升级,即便升级过程中服务器出现故障,仍能由升级完成的网元给相邻待升级的网元完成升级,可靠性大大增强。In the upgrade method provided by the embodiment of the present invention, a part of the network elements to be upgraded is selected for upgrading among the network elements to be upgraded. Optionally, some of the network elements to be upgraded are successfully upgraded as the upgraded network elements, and the upgrade file is sent to the adjacent The network element to be upgraded, optionally, the adjacent network element to be upgraded is upgraded according to the upgrade file; this solves the problems of long network element upgrade time, heavy server load, and low efficiency in the prior art. That is, the upgrade method provided by the embodiment of the present invention first upgrades some of the network elements to be upgraded, and then uses the upgraded network elements to upgrade its neighboring network elements, and loops in turn until all network elements are successfully upgraded, thereby realizing load sharing of the server , The rapid spread of the upgrade package enables rapid upgrade of large-scale network elements. Even if the server fails during the upgrade process, the upgraded network element can still be upgraded to the neighboring network element to be upgraded, and the reliability is greatly enhanced.
实施例三:Example three:
本发明实施例在实施例一、二的基础上,使用C/S模式传输升级文件,其中有两种传输方式:On the basis of the first and second embodiments, the embodiment of the present invention uses the C/S mode to transmit the upgrade file, and there are two transmission methods:
第一种传输方式是升级完成通信设备作为服务端,符合升级条件的相邻通信设备作为客户端;The first transmission method is that the upgraded communication device serves as the server, and the adjacent communication device that meets the upgrade conditions serves as the client;
第二种传输方式是升级完成的通信设备作为客户端,符合升级条件的 相邻通信设备作为服务端。The second transmission method is that the upgraded communication device serves as the client, and the adjacent communication device that meets the upgrade conditions serves as the server.
请参见图5所示,如图5为本实施例提供的通过get方式获取升级文件的流程示意图,包括以下步骤:Please refer to FIG. 5, which is a schematic diagram of the process of obtaining the upgrade file through the get method provided in this embodiment, including the following steps:
S501、将升级完成的通信设备A配置为服务端。S501. Configure the upgraded communication device A as a server.
S502、通信设备A向待升级的相邻通信设备B发送升级请求。S502: The communication device A sends an upgrade request to the neighboring communication device B to be upgraded.
S503、通信设备B收到升级请求后,将自身配置为客户端。S503: After receiving the upgrade request, the communication device B configures itself as a client.
S504、通信设备B向通信设备A发送获取升级文件请求。S504: The communication device B sends a request for obtaining an upgrade file to the communication device A.
S505、通信设备A收到获取升级文件请求后,向通信设备B发送升级文件。S505: After receiving the request for obtaining the upgrade file, the communication device A sends the upgrade file to the communication device B.
S506、通信设备B接收升级文件,根据升级文件进行升级。S506: The communication device B receives the upgrade file, and performs the upgrade according to the upgrade file.
请参见图6所示,如图6为本实施例提供的通过put方式获取升级文件的流程示意图,包括以下步骤:Please refer to FIG. 6, which is a schematic diagram of the process of obtaining the upgrade file through put method provided in this embodiment, including the following steps:
S601、将升级完成的通信设备A配置为客户端。S601. Configure the upgraded communication device A as a client.
S602、向待升级的相邻通信设备B发送升级请求。S602: Send an upgrade request to the neighboring communication device B to be upgraded.
S603、通信设备B收到升级请求后,将自身配置为服务端。S603: After receiving the upgrade request, the communication device B configures itself as a server.
S604、通信设备B向通信设备A发送确认升级请求。S604: The communication device B sends a confirmation upgrade request to the communication device A.
S605、通信设备A收到确认升级请求后,向通信设备B发送升级文件。S605: After receiving the confirmation upgrade request, the communication device A sends the upgrade file to the communication device B.
S606、通信设备B接收升级文件,根据升级文件进行升级。S606. The communication device B receives the upgrade file, and performs the upgrade according to the upgrade file.
实施例四:Embodiment four:
为了解决现有技术中通信设备的升级时间长,服务器负载重,效率低下的问题,在本发明实施例中提供一种通信设备,请参见图7所示,本实施例提供的通信设备包括处理器701及存储器702。In order to solve the problems of long upgrade time of communication equipment, heavy server load and low efficiency in the prior art, a communication equipment is provided in an embodiment of the present invention. Please refer to FIG. 7. The communication equipment provided in this embodiment includes processing 701 and memory 702.
其中,本实施例中处理器701则设置为执行存储器702中存储的一个 或者多个程序,以实现以下步骤:Wherein, the processor 701 in this embodiment is configured to execute one or more programs stored in the memory 702 to implement the following steps:
在待升级通信设备中选择部分待升级通信设备进行升级;Select part of the communication equipment to be upgraded in the communication equipment to be upgraded for upgrading;
部分待升级通信设备升级成功后作为已升级通信设备,将升级文件发送至相邻待升级通信设备;After part of the communication equipment to be upgraded is successfully upgraded, it will be regarded as upgraded communication equipment, and the upgrade file will be sent to the adjacent communication equipment to be upgraded;
相邻待升级通信设备根据升级文件进行升级。The adjacent communication equipment to be upgraded is upgraded according to the upgrade file.
可选地,一种示例中,请参见图8所示,通信设备还包括通信总线703,其中通信总线703设置为实现处理器701与存储器702之间的连接通信。在另一种示例中,处理器701与存储器702还可通过无线的方式进行通信,在实际应用中,可根据具体应用场景做灵活调整。Optionally, in an example, referring to FIG. 8, the communication device further includes a communication bus 703, where the communication bus 703 is configured to implement connection and communication between the processor 701 and the memory 702. In another example, the processor 701 and the memory 702 can also communicate in a wireless manner. In actual applications, they can be flexibly adjusted according to specific application scenarios.
需要说明的是,对于同一通信设备而言,其在升级之前作为待升级通信设备,在获取到升级文件后可进行升级,其在升级之后作为已升级通信设备。It should be noted that for the same communication device, it serves as the communication device to be upgraded before the upgrade, and can be upgraded after obtaining the upgrade file, and it is regarded as the upgraded communication device after the upgrade.
还需要说明的是,本实施例中的通信设备包括但不限于网元等任意形式的通信设备,在实际应用中,可根据具体应用场景做灵活调整。It should also be noted that the communication equipment in this embodiment includes, but is not limited to, any form of communication equipment such as network elements. In actual applications, it can be flexibly adjusted according to specific application scenarios.
可选地,本实施例中,在待升级通信设备中选择部分待升级通信设备进行升级之前,还包括:Optionally, in this embodiment, before selecting part of the communication devices to be upgraded for upgrading among the communication devices to be upgraded, the method further includes:
根据设备型号对待升级通信设备进行分类,将设备型号相同的待升级通信设备划分为同一类型;Classify the communication devices to be upgraded according to the device model, and classify the communication devices to be upgraded with the same device model into the same type;
可选地,在待升级通信设备中选择部分待升级通信设备进行升级,包括:Optionally, selecting part of the communication devices to be upgraded for upgrading in the communication devices to be upgraded includes:
从各类型的待升级通信设备中分别选择部分待升级通信设备进行升级。Select part of the communication devices to be upgraded from various types of communication devices to be upgraded for upgrade.
应当理解的是,“部分”是针对待升级通信设备的个数而言,其应大于等于1小于待升级通信设备的个数。值得注意的是,在实际应用中,“部分”需根据具体应用场景做灵活调整。It should be understood that "part" refers to the number of communication devices to be upgraded, and it should be greater than or equal to 1 and less than the number of communication devices to be upgraded. It is worth noting that in actual applications, "parts" need to be flexibly adjusted according to specific application scenarios.
在本实施例中,在待升级通信设备中选择部分待升级通信设备进行升 级,包括:In this embodiment, selecting part of the communication devices to be upgraded for upgrading in the communication devices to be upgraded includes:
一些示例中,在待升级通信设备中选择部分待升级通信设备,由服务器进行升级。In some examples, some communication devices to be upgraded are selected from the communication devices to be upgraded, and the server performs the upgrade.
一些示例中,在待升级通信设备中选择部分待升级通信设备,手动进行升级。In some examples, some communication devices to be upgraded are selected from the communication devices to be upgraded, and the upgrade is performed manually.
应当理解的是,本实施例中的部分待升级通信设备升级成功后作为已升级通信设备,将升级文件发送至相邻待升级通信设备,其中“相邻”指代的是已升级通信设备与待升级通信设备通过光纤、网线等进行连接,或通过无线Vlan等方式进行连接。值得注意的是,这里所列举的只是常见的几种连接方式,本发明实施例并不局限于这几种连接方式,在实际应用中,可根据具体应用场景做灵活调整。It should be understood that part of the communication equipment to be upgraded in this embodiment is successfully upgraded as an upgraded communication equipment, and the upgrade file is sent to the adjacent communication equipment to be upgraded, where “adjacent” refers to the upgraded communication equipment and The communication equipment to be upgraded is connected through optical fiber, network cable, etc., or through wireless Vlan. It is worth noting that what are listed here are only several common connection modes, and the embodiment of the present invention is not limited to these several connection modes. In actual applications, it can be flexibly adjusted according to specific application scenarios.
可选地,本实施例中,将升级文件发送至相邻待升级通信设备之前,还包括:Optionally, in this embodiment, before sending the upgrade file to the neighboring communication device to be upgraded, it further includes:
已升级通信设备比较已升级通信设备和相邻待升级通信设备的设备型号和软件版本号,在设备型号相同且软件版本号不同时判定满足升级条件,将升级文件发送至相邻待升级通信设备。The upgraded communication device compares the device model and software version number of the upgraded communication device and the adjacent communication device to be upgraded. When the device model is the same and the software version number is different, it is determined that the upgrade conditions are met, and the upgrade file is sent to the adjacent communication device to be upgraded .
可选地,本实施例中,在比较部分待升级通信设备和相邻待升级通信设备的设备型号和软件版本号之前,还包括:Optionally, in this embodiment, before comparing the device models and software version numbers of some communication devices to be upgraded and adjacent communication devices to be upgraded, it further includes:
已升级通信设备向相邻待升级通信设备发送设备型号和软件版本请求;The upgraded communication device sends a request for the device model and software version to the adjacent communication device to be upgraded;
相邻待升级通信设备接收到设备型号和软件版本请求后,将设备型号和软件版本号发送至已升级通信设备。After receiving the device model and software version request, the neighboring communication device to be upgraded sends the device model and software version number to the upgraded communication device.
可选地,本实施例中,将升级文件发送至相邻待升级通信设备之前,还包括:Optionally, in this embodiment, before sending the upgrade file to the neighboring communication device to be upgraded, it further includes:
已升级通信设备向相邻待升级通信设备发送升级请求;The upgraded communication device sends an upgrade request to the adjacent communication device to be upgraded;
相邻待升级通信设备接收到升级请求时,向已升级通信设备发送获取 升级文件请求;When the adjacent communication device to be upgraded receives the upgrade request, it sends a request to obtain the upgrade file to the upgraded communication device;
已升级通信设备接收到获取升级文件请求时,将升级文件发送至相邻待升级通信设备。When the upgraded communication device receives the upgrade file request, it sends the upgrade file to the adjacent communication device to be upgraded.
可选地,本实施例中,相邻待升级通信设备根据升级文件进行升级,在升级失败之后,还包括:Optionally, in this embodiment, the adjacent communication device to be upgraded is upgraded according to the upgrade file, and after the upgrade fails, it further includes:
从数据库获取配置信息以及业务数据,以根据配置信息以及业务数据回退到之前的软件版本。Obtain configuration information and business data from the database to roll back to the previous software version based on the configuration information and business data.
可选地,本实施例中,相邻待升级通信设备根据升级文件进行升级,在升级失败/成功之后,还包括:Optionally, in this embodiment, the adjacent communication device to be upgraded is upgraded according to the upgrade file, and after the upgrade fails/successfully, it further includes:
一些示例中,向已升级通信设备发送升级失败/成功通知,由已升级通信设备将升级失败/成功通知发送至服务器;由此,工作人员可根据升级失败通知对应解决升级异常。In some examples, the upgrade failure/success notification is sent to the upgraded communication device, and the upgraded communication device sends the upgrade failure/success notification to the server; thus, the staff can solve the upgrade exception correspondingly according to the upgrade failure notification.
一些示例中,向服务器发送升级失败/成功通知;由此,工作人员可根据升级失败通知对应解决升级异常。In some examples, an upgrade failure/success notification is sent to the server; thus, the staff can resolve the upgrade exception according to the upgrade failure notification.
在本实施例中,可选地,相邻待升级通信设备根据所述升级文件进行升级,在升级成功之后作为已升级通信设备,还包括:In this embodiment, optionally, the adjacent communication device to be upgraded is upgraded according to the upgrade file, and after the upgrade is successful, it is regarded as an upgraded communication device, which further includes:
将升级文件发送至其相邻待升级通信设备,相邻待升级通信设备根据升级文件进行升级,依次循环,直至所有待升级通信设备升级成功。The upgrade file is sent to its neighboring communication device to be upgraded, and the neighboring communication device to be upgraded is upgraded according to the upgrade file, and the cycle is repeated until all the communication devices to be upgraded are successfully upgraded.
应当理解的是,循环次数由从待升级通信设备中选择部分待升级通信设备的个数以及各通信设备之间的相邻关系确定,在实际应用中,需根据具体应用场景做灵活调整。It should be understood that the number of cycles is determined by the number of selected communication devices to be upgraded from the communication devices to be upgraded and the neighbor relationship between the communication devices. In actual applications, it needs to be flexibly adjusted according to specific application scenarios.
在本实施例中,可选地,请参见图9所示,本实施例提供的通信设备包括消息模块901、比较模块902、升级模块903以及回退模块904;In this embodiment, optionally, referring to FIG. 9, the communication device provided in this embodiment includes a message module 901, a comparison module 902, an upgrade module 903, and a fallback module 904;
其中,消息模块901:设置为已升级通信设备和待升级通信设备之间互通消息,例如已升级通信设备发送设备型号和软件版本号请求消息,升级请求等等,待升级通信设备发送自身设备型号和软件版本号消息,获取 升级文件请求等等。Among them, the message module 901: set to communicate messages between the upgraded communication device and the communication device to be upgraded, for example, the upgraded communication device sends a request message for the device model and software version number, upgrade request, etc., and the communication device to be upgraded sends its own device model And software version number message, get upgrade file request, etc.
其中,比较模块902:设置为比较收到的其与相邻通信设备(待升级通信设备,下同)的设备型号和软件版本号,并将比较结果发送至升级模块903。Among them, the comparison module 902 is configured to compare the received device model and software version number of the adjacent communication device (communication device to be upgraded, the same below), and send the comparison result to the upgrade module 903.
其中,升级模块903:设置为根据比较结果确定是否对相邻通信设备进行升级,在比较结果为满足升级条件时,待升级通信设备根据消息模块901获取到的升级文件进行升级,完成升级。The upgrade module 903 is configured to determine whether to upgrade the adjacent communication device according to the comparison result. When the comparison result is that the upgrade condition is satisfied, the communication device to be upgraded upgrades according to the upgrade file obtained by the message module 901 to complete the upgrade.
其中,回退模块904:设置为在升级失败时,从数据库获取配置信息以及业务数据,以根据该配置信息以及业务数据回退到之前的软件版本。Wherein, the rollback module 904 is set to obtain configuration information and business data from the database when the upgrade fails, so as to roll back to the previous software version according to the configuration information and business data.
需要说明的是,这里所列举的只是一种常见的模块划分形式,本发明实施例并不局限于这一种方式,只要能实现上述的功能步骤,模块形式可根据具体应用场景做灵活调整;另外上述各模块均可由处理器进行执行。It should be noted that what is listed here is only a common module division form, and the embodiment of the present invention is not limited to this method. As long as the above functional steps can be realized, the module form can be flexibly adjusted according to specific application scenarios; In addition, each of the above modules can be executed by the processor.
本发明实施例提供的通信设备,通过先升级部分待升级通信设备,进而利用升级完成的通信设备对其他的待升级通信设备进行升级,解决了现有技术中通信设备的升级时间长,服务器负载重,效率低下的问题;与现有的升级方式相比,至少具备以下优点:The communication equipment provided by the embodiment of the present invention first upgrades part of the communication equipment to be upgraded, and then uses the upgraded communication equipment to upgrade other communication equipment to be upgraded, which solves the problem of the long upgrade time and server load of the communication equipment in the prior art. Compared with the existing upgrade methods, it has at least the following advantages:
第一,减少了大规模,大数量设备升级耗费的总时间,传统的升级方式,受限于服务器的性能,能够同时并行升级的设备数量较少,升级设备需要时间长,并行智能扩散升级则不会被服务器性能所限,能够同时对大量设备升级,尤其适合待升级的设备较多的场景。First, it reduces the total time consumed for large-scale, large-scale equipment upgrades. The traditional upgrade method is limited by the performance of the server, and the number of devices that can be upgraded in parallel at the same time is small, and it takes a long time to upgrade the equipment. Not limited by server performance, it can upgrade a large number of devices at the same time, especially suitable for scenarios with many devices to be upgraded.
第二,对服务器的依赖变小,升级过程中即使服务器出现故障,依然可以由升级成功的通信设备对待升级的通信设备完成升级。Second, the dependence on the server becomes smaller. Even if the server fails during the upgrade process, the successfully upgraded communication device can still complete the upgrade of the communication device to be upgraded.
第三,升级过程中对业务的影响较小,由于是分布式并行升级,有相当一部分待升级设备以及升级完成的设备来处理业务,总体上减小了升级耗费的时间,降低了服务器升级负载,提高了通信设备的可靠性,高效性。Third, the impact on the business during the upgrade process is small. Because it is a distributed and parallel upgrade, a considerable part of the equipment to be upgraded and the upgraded equipment are used to process the business, which reduces the time spent on upgrading as a whole and reduces the server upgrade load , Improve the reliability and efficiency of communication equipment.
第四,降低了服务器的负载,分布式智能扩散升级利用多台通信设备分担升级负荷,平衡负载,不但解决了传统通信设备中单服务器升级的瓶 颈问题,还提高了网络系统的可靠性、可用性。Fourth, the server load is reduced. The distributed intelligent diffusion upgrade utilizes multiple communication devices to share the upgrade load and balance the load, which not only solves the bottleneck problem of single server upgrade in traditional communication equipment, but also improves the reliability and availability of the network system .
同时,本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质存储有一个或者多个程序,一个或者多个程序可被一个或者多个处理器执行,以实现如上述实施例一、二、三中升级方法的步骤。At the same time, the embodiment of the present invention also provides a computer-readable storage medium. The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned embodiments. One, two, and three upgrade method steps.
该计算机可读存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、计算机程序模块或其他数据)的任何方法或技术中实施的易失性或非易失性、可移除或不可移除的介质。计算机可读存储介质包括但不限于RAM(Random Access Memory,随机存取存储器),ROM(Read-Only Memory,只读存储器),EEPROM(Electrically Erasable Programmable read only memory,带电可擦可编程只读存储器)、闪存或其他存储器技术、CD-ROM(Compact Disc Read-Only Memory,光盘只读存储器),数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。The computer-readable storage medium includes volatile or non-volatile, removable, or removable or non-volatile memory implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules, or other data). Non-removable media. Computer readable storage media include but are not limited to RAM (Random Access Memory), ROM (Read-Only Memory, read-only memory), EEPROM (Electrically Erasable Programmable read only memory, charged Erasable Programmable Read-Only Memory) ), flash memory or other storage technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, Or any other medium that can be used to store desired information and can be accessed by a computer.
显然,本领域的技术人员应该明白,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件(可以用计算装置可执行的程序代码来实现)、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸 如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。Obviously, those skilled in the art should understand that all or some of the steps in the method disclosed above, the functional modules/units in the system, and the device can be implemented as software (which can be implemented by program code executable by a computing device) , Firmware, hardware and their appropriate combination. In hardware implementations, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may consist of several physical components. The components are executed cooperatively. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on a computer-readable medium and executed by a computing device, and in some cases, the steps shown or described may be executed in a different order than here. The computer-readable medium may include computer storage Medium (or non-transitory medium) and communication medium (or temporary medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile memory implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Flexible, removable and non-removable media.
此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。所以,本发明实施例不限制于任何特定的硬件和软件结合。In addition, as is well known to those of ordinary skill in the art, communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media . Therefore, the embodiments of the present invention are not limited to any specific combination of hardware and software.
以上内容是结合具体的实施方式对本发明实施例所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明实施例所属技术领域的普通技术人员来说,在不脱离本发明实施例构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明实施例的保护范围。The above content is a further detailed description of the embodiments of the present invention in combination with specific implementations, and it cannot be considered that the specific implementations of the present invention are limited to these descriptions. For those of ordinary skill in the technical field to which the embodiments of the present invention belong, several simple deductions or substitutions can be made without departing from the concept of the embodiments of the present invention, which should be regarded as falling within the protection scope of the embodiments of the present invention.

Claims (10)

  1. 一种升级方法,包括:An upgrade method including:
    在待升级通信设备中选择部分待升级通信设备进行升级;Select part of the communication equipment to be upgraded in the communication equipment to be upgraded for upgrading;
    所述部分待升级通信设备升级成功后作为已升级通信设备,将升级文件发送至相邻待升级通信设备;After the part of the communication equipment to be upgraded is successfully upgraded, it is regarded as the upgraded communication equipment, and the upgrade file is sent to the adjacent communication equipment to be upgraded;
    所述相邻待升级通信设备根据所述升级文件进行升级。The adjacent communication device to be upgraded is upgraded according to the upgrade file.
  2. 如权利要求1所述的升级方法,其中,所述将升级文件发送至相邻待升级通信设备之前,还包括:The upgrade method according to claim 1, wherein before sending the upgrade file to a neighboring communication device to be upgraded, the method further comprises:
    所述已升级通信设备比较所述已升级通信设备和所述相邻待升级通信设备的设备型号和软件版本号,在设备型号相同且软件版本号不同时判定满足升级条件,将所述升级文件发送至相邻待升级通信设备。The upgraded communication device compares the device model and software version number of the upgraded communication device and the adjacent communication device to be upgraded, determines that the upgrade condition is met when the device model is the same and the software version number is different, and the upgrade file Send to neighboring communication equipment to be upgraded.
  3. 如权利要求2所述的升级方法,其中,所述在比较部分待升级通信设备和相邻待升级通信设备的设备型号和软件版本号之前,还包括:The upgrade method according to claim 2, wherein, before comparing the device models and software version numbers of the part of the communication device to be upgraded and the adjacent communication device to be upgraded, the method further comprises:
    所述已升级通信设备向所述相邻待升级通信设备发送设备型号和软件版本请求;The upgraded communication device sends a device model and software version request to the adjacent communication device to be upgraded;
    所述相邻待升级通信设备接收到所述设备型号和软件版本请求后,将设备型号和软件版本号发送至所述已升级通信设备。After receiving the request for the device model and software version, the neighboring communication device to be upgraded sends the device model and software version number to the upgraded communication device.
  4. 如权利要求2所述的升级方法,其中,所述将所述升级文件发送至相邻待升级通信设备之前,还包括:The upgrade method according to claim 2, wherein, before sending the upgrade file to a neighboring communication device to be upgraded, the method further comprises:
    所述已升级通信设备向所述相邻待升级通信设备发送升级请求;The upgraded communication device sends an upgrade request to the adjacent communication device to be upgraded;
    所述相邻待升级通信设备接收到所述升级请求时,向所述已升级通信设备发送获取升级文件请求;When the adjacent communication device to be upgraded receives the upgrade request, sending a request for obtaining an upgrade file to the upgraded communication device;
    所述已升级通信设备接收到所述获取升级文件请求时,将所述升级文件发送至所述相邻待升级通信设备。When the upgraded communication device receives the upgrade file acquisition request, it sends the upgrade file to the adjacent communication device to be upgraded.
  5. 如权利要求1-4任一项所述的升级方法,其中,所述相邻待升级 通信设备根据所述升级文件进行升级,升级失败之后,还包括:The upgrade method according to any one of claims 1-4, wherein the adjacent communication device to be upgraded upgrades according to the upgrade file, and after the upgrade fails, the method further comprises:
    从数据库获取配置信息以及业务数据,以根据所述配置信息以及业务数据回退到之前的软件版本。Obtain configuration information and business data from the database, so as to roll back to the previous software version according to the configuration information and business data.
  6. 如权利要求1-4任一项所述的升级方法,其中,所述相邻待升级通信设备根据所述升级文件进行升级,升级失败/成功之后,还包括:The upgrade method according to any one of claims 1-4, wherein the adjacent communication device to be upgraded is upgraded according to the upgrade file, and after the upgrade fails/successfully, it further comprises:
    向所述已升级通信设备发送升级失败/成功通知,由所述已升级通信设备将所述升级失败/成功通知发送至服务器;Sending an upgrade failure/success notification to the upgraded communication device, and the upgraded communication device sends the upgrade failure/success notification to the server;
    或,or,
    向服务器发送升级失败/成功通知。Send notification of upgrade failure/success to the server.
  7. 如权利要求1-4任一项所述的升级方法,其中,所述相邻待升级通信设备根据所述升级文件进行升级,升级成功之后作为已升级通信设备,还包括:The upgrade method according to any one of claims 1 to 4, wherein the adjacent communication device to be upgraded is upgraded according to the upgrade file, and after the upgrade is successful, it is regarded as an upgraded communication device, further comprising:
    将所述升级文件发送至相邻待升级通信设备,所述相邻待升级通信设备根据所述升级文件进行升级,依次循环,直至所有待升级通信设备升级成功。The upgrade file is sent to a neighboring communication device to be upgraded, and the neighboring communication device to be upgraded is upgraded according to the upgrade file, and loops in turn until all the communication devices to be upgraded are successfully upgraded.
  8. 如权利要求7所述的升级方法,其中,所述在待升级通信设备中选择部分待升级通信设备进行升级之前,还包括:8. The upgrade method according to claim 7, wherein, before selecting a part of the communication devices to be upgraded for upgrading, the method further comprises:
    根据设备型号对待升级通信设备进行分类,将设备型号相同的待升级通信设备划分为同一类型;Classify the communication devices to be upgraded according to the device model, and classify the communication devices to be upgraded with the same device model into the same type;
    所述在待升级通信设备中选择部分待升级通信设备进行升级,包括:Said selecting part of the communication equipment to be upgraded for upgrading in the communication equipment to be upgraded includes:
    从各类型的待升级通信设备中分别选择部分待升级通信设备进行升级。Select part of the communication devices to be upgraded from various types of communication devices to be upgraded for upgrade.
  9. 一种通信设备,所述通信设备包括处理器及存储器;A communication device including a processor and a memory;
    所述处理器设置为执行所述存储器中存储的一个或者多个计算机程 序,以实现如权利要求1-8中任一项所述的升级方法的步骤。The processor is configured to execute one or more computer programs stored in the memory to implement the steps of the upgrading method according to any one of claims 1-8.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个计算机程序,所述一个或者多个计算机程序可被一个或者多个处理器执行,以实现如权利要求1-8中任一项所述的升级方法的步骤。A computer-readable storage medium, the computer-readable storage medium stores one or more computer programs, and the one or more computer programs can be executed by one or more processors, so as to implement claims 1-8 The steps of any one of the upgrade methods.
PCT/CN2020/107883 2019-08-16 2020-08-07 Upgrade method, communication device and computer-readable storage medium WO2021031889A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910760047.0A CN112398673A (en) 2019-08-16 2019-08-16 Upgrading method, communication equipment and computer readable storage medium
CN201910760047.0 2019-08-16

Publications (1)

Publication Number Publication Date
WO2021031889A1 true WO2021031889A1 (en) 2021-02-25

Family

ID=74602875

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/107883 WO2021031889A1 (en) 2019-08-16 2020-08-07 Upgrade method, communication device and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN112398673A (en)
WO (1) WO2021031889A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172875A (en) * 2021-12-03 2022-03-11 深圳小湃科技有限公司 Remote upgrading method and system for network camera and readable storage medium
CN114465894A (en) * 2021-12-28 2022-05-10 湖北华中光电科技有限公司 Software upgrading method for laser alarm equipment
CN116414416A (en) * 2023-02-08 2023-07-11 北京富润成照明系统工程有限公司 Method and device for remotely upgrading street lamp controller
WO2023185390A1 (en) * 2022-03-28 2023-10-05 中兴通讯股份有限公司 Base station version downloading method, network management server, base station, device and medium
CN117055922A (en) * 2023-08-14 2023-11-14 北京小米机器人技术有限公司 OTA upgrading method, OTA upgrading device, robot and storage medium
CN114172875B (en) * 2021-12-03 2024-06-25 深圳小湃科技有限公司 Remote upgrading method and system for network camera and readable storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835608A (en) * 2021-02-24 2021-05-25 珠海奔图电子有限公司 Firmware upgrading method, image forming apparatus and system
CN113489610A (en) * 2021-06-30 2021-10-08 中国民航信息网络股份有限公司 Method and device for upgrading departure front end, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686145A (en) * 2008-09-26 2010-03-31 深圳华为通信技术有限公司 Equipment capable of upgrading, upgrading method and system
CN101895575A (en) * 2010-07-08 2010-11-24 中兴通讯股份有限公司 Method, device and system for downloading base station versions
CN103152206A (en) * 2013-03-25 2013-06-12 安科智慧城市技术(中国)有限公司 Method and system for updating multiple devices
CN103607456A (en) * 2013-11-21 2014-02-26 厦门雅迅网络股份有限公司 Remote software upgrade method for clustered mobile terminals
WO2016090846A1 (en) * 2014-12-11 2016-06-16 中兴通讯股份有限公司 Network version upgrade method and apparatus
CN109032644A (en) * 2018-07-27 2018-12-18 蔚来汽车有限公司 The upgrade method and device, controller and medium of charging pile, the pile group that charges

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686145A (en) * 2008-09-26 2010-03-31 深圳华为通信技术有限公司 Equipment capable of upgrading, upgrading method and system
CN101895575A (en) * 2010-07-08 2010-11-24 中兴通讯股份有限公司 Method, device and system for downloading base station versions
CN103152206A (en) * 2013-03-25 2013-06-12 安科智慧城市技术(中国)有限公司 Method and system for updating multiple devices
CN103607456A (en) * 2013-11-21 2014-02-26 厦门雅迅网络股份有限公司 Remote software upgrade method for clustered mobile terminals
WO2016090846A1 (en) * 2014-12-11 2016-06-16 中兴通讯股份有限公司 Network version upgrade method and apparatus
CN109032644A (en) * 2018-07-27 2018-12-18 蔚来汽车有限公司 The upgrade method and device, controller and medium of charging pile, the pile group that charges

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172875A (en) * 2021-12-03 2022-03-11 深圳小湃科技有限公司 Remote upgrading method and system for network camera and readable storage medium
CN114172875B (en) * 2021-12-03 2024-06-25 深圳小湃科技有限公司 Remote upgrading method and system for network camera and readable storage medium
CN114465894A (en) * 2021-12-28 2022-05-10 湖北华中光电科技有限公司 Software upgrading method for laser alarm equipment
CN114465894B (en) * 2021-12-28 2023-09-12 湖北华中长江光电科技有限公司 Software upgrading method of laser alarm equipment
WO2023185390A1 (en) * 2022-03-28 2023-10-05 中兴通讯股份有限公司 Base station version downloading method, network management server, base station, device and medium
CN116414416A (en) * 2023-02-08 2023-07-11 北京富润成照明系统工程有限公司 Method and device for remotely upgrading street lamp controller
CN117055922A (en) * 2023-08-14 2023-11-14 北京小米机器人技术有限公司 OTA upgrading method, OTA upgrading device, robot and storage medium

Also Published As

Publication number Publication date
CN112398673A (en) 2021-02-23

Similar Documents

Publication Publication Date Title
WO2021031889A1 (en) Upgrade method, communication device and computer-readable storage medium
US10983775B2 (en) System and method for creating and deploying a release package
US9207929B2 (en) Integrated system and firmware update method
US11403269B2 (en) Versioning validation for data transfer between heterogeneous data stores
US10595204B2 (en) Flexible remote server validation
US20060095435A1 (en) Configuring and deploying portable application containers for improved utilization of server capacity
US10476959B2 (en) Cloud resource provisioning using blueprint chaining
CN104220987A (en) Application installation
US8862937B2 (en) Method and system for migrating data from multiple sources
CN112351051A (en) Cloud service processing method and device, cloud server, cloud service processing system and storage medium
CN104850416A (en) Upgrading system, method and device and cloud computing node
US11281452B2 (en) Tenant declarative deployments
WO2021003677A1 (en) Service upgrade method and apparatus in distributed system, and distributed system
CN103812945A (en) Method for upgrading data and central server
CN101877655A (en) Network management system, network management server and method
WO2016116013A1 (en) Software upgrade method and system
US11386153B1 (en) Flexible tagging and searching system
CN103780433B (en) Self-healing type virtual resource configuration management data architecture
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN115604271A (en) Micro-service-based software and hardware complementary load balancing method
CN114860505A (en) Object storage data asynchronous backup method and system
CN111431951B (en) Data processing method, node equipment, system and storage medium
CN112711466A (en) Hanging affair inspection method and device, electronic equipment and storage medium
US11922160B2 (en) Validated state control in edge computing
WO2021259240A1 (en) Distributed transaction processing method, terminal and computer readable storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20855365

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 23.09.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20855365

Country of ref document: EP

Kind code of ref document: A1