WO2018223981A1 - Software downloading method and device, and base station - Google Patents

Software downloading method and device, and base station Download PDF

Info

Publication number
WO2018223981A1
WO2018223981A1 PCT/CN2018/090065 CN2018090065W WO2018223981A1 WO 2018223981 A1 WO2018223981 A1 WO 2018223981A1 CN 2018090065 W CN2018090065 W CN 2018090065W WO 2018223981 A1 WO2018223981 A1 WO 2018223981A1
Authority
WO
WIPO (PCT)
Prior art keywords
software
base station
target
target software
downloading
Prior art date
Application number
PCT/CN2018/090065
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 WO2018223981A1 publication Critical patent/WO2018223981A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices

Definitions

  • the present disclosure relates to, but is not limited to, the field of communications, and in particular, to a software download method, apparatus, and base station.
  • the base station software download or the base station self-healing may include: when the base station software is abnormal or newly accesses the base station or newly loaded the board, the base station does not have the software required for the base station to operate normally, and then the network management server needs to request the software. .
  • the base station requests the network management server for the required software, and the network management server sends a message with the software information to the base station, and the base station acquires the file by using a file transfer protocol (FTP, File Transfer Protocol) or a hypertext transfer protocol (HTTP, HyperText Transfer Protocol).
  • FTP File Transfer Protocol
  • HTTP HyperText Transfer Protocol
  • Base station software downloads or base station self-healing, due to server performance and network bandwidth limitations, the speed and scale of downloading software is greatly limited.
  • the server may be congested, causing the base station to upgrade very slowly. If multiple base stations request to the same network management server at the same time, the network management server may be down for performance reasons, and multiple base stations request at the same time, the network bandwidth will also be a severe test.
  • the present disclosure provides a software download method, apparatus, and base station, which can download target software to other base stations storing target software.
  • the embodiment of the present disclosure provides a software downloading method, which is applied to a base station, and the method includes:
  • a download request is sent to other base stations in the distributed hash table DHT network where the base station is located, and the target software is downloaded.
  • the step of acquiring the target software identification identifier corresponding to the target software that needs to be downloaded includes:
  • the step of generating a magnetic link for downloading the target software according to the target software identification identifier includes:
  • the target software identifies a hash HASH value or a message digest algorithm MD5 value identified as the target software.
  • the method further includes:
  • the base station downloads the first software corresponding to the first hardware from the network management server, generates a first software identification identifier that uniquely identifies the first software, and generates a file index record according to the first software identification identifier, and stores The distributed hash table DHT network dynamic routing table to which the base station belongs.
  • the method further includes:
  • the magnetic chain of the base station is closed.
  • the method further includes :
  • the download request of the target software is sent to the network management server, and the target software sent by the network management server according to the download request is received.
  • the embodiment of the present disclosure further provides a software downloading apparatus, including:
  • the first obtaining module is configured to: obtain a target software identification identifier corresponding to the target software that needs to be downloaded;
  • Generating a module configured to: generate a magnetic link for downloading the target software according to the target software identification identifier;
  • the first downloading module is configured to: according to the magnetic link, send a download request to other base stations in the distributed hash table DHT network where the base station is located, and download the target software.
  • the first obtaining module includes:
  • the target hardware identifier obtaining unit is configured to: acquire a target hardware identifier of the target hardware in the base station;
  • the target software identification identifier obtaining unit is configured to obtain the target software identification identifier corresponding to the target hardware identifier according to the correspondence between the hardware identifier and the software identification identifier obtained in advance.
  • the generating module is configured to:
  • the target software identifies a hash HASH value or a message digest algorithm MD5 value identified as the target software.
  • the apparatus further includes:
  • a route management module configured to: after the base station downloads the first software corresponding to the first hardware from the network management server, generate a first software identification identifier that uniquely identifies the first software, and generate a first software identification identifier according to the first software identifier
  • the file index is recorded and stored in a distributed hash table DHT network dynamic routing table to which the base station belongs.
  • the apparatus further includes:
  • the second obtaining module is configured to: acquire a resource utilization rate of the current base station
  • the processing module is configured to: when the resource utilization is greater than a preset threshold, close the magnetic chain of the current base station.
  • the apparatus further includes:
  • a second downloading module configured to: when the target software is not downloaded in the preset time period, send a download request of the target software to the network management server, and receive the target software sent by the network management server according to the download request .
  • An embodiment of the present disclosure further provides a base station, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the software program as described above when executing the computer program The steps in the method.
  • Embodiments of the present disclosure also provide a computer readable storage medium storing computer executable instructions that, when executed, implement the software download method described above.
  • a software downloading method, device and base station provided by an embodiment of the present disclosure have at least the following beneficial effects:
  • a magnetic link for downloading the target software is generated, and the target software is downloaded to other base stations in the distributed hash table DHT network according to the magnetic link, so that the download speed is greatly improved. Improve, save server resources and network bandwidth, and reduce the time of base station service interruption.
  • FIG. 1 is a flowchart of a software download method according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a software download method according to an optional embodiment of the present disclosure
  • FIG. 3 is a flowchart of a software download method according to another alternative embodiment of the present disclosure.
  • FIG. 5 is a flowchart of a software download method according to still another alternative embodiment of the present disclosure.
  • FIG. 6 is a flowchart of a software download method according to still another embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a software download apparatus according to an embodiment of the present disclosure.
  • an embodiment of the present disclosure provides a software downloading method, which is applied to a base station, and the method may include:
  • Step 101 Obtain a target software identification identifier corresponding to the target software that needs to be downloaded;
  • the base station when the base station is upgraded, the A base station is configured with a single board, and the B base station is configured with a b board.
  • the C base station when the C base station newly configures a board or the C base station configuration, the board software is damaged and needs to be re-downloaded, C The base station may first obtain the identification identifier of the target software corresponding to the board.
  • the identification identifier of the target software may be pre-stored or configured in the base station.
  • the identification identifier corresponding to the a-board software and the b-board software can be configured in a distributed hash table (DHT, Distributed Hash Table).
  • DHT Distributed Hash Table
  • the manner of configuration may be that the identification identifier is configured in the upgraded base station when the base station is upgraded.
  • the identification identifier of the target software may also be obtained by requesting from the network management server to obtain the identification identifier of the target software.
  • the identification identifier of the target software may not be acquired and a magnetic link may be generated according to the identification identifier, but the base station requests the network management server for the magnetic link of the target software.
  • Step 102 Generate a magnetic link for downloading the target software according to the target software identification identifier.
  • Step 103 Send a download request to other base stations in the distributed hash table DHT network where the base station is located according to the magnetic link, and download the target software.
  • a magnetic link for downloading the target software is generated by acquiring a target software identification identifier pre-stored in the base station, and the target software is downloaded to other base stations in the distributed hash table DHT network according to the magnetic link, so that the download is performed.
  • the speed is greatly improved, saving server resources and network bandwidth, and reducing the time for base station service interruption.
  • the C base station can search for files from all base stations in the DHT network according to the magnetic link, and search according to the DHT algorithm when searching for a certain base station. If there is no routing table in the current base station, the DHT algorithm can be used according to the DHT algorithm. Continue looking for the next routing table.
  • the acquiring the target software identification identifier corresponding to the target software that needs to be downloaded may include:
  • Step 201 Obtain a target hardware identifier of target hardware in the base station.
  • the software management module in the base station may be used to detect whether the hardware lacks corresponding software.
  • the target hardware identifier of the target hardware may be provided. For example, when the software of the a board is missing, the hardware identifier of the board corresponding to the a board is obtained.
  • Step 202 Obtain a target software identification identifier corresponding to the target hardware identifier according to the correspondence between the hardware identifier and the software identification identifier obtained in advance.
  • the software identification identifier corresponding to the target hardware identifier may be obtained according to the target hardware identifier obtained in the foregoing.
  • an index table is pre-stored in the base station, and the a-board software identification identifier corresponding to the hardware identifier of the board is stored in the index table.
  • the corresponding board software can be obtained according to the index table. Identify the logo.
  • the generating, according to the target software identification identifier, generating a magnetic link for downloading the target software may include:
  • Step 301 Generate a magnetic link for downloading the target software according to the target software identification identifier and a preset algorithm.
  • the magnetic link may be a file identification identifier and some other identifiers.
  • the more effective information may be the identification identifier of the file, and the corresponding magnetic link may be generated according to the identification identifier of the file and the preset algorithm.
  • the preset algorithm may be set according to actual conditions, and may be generated by the corresponding client in the actual generated magnetic link.
  • the target software identification identifier may be a hash (HASH) value or a message digest algorithm (MD5) value of the target software. It can be understood that the HASH value and the MD5 value can only be an optional embodiment provided by the disclosure, and other identifiers that can be used as the unique identification identifier (digital fingerprint) can also be used as the identification identifier of the target software.
  • HASH hash
  • MD5 message digest algorithm
  • the above method may further include:
  • Step 401 After the base station downloads the first software corresponding to the first hardware from the network management server, generates a first software identification identifier that uniquely identifies the first software, and generates a file index record according to the first software identification identifier. And storing the file index record in a distributed hash table DHT network dynamic routing table to which the base station belongs.
  • the base station can add the identification identifier of the corresponding software to the file index record, so that other base stations can download the software.
  • the base station can also add the identification identifier of the software downloaded by the other base station to the file index record, so that when a certain base station downloads the software, the base station can download to the multiple base stations, and after the base station stops working, the identification identifier cannot be downloaded.
  • Software within a base station that is, after the current base station downloads the first software corresponding to the first hardware from the network management server or from another base station, generates a first software identification identifier that uniquely identifies the first software, and generates a first software identification identifier according to the first software identification identifier.
  • the file index records and stores the file index record in a distributed hash table DHT network dynamic routing table to which the base station belongs.
  • a distributed hash table DHT network dynamic routing table to which the base station belongs.
  • the network management server may respond only to the base station that first sends the download request, or may only respond to the preset number of base stations that send the download request; Therefore, the other base stations can download the software, so that after the base station downloads the software in the DHT network, the other base stations can download the corresponding software from the base station that has downloaded the software, and do not need to repeatedly download to the network management server.
  • the A base station, the B base station, and the C base station are all installed with a board, the A base station can download the software of the board to the network management server, and the B base station and the C base station can download the software of the board to the A base station.
  • the network management server when the network management server receives the download request of the same software sent by multiple base stations within a preset time period, it only responds to the base station that first sends the download request; thereby, the A base station, the B base station, and the C base station are prevented from being
  • the download request is sent to the network management server in a short period of time.
  • the network management server receives the download request of the a board software sent by the A base station, the B base station, and the C base station in sequence within 30 minutes, and the network management server does not respond to the A board software sent by the B base station and the C base station after responding to the A base station.
  • the download request, the B base station and the C base station may perform the above method after the A base station download is completed to download a board software to the A base station.
  • the foregoing method may further include:
  • Step 501 Acquire a resource utilization rate of the base station.
  • Step 502 When the resource utilization is greater than a preset threshold, the magnetic chain of the base station is closed.
  • Each base station can determine whether its own resources are sufficient according to its own situation. If the current resource utilization rate is too high, for example, the resource utilization is greater than 80%, the opened magnetic chain or the client that manages the magnetic chain may not be turned on or off; If the resource utilization is lower than this value, the magnetic chain or client can be opened to provide download services to other base stations.
  • the A base station can close the magnetic chain of the current base station because the resource utilization exceeds the preset threshold, and the C base station cannot continue to download the single board software by the A base station.
  • the C base station can re-execute the step of transmitting the download request to the other base stations in the distributed hash table DHT network where the base station is located according to the magnetic link, and downloading the target software.
  • the method may further include:
  • Step 601 When the target software is not downloaded in the preset time period, send the download request of the target software to the network management server, and receive the target software sent by the network management server according to the download request.
  • the timeout processing may be performed.
  • the software may be downloaded to the network management server.
  • an embodiment of the present disclosure further provides a software downloading apparatus, which may include:
  • the first obtaining module 701 is configured to: acquire a target software identification identifier corresponding to the target software that needs to be downloaded;
  • the generating module 702 is configured to: generate a magnetic link for downloading the target software according to the target software identification identifier;
  • the first downloading module 703 is configured to: according to the magnetic link, send a download request to other base stations in the distributed hash table DHT network where the base station is located, and download the target software.
  • the first obtaining module 701 includes:
  • the target hardware identifier obtaining unit is configured to: acquire a target hardware identifier of the target hardware in the base station;
  • the target software identification identifier obtaining unit is configured to obtain the target software identification identifier corresponding to the target hardware identifier according to the correspondence between the hardware identifier and the software identification identifier obtained in advance.
  • the generating module 702 is configured to:
  • the target software identifies a hash HASH value or a message digest algorithm MD5 value that is identified as the target software.
  • the device may further include:
  • a route management module configured to: after the base station downloads the first software corresponding to the first hardware from the network management server, generate a first software identification identifier that uniquely identifies the first software, and generate a first software identification identifier according to the first software identifier
  • the file index records and stores the file index record in a distributed hash table DHT network dynamic routing table to which the base station belongs.
  • the device may further include:
  • the second obtaining module is configured to: acquire a resource utilization rate of the current base station
  • the processing module is configured to: when the resource utilization is greater than a preset threshold, close the magnetic chain of the current base station.
  • the device may further include:
  • a second downloading module configured to: when the target software is not downloaded in the preset time period, send a download request of the target software to the network management server, and receive the target software sent by the network management server according to the download request .
  • An embodiment of the present disclosure further provides a base station, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the software program as described above when executing the computer program The steps in the method.
  • Embodiments of the present disclosure also provide a computer readable storage medium storing computer executable instructions that, when executed, implement the software download method described above.
  • the embodiment of the present disclosure generates a magnetic link for downloading the target software by acquiring a pre-stored target software identification identifier, and downloads target software to other base stations in the distributed hash table DHT network according to the magnetic link.
  • the download speed is greatly improved, saving server resources and network bandwidth, and reducing the time for the base station service interruption.
  • computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules or other data. Sex, removable and non-removable media.
  • Computer storage media include, but are not limited to, Random Access Memory (RAM), Read-Only Memory (ROM), and Electrically Erasable Programmable Read-only Memory (EEPROM). Flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or Any other medium used to store the desired information and that can be accessed by the computer.
  • communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. .
  • a magnetic link for downloading the target software is generated, and the target software is downloaded to other base stations in the distributed hash table DHT network according to the magnetic link, so that the download speed is greatly improved. Improve, save server resources and network bandwidth, and reduce the time of base station service interruption.

Abstract

A software downloading method, comprising: acquiring a target software identification tag corresponding to target software needing to be downloaded; generating, according to the target software identification tag, a magnet link for downloading the target software; and sending, according to the magnet link, a downloading request to other base stations in a distributed hash table (DHT) network where the base station is located, and downloading the target software.

Description

一种软件下载方法、装置及基站Software downloading method, device and base station 技术领域Technical field
本公开涉及但不限于通信领域,尤其是一种软件下载方法、装置及基站。The present disclosure relates to, but is not limited to, the field of communications, and in particular, to a software download method, apparatus, and base station.
背景技术Background technique
基站软件下载或基站自愈可包括:基站软件发生异常或者新接入基站或新装入单板等时,基站上没有基站正常运行所需要的软件,这时就需要向网管服务器去请求该软件。基站向网管服务器请求所需要的软件,网管服务器向基站发送带有软件信息的消息,基站通过文件传输协议(FTP,File Transfer Protocol)或者超文本传输协议(HTTP,HyperText Transfer Protocol)的方式获取所需软件。The base station software download or the base station self-healing may include: when the base station software is abnormal or newly accesses the base station or newly loaded the board, the base station does not have the software required for the base station to operate normally, and then the network management server needs to request the software. . The base station requests the network management server for the required software, and the network management server sends a message with the software information to the base station, and the base station acquires the file by using a file transfer protocol (FTP, File Transfer Protocol) or a hypertext transfer protocol (HTTP, HyperText Transfer Protocol). Software is required.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
基站软件下载或基站自愈,由于服务器性能和网络带宽限制,下载软件的速度和规模受到很大限制。当网络不稳定时或者数据请求量大时,服务器可能发生拥塞,导致基站升级非常缓慢。如果多个基站同时向同一个网管服务器请求,网管服务器可能会因为性能原因而宕机,且多个基站同时请求,网络带宽也会是一个严峻的考验。Base station software downloads or base station self-healing, due to server performance and network bandwidth limitations, the speed and scale of downloading software is greatly limited. When the network is unstable or the amount of data requests is large, the server may be congested, causing the base station to upgrade very slowly. If multiple base stations request to the same network management server at the same time, the network management server may be down for performance reasons, and multiple base stations request at the same time, the network bandwidth will also be a severe test.
本公开提供一种软件下载方法、装置及基站,能够实现向其他存储有目标软件的基站下载目标软件。The present disclosure provides a software download method, apparatus, and base station, which can download target software to other base stations storing target software.
本公开实施例提供了一种软件下载方法,应用于一基站,所述方法包括:The embodiment of the present disclosure provides a software downloading method, which is applied to a base station, and the method includes:
获取需要下载的目标软件所对应的目标软件识别标识;Obtaining the target software identification identifier corresponding to the target software that needs to be downloaded;
根据所述目标软件识别标识,生成下载所述目标软件的磁力链接;Generating a magnetic link for downloading the target software according to the target software identification identifier;
根据所述磁力链接,向基站所在的分布式哈希表DHT网络中的其他基站发送下载请求,下载所述目标软件。According to the magnetic link, a download request is sent to other base stations in the distributed hash table DHT network where the base station is located, and the target software is downloaded.
在一种示例性实施方式中,所述获取需要下载的目标软件所对应的目标软件识别标识的步骤包括:In an exemplary embodiment, the step of acquiring the target software identification identifier corresponding to the target software that needs to be downloaded includes:
获取基站内目标硬件的目标硬件标识;Obtaining a target hardware identifier of the target hardware in the base station;
根据预先获得的所述硬件标识与软件识别标识之间的对应关系,获得所述目标硬件标识对应的目标软件识别标识。Obtaining a target software identification identifier corresponding to the target hardware identifier according to the correspondence between the hardware identifier and the software identification identifier obtained in advance.
在一种示例性实施方式中,所述根据所述目标软件识别标识,生成下载所述目标软件的磁力链接的步骤包括:In an exemplary embodiment, the step of generating a magnetic link for downloading the target software according to the target software identification identifier includes:
根据所述目标软件识别标识和预设算法,生成下载所述目标软件的磁力链接。Generating a magnetic link for downloading the target software according to the target software identification identifier and a preset algorithm.
在一种示例性实施方式中,所述目标软件识别标识为所述目标软件的散列HASH值或消息摘要算法MD5值。In an exemplary embodiment, the target software identifies a hash HASH value or a message digest algorithm MD5 value identified as the target software.
在一种示例性实施方式中,所述方法还包括:In an exemplary embodiment, the method further includes:
当基站从网管服务器下载了第一硬件对应的第一软件后,生成唯一标识所述第一软件的第一软件识别标识,并根据所述第一软件识别标识生成一文件索引记录,并存储在所述基站所属的分布式哈希表DHT网络动态路由表中。After the base station downloads the first software corresponding to the first hardware from the network management server, generates a first software identification identifier that uniquely identifies the first software, and generates a file index record according to the first software identification identifier, and stores The distributed hash table DHT network dynamic routing table to which the base station belongs.
在一种示例性实施方式中,所述方法还包括:In an exemplary embodiment, the method further includes:
获取基站的资源利用率;Obtaining resource utilization of the base station;
当所述资源利用率大于预设门限时,关闭所述基站的磁力链。When the resource utilization is greater than a preset threshold, the magnetic chain of the base station is closed.
在一种示例性实施方式中,所述根据所述磁力链接,向基站所在的分布式哈希表DHT网络中的其他基站发送下载请求,下载所述目标软件的步骤之后,所述方法还包括:In an exemplary embodiment, after the step of downloading the target software to the other base stations in the distributed hash table DHT network where the base station is located according to the magnetic link, the method further includes :
当预设时间段内未下载到所述目标软件时,向网管服务器发送所述目标软件的下载请求,并接收所述网管服务器根据所述下载请求发送的目标软件。When the target software is not downloaded in the preset time period, the download request of the target software is sent to the network management server, and the target software sent by the network management server according to the download request is received.
本公开实施例还提供了一种软件下载装置,包括:The embodiment of the present disclosure further provides a software downloading apparatus, including:
第一获取模块,设置为:获取需要下载的目标软件所对应的目标软件识别标识;The first obtaining module is configured to: obtain a target software identification identifier corresponding to the target software that needs to be downloaded;
生成模块,设置为:根据所述目标软件识别标识,生成下载所述目标软件的磁力链接;Generating a module, configured to: generate a magnetic link for downloading the target software according to the target software identification identifier;
第一下载模块,设置为:根据所述磁力链接,向基站所在的分布式哈希表DHT网络中的其他基站发送下载请求,下载所述目标软件。The first downloading module is configured to: according to the magnetic link, send a download request to other base stations in the distributed hash table DHT network where the base station is located, and download the target software.
在一种示例性实施方式中,所述第一获取模块包括:In an exemplary embodiment, the first obtaining module includes:
目标硬件标识获取单元,设置为:获取基站内目标硬件的目标硬件标识;The target hardware identifier obtaining unit is configured to: acquire a target hardware identifier of the target hardware in the base station;
目标软件识别标识获取单元,设置为:根据预先获得的所述硬件标识与软件识别标识之间的对应关系,获得所述目标硬件标识对应的目标软件识别标识。The target software identification identifier obtaining unit is configured to obtain the target software identification identifier corresponding to the target hardware identifier according to the correspondence between the hardware identifier and the software identification identifier obtained in advance.
在一种示例性实施方式中,所述生成模块是设置为:In an exemplary embodiment, the generating module is configured to:
根据所述目标软件识别标识和预设算法,生成下载所述目标软件的磁力链接。Generating a magnetic link for downloading the target software according to the target software identification identifier and a preset algorithm.
在一种示例性实施方式中,所述目标软件识别标识为所述目标软件的散列HASH值或消息摘要算法MD5值。In an exemplary embodiment, the target software identifies a hash HASH value or a message digest algorithm MD5 value identified as the target software.
在一种示例性实施方式中,所述装置还包括:In an exemplary embodiment, the apparatus further includes:
路由管理模块,设置为:当基站从网管服务器下载了第一硬件对应的第一软件后,生成唯一标识所述第一软件的第一软件识别标识,并根据所述第一软件识别标识生成一文件索引记录,并存储在所述基站所属的分布式哈希表DHT网络动态路由表中。a route management module, configured to: after the base station downloads the first software corresponding to the first hardware from the network management server, generate a first software identification identifier that uniquely identifies the first software, and generate a first software identification identifier according to the first software identifier The file index is recorded and stored in a distributed hash table DHT network dynamic routing table to which the base station belongs.
在一种示例性实施方式中,所述装置还包括:In an exemplary embodiment, the apparatus further includes:
第二获取模块,设置为:获取当前基站的资源利用率;The second obtaining module is configured to: acquire a resource utilization rate of the current base station;
处理模块,设置为:当所述资源利用率大于预设门限时,关闭所述当前基站的磁力链。The processing module is configured to: when the resource utilization is greater than a preset threshold, close the magnetic chain of the current base station.
在一种示例性实施方式中,所述装置还包括:In an exemplary embodiment, the apparatus further includes:
第二下载模块,设置为:当预设时间段内未下载到所述目标软件时,向网管服务器发送所述目标软件的下载请求,并接收所述网管服务器根据所述下载请求发送的目标软件。a second downloading module, configured to: when the target software is not downloaded in the preset time period, send a download request of the target software to the network management server, and receive the target software sent by the network management server according to the download request .
本公开实施例还提供了一种基站,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述的软件下载方法中的步骤。An embodiment of the present disclosure further provides a base station, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the software program as described above when executing the computer program The steps in the method.
本公开实施例还提供了一种计算机可读存储介质,存储有计算机可执行 指令,所述计算机可执行指令被执行时实现上述软件下载方法。Embodiments of the present disclosure also provide a computer readable storage medium storing computer executable instructions that, when executed, implement the software download method described above.
本公开实施例提供的一种软件下载方法、装置及基站,至少具有以下有益效果:A software downloading method, device and base station provided by an embodiment of the present disclosure have at least the following beneficial effects:
本公开实施例,通过获取预先存储的目标软件识别标识,生成下载该目标软件的磁力链接,并根据该磁力链接向处于分布式哈希表DHT网络中的其他基站下载目标软件,使下载速度大大提升,节省服务器资源和网络带宽,降低了基站业务中断的时间。In the embodiment of the present disclosure, by acquiring a target software identification identifier stored in advance, a magnetic link for downloading the target software is generated, and the target software is downloaded to other base stations in the distributed hash table DHT network according to the magnetic link, so that the download speed is greatly improved. Improve, save server resources and network bandwidth, and reduce the time of base station service interruption.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本公开实施例的软件下载方法的流程图;FIG. 1 is a flowchart of a software download method according to an embodiment of the present disclosure;
图2为本公开一可选实施例的软件下载方法的流程图;2 is a flowchart of a software download method according to an optional embodiment of the present disclosure;
图3为本公开另一可选实施例的软件下载方法的流程图;3 is a flowchart of a software download method according to another alternative embodiment of the present disclosure;
图4为本公开又一可选实施例的软件下载方法的流程图;4 is a flowchart of a software download method according to still another alternative embodiment of the present disclosure;
图5为本公开再一可选实施例的软件下载方法的流程图;5 is a flowchart of a software download method according to still another alternative embodiment of the present disclosure;
图6为本公开再又一实施例的软件下载方法的流程图;6 is a flowchart of a software download method according to still another embodiment of the present disclosure;
图7为本公开实施例的软件下载装置的结构示意图。FIG. 7 is a schematic structural diagram of a software download apparatus according to an embodiment of the present disclosure.
本公开的较佳实施方式Preferred embodiment of the present disclosure
下面结合附图对本公开的实施方式进行描述。Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
在下面的描述中,提供诸如特定的配置和组件的特定细节可仅仅是为了帮助全面理解本公开的实施例。另外,为了清楚和简洁,省略了对已知功能和构造的描述。In the following description, specific details such as specific configurations and components may be provided to facilitate a comprehensive understanding of the embodiments of the present disclosure. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
可以理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本公开的至少一个实施例中。因此,在整个说明书出现的“在一个实施例中”或“在一实施例中”未必指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。It is to be understood that the phrase "one embodiment" or "an embodiment" or "an" or "an" Thus, "in one embodiment" or "in an embodiment" or "an embodiment" does not necessarily mean the same embodiment. In addition, these particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
参见图1,本公开实施例提供了一种软件下载方法,应用于一基站,所 述方法可包括:Referring to FIG. 1, an embodiment of the present disclosure provides a software downloading method, which is applied to a base station, and the method may include:
步骤101,获取需要下载的目标软件所对应的目标软件识别标识;Step 101: Obtain a target software identification identifier corresponding to the target software that needs to be downloaded;
下面通过举例进行解释。例如,当基站升级时,A基站配置有a单板,B基站配置有b单板,此时,C基站新配置了a单板或C基站配置的a单板软件损坏需要重新下载时,C基站可首先获取a单板对应的目标软件的识别标识。The following is explained by way of example. For example, when the base station is upgraded, the A base station is configured with a single board, and the B base station is configured with a b board. At this time, when the C base station newly configures a board or the C base station configuration, the board software is damaged and needs to be re-downloaded, C The base station may first obtain the identification identifier of the target software corresponding to the board.
其中,目标软件的识别标识可以预先存储或配置于基站中。继续以上述举例进行解释。例如,A基站和B基站中存储有a单板和b单板的软件,则可将a单板软件和b单板软件对应的识别标识配置于分布式哈希表(DHT,Distributed Hash Table)网络中的每一基站中。其中,对于配置的方式可以是在基站升级时将识别标识配置于升级的基站内。The identification identifier of the target software may be pre-stored or configured in the base station. Continue to explain with the above examples. For example, if the software of the a-board and the b-board is stored in the A-base station and the B-base station, the identification identifier corresponding to the a-board software and the b-board software can be configured in a distributed hash table (DHT, Distributed Hash Table). In every base station in the network. The manner of configuration may be that the identification identifier is configured in the upgraded base station when the base station is upgraded.
其中,目标软件的识别标识也可通过向网管服务器请求,从而获得所述目标软件的识别标识。作为另一种实现方式,本公开实施例中也可以不用获取所述目标软件的识别标识并根据该识别标识生成磁力链接,而是由基站向网管服务器请求目标软件的磁力链接。The identification identifier of the target software may also be obtained by requesting from the network management server to obtain the identification identifier of the target software. As another implementation manner, in the embodiment of the present disclosure, the identification identifier of the target software may not be acquired and a magnetic link may be generated according to the identification identifier, but the base station requests the network management server for the magnetic link of the target software.
步骤102,根据所述目标软件识别标识,生成下载所述目标软件的磁力链接;Step 102: Generate a magnetic link for downloading the target software according to the target software identification identifier.
步骤103,根据所述磁力链接,向基站所在的分布式哈希表DHT网络中的其他基站发送下载请求,下载所述目标软件。Step 103: Send a download request to other base stations in the distributed hash table DHT network where the base station is located according to the magnetic link, and download the target software.
本公开实施例,通过获取基站内预先存储的目标软件识别标识,生成下载该目标软件的磁力链接,并根据该磁力链接向处于分布式哈希表DHT网络中的其他基站下载目标软件,使下载速度大大提升,节省服务器资源和网络带宽,降低了基站业务中断的时间。In the embodiment of the present disclosure, a magnetic link for downloading the target software is generated by acquiring a target software identification identifier pre-stored in the base station, and the target software is downloaded to other base stations in the distributed hash table DHT network according to the magnetic link, so that the download is performed. The speed is greatly improved, saving server resources and network bandwidth, and reducing the time for base station service interruption.
继续以上述举例进行解释,其中,C基站可根据磁力链接向DHT网络里的所有基站寻找文件,搜索某一基站时按照DHT算法进行查找,若当前基站的路由表内没有,则可根据DHT算法继续向下一个路由表寻找。Continuing with the above example, the C base station can search for files from all base stations in the DHT network according to the magnetic link, and search according to the DHT algorithm when searching for a certain base station. If there is no routing table in the current base station, the DHT algorithm can be used according to the DHT algorithm. Continue looking for the next routing table.
参见图2,上述步骤101中,所述获取需要下载的目标软件所对应的目标软件识别标识可以包括:Referring to FIG. 2, in the foregoing step 101, the acquiring the target software identification identifier corresponding to the target software that needs to be downloaded may include:
步骤201,获取基站内目标硬件的目标硬件标识;Step 201: Obtain a target hardware identifier of target hardware in the base station.
其中,可由基站内部的软件管理模块来检测硬件是否缺少对应的软件, 当发现某一硬件缺少相对应的软件时,则可提供该目标硬件的目标硬件标识。例如,当发现a单板缺少软件时,则可获得该a单板对应的a单板硬件标识。The software management module in the base station may be used to detect whether the hardware lacks corresponding software. When a certain hardware is found to lack corresponding software, the target hardware identifier of the target hardware may be provided. For example, when the software of the a board is missing, the hardware identifier of the board corresponding to the a board is obtained.
步骤202,根据预先获得的所述硬件标识与软件识别标识之间的对应关系,获得所述目标硬件标识对应的目标软件识别标识。Step 202: Obtain a target software identification identifier corresponding to the target hardware identifier according to the correspondence between the hardware identifier and the software identification identifier obtained in advance.
其中,可根据上述中获得的目标硬件标识,获得与该目标硬件标识对应的软件识别标识。例如,基站内预先存储有索引表,索引表中存储有a单板硬件标识对应的a单板软件识别标识,则当获得a单板硬件标识时则可根据索引表获得对应的a单板软件识别标识。The software identification identifier corresponding to the target hardware identifier may be obtained according to the target hardware identifier obtained in the foregoing. For example, an index table is pre-stored in the base station, and the a-board software identification identifier corresponding to the hardware identifier of the board is stored in the index table. When the hardware identifier of the board is obtained, the corresponding board software can be obtained according to the index table. Identify the logo.
参见图3,上述步骤102中,所述根据所述目标软件识别标识,生成下载所述目标软件的磁力链接可以包括:Referring to FIG. 3, in the foregoing step 102, the generating, according to the target software identification identifier, generating a magnetic link for downloading the target software may include:
步骤301,根据所述目标软件识别标识和预设算法,生成下载所述目标软件的磁力链接。Step 301: Generate a magnetic link for downloading the target software according to the target software identification identifier and a preset algorithm.
其中,对于磁力链接可以是文件识别标识和一些其他标志组成的,其中较为有效的信息可以是文件的识别标识,则根据文件的识别标识及预设算法便可生成对应磁力链接。其中,对于预设算法可根据实际情况进行设置,在实际生成磁力链接中,也可由相应的客户端进行生成。The magnetic link may be a file identification identifier and some other identifiers. The more effective information may be the identification identifier of the file, and the corresponding magnetic link may be generated according to the identification identifier of the file and the preset algorithm. The preset algorithm may be set according to actual conditions, and may be generated by the corresponding client in the actual generated magnetic link.
其中,所述目标软件识别标识可为所述目标软件的散列(HASH)值或消息摘要算法(MD5)值。可以理解的是,HASH值和MD5值仅可为本公开提供的一可选实施例,其他可作为唯一识别标识(数字指纹)的亦可作为目标软件的识别标识。The target software identification identifier may be a hash (HASH) value or a message digest algorithm (MD5) value of the target software. It can be understood that the HASH value and the MD5 value can only be an optional embodiment provided by the disclosure, and other identifiers that can be used as the unique identification identifier (digital fingerprint) can also be used as the identification identifier of the target software.
参见图4,上述方法还可以包括:Referring to FIG. 4, the above method may further include:
步骤401,当基站从网管服务器下载了第一硬件对应的第一软件后,生成唯一标识所述第一软件的第一软件识别标识,并根据所述第一软件识别标识生成一文件索引记录,并将所述文件索引记录存储在所述基站所属的分布式哈希表DHT网络动态路由表中。Step 401: After the base station downloads the first software corresponding to the first hardware from the network management server, generates a first software identification identifier that uniquely identifies the first software, and generates a file index record according to the first software identification identifier. And storing the file index record in a distributed hash table DHT network dynamic routing table to which the base station belongs.
其中,基站向网管服务器下载了软件后,可以将对应软件的识别标识添加至文件索引记录中,便于其他基站下载。其中,基站也可将由其他基站下载的软件的识别标识添加至文件索引记录中,使得某一基站下载软件时可向多个基站进行下载,防止某一基站停止工作后,无法下载识别标识只存储于某一基站内的软件。即,在当前基站从网管服务器或从其他基站下载了第一 硬件对应的第一软件后,生成唯一标识所述第一软件的第一软件识别标识,并根据所述第一软件识别标识生成一文件索引记录,并将所述文件索引记录存储在所述基站所属的分布式哈希表DHT网络动态路由表中。其中,当新基站需要加入DHT网络时,可向文件索引记录中添加一目标基站的网络之间互连的协议(IP,Internet Protocol)地址,其中,目标基站连接于分布式哈希表DHT网络中。After the base station downloads the software to the network management server, the base station can add the identification identifier of the corresponding software to the file index record, so that other base stations can download the software. The base station can also add the identification identifier of the software downloaded by the other base station to the file index record, so that when a certain base station downloads the software, the base station can download to the multiple base stations, and after the base station stops working, the identification identifier cannot be downloaded. Software within a base station. That is, after the current base station downloads the first software corresponding to the first hardware from the network management server or from another base station, generates a first software identification identifier that uniquely identifies the first software, and generates a first software identification identifier according to the first software identification identifier. The file index records and stores the file index record in a distributed hash table DHT network dynamic routing table to which the base station belongs. Wherein, when the new base station needs to join the DHT network, an IP (Internet Protocol) address interconnected by the network of the target base station may be added to the file index record, where the target base station is connected to the distributed hash table DHT network. in.
其中,网管服务器在预设时间段内接受到多个基站发送的同一软件的下载请求时,可只响应最先发送下载请求的基站,也可只响应预设数量的发送下载请求的基站;由此,可便于其他基站下载软件,使得DHT网络中某一基站下载软件后,其他基站能够从已下载软件的基站下载对应的软件,不需要重复向网管服务器下载。例如,当A基站,B基站和C基站均安装了a单板,则可由A基站向网管服务器下载a单板的软件,B基站和C基站则可向A基站下载a单板的软件。其中,可设置网管服务器在预设时间段内接受到多个基站发送的同一软件的下载请求时,只响应最先发送下载请求的基站;由此,可防止A基站,B基站和C基站在一段较短时间内先后向网管服务器发送下载请求。例如,网管服务器在30分钟内依次接收到A基站、B基站和C基站发送的a单板软件的下载请求,则网管服务器响应A基站后,可不响应B基站和C基站发送的a单板软件的下载请求,B基站和C基站可在A基站下载完成后执行上述中的方法以向A基站下载a单板软件。When the network management server receives the download request of the same software sent by multiple base stations within a preset time period, the network management server may respond only to the base station that first sends the download request, or may only respond to the preset number of base stations that send the download request; Therefore, the other base stations can download the software, so that after the base station downloads the software in the DHT network, the other base stations can download the corresponding software from the base station that has downloaded the software, and do not need to repeatedly download to the network management server. For example, when the A base station, the B base station, and the C base station are all installed with a board, the A base station can download the software of the board to the network management server, and the B base station and the C base station can download the software of the board to the A base station. Wherein, when the network management server receives the download request of the same software sent by multiple base stations within a preset time period, it only responds to the base station that first sends the download request; thereby, the A base station, the B base station, and the C base station are prevented from being The download request is sent to the network management server in a short period of time. For example, the network management server receives the download request of the a board software sent by the A base station, the B base station, and the C base station in sequence within 30 minutes, and the network management server does not respond to the A board software sent by the B base station and the C base station after responding to the A base station. The download request, the B base station and the C base station may perform the above method after the A base station download is completed to download a board software to the A base station.
参见图5,上述方法还可以包括:Referring to FIG. 5, the foregoing method may further include:
步骤501,获取基站的资源利用率;Step 501: Acquire a resource utilization rate of the base station.
步骤502,当所述资源利用率大于预设门限时,关闭所述基站的磁力链。Step 502: When the resource utilization is greater than a preset threshold, the magnetic chain of the base station is closed.
其中,每个基站可根据自身情况判断自身资源是否充足,如果当前资源利用率过高,例如资源利用率大于80%,则可不开启或者关闭已开启的磁力链或管理磁力链的客户端;如资源利用率低于该值,则可开启磁力链或客户端,向其他基站提供下载服务。Each base station can determine whether its own resources are sufficient according to its own situation. If the current resource utilization rate is too high, for example, the resource utilization is greater than 80%, the opened magnetic chain or the client that manages the magnetic chain may not be turned on or off; If the resource utilization is lower than this value, the magnetic chain or client can be opened to provide download services to other base stations.
其中,当C基站向A基站下载a单板软件时,A基站由于资源利用率超过预设门限,A基站可关闭当前基站的磁力链,则C基站无法继续由A基站下载a单板软件,此时,C基站可重新执行根据磁力链接,向基站所在的分布式哈希表DHT网络中的其他基站发送下载请求,下载目标软件的步骤。When the C base station downloads a board software to the A base station, the A base station can close the magnetic chain of the current base station because the resource utilization exceeds the preset threshold, and the C base station cannot continue to download the single board software by the A base station. At this time, the C base station can re-execute the step of transmitting the download request to the other base stations in the distributed hash table DHT network where the base station is located according to the magnetic link, and downloading the target software.
参见图6,上述步骤103之后,所述方法还可以包括:Referring to FIG. 6, after the foregoing step 103, the method may further include:
步骤601,当预设时间段内未下载到所述目标软件时,向网管服务器发送所述目标软件的下载请求,并接收所述网管服务器根据所述下载请求发送的目标软件。Step 601: When the target software is not downloaded in the preset time period, send the download request of the target software to the network management server, and receive the target software sent by the network management server according to the download request.
当预设时间段内未下载到目标软件,则可作超时处理,为了保证基站的正常工作,可向网管服务器下载该软件。When the target software is not downloaded within the preset time period, the timeout processing may be performed. To ensure the normal operation of the base station, the software may be downloaded to the network management server.
参见图7,本公开实施例还提供了一种软件下载装置,可包括:Referring to FIG. 7, an embodiment of the present disclosure further provides a software downloading apparatus, which may include:
第一获取模块701,设置为:获取需要下载的目标软件所对应的目标软件识别标识;The first obtaining module 701 is configured to: acquire a target software identification identifier corresponding to the target software that needs to be downloaded;
生成模块702,设置为:根据所述目标软件识别标识,生成下载所述目标软件的磁力链接;The generating module 702 is configured to: generate a magnetic link for downloading the target software according to the target software identification identifier;
第一下载模块703,设置为:根据所述磁力链接,向基站所在的分布式哈希表DHT网络中的其他基站发送下载请求,下载所述目标软件。The first downloading module 703 is configured to: according to the magnetic link, send a download request to other base stations in the distributed hash table DHT network where the base station is located, and download the target software.
可选地,所述第一获取模块701包括:Optionally, the first obtaining module 701 includes:
目标硬件标识获取单元,设置为:获取基站内目标硬件的目标硬件标识;The target hardware identifier obtaining unit is configured to: acquire a target hardware identifier of the target hardware in the base station;
目标软件识别标识获取单元,设置为:根据预先获得的所述硬件标识与软件识别标识之间的对应关系,获得所述目标硬件标识对应的目标软件识别标识。The target software identification identifier obtaining unit is configured to obtain the target software identification identifier corresponding to the target hardware identifier according to the correspondence between the hardware identifier and the software identification identifier obtained in advance.
可选地,所述生成模块702是设置为:Optionally, the generating module 702 is configured to:
根据所述目标软件识别标识和预设算法,生成下载所述目标软件的磁力链接。Generating a magnetic link for downloading the target software according to the target software identification identifier and a preset algorithm.
可选地,所述目标软件识别标识为所述目标软件的散列HASH值或消息摘要算法MD5值。Optionally, the target software identifies a hash HASH value or a message digest algorithm MD5 value that is identified as the target software.
可选地,所述装置还可以包括:Optionally, the device may further include:
路由管理模块,设置为:当基站从网管服务器下载了第一硬件对应的第一软件后,生成唯一标识所述第一软件的第一软件识别标识,并根据所述第一软件识别标识生成一文件索引记录,并将所述文件索引记录存储在所述基站所属的分布式哈希表DHT网络动态路由表中。a route management module, configured to: after the base station downloads the first software corresponding to the first hardware from the network management server, generate a first software identification identifier that uniquely identifies the first software, and generate a first software identification identifier according to the first software identifier The file index records and stores the file index record in a distributed hash table DHT network dynamic routing table to which the base station belongs.
可选地,所述装置还可以包括:Optionally, the device may further include:
第二获取模块,设置为:获取当前基站的资源利用率;The second obtaining module is configured to: acquire a resource utilization rate of the current base station;
处理模块,设置为:当所述资源利用率大于预设门限时,关闭所述当前基站的磁力链。The processing module is configured to: when the resource utilization is greater than a preset threshold, close the magnetic chain of the current base station.
可选地,所述装置还可以包括:Optionally, the device may further include:
第二下载模块,设置为:当预设时间段内未下载到所述目标软件时,向网管服务器发送所述目标软件的下载请求,并接收所述网管服务器根据所述下载请求发送的目标软件。a second downloading module, configured to: when the target software is not downloaded in the preset time period, send a download request of the target software to the network management server, and receive the target software sent by the network management server according to the download request .
本公开实施例还提供了一种基站,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述的软件下载方法中的步骤。An embodiment of the present disclosure further provides a base station, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the software program as described above when executing the computer program The steps in the method.
本公开实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述软件下载方法。Embodiments of the present disclosure also provide a computer readable storage medium storing computer executable instructions that, when executed, implement the software download method described above.
综上,本公开实施例,通过获取预先存储的目标软件识别标识,生成下载该目标软件的磁力链接,并根据该磁力链接向处于分布式哈希表DHT网络中的其他基站下载目标软件,使下载速度大大提升,节省服务器资源和网络带宽,降低了基站业务中断的时间。In summary, the embodiment of the present disclosure generates a magnetic link for downloading the target software by acquiring a pre-stored target software identification identifier, and downloads target software to other base stations in the distributed hash table DHT network according to the magnetic link. The download speed is greatly improved, saving server resources and network bandwidth, and reducing the time for the base station service interruption.
还可以说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含。It may also be noted that, in this context, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying such entities or operations. There is any such actual relationship or order between them. Moreover, the terms "including", "comprising" or "comprising" or "comprising" are intended to encompass a non-exclusive inclusion.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除 和不可移除介质。计算机存储介质包括但不限于随机存取存储器(RAM,Random Access Memory)、只读存储器(ROM,Read-Only Memory)、电可擦除只读存储器(EEPROM,Electrically Erasable Programmable Read-only Memory)、闪存或其他存储器技术、光盘只读存储器(CD-ROM,Compact Disc Read-Only Memory)、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and functional blocks/units of the methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, 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 be composed of several physical The components work together. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or 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, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules or other data. Sex, removable and non-removable media. Computer storage media include, but are not limited to, Random Access Memory (RAM), Read-Only Memory (ROM), and Electrically Erasable Programmable Read-only Memory (EEPROM). Flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or Any other medium used to store the desired information and that can be accessed by the computer. Moreover, it is well known to those skilled in the art that communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. .
本领域的普通技术人员可以理解,可以对本公开的技术方案进行修改或者等同替换,而不脱离本公开技术方案的精神和范围,均应涵盖在本公开的权利要求范围当中。A person skilled in the art can understand that the technical solutions of the present disclosure may be modified or equivalent, without departing from the spirit and scope of the present disclosure, and should be included in the scope of the claims of the present disclosure.
工业实用性Industrial applicability
本公开实施例,通过获取预先存储的目标软件识别标识,生成下载该目标软件的磁力链接,并根据该磁力链接向处于分布式哈希表DHT网络中的其他基站下载目标软件,使下载速度大大提升,节省服务器资源和网络带宽,降低了基站业务中断的时间。In the embodiment of the present disclosure, by acquiring a target software identification identifier stored in advance, a magnetic link for downloading the target software is generated, and the target software is downloaded to other base stations in the distributed hash table DHT network according to the magnetic link, so that the download speed is greatly improved. Improve, save server resources and network bandwidth, and reduce the time of base station service interruption.

Claims (15)

  1. 一种软件下载方法,应用于一基站,所述方法包括:A software download method is applied to a base station, and the method includes:
    获取需要下载的目标软件所对应的目标软件识别标识;Obtaining the target software identification identifier corresponding to the target software that needs to be downloaded;
    根据所述目标软件识别标识,生成下载所述目标软件的磁力链接;Generating a magnetic link for downloading the target software according to the target software identification identifier;
    根据所述磁力链接,向基站所在的分布式哈希表DHT网络中的其他基站发送下载请求,下载所述目标软件。According to the magnetic link, a download request is sent to other base stations in the distributed hash table DHT network where the base station is located, and the target software is downloaded.
  2. 根据权利要求1所述的软件下载方法,其中,所述获取需要下载的目标软件所对应的目标软件识别标识的步骤包括:The software downloading method according to claim 1, wherein the step of acquiring the target software identification identifier corresponding to the target software that needs to be downloaded comprises:
    获取基站内目标硬件的目标硬件标识;Obtaining a target hardware identifier of the target hardware in the base station;
    根据预先获得的所述硬件标识与软件识别标识之间的对应关系,获得所述目标硬件标识对应的目标软件识别标识。Obtaining a target software identification identifier corresponding to the target hardware identifier according to the correspondence between the hardware identifier and the software identification identifier obtained in advance.
  3. 根据权利要求1所述的软件下载方法,其中,所述根据所述目标软件识别标识,生成下载所述目标软件的磁力链接的步骤包括:The software downloading method according to claim 1, wherein the step of generating a magnetic link for downloading the target software according to the target software identification identifier comprises:
    根据所述目标软件识别标识和预设算法,生成下载所述目标软件的磁力链接。Generating a magnetic link for downloading the target software according to the target software identification identifier and a preset algorithm.
  4. 根据权利要求1或2或3所述的软件下载方法,其中,所述目标软件识别标识为所述目标软件的散列HASH值或消息摘要算法MD5值。The software download method according to claim 1 or 2 or 3, wherein the target software identification identifier is a hash HASH value or a message digest algorithm MD5 value of the target software.
  5. 根据权利要求1所述的软件下载方法,所述方法还包括:The software downloading method according to claim 1, further comprising:
    当基站从网管服务器下载了第一硬件对应的第一软件后,生成唯一标识所述第一软件的第一软件识别标识,并根据所述第一软件识别标识生成一文件索引记录,并将所述文件索引记录存储在所述基站所属的分布式哈希表DHT网络动态路由表中。After the base station downloads the first software corresponding to the first hardware from the network management server, generates a first software identification identifier that uniquely identifies the first software, and generates a file index record according to the first software identification identifier, and The file index record is stored in a distributed hash table DHT network dynamic routing table to which the base station belongs.
  6. 根据权利要求1所述的软件下载方法,所述方法还包括:The software downloading method according to claim 1, further comprising:
    获取基站的资源利用率;Obtaining resource utilization of the base station;
    当所述资源利用率大于预设门限时,关闭所述基站的磁力链。When the resource utilization is greater than a preset threshold, the magnetic chain of the base station is closed.
  7. 根据权利要求1所述的软件下载方法,所述根据所述磁力链接,向基站所在的分布式哈希表DHT网络中的其他基站发送下载请求,下载所述目标软件的步骤之后,所述方法还包括:The software downloading method according to claim 1, after the step of downloading the target software to the other base stations in the distributed hash table DHT network where the base station is located according to the magnetic link, the method Also includes:
    当预设时间段内未下载到所述目标软件时,向网管服务器发送所述目标软件的下载请求,并接收所述网管服务器根据所述下载请求发送的目标软件。When the target software is not downloaded in the preset time period, the download request of the target software is sent to the network management server, and the target software sent by the network management server according to the download request is received.
  8. 一种软件下载装置,包括:A software downloading device comprising:
    第一获取模块,设置为:获取需要下载的目标软件所对应的目标软件识别标识;The first obtaining module is configured to: obtain a target software identification identifier corresponding to the target software that needs to be downloaded;
    生成模块,设置为:根据所述目标软件识别标识,生成下载所述目标软件的磁力链接;Generating a module, configured to: generate a magnetic link for downloading the target software according to the target software identification identifier;
    第一下载模块,设置为:根据所述磁力链接,向基站所在的分布式哈希表DHT网络中的其他基站发送下载请求,下载所述目标软件。The first downloading module is configured to: according to the magnetic link, send a download request to other base stations in the distributed hash table DHT network where the base station is located, and download the target software.
  9. 根据权利要求8所述的软件下载装置,其中,所述第一获取模块包括:The software downloading apparatus according to claim 8, wherein the first obtaining module comprises:
    目标硬件标识获取单元,设置为:获取基站内目标硬件的目标硬件标识;The target hardware identifier obtaining unit is configured to: acquire a target hardware identifier of the target hardware in the base station;
    目标软件识别标识获取单元,设置为:根据预先获得的所述硬件标识与软件识别标识之间的对应关系,获得所述目标硬件标识对应的目标软件识别标识。The target software identification identifier obtaining unit is configured to obtain the target software identification identifier corresponding to the target hardware identifier according to the correspondence between the hardware identifier and the software identification identifier obtained in advance.
  10. 根据权利要求8所述的软件下载装置,其中,所述生成模块是设置为:The software downloading apparatus according to claim 8, wherein said generating module is configured to:
    根据所述目标软件识别标识和预设算法,生成下载所述目标软件的磁力链接。Generating a magnetic link for downloading the target software according to the target software identification identifier and a preset algorithm.
  11. 根据权利要求8或9或10所述的软件下载装置,其中,所述目标软件识别标识为所述目标软件的散列HASH值或消息摘要算法MD5值。The software downloading apparatus according to claim 8 or 9 or 10, wherein the target software identification identifier is a hash HASH value or a message digest algorithm MD5 value of the target software.
  12. 根据权利要求8所述的软件下载装置,所述装置还包括:The software downloading apparatus according to claim 8, further comprising:
    路由管理模块,设置为:当基站从网管服务器下载了第一硬件对应的第一软件后,生成唯一标识所述第一软件的第一软件识别标识,并根据所述第一软件识别标识生成一文件索引记录,并将所述文件索引记录存储在所述基站所属的分布式哈希表DHT网络动态路由表中。a route management module, configured to: after the base station downloads the first software corresponding to the first hardware from the network management server, generate a first software identification identifier that uniquely identifies the first software, and generate a first software identification identifier according to the first software identifier The file index records and stores the file index record in a distributed hash table DHT network dynamic routing table to which the base station belongs.
  13. 根据权利要求8所述的软件下载装置,所述装置还包括:The software downloading apparatus according to claim 8, further comprising:
    第二获取模块,设置为:获取当前基站的资源利用率;The second obtaining module is configured to: acquire a resource utilization rate of the current base station;
    处理模块,设置为:当所述资源利用率大于预设门限时,关闭所述当前基站的磁力链。The processing module is configured to: when the resource utilization is greater than a preset threshold, close the magnetic chain of the current base station.
  14. 根据权利要求8所述的软件下载装置,所述装置还包括:The software downloading apparatus according to claim 8, further comprising:
    第二下载模块,设置为:当预设时间段内未下载到所述目标软件时,向网管服务器发送所述目标软件的下载请求,并接收所述网管服务器根据所述下载请求发送的目标软件。a second downloading module, configured to: when the target software is not downloaded in the preset time period, send a download request of the target software to the network management server, and receive the target software sent by the network management server according to the download request .
  15. 一种基站,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至7任一项所述的软件下载方法中的步骤。A base station comprising: a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor executing the computer program to implement the software according to any one of claims 1 to 7. Steps in the download method.
PCT/CN2018/090065 2017-06-06 2018-06-06 Software downloading method and device, and base station WO2018223981A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710418728.XA CN109002296A (en) 2017-06-06 2017-06-06 A kind of method for downloading software, device and base station
CN201710418728.X 2017-06-06

Publications (1)

Publication Number Publication Date
WO2018223981A1 true WO2018223981A1 (en) 2018-12-13

Family

ID=64565714

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/090065 WO2018223981A1 (en) 2017-06-06 2018-06-06 Software downloading method and device, and base station

Country Status (2)

Country Link
CN (1) CN109002296A (en)
WO (1) WO2018223981A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111934849B (en) * 2019-05-13 2023-05-05 阿里巴巴集团控股有限公司 Magnetic link-based downloading method, device, system and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136911A (en) * 2006-08-31 2008-03-05 腾讯科技(深圳)有限公司 Method to download files using P2P technique and P2P download system
WO2011054375A1 (en) * 2009-11-03 2011-05-12 Telecom Italia S.P.A. Sharing of digital contents in p2p networks exploiting localization data
CN103024782A (en) * 2011-09-20 2013-04-03 中兴通讯股份有限公司 Base station software version management method and system
CN105450703A (en) * 2014-08-28 2016-03-30 杭州迪普科技有限公司 Data caching method and data caching device
CN105656661A (en) * 2014-12-03 2016-06-08 中兴通讯股份有限公司 Single-board software management method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136911A (en) * 2006-08-31 2008-03-05 腾讯科技(深圳)有限公司 Method to download files using P2P technique and P2P download system
WO2011054375A1 (en) * 2009-11-03 2011-05-12 Telecom Italia S.P.A. Sharing of digital contents in p2p networks exploiting localization data
CN103024782A (en) * 2011-09-20 2013-04-03 中兴通讯股份有限公司 Base station software version management method and system
CN105450703A (en) * 2014-08-28 2016-03-30 杭州迪普科技有限公司 Data caching method and data caching device
CN105656661A (en) * 2014-12-03 2016-06-08 中兴通讯股份有限公司 Single-board software management method and system

Also Published As

Publication number Publication date
CN109002296A (en) 2018-12-14

Similar Documents

Publication Publication Date Title
CN107395659B (en) Method and device for service acceptance and consensus
US9325785B2 (en) Device, system, and method for client-governed session persistency between one or more clients and servers of a data center
TWI728036B (en) Information processing method, device and system
CN108063714B (en) Network request processing method and device
CN106210155B (en) Method and device for connecting application server
CN107105050B (en) Storage and downloading method and system for service objects
CN110865842B (en) OTA upgrading method and equipment
US11632433B2 (en) System and method for improved opt-out recognition for a mobile device
CN105450682B (en) Method, device and system for synchronously storing data and synchronizing data to client
WO2019201040A1 (en) File update management method and system and terminal apparatus
WO2019174523A1 (en) Method and apparatus for transmitting application programming interface (api) request
US11163499B2 (en) Method, apparatus and system for controlling mounting of file system
US20170126556A1 (en) Information transmission method and apparatus, device and storage medium
CN103595808B (en) A kind of file update information method for pushing and device
CN114328029B (en) Backup method and device of application resources, electronic equipment and storage medium
WO2018223981A1 (en) Software downloading method and device, and base station
CN111064798B (en) Node network access method, device, client node and storage medium
US9609085B2 (en) Broadcast-based update management
CN111131498B (en) URL information updating method, cache server, equipment and storage medium
CN112445507A (en) Equipment upgrading method and device
WO2021155529A1 (en) Resource deletion method, apparatus, and device, and storage medium
KR20160026138A (en) Rapid sync method for cloud file system and cloud file system using the same
CN110581784A (en) node health check method, device and equipment
CN114466004A (en) File transmission method, system, electronic equipment and storage medium
CN110784518A (en) Static resource acquisition method and device

Legal Events

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

Ref document number: 18813479

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

Country of ref document: EP

Kind code of ref document: A1