CN111294374B - Heterogeneous equipment starting system, method and device and electronic equipment - Google Patents

Heterogeneous equipment starting system, method and device and electronic equipment Download PDF

Info

Publication number
CN111294374B
CN111294374B CN201811494761.1A CN201811494761A CN111294374B CN 111294374 B CN111294374 B CN 111294374B CN 201811494761 A CN201811494761 A CN 201811494761A CN 111294374 B CN111294374 B CN 111294374B
Authority
CN
China
Prior art keywords
download
heterogeneous
sub
reply
heterogeneous sub
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201811494761.1A
Other languages
Chinese (zh)
Other versions
CN111294374A (en
Inventor
翁力帆
罗仕胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201811494761.1A priority Critical patent/CN111294374B/en
Publication of CN111294374A publication Critical patent/CN111294374A/en
Application granted granted Critical
Publication of CN111294374B publication Critical patent/CN111294374B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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 
    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

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

Abstract

The embodiment of the invention provides a heterogeneous device starting system, a method, a device and an electronic device, wherein the system comprises a main control sub-device and a plurality of heterogeneous sub-devices; the heterogeneous sub-equipment is used for sending a first downloading request; the main control sub-device is used for receiving the first downloading request and replying a first downloading reply aiming at the first downloading request; the heterogeneous sub-equipment is also used for receiving the first download reply and downloading the basic component from the download address carried by the received first download reply; after the basic component is downloaded, sending a second downloading request; the main control sub-device is also used for receiving a second downloading request and replying a second downloading reply aiming at the second downloading request; the heterogeneous sub-device is further configured to receive a second download reply, and download the key component from the download address carried in the received second download reply to complete the start, so as to implement more reasonable download management of resources and further implement more intelligent start of the heterogeneous device.

Description

Heterogeneous equipment starting system, method and device and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a system, a method, and an apparatus for starting heterogeneous devices, and an electronic device.
Background
The heterogeneous device is a device system including a large number of heterogeneous sub-devices, and may include a master sub-device and a plurality of heterogeneous sub-devices, where the master sub-device is configured to manage all the heterogeneous sub-devices in the heterogeneous device. In order to reduce the overall resource consumption of the heterogeneous device and ensure the consistency of the whole device system, the heterogeneous sub-devices in the heterogeneous device cannot be independently started, and the starting can be completed only by downloading the resources on the master control sub-device.
The starting process of the existing heterogeneous equipment is generally as follows: all the heterogeneous sub-devices in the heterogeneous devices download all the resources required for completing self-starting from the main control sub-device in a network mounting mode in parallel, and execute corresponding operations of the downloaded resources to complete the starting.
In the current starting process of the heterogeneous equipment, all heterogeneous sub-equipment in the heterogeneous equipment downloads all resources required for completing self starting from the main control sub-equipment in a network mounting mode in parallel, and at the moment, the external network bandwidth of the main control sub-equipment becomes a resource bottleneck for starting a whole equipment system, so that a large amount of time is required for completing resource downloading and starting of all heterogeneous sub-equipment.
Disclosure of Invention
The embodiment of the invention aims to provide a heterogeneous equipment starting system, a heterogeneous equipment starting method, a heterogeneous equipment starting device and electronic equipment, so that more reasonable resource downloading management is realized, and more intelligent starting of heterogeneous equipment is realized. The specific technical scheme is as follows:
in one aspect, an embodiment of the present invention provides a heterogeneous device starting system, where the heterogeneous device starting system includes a master control sub-device and a plurality of heterogeneous sub-devices;
the heterogeneous sub-device is used for sending a first downloading request, wherein the first downloading request is used for requesting to download basic components required by starting of the heterogeneous sub-device;
the main control sub-device is configured to receive the first download request, and reply a first download reply to the first download request, where the first download reply carries a download address of a basic component required for starting the heterogeneous sub-device;
the heterogeneous sub-device is further configured to receive the first download reply, and download the basic component from a download address carried by the received first download reply; after the basic component is downloaded, sending a second downloading request, wherein the second downloading request is used for requesting to download a key component required by starting the heterogeneous sub-equipment;
the main control sub-device is further configured to receive the second download request, and reply a second download reply to the second download request, where the second download reply carries a download address of a key component required for starting the heterogeneous sub-device;
the multiple heterogeneous sub-devices are further configured to receive the second download reply, and download the key component from the download address carried in the received second download reply, so as to complete the start.
Optionally, the master sub-device is further configured to determine whether to allow the multiple heterogeneous sub-devices to simultaneously download key components required for their starting; if the result of the determination is yes, executing the reply of a second download reply aiming at the second download request; if the determination result is negative, determining a preset configuration number of heterogeneous sub-devices from the plurality of heterogeneous sub-devices as first heterogeneous sub-devices; replying a second download reply aiming at the second download request sent by each first heterogeneous sub-device;
the first heterogeneous sub-device is used for receiving the second download reply and downloading the key component from the download address carried by the received second download reply; after downloading the key component, under the condition that a second download request sent by a second heterogeneous sub-device is received, replying a third download reply based on the received second download request, wherein the third download reply carries an address of the key component downloaded by the first heterogeneous sub-device, and the second heterogeneous sub-device includes: the heterogeneous equipment starting system does not download the heterogeneous sub-equipment of the key component required by starting the heterogeneous equipment;
and the second heterogeneous sub-device is used for downloading the key component from the address carried by the received third download reply after receiving the third download reply so as to complete the starting.
Optionally, the master sub-device is further configured to, after determining that the first heterogeneous sub-device finishes downloading the key component required for starting the first heterogeneous sub-device, in a case that a second download request sent by a second heterogeneous sub-device is received, if it is determined that the plurality of second heterogeneous sub-devices are not allowed to download the key component required for starting the second heterogeneous sub-device at the same time, determine, from the plurality of second heterogeneous sub-devices, the preset number of heterogeneous sub-devices as new first heterogeneous sub-devices, and reply a second download reply to the second download request sent by each new first heterogeneous sub-device;
and the new first heterogeneous sub-device is used for receiving the second download reply and downloading the key component from the download address carried by the received second download reply to complete the starting.
Optionally, the second download request carries: the verification information of the key component corresponding to the basic component downloaded by the corresponding heterogeneous sub-device is used as first verification information;
the first heterogeneous sub-device is specifically used for
Acquiring verification information of the key component downloaded by the user as second verification information;
judging whether first check information carried by each received second download request is the same as the second check information or not according to each received second download request;
and if the judgment result is the same, replying the third download reply aiming at the second download request.
Optionally, the master control sub-device is specifically configured to
Determining an exchange board block to which each heterogeneous sub-device belongs based on a pre-configuration file;
determining the preset configuration number of heterogeneous sub-devices from the plurality of heterogeneous sub-devices as a first heterogeneous sub-device based on the determined exchange board block to which each heterogeneous sub-device belongs, wherein the first heterogeneous sub-device comprises: and each exchange board block corresponds to at least one heterogeneous sub-device.
Optionally, the master control sub-device is specifically configured to
Judging whether the number of the heterogeneous sub-devices is not higher than a preset configuration number, wherein if the number of the heterogeneous sub-devices is not higher than the preset configuration number, determining that the heterogeneous sub-devices are allowed to simultaneously download key components required by starting; and if the number of the heterogeneous sub-devices is judged to be higher than the preset configuration number, determining that the plurality of heterogeneous sub-devices are not allowed to simultaneously download and start the required key components.
Optionally, the plurality of heterogeneous sub-devices are further configured to send a component download completion notification after the key component is downloaded;
the main control sub-device is further configured to determine that the heterogeneous sub-device is started completely after receiving the component download completion notification sent by the heterogeneous sub-device.
In another aspect, an embodiment of the present invention provides a heterogeneous device starting method, which is applied to a master control sub-device in a heterogeneous device starting system, where the heterogeneous device starting system further includes multiple heterogeneous sub-devices, and the method includes:
if a first downloading request sent by the heterogeneous sub-device is received, replying a first downloading reply aiming at the first downloading request so as to enable the heterogeneous sub-device to download the basic component from a downloading address carried by the received first downloading reply; the first download request is used for requesting to download a basic component required by starting heterogeneous sub-equipment, and the first download reply carries a download address of the basic component required by starting heterogeneous sub-equipment;
receiving the second download request, and replying a second download reply to the second download request, so that the heterogeneous sub-device downloads the key component from the download address carried in the received second download reply to complete the start, where the second download request is: and after the heterogeneous sub-equipment finishes downloading the basic component, sending a request for requesting to download the key component required by starting the heterogeneous sub-equipment, wherein the second download reply carries a download address of the key component required by starting the heterogeneous sub-equipment.
Optionally, before the step of replying a second download reply to the second download request, the method further comprises:
determining whether the plurality of heterogeneous sub-devices are allowed to simultaneously download key components required for startup;
if the result is yes, executing the step of replying a second download reply aiming at the second download request;
if the determination result is negative, determining a preset configuration number of heterogeneous sub-devices from the plurality of heterogeneous sub-devices as first heterogeneous sub-devices;
replying a second download reply aiming at a second download request sent by the first heterogeneous sub-device so as to enable the first heterogeneous sub-device to download the key component from the download address carried by the received second download reply; and after the first heterogeneous sub-device finishes downloading the key component, under the condition that a second download request sent by a second heterogeneous sub-device is received, replying a third download reply based on the received second download request, so that the second heterogeneous sub-device downloads the key component from an address carried by the received third download reply after receiving the third download reply to finish starting, wherein the third download reply carries the address of the key component stored by the first heterogeneous sub-device, and the second heterogeneous sub-device comprises: the heterogeneous equipment starts the heterogeneous sub-equipment of the key component required by the starting of the heterogeneous equipment in the system without downloading the key component.
Optionally, the method further comprises:
after determining that the first heterogeneous sub-device finishes downloading key components required by starting, under the condition that a second downloading request sent by a second heterogeneous sub-device is received, if it is determined that the plurality of second heterogeneous sub-devices are not allowed to download the key components required by starting at the same time, determining a preset configuration number of heterogeneous sub-devices from the plurality of second heterogeneous sub-devices as new first heterogeneous sub-devices, and replying a second downloading reply aiming at the second downloading request sent by each new first heterogeneous sub-device; so that the new first heterogeneous sub-device downloads the key component from the download address carried by the received second download reply to complete the start-up.
Optionally, the step of determining a preset number of heterogeneous sub-devices from the plurality of heterogeneous sub-devices as a first heterogeneous sub-device includes:
determining an exchange board block to which each heterogeneous sub-device belongs based on a pre-configuration file;
determining the preset configuration number of heterogeneous sub-devices from the plurality of heterogeneous sub-devices as a first heterogeneous sub-device based on the determined exchange board block to which each heterogeneous sub-device belongs, wherein the first heterogeneous sub-device includes: and each exchange board block corresponds to at least one heterogeneous sub-device.
Optionally, the step of determining whether to allow the multiple heterogeneous sub-devices to simultaneously download key components required for startup includes:
judging whether the number of the heterogeneous sub-devices is not higher than a preset configuration number, wherein if the number of the heterogeneous sub-devices is not higher than the preset configuration number, determining that the heterogeneous sub-devices are allowed to simultaneously download key components required by starting; and if the number of the heterogeneous sub-devices is judged to be higher than the preset configuration number, determining that the plurality of heterogeneous sub-devices are not allowed to simultaneously download and start the required key components.
Optionally, the method further comprises:
and after receiving a component downloading completion notification sent by the heterogeneous sub-equipment, determining that the heterogeneous sub-equipment is started completely.
In another aspect, an embodiment of the present invention provides a heterogeneous device starting method, which is applied to each heterogeneous sub device in a heterogeneous device starting system, where the heterogeneous device starting system further includes a master sub device, and the method includes:
sending a first download request so that the main control sub-device replies a first download reply to the first download request after receiving the first download request, wherein the first download request is used for requesting to download a basic component required by the start of the heterogeneous sub-device, and the first download reply carries a download address of the basic component required by the start of the heterogeneous sub-device;
receiving the first download reply, and downloading the basic component from the download address carried by the received first download reply;
after the basic component is downloaded, sending a second downloading request, wherein the second downloading request is used for requesting to download a key component required by starting the heterogeneous sub-equipment;
if a second download reply replied by the main control sub-device for the second download request is received, downloading a key component from a download address carried by the received second download reply to complete the starting, wherein the second download reply is as follows: and after receiving the second download request, the main control sub-device replies to the second download request, where the second download reply carries a download address of a key component required for starting the heterogeneous sub-device.
Optionally, the method further comprises:
under the condition that a second download reply sent by the main control sub-device is not received, if a third download reply is received, downloading a key component from the address of the key component downloaded by the first heterogeneous sub-device carried by the received third download reply, so as to complete the starting, wherein the third download reply is as follows: after the first heterogeneous sub-device finishes downloading key components required by the start of the first heterogeneous sub-device, the first heterogeneous sub-device responds to the reply of the second download request, and the first heterogeneous sub-device is: and the heterogeneous equipment starts the heterogeneous sub-equipment which finishes the key component in the system after downloading.
Optionally, after the step of downloading the key component from the download address carried by the received second download reply, the method further includes:
under the condition that a second download request sent by a second heterogeneous sub-device is received, replying a third download reply based on the received second download request, wherein the third download reply carries an address of a key component stored and downloaded by the heterogeneous sub-device, and the second heterogeneous sub-device comprises: and the heterogeneous equipment starts the heterogeneous sub-equipment of the key component required by starting the heterogeneous equipment in the system without downloading the heterogeneous sub-equipment.
Optionally, the second download request carries: the verification information of the key component corresponding to the basic component downloaded by the corresponding heterogeneous sub-device is used as first verification information;
the step of replying to a third download reply based on the received second download request comprises:
acquiring verification information of the key component downloaded by the user as second verification information;
judging whether first check information carried by each received second download request is the same as the second check information or not according to each received second download request;
and if the judgment is the same, replying the third download reply aiming at the second download request.
In another aspect, an embodiment of the present invention provides a heterogeneous device starting apparatus, which is applied to a master control sub-device in a heterogeneous device starting system, where the heterogeneous device starting system further includes a plurality of heterogeneous sub-devices, and the apparatus includes:
the first reply module is used for replying a first download reply to the first download request if the first download request sent by the heterogeneous sub-device is received, so that the heterogeneous sub-device downloads the basic component from a download address carried by the received first download reply; the first download request is used for requesting to download a basic component required by starting heterogeneous sub-equipment, and the first download reply carries a download address of the basic component required by starting heterogeneous sub-equipment;
a first receiving module for receiving the second download request,
a second replying module, configured to reply a second download reply to the second download request, so that the heterogeneous child device downloads a key component from a download address carried in the received second download reply to complete starting, where the second download request is: and after the heterogeneous sub-equipment finishes downloading the basic component, sending a request for requesting to download the key component required by starting the heterogeneous sub-equipment, wherein the second download reply carries a download address of the key component required by starting the heterogeneous sub-equipment.
Optionally, the apparatus further comprises:
a first determining module, configured to determine whether to allow the multiple heterogeneous sub-devices to simultaneously download key components required for starting, before replying a second download reply to the second download request; if the determination result is yes, triggering the first recovery module; if the determination result is negative, triggering a second determination module;
the second determining module is configured to determine, from the multiple heterogeneous sub-devices, a preset number of heterogeneous sub-devices as the first heterogeneous sub-device;
a third replying module, configured to reply a second download reply to a second download request sent by the first heterogeneous sub-device, so that the first heterogeneous sub-device downloads the key component from the download address carried in the received second download reply; and after the first heterogeneous sub-device finishes downloading the key component, under the condition that a second download request sent by a second heterogeneous sub-device is received, replying a third download reply based on the received second download request, so that the second heterogeneous sub-device downloads the key component from an address carried by the received third download reply after receiving the third download reply, so as to finish starting, wherein the third download reply carries the address of the first heterogeneous sub-device for storing the downloaded key component, and the second heterogeneous sub-device comprises: the heterogeneous equipment starts the heterogeneous sub-equipment of the key component required by the starting of the heterogeneous equipment in the system without downloading the key component.
Optionally, the apparatus further comprises:
a third determining module, configured to determine, after determining that the first heterogeneous sub-device finishes downloading the key component required for starting the first heterogeneous sub-device, if it is determined that the plurality of second heterogeneous sub-devices are not allowed to download the key component required for starting the second heterogeneous sub-device simultaneously when receiving a second download request sent by the second heterogeneous sub-device, determine, from the plurality of second heterogeneous sub-devices, the number of heterogeneous sub-devices with the preset configuration as new first heterogeneous sub-devices, and reply a second download reply to the second download request sent by each new first heterogeneous sub-device; so that the new first heterogeneous sub-device downloads the key component from the download address carried by the received second download reply to complete the start-up.
Optionally, the second determining module is specifically configured to
Determining a switch board block to which each heterogeneous sub-device belongs based on a pre-configuration file;
determining the preset configuration number of heterogeneous sub-devices from the plurality of heterogeneous sub-devices as a first heterogeneous sub-device based on the determined exchange board block to which each heterogeneous sub-device belongs, wherein the first heterogeneous sub-device comprises: and each exchange board block corresponds to at least one heterogeneous sub-device.
Optionally, the first determining module is specifically configured to
Judging whether the number of the heterogeneous sub-devices is not higher than a preset configuration number, wherein if the number of the heterogeneous sub-devices is not higher than the preset configuration number, determining that the plurality of heterogeneous sub-devices are allowed to simultaneously download key components required by starting; and if the number of the heterogeneous sub-devices is judged to be higher than the preset configuration number, determining that the plurality of heterogeneous sub-devices are not allowed to simultaneously download and start the required key components.
Optionally, the apparatus further comprises:
and the fourth determining module is used for determining that the heterogeneous sub-device is started completely after receiving the component downloading completion notification sent by the heterogeneous sub-device.
In another aspect, an embodiment of the present invention provides a heterogeneous device starting apparatus, which is applied to each heterogeneous sub device in a heterogeneous device starting system, where the heterogeneous device starting system further includes a master sub device, and the apparatus includes:
a first sending module, configured to send a first download request, so that after receiving the first download request, the main control sub-device replies a first download reply to the first download request, where the first download request is used to request to download a basic component required by starting a heterogeneous sub-device, and the first download reply carries a download address of the basic component required by starting the heterogeneous sub-device;
the receiving and downloading module is used for receiving the first downloading reply and downloading the basic component from the downloading address carried by the received first downloading reply;
the second sending module is used for sending a second downloading request after the basic component is downloaded, wherein the second downloading request is used for requesting to download a key component required by starting the heterogeneous sub-equipment;
a first downloading module, configured to download, if a second downloading reply to the second downloading request reply from the main control sub-device is received, a key component from a downloading address carried in the received second downloading reply to complete starting, where the second downloading reply is: and after receiving the second download request, the main control sub-device replies to the second download request, where the second download reply carries a download address of a key component required for starting the heterogeneous sub-device.
Optionally, the apparatus further comprises:
a second downloading module, configured to, in a case that a second downloading reply sent by the main control sub-device is not received, if a third downloading reply is received, download the key component from an address where the key component downloaded by the first heterogeneous sub-device is stored, where the address is carried by the received third downloading reply, to complete starting, where the third downloading reply is: after the first heterogeneous sub-device finishes downloading key components required by starting the first heterogeneous sub-device, the first heterogeneous sub-device replies to the second download request, and the first heterogeneous sub-device is: and the heterogeneous equipment starts heterogeneous sub-equipment which finishes the key component after being downloaded in the system.
Optionally, the apparatus further comprises:
a fourth replying module, configured to reply a third download reply based on the received second download request when receiving the second download request sent by the second heterogeneous child device after downloading the key component from the download address carried by the received second download reply, where the third download reply carries an address of the heterogeneous child device storing the downloaded key component, and the second heterogeneous child device includes: the heterogeneous equipment starts the heterogeneous sub-equipment of the key component required by the starting of the heterogeneous equipment in the system without downloading the key component.
Optionally, the second download request carries: the verification information of the key component corresponding to the basic component downloaded by the corresponding heterogeneous sub-equipment is used as first verification information;
the fourth reply module is specifically configured to
Obtaining verification information of the key component downloaded by the user as second verification information;
judging whether first check information carried by each received second download request is the same as the second check information or not according to each received second download request;
and if the judgment result is the same, replying the third download reply aiming at the second download request.
On the other hand, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
the processor is configured to, when executing the computer program stored in the memory, implement any of the above-mentioned steps of the method for starting a heterogeneous device on a master sub device side according to the embodiments of the present invention.
On the other hand, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for starting a heterogeneous device on a master sub-device side provided in the embodiment of the present invention are implemented.
On the other hand, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
the processor is configured to, when executing the computer program stored in the memory, implement the steps of the method for starting a heterogeneous device on the heterogeneous sub-device side according to any one of the above-mentioned embodiments of the present invention.
On the other hand, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for starting a heterogeneous device on a heterogeneous sub-device side provided in the embodiment of the present invention are implemented.
In the technical scheme provided by the embodiment of the invention, the heterogeneous equipment starting system comprises a main control sub-equipment and a plurality of heterogeneous sub-equipments; the heterogeneous sub-equipment is used for sending a first downloading request, wherein the first downloading request is used for requesting to download basic components required by starting of the heterogeneous sub-equipment; the main control sub-device is used for receiving the first downloading request and replying a first downloading reply aiming at the first downloading request, wherein the first downloading reply carries a downloading address of a basic component required by starting the heterogeneous sub-device; the heterogeneous sub-equipment is also used for receiving the first download reply and downloading the basic component from the download address carried by the received first download reply; after the basic component is downloaded, sending a second downloading request, wherein the second downloading request is used for requesting to download a key component required by starting the heterogeneous sub-equipment; the main control sub-device is further configured to receive a second download request, and reply a second download reply to the second download request, where the second download reply carries a download address of a key component required for starting the heterogeneous sub-device; the heterogeneous sub-device is further configured to receive a second download reply, and download the key component from the download address carried by the received second download reply to complete the starting.
In the embodiment of the invention, the heterogeneous sub-equipment can firstly download the basic components required by starting from the main control sub-equipment, and after the basic components required by starting are downloaded, the main control sub-equipment is requested to download the key components required by starting, and the resources required by starting the heterogeneous sub-equipment are grouped into the basic components and the key components, so that the shunting processing of the resources required by downloading and starting the heterogeneous sub-equipment is realized, the instantaneous load of the main control sub-equipment can be reduced to a certain extent, more reasonable resource downloading management is realized, and more intelligent heterogeneous equipment is started. Of course, it is not necessary for any product or method to achieve all of the above-described advantages at the same time for practicing the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic structural diagram of a heterogeneous device startup system according to an embodiment of the present invention;
fig. 2A, 2B, 2C, 2D, 2E, 2F, 2G, 2H, and 2M are schematic diagrams of a scenario where heterogeneous devices start various processes according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for starting a heterogeneous device according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of another heterogeneous device startup method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a heterogeneous device starting apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another heterogeneous device startup apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a heterogeneous device starting system, a heterogeneous device starting method, a heterogeneous device starting device and electronic equipment, and aims to realize more intelligent starting of heterogeneous devices.
As shown in fig. 1, an embodiment of the present invention provides a heterogeneous device boot system, which may include a master sub-device 110 and a plurality of heterogeneous sub-devices 120;
the heterogeneous sub-device 120 is configured to send a first download request, where the first download request is used to request to download a basic component required for starting the heterogeneous sub-device 120;
wherein, this basic subassembly is: the components for deploying the runtime environment required for the heterogeneous child device to boot may include, but are not limited to: the heterogeneous sub-devices start the required components such as embedded kernel/file systems, specific executable files and scripts for implementing the underlying functions. For example: the base component may include, but is not limited to: executable files and scripts corresponding to data transmission protocols such as an HTTP (hyper text transport Protocol) File and an FTP (File Transfer Protocol) are run to support data transmission between heterogeneous sub-devices in the heterogeneous device starting system, between the heterogeneous sub-devices and a main control sub-device, and between the heterogeneous device starting system and other devices outside the system based on the corresponding data transmission protocols.
In one implementation, the heterogeneous child device may send the first download request in a broadcast or multicast manner.
The main control sub-device 110 is configured to receive the first download request, and reply a first download reply to the first download request, where the first download reply carries a download address of a basic component required for starting the heterogeneous sub-device;
the heterogeneous sub-device 120 is further configured to receive the first download reply, and download the basic component from the download address carried by the received first download reply; after the basic components are downloaded, sending a second download request, where the second download request is used to request to download key components required for starting the heterogeneous sub-device 120;
the main control sub-device 110 is further configured to receive a second download request, and reply a second download reply to the second download request, where the second download reply carries a download address of a key component required for starting the heterogeneous sub-device 120;
the heterogeneous sub-device 120 is further configured to receive a second download reply, and download the key component from the download address carried in the received second download reply to complete the starting.
The master sub-device 110 is configured to manage all the heterogeneous sub-devices 120 in the heterogeneous device. Each heterogeneous sub-device 120 may be started up as a functional device to provide the functions that the heterogeneous device can support. The master sub-device 110 may be a device group system or a physical device, and the master sub-device 110 may provide basic components and key components required for starting all the heterogeneous sub-devices 120 in the heterogeneous device, and regulate and control downloading of the basic components and the key components required for starting all the heterogeneous sub-devices 120 in the heterogeneous device.
In one case, when the main control sub-device 110 may be a device group system, different devices in the device group system may store a basic component and a key component, and during the starting process, the device storing the basic component may reply to the heterogeneous sub-device with a first download reply, and the device storing the key component replies to the heterogeneous sub-device with a second download reply.
The key components include: and other necessary components which are required by the starting of the heterogeneous sub-equipment and are realized by the application layer function are used for running in the deployed running environment, and the starting and running of the heterogeneous sub-equipment are realized so as to provide the corresponding application layer function. Key components may include, but are not limited to: and the component provides functional services such as management operation and maintenance service, data storage service and the like.
In the embodiment of the present invention, in the initial stage, each heterogeneous sub-device 120 in the heterogeneous device is in an uninitialized stage, for example: the heterogeneous child device 120 has not yet obtained its own required kernel/file system, etc. At this time, the heterogeneous sub-device 120 may send a first download request through an intranet of the heterogeneous device, that is, a local area network of the heterogeneous device, to search for the master sub-device 110 in the heterogeneous device, and request the master sub-device 110 for a download address of a basic component required for its own startup.
In one implementation, each heterogeneous slave device 120 may send the first download request by broadcast or multicast. Fig. 2A is a schematic diagram of a scenario in which a heterogeneous slave device 120 sends a first download request. In fig. 2A, "Node1" to "Node n" indicate heterogeneous sub-devices 120, and "Master" indicates Master sub-device 110. Similarly, "Node1" to "Node n" shown in subsequent fig. 2B-2M identify the heterogeneous sub-device 120, and "Master" shown identifies the Master sub-device 110.
The main control sub-device 110 receives the first download request sent by the heterogeneous sub-devices 120, and further replies a first download reply to the heterogeneous sub-device 120 corresponding to the first download request for each first download request, where the first download reply carries a download address of a basic component required for starting the heterogeneous sub-device 120.
The first download request sent by each heterogeneous child device 120 may carry an IP (Internet Protocol, internet Protocol/Internet Protocol) address of the heterogeneous child device 120 itself, and the main control child device 110 may send a first download reply to the heterogeneous child device 120 based on the IP address of the heterogeneous child device 120. Fig. 2B is a schematic diagram illustrating a scenario in which the master sub-device 110 replies with the first download reply.
After receiving the first download reply, the heterogeneous sub-device 120 may download the basic component from the download address of the basic component required for starting, which is carried in the first download reply, in a network download manner. Fig. 2C is a schematic view of a scenario that the heterogeneous child device 120 downloads basic components.
After the heterogeneous sub-device 120 downloads the basic components required for the startup, it sends a second download request to download the key components required for the startup of the heterogeneous sub-device. In one case, the heterogeneous sub-device 120 may send the second download request by broadcasting or multicasting. Fig. 2D is a schematic view of a scenario in which the heterogeneous sub-device 120 sends the second download request.
After receiving the second download request, the main control sub-device 110 may reply a second download reply to each received second download request, where the second download reply carries a download address of a key component required for the heterogeneous sub-device 120 to start. In turn, the heterogeneous child device 120 downloads the key component from the download address carried by the received second download reply to complete the boot.
In the embodiment of the invention, the heterogeneous sub-equipment can firstly download the basic components required by starting from the main control sub-equipment, and after the basic components required by starting are downloaded, the main control sub-equipment is requested to download the key components required by starting, and the resources required by starting the heterogeneous sub-equipment are grouped into the basic components and the key components, so that the shunting processing of the resources required by downloading and starting the heterogeneous sub-equipment is realized, the instantaneous load of the main control sub-equipment can be reduced to a certain extent, more reasonable resource downloading management is realized, and more intelligent heterogeneous equipment is started.
And moreover, resources required by starting the heterogeneous sub-equipment are grouped and divided into basic components and key components, so that the architecture of the heterogeneous equipment starting system is more flexible.
In one implementation, the master sub-device 110 is further configured to determine whether to allow multiple heterogeneous sub-devices 120 to simultaneously download key components required for their booting; and if so, executing the reply of the second download reply aiming at the second download request.
In one case, the data volume of the basic component required for the heterogeneous sub-device to boot is small, while the data volume of the key component required for the heterogeneous sub-device to boot is large. In this implementation manner, in order to better improve the starting speed of the heterogeneous device, and avoid the situation that the time consumed for starting the downloading of the heterogeneous sub-devices is long due to the bandwidth limitation of the main control sub-device 110 when too many heterogeneous sub-devices 120 download the key components required for starting the heterogeneous sub-devices from the main control sub-device 110 in parallel, before replying the second download reply to the second download request, the main control sub-device 110 may determine whether to allow the plurality of heterogeneous sub-devices 120 to download the key components required for starting the heterogeneous sub-devices at the same time, if the determination result is yes, that is, if it is determined that the plurality of heterogeneous sub-devices 120 are allowed to download the key components required for starting the heterogeneous sub-devices at the same time, reply to each received second download request, so that each heterogeneous sub-device can download the key components required for starting the heterogeneous sub-devices from the main control sub-device.
The second download request carries the IP address of the corresponding heterogeneous sub-device 120, and the main control sub-device 110 may reply the second download reply to the heterogeneous sub-device 120 based on the IP address of each heterogeneous sub-device 120.
In one implementation, the master sub-device 110 is a different heterogeneous sub-device, and there may be differences in the basic components required for the heterogeneous sub-device 120 to boot. After the heterogeneous sub-device 120 finishes downloading the basic components, when sending the second download request, the second download request may carry verification information of the key component corresponding to the basic component that has been downloaded, and then the main control sub-device 110 may reply a second download reply to the heterogeneous sub-device 120 according to the verification information of the key component that is carried in each second download request, where the second download reply carries a download address of the key component corresponding to the verification information of the key component, so as to ensure that the heterogeneous sub-device 120 can download the correct key component based on the download address carried in the second download reply, and ensure normal start of the heterogeneous sub-device 120.
In another implementation, if the determination result is negative, it is determined that the plurality of heterogeneous sub-devices 120 are not allowed to simultaneously download the key component required for starting the heterogeneous sub-devices, and a preset number of heterogeneous sub-devices 120 are determined from the plurality of heterogeneous sub-devices 120 as the first heterogeneous sub-device 121; replying a second download reply to the second download request sent by each first heterogeneous child device 121;
the first heterogeneous sub-device 121 is configured to receive the second download reply, and download the key component from the download address carried in the received second download reply; after downloading the key component, in a case that a second download request sent by the second heterogeneous sub-device 122 is received, replying a third download reply based on the received second download request, where the third download reply carries an address of the first heterogeneous sub-device 121 storing the downloaded key component, and the second heterogeneous sub-device 122 includes: heterogeneous sub-equipment which does not download key components required by the start of the heterogeneous equipment in the heterogeneous equipment starting system;
and the second heterogeneous sub-device 122, configured to, after receiving the third download reply, download the key component from the address carried in the received third download reply to complete the startup.
The preset configuration number may be set according to the performance of the master sub-device 110. In one case, the master sub-device 110 may detect its own performance periodically or aperiodically, and then automatically adjust the preset configuration number. Alternatively, the preset configuration number may be manually adjusted by a worker.
In this implementation manner, if the determination result is negative, that is, if it is determined that the bandwidth of the heterogeneous sub-device 120 does not allow the plurality of heterogeneous sub-devices 120 to simultaneously download the key component required for starting the heterogeneous sub-devices, a preset number of heterogeneous sub-devices are determined from the plurality of heterogeneous sub-devices 120 to serve as the first heterogeneous sub-device 121, and then the first heterogeneous sub-device 121 is allowed to download the key component from the heterogeneous sub-device, that is, the key component is downloaded from the download address carried by the second download reply. Fig. 2E is a schematic view of a scenario in which the main control sub-device 110 replies to the second download reply; as shown in fig. 2F, a scene diagram of downloading key components by the first heterogeneous sub-device 121 is shown.
Subsequently, the second heterogeneous sub-device, which is another heterogeneous sub-device that does not download the key component, may always send the second download request, as shown in fig. 2G, which is a scene diagram illustrating that the second heterogeneous sub-device 122 sends the second download request. After the first heterogeneous sub-device 121 finishes downloading the key components, in the case of receiving the second download request sent by the second heterogeneous sub-device 122, replying a third download reply based on the received second download request. The first heterogeneous sub-device 121 that has already downloaded the key component actively shares the burden of component downloading of the main control sub-device 110, so as to reduce the bandwidth resource occupation of the main control sub-device 110 during the starting process of the heterogeneous devices, and to a certain extent, the time for starting the downloading of the heterogeneous sub-devices can be shortened. Fig. 2H is a schematic diagram of a scenario in which the first heterogeneous sub-device 121 sends the third download reply. Fig. 2M is a schematic view of a scenario in which a second heterogeneous sub-device downloads a key component from a first heterogeneous sub-device.
In one case, each heterogeneous sub-device may download a basic component with a smaller data size required for starting from the master sub-device, and when a request is made to the master sub-device to download a key component with a larger data size required for starting, the master sub-device determines, through its own bandwidth, whether all the heterogeneous sub-devices can be supported for parallel downloading, and when it is determined that all the heterogeneous sub-devices can be supported for parallel downloading of the key component; when the support is determined not to be available, allowing the screened first heterogeneous sub-devices to download the key component from the main control sub-device, and then actively sharing the load of component downloading of the main control sub-device 110 by the first heterogeneous sub-device 121 which has downloaded the key component, so as to reduce the bandwidth resource occupation of the main control sub-device 110 in the starting process of the heterogeneous devices and realize more intelligent starting of the heterogeneous devices.
In an implementation manner, the main control sub-device 110 is further configured to, after determining that the first heterogeneous sub-device 121 finishes downloading the key component required for starting the heterogeneous sub-device, and in a case that a second download request sent by the second heterogeneous sub-device 122 is received, if it is determined that the plurality of second heterogeneous sub-devices are not allowed to simultaneously download the key component required for starting the heterogeneous sub-device, determine, from the plurality of second heterogeneous sub-devices 122, a preset configuration number of heterogeneous sub-devices as new first heterogeneous sub-devices, and reply a second download reply to each new second download request sent by the first heterogeneous sub-device;
and the new first heterogeneous sub-device is used for receiving the second download reply and downloading the key component from the download address carried by the received second download reply to finish the starting.
In order to better improve the starting speed of the heterogeneous devices, after determining that the first heterogeneous sub-device finishes downloading the required key components, in the case of receiving a second download request sent by the second heterogeneous sub-device 122, the main control sub-device 110 may further continue to provide the second heterogeneous sub-device 122 with the download addresses of the key components required for starting, so that the second heterogeneous sub-device may continue to download the key components required for starting from the main control sub-device 110 after receiving the download addresses of the key components required for starting provided by the main control sub-device 110.
In one implementation, the master sub-device 110 may determine whether to allow all the heterogeneous sub-devices 120 in the heterogeneous devices to simultaneously download key components required for its startup from the master sub-device 110 by determining a size between the number of the heterogeneous sub-devices 120 in the heterogeneous devices and a preset configuration number. Wherein the master sub-device 110 is specifically configured to
Determining whether the number of the plurality of heterogeneous sub-devices 120 is not higher than a preset configuration number, wherein if the number of the plurality of heterogeneous sub-devices 120 is not higher than the preset configuration number, determining that the plurality of heterogeneous sub-devices 120 are allowed to simultaneously download key components required for starting; if the number of the heterogeneous sub-devices 120 is determined to be higher than the preset configuration number, it is determined that the plurality of heterogeneous sub-devices 120 are not allowed to simultaneously download the key components required for starting.
In one case, the master sub-device 110 is a different first heterogeneous sub-device, and there may be differences in the basic components required for booting provided. The second download request sent by the first heterogeneous child device may carry check information of a key component required by the first heterogeneous child device, and after receiving the second download request, the main control child device 110 replies a second download reply carrying a download address of the key component corresponding to the basic component that has been downloaded by the first heterogeneous child device to each first heterogeneous child device 121 based on the check information of the key component. The first heterogeneous sub-device 121 downloads the key component from the download address carried by the received second download reply. And (4) subsequently. The first heterogeneous sub-device 121 can only provide the key component to the second heterogeneous sub-device 122 that needs to download the key component downloaded by itself. In one implementation manner, the second download request carries verification information of a key component corresponding to a basic component downloaded by the corresponding heterogeneous sub-device, and the verification information is used as first verification information;
first heterogeneous sub-device 122, in particular for
Obtaining verification information of the key component downloaded by the user as second verification information;
judging whether the first check information and the second check information carried by each received second download request are the same or not;
and if the judgment result is the same, replying a third download reply aiming at the second download request.
If the first check information carried by the second download request is judged to be the same as the second check information of the key component downloaded by the heterogeneous sub-device, it can be determined that the key component required for starting the heterogeneous sub-device sending the second download request is the same as the key component downloaded by the heterogeneous sub-device, and at this time, the first heterogeneous sub-device can reply a third download reply to the heterogeneous sub-device sending the second download request. And after the heterogeneous sub-device sending the second download request receives the third download reply, downloading the key component from the first heterogeneous sub-device, and completing the starting.
The main control sub-device 110 determines a preset configuration number of heterogeneous sub-devices from the heterogeneous sub-devices, as the first heterogeneous sub-device, and the determination manner may be multiple. When the master sub-device 110 provides the same basic component and/or key component for different heterogeneous sub-devices, a preset number of heterogeneous sub-devices may be randomly determined from the heterogeneous sub-devices as the first heterogeneous sub-device. When the main control sub-device 110 provides different basic components and/or key components for different heterogeneous sub-devices, a preset number of heterogeneous sub-devices may be determined from the heterogeneous sub-devices as a first heterogeneous sub-device, where the first heterogeneous sub-device includes: and each group of basic components and at least one heterogeneous sub-device corresponding to the key component. It can be understood that there is correspondence between the base component and the key component. At least one heterogeneous sub-device corresponding to each group of basic components and key components is as follows: at least one heterogeneous sub-device of the set of base components and key components is downloaded.
When the heterogeneous sub-devices in the heterogeneous devices are all disposed in the same switch board block, the main control sub-device 110 may randomly determine a preset number of heterogeneous sub-devices from the heterogeneous sub-devices, as the first heterogeneous sub-device. In a case that heterogeneous sub-devices of the heterogeneous devices are disposed in different switch board blocks, the main control sub-device 110 may determine, based on a principle of network proximity, at least one heterogeneous sub-device from the heterogeneous sub-devices disposed in each switch board block, so as to obtain a preset configuration number of heterogeneous sub-devices, which is used as the first heterogeneous sub-device. Subsequently, the first heterogeneous sub-device may provide the key component for a heterogeneous sub-device that is not downloaded to obtain the key component and is located in the same switchboard board block. The information of the exchange board block where each heterogeneous sub-device is located may be stored in a pre-configured file.
In one implementation, the master sub-device 110 is specifically configured to
Determining an exchange board block to which each heterogeneous sub-device belongs based on a pre-configuration file;
determining a preset configuration number of heterogeneous sub-devices from the plurality of heterogeneous sub-devices as a first heterogeneous sub-device based on the determined exchange board block to which each heterogeneous sub-device belongs, wherein the first heterogeneous sub-device comprises: and at least one heterogeneous sub-device corresponding to each exchange board block.
The determination process of the new first heterogeneous sub device may refer to the determination process of the first heterogeneous sub device from the plurality of heterogeneous sub devices, and is not described herein again.
In one implementation, in order to facilitate the management of the heterogeneous sub-devices 120 in the heterogeneous device by the master sub-device 110, after each of the heterogeneous sub-devices is started, the master sub-device 110 needs to be notified so that the master sub-device 110 knows the states of the heterogeneous sub-devices to prepare for subsequent work scheduling. The heterogeneous sub-devices are also used for sending a component downloading completion notice after the key component is downloaded;
the main control sub-device 110 is further configured to determine that the heterogeneous sub-device 120 is started completely after receiving the component download completion notification sent by the heterogeneous sub-device.
In one case, the heterogeneous child device may send the component download complete notification by way of broadcast.
The master control sub-device may determine that the whole heterogeneous device is started after receiving the component download completion notification sent by all the heterogeneous sub-devices in the heterogeneous devices.
In one implementation, when the heterogeneous sub-device receives a plurality of second download replies or third download replies, one of the second download replies or the third download replies may be selected as a target download reply, and key components required for self-starting are downloaded from an address carried by the target download reply. When a download reply is selected from the group as a target download reply, the following steps may be performed: selecting the earliest received download reply as the target download reply; it is also possible to select a download reply that is in the same board block as itself, as a target download reply, and so on. In another implementation, the following may be: after the heterogeneous sub-device receives one download reply, which may be the second download reply or the third download reply, the other download reply may not be received.
Corresponding to the above system embodiment, an embodiment of the present invention provides a heterogeneous device starting method, which is applied to a master control sub device in a heterogeneous device starting system, where the heterogeneous device starting system further includes a plurality of heterogeneous sub devices, and as shown in fig. 3, the method may include the following steps:
s301: if a first downloading request sent by the heterogeneous sub-equipment is received, replying a first downloading reply aiming at the first downloading request so that the heterogeneous sub-equipment downloads the basic component from a downloading address carried by the received first downloading reply; the first download request is used for requesting to download a basic component required by starting heterogeneous sub-equipment, and the first download reply carries a download address of the basic component required by starting the heterogeneous sub-equipment;
s302: receiving a second download request, and replying a second download reply aiming at the second download request so as to enable the heterogeneous sub-device to download the key component from the download address carried by the received second download reply to complete the starting, wherein the second download request is as follows: and after the heterogeneous sub-equipment finishes downloading the basic component, sending a request for requesting to download the key component required by starting the heterogeneous sub-equipment, wherein the second download reply carries a download address of the key component required by starting the heterogeneous sub-equipment.
The first download request and the second download request may be sent in a broadcast or multicast manner.
The main control sub-device is used for managing all the heterogeneous sub-devices in the heterogeneous device. After being started, each heterogeneous sub-device can be used as a functional device to provide functions supported by the heterogeneous sub-device. The master control sub-device may be a device group system or an entity device, and the master control sub-device may provide basic components and key components required for starting all the heterogeneous sub-devices in the heterogeneous device, and regulate and control downloading of the basic components and the key components required for starting all the heterogeneous sub-devices in the heterogeneous device.
In one case, when the master sub-device 110 may be a device group system, different devices in the device group system may store a basic component and a key component, and during the starting process, the device storing the basic component may reply a first download reply to the heterogeneous sub-device, and the device storing the key component replies a second download reply to the heterogeneous sub-device.
The basic components are: the components for deploying the runtime environment required for the heterogeneous child device boot may include: the heterogeneous child devices start the required embedded kernel/file system, as well as components such as specific executable files and scripts, for example: the base components may include, but are not limited to: executable files and scripts corresponding to data transmission protocols such as an HTTP (hyper text transport Protocol) File and an FTP (File Transfer Protocol) are run to support data transmission between heterogeneous sub-devices in the heterogeneous device starting system, between the heterogeneous sub-devices and a main control sub-device, and between the heterogeneous device starting system and other devices outside the system based on the corresponding data transmission protocols.
The key components include: and other necessary components which are required by the starting of the heterogeneous sub-equipment and are realized by the application layer function are used for running in the deployed running environment, and the starting and running of the heterogeneous sub-equipment are realized so as to provide the corresponding application layer function. Key components may include, but are not limited to: and providing a component for managing functional services such as operation and maintenance services and data storage services.
In the embodiment of the invention, the heterogeneous sub-equipment can firstly download the basic components required by starting from the main control sub-equipment, and after the basic components required by starting are downloaded, the main control sub-equipment is requested to download the key components required by starting, and the resources required by starting the heterogeneous sub-equipment are grouped into the basic components and the key components, so that the shunting processing of the resources required by downloading and starting the heterogeneous sub-equipment is realized, the instantaneous load of the main control sub-equipment can be reduced to a certain extent, more reasonable resource downloading management is realized, and more intelligent heterogeneous equipment is started.
And moreover, resources required by starting the heterogeneous sub-equipment are grouped into basic components and key components, so that the architecture of the heterogeneous equipment starting system is more flexible.
In one implementation, before the step of replying with a second download reply to the second download request, the method may further comprise:
determining whether to allow a plurality of heterogeneous sub-devices to simultaneously download key components required for startup;
and if so, executing the step of replying the second download reply aiming at the second download request.
In one case, the amount of data of the base component required for the heterogeneous child device to boot is small, while the amount of data of the key component required for the heterogeneous child device to boot is large. In the implementation manner, in order to better improve the starting speed of the heterogeneous device, when too many heterogeneous sub-devices download key components required for starting from the main control sub-device in parallel, due to the bandwidth limitation of the main control sub-device, the situation that the time consumed for downloading and starting the heterogeneous sub-devices is long is avoided. The main control sub-device may determine whether to allow the plurality of heterogeneous sub-devices to simultaneously download the key components required for the start of the heterogeneous sub-devices before replying the second download reply to the second download request, and if the determination result is yes, that is, if it is determined that the plurality of heterogeneous sub-devices are allowed to simultaneously download the key components required for the start of the heterogeneous sub-devices, reply to the second download reply to each received second download request, so that each heterogeneous sub-device may download the key components required for the start from the main control sub-device.
The second download request carries the IP addresses of the corresponding heterogeneous sub-devices, and the master sub-device may reply a second download reply to the heterogeneous sub-devices based on the IP address of each heterogeneous sub-device.
In one case, the master sub-device is a different heterogeneous sub-device, and there may be differences in the basic components required for the provided heterogeneous sub-devices to boot. After the heterogeneous sub-devices finish downloading the basic components, when a second downloading request is sent, the second downloading request can carry verification information of key components corresponding to the basic components which are downloaded, and then the main control sub-device can reply a second downloading reply to the heterogeneous sub-devices according to the verification information of the key components carried by each second downloading request, wherein the second downloading reply carries the downloading addresses of the key components corresponding to the verification information of the key components, so that the heterogeneous sub-devices can download correct key components based on the downloading addresses carried by the second downloading reply, and normal starting of the heterogeneous sub-devices is guaranteed.
In another implementation manner, if the determination result is negative, it is determined that the plurality of heterogeneous sub-devices are not allowed to simultaneously download the key component required by the start of the plurality of heterogeneous sub-devices, and a preset number of heterogeneous sub-devices are determined from the plurality of heterogeneous sub-devices as first heterogeneous sub-devices;
replying a second download reply aiming at a second download request sent by the first heterogeneous sub-device so as to enable the first heterogeneous sub-device to download the key component from the download address carried by the received second download reply; and after the first heterogeneous sub-device finishes downloading the key component, under the condition of receiving a second download request sent by a second heterogeneous sub-device, replying a third download reply based on the received second download request, so that the second heterogeneous sub-device downloads the key component from an address carried by the received third download reply after receiving the third download reply to finish starting, wherein the third download reply carries the address of the first heterogeneous sub-device for storing the downloaded key component, and the second heterogeneous sub-device comprises: the heterogeneous device starts a heterogeneous sub-device of a system without downloading key components required by starting the heterogeneous device.
In the implementation mode, the main control sub-device determines whether all heterogeneous sub-devices can be supported for parallel downloading or not through the bandwidth of the main control sub-device, and when the main control sub-device can be supported for parallel downloading, all heterogeneous sub-devices are allowed to download key components; when the first heterogeneous sub-device is determined to be not supportable, the screened first heterogeneous sub-device is allowed to download the key component from the main control sub-device, and then the first heterogeneous sub-device which has downloaded the key component actively shares the downloading burden of the component of the main control sub-device, so that the bandwidth resource occupation of the main control sub-device in the starting process of the heterogeneous device is reduced, the starting speed of the heterogeneous device is improved better, the situation that too many heterogeneous sub-devices download the key component required for starting from the main control sub-device in parallel is avoided, and the situation that the time consumed for downloading and starting the heterogeneous sub-devices is long due to the bandwidth limitation of the main control sub-device is avoided. Therefore, the occupation of bandwidth resources of the main control sub-device 110 in the starting process of the heterogeneous device is reduced, and the time for downloading and starting the heterogeneous sub-device can be shortened to a certain extent. More intelligent startup of heterogeneous devices is achieved.
In order to better improve the starting speed of the heterogeneous device, after determining that the first heterogeneous sub-device finishes downloading the required key component, the main control sub-device may further continue to provide the second heterogeneous sub-device with the download address of the key component required for starting under the condition that a second download request sent by the second heterogeneous sub-device is received, so that the second heterogeneous sub-device may continue to download the key component required for starting from the main control sub-device when receiving the download address of the key component required for starting provided by the main control sub-device. In one implementation, the method may further include:
after determining that the first heterogeneous sub-device finishes downloading key components required by starting, under the condition that a second downloading request sent by a second heterogeneous sub-device is received, if determining that a plurality of second heterogeneous sub-devices are not allowed to simultaneously download the key components required by starting, determining a preset configuration number of heterogeneous sub-devices from the plurality of second heterogeneous sub-devices as new first heterogeneous sub-devices, and replying a second downloading reply aiming at each new second downloading request sent by the first heterogeneous sub-device; so that the new first heterogeneous sub-device downloads the key component from the download address carried by the received second download reply to complete the startup.
In one implementation, the master sub-device may determine whether to allow all the heterogeneous sub-devices in the heterogeneous devices to simultaneously download key components required for starting the heterogeneous devices from the master sub-device by determining a size between the number of the heterogeneous sub-devices in the heterogeneous devices and a preset configuration number. The step of determining whether to allow multiple heterogeneous sub-devices to simultaneously download key components required for startup may include:
judging whether the number of the heterogeneous sub-devices is not higher than a preset configuration number, wherein if the number of the heterogeneous sub-devices is not higher than the preset configuration number, determining that the plurality of heterogeneous sub-devices are allowed to simultaneously download key components required by starting; and if the number of the heterogeneous sub-devices is higher than the preset configuration number, determining that the plurality of heterogeneous sub-devices are not allowed to simultaneously download the key components required by starting.
The main control sub-device determines a preset configuration number of heterogeneous sub-devices from the heterogeneous sub-devices, and the determination mode can be multiple as the first heterogeneous sub-device. The main control sub-device determines a preset configuration number of heterogeneous sub-devices from the heterogeneous sub-devices as a first heterogeneous sub-device, and the determination mode can be various. When the master sub-device provides the same basic component and/or key component for different heterogeneous sub-devices, a preset number of heterogeneous sub-devices may be randomly determined from the heterogeneous sub-devices as the first heterogeneous sub-device. When the master control sub-device provides different basic components and/or key components for different heterogeneous sub-devices, a preset configuration number of heterogeneous sub-devices may be determined from the heterogeneous sub-devices as a first heterogeneous sub-device, where the first heterogeneous sub-device includes: and each group of basic components and at least one heterogeneous sub-device corresponding to the key component. It can be appreciated that there is a correspondence between the base component and the key component. Each group of basic components and at least one heterogeneous sub-device corresponding to the key component are as follows: at least one heterogeneous sub-device of the set of base components and key components is downloaded.
When the heterogeneous sub-devices in the heterogeneous devices are all arranged in the same switchboard board, the main control sub-device can randomly determine a preset configuration number of heterogeneous sub-devices from the heterogeneous sub-devices to serve as the first heterogeneous sub-devices. Under the condition that heterogeneous sub-devices in the heterogeneous devices can be arranged in different switch board blocks, the main control sub-device can determine at least one heterogeneous sub-device from the heterogeneous sub-devices arranged in each switch board block based on a principle of network proximity so as to obtain a preset configuration number of heterogeneous sub-devices as the first heterogeneous sub-device. Subsequently, the first heterogeneous sub-device may provide the key component for a heterogeneous sub-device that is not downloaded to obtain the key component and is located in the same switchboard board block. The information of the exchange board block where each heterogeneous sub-device is located may be stored in a pre-configured file.
In an implementation manner, the determining, from the multiple heterogeneous subsets, a preset configuration number of heterogeneous subsets may include:
determining a switch board block to which each heterogeneous sub-device belongs based on a pre-configuration file;
determining a preset configuration number of heterogeneous sub-devices from the plurality of heterogeneous sub-devices as a first heterogeneous sub-device based on the determined exchange board block to which each heterogeneous sub-device belongs, wherein the first heterogeneous sub-device comprises: and each exchange board block corresponds to at least one heterogeneous sub-device.
The determination process of the new first heterogeneous sub device may refer to the determination process of the first heterogeneous sub device from the plurality of heterogeneous sub devices, and is not described herein again.
In one implementation, in order to facilitate the master sub-device to manage the multiple heterogeneous sub-devices in the heterogeneous device, after each of the heterogeneous sub-devices is started, the master sub-device needs to be notified, so that the master sub-device knows the states of the heterogeneous sub-devices to prepare for subsequent work scheduling. The method may further comprise:
and after receiving a component downloading completion notification sent by the heterogeneous sub-device, determining that the heterogeneous sub-device is started completely.
In one case, the heterogeneous child device may send the component download complete notification by way of broadcast.
The master control sub-device may determine that the whole heterogeneous device is started completely after receiving the notification of completion of component downloading sent by all the heterogeneous sub-devices in the heterogeneous devices.
Corresponding to the above system embodiment, an embodiment of the present invention provides a heterogeneous device starting method, which is applied to each heterogeneous sub device in a heterogeneous device starting system, where the heterogeneous device starting system further includes a master sub device, and as shown in fig. 4, the method may include the steps of:
s401: sending a first download request so that the main control sub-device replies a first download reply to the first download request after receiving the first download request, wherein the first download request is used for requesting to download a basic component required by starting the heterogeneous sub-device, and the first download reply carries a download address of the basic component required by starting the heterogeneous sub-device;
s402: receiving a first download reply, and downloading the basic component from a download address carried by the received first download reply;
s403: after the basic component is downloaded, sending a second downloading request, wherein the second downloading request is used for requesting to download a key component required by starting the heterogeneous sub-equipment;
s404: if a second download reply replied by the main control sub-equipment aiming at the second download request is received, downloading the key component from a download address carried by the received second download reply to finish the starting, wherein the second download reply is as follows: and after receiving the second download request, the main control sub-device replies to the second download request, wherein the second download reply carries a download address of the key component required by starting the heterogeneous sub-device.
The specific implementation manner may refer to the system embodiment and the method embodiment of the master control sub-device side, and is not described again.
In the embodiment of the invention, the heterogeneous sub-equipment can firstly download the basic components required by starting from the main control sub-equipment, and after the basic components required by starting are downloaded, the main control sub-equipment is requested to download the key components required by starting, and the resources required by starting the heterogeneous sub-equipment are grouped into the basic components and the key components, so that the shunting processing of the resources required by downloading and starting the heterogeneous sub-equipment is realized, the instantaneous load of the main control sub-equipment can be reduced to a certain extent, more reasonable downloading management of the resources is realized, and more intelligent starting of the heterogeneous equipment is realized.
And moreover, resources required by starting the heterogeneous sub-equipment are grouped into basic components and key components, so that the architecture of the heterogeneous equipment starting system is more flexible.
In this implementation manner, after the first heterogeneous sub-device finishes downloading the key component, the third download reply is replied based on the received second download request when receiving the second download request sent by the other heterogeneous sub-devices. The first heterogeneous sub-device which has downloaded the key component actively shares the download burden of the component of the main control sub-device, so that the occupation of bandwidth resources of the main control sub-device in the starting process of the heterogeneous device is reduced, and the time for starting the download of the heterogeneous sub-device can be shortened to a certain extent.
In one implementation, the method may further include:
under the condition that a second download reply sent by the main control sub-device is not received, if a third download reply is received, downloading the key component from the address of the key component downloaded by the first heterogeneous sub-device carried by the received third download reply, so as to complete the starting, wherein the third download reply is as follows: after the first heterogeneous sub-device finishes downloading key components required by the start of the first heterogeneous sub-device, the first heterogeneous sub-device replies to the second download request, and the first heterogeneous sub-device is as follows: the heterogeneous device starts a heterogeneous sub-device which finishes the key component and is downloaded in the system.
In one implementation, after the step of downloading the key component from the download address carried by the received second download reply, the method may further include:
under the condition that a second download request sent by a second heterogeneous sub-device is received, replying a third download reply based on the received second download request, wherein the third download reply carries an address of a key component stored and downloaded by the heterogeneous sub-device, and the second heterogeneous sub-device comprises: the heterogeneous device starts the heterogeneous sub-device of the system without downloading the key component required by the starting.
In one case, the master sub-device is a different first heterogeneous sub-device, and there may be differences in the basic components required for booting provided. The second download request sent by the first heterogeneous sub-devices may carry verification information of the key component required by the first heterogeneous sub-devices, and after receiving the second download request, the main control sub-devices reply to each first heterogeneous sub-device a second download reply carrying a download address of the key component corresponding to the basic component that has been downloaded by the first heterogeneous sub-devices, based on the verification information of the key component. And the first heterogeneous sub-equipment downloads the key component from the download address carried by the received second download reply. And (4) subsequently. The first heterogeneous sub-device can only provide the key component to a second heterogeneous sub-device that needs to download the key component downloaded by itself. In one implementation manner, the second download request carries verification information of a key component corresponding to a basic component downloaded by the corresponding heterogeneous sub-device, and the verification information is used as first verification information;
the replying to the third download reply based on the received second download request may include:
obtaining verification information of the key component downloaded by the user as second verification information;
judging whether first check information carried by each received second download request is the same as the second check information or not according to each received second download request;
and if the judgment result is the same, replying a third download reply aiming at the second download request.
Corresponding to the foregoing system embodiment, an embodiment of the present invention provides an apparatus for starting a heterogeneous device, where the apparatus is applied to a master control sub-device in a heterogeneous device starting system, and the heterogeneous device starting system further includes a plurality of heterogeneous sub-devices, and as shown in fig. 5, the apparatus includes:
a first reply module 510, configured to reply a first download reply to the first download request if the first download request sent by the heterogeneous child device is received, so that the heterogeneous child device downloads the basic component from a download address carried by the received first download reply; the first download request is used for requesting to download a basic component required by starting heterogeneous sub-equipment, and the first download reply carries a download address of the basic component required by starting heterogeneous sub-equipment;
a first receiving module 520, configured to receive the second download request;
a second replying module 530, configured to reply a second download reply to the second download request, so that the heterogeneous child device downloads the key component from the download address carried in the received second download reply to complete the start, where the second download request is: and after the heterogeneous sub-equipment finishes downloading the basic component, sending a request for requesting to download the key component required by starting the heterogeneous sub-equipment, wherein the second download reply carries a download address of the key component required by starting the heterogeneous sub-equipment.
In the embodiment of the invention, the heterogeneous sub-equipment can firstly download the basic components required for starting from the main control sub-equipment, after the basic components required for starting are downloaded, the main control sub-equipment is requested to download the key components required for starting, and the resources required for starting the heterogeneous sub-equipment are grouped and divided into the basic components and the key components, so that the resource distribution processing required for downloading and starting the heterogeneous sub-equipment is realized, the instantaneous load of the main control sub-equipment can be reduced to a certain extent, the more reasonable resource downloading management is realized, and the more intelligent starting of the heterogeneous equipment is further realized.
And moreover, resources required by starting the heterogeneous sub-equipment are grouped into basic components and key components, so that the architecture of the heterogeneous equipment starting system is more flexible.
In one implementation, the apparatus further comprises:
a first determining module, configured to determine whether to allow the multiple heterogeneous sub-devices to simultaneously download key components required for starting, before replying a second download reply to the second download request; if the determination result is yes, triggering the first recovery module; if the determination result is negative, triggering a second determination module;
the second determining module is configured to determine, from the multiple heterogeneous sub-devices, a preset number of heterogeneous sub-devices as the first heterogeneous sub-device;
a third replying module, configured to reply a second download reply to a second download request sent by the first heterogeneous sub-device, so that the first heterogeneous sub-device downloads the key component from the download address carried in the received second download reply; and after the first heterogeneous sub-device finishes downloading the key component, under the condition that a second download request sent by a second heterogeneous sub-device is received, replying a third download reply based on the received second download request, so that the second heterogeneous sub-device downloads the key component from an address carried by the received third download reply after receiving the third download reply, so as to finish starting, wherein the third download reply carries the address of the first heterogeneous sub-device for storing the downloaded key component, and the second heterogeneous sub-device comprises: the heterogeneous equipment starts the heterogeneous sub-equipment of the key component required by the starting of the heterogeneous equipment in the system without downloading the key component.
In one implementation, the apparatus further comprises:
a third determining module, configured to determine, after determining that the first heterogeneous sub-device finishes downloading the key component required for starting the first heterogeneous sub-device, if it is determined that the plurality of second heterogeneous sub-devices are not allowed to simultaneously download the key component required for starting the second heterogeneous sub-device under the condition that a second download request sent by the second heterogeneous sub-device is received, determine, from the plurality of second heterogeneous sub-devices, the number of heterogeneous sub-devices with the preset configuration as new first heterogeneous sub-devices, and reply a second download reply to each new second download request sent by the first heterogeneous sub-device; so that the new first heterogeneous sub-device downloads the key component from the download address carried by the received second download reply to complete the starting.
In one implementation, the second determining module is specifically configured to
Determining an exchange board block to which each heterogeneous sub-device belongs based on a pre-configuration file;
determining the preset configuration number of heterogeneous sub-devices from the plurality of heterogeneous sub-devices as a first heterogeneous sub-device based on the determined exchange board block to which each heterogeneous sub-device belongs, wherein the first heterogeneous sub-device comprises: and each exchange board block corresponds to at least one heterogeneous sub-device.
In one implementation, the first determining module is specifically configured to
Judging whether the number of the heterogeneous sub-devices is not higher than a preset configuration number, wherein if the number of the heterogeneous sub-devices is not higher than the preset configuration number, determining that the heterogeneous sub-devices are allowed to simultaneously download key components required by starting; and if the number of the heterogeneous sub-devices is judged to be higher than the preset configuration number, determining that the plurality of heterogeneous sub-devices are not allowed to simultaneously download and start the required key components.
In one implementation, the apparatus further comprises:
and the fourth determining module is used for determining that the heterogeneous sub-device is started completely after receiving the component downloading completion notification sent by the heterogeneous sub-device.
Corresponding to the above system embodiment, an embodiment of the present invention provides a heterogeneous device starting apparatus, which is applied to each heterogeneous sub device in a heterogeneous device starting system, where the heterogeneous device starting system further includes a master sub device, and as shown in fig. 6, the apparatus includes:
a first sending module 610, configured to send a first download request, so that the main control sub-device replies a first download reply to the first download request after receiving the first download request, where the first download request is used to request to download a basic component required by starting the heterogeneous sub-device, and the first download reply carries a download address of the basic component required by starting the heterogeneous sub-device;
a receiving and downloading module 620, configured to receive the first download reply, and download the basic component from the download address carried in the received first download reply;
a second sending module 630, configured to send a second download request after completing downloading the basic component, where the second download request is used to request to download a key component required by starting the heterogeneous sub-device;
the first downloading module 640 is configured to, if a second downloading reply to the second downloading request reply from the main control sub device is received, download a key component from a downloading address carried in the received second downloading reply to complete starting, where the second downloading reply is: and after receiving the second download request, the main control sub-device replies to the second download request, where the second download reply carries a download address of a key component required for starting the heterogeneous sub-device.
In the embodiment of the invention, the heterogeneous sub-equipment can firstly download the basic components required by starting from the main control sub-equipment, and after the basic components required by starting are downloaded, the main control sub-equipment is requested to download the key components required by starting, and the resources required by starting the heterogeneous sub-equipment are grouped into the basic components and the key components, so that the shunting processing of the resources required by downloading and starting the heterogeneous sub-equipment is realized, the instantaneous load of the main control sub-equipment can be reduced to a certain extent, more reasonable resource downloading management is realized, and more intelligent heterogeneous equipment is started.
And moreover, resources required by starting the heterogeneous sub-equipment are grouped and divided into basic components and key components, so that the architecture of the heterogeneous equipment starting system is more flexible.
In one implementation, the apparatus further comprises:
a second downloading module, configured to, if a third download reply is received without receiving a second download reply sent by the main control sub-device, download the key component from an address, where the key component is stored by the first heterogeneous sub-device, carried in the received third download reply, to complete the starting, where the third download reply is: after the first heterogeneous sub-device finishes downloading key components required by the start of the first heterogeneous sub-device, the first heterogeneous sub-device responds to the reply of the second download request, and the first heterogeneous sub-device is: and the heterogeneous equipment starts heterogeneous sub-equipment which finishes the key component after being downloaded in the system.
In one implementation, the apparatus further comprises:
a fourth replying module, configured to, after downloading the key component from the download address carried in the received second download reply, reply a third download reply based on the received second download request when receiving a second download request sent by a second heterogeneous sub-device, where the third download reply carries an address of the heterogeneous sub-device storing the downloaded key component, and the second heterogeneous sub-device includes: the heterogeneous equipment starts the heterogeneous sub-equipment of the key component required by the starting of the heterogeneous equipment in the system without downloading the key component.
In one implementation, the second download request carries: the verification information of the key component corresponding to the basic component downloaded by the corresponding heterogeneous sub-equipment is used as first verification information;
the fourth reply module is specifically used for
Acquiring verification information of the key component downloaded by the user as second verification information;
judging whether first check information carried by each received second download request is the same as the second check information or not according to each received second download request;
and if the judgment result is the same, replying the third download reply aiming at the second download request.
Corresponding to the above system embodiment, the embodiment of the present invention further provides an electronic device, as shown in fig. 7, including a processor 710, a communication interface 720, a memory 730, and a communication bus 740, where the processor 710, the communication interface 720, and the memory 730 communicate with each other through the communication bus 740,
a memory 730 for storing a computer program;
the processor 710 is configured to, when executing the computer program stored in the memory 730, implement any of the above-mentioned steps of the method for starting a heterogeneous device on a master sub-device side according to the embodiments of the present invention.
In the embodiment of the invention, the heterogeneous sub-equipment can firstly download the basic components required by starting from the main control sub-equipment, and after the basic components required by starting are downloaded, the main control sub-equipment is requested to download the key components required by starting, and the resources required by starting the heterogeneous sub-equipment are grouped into the basic components and the key components, so that the shunting processing of the resources required by downloading and starting the heterogeneous sub-equipment is realized, the instantaneous load of the main control sub-equipment can be reduced to a certain extent, more reasonable resource downloading management is realized, and more intelligent heterogeneous equipment is started.
And moreover, resources required by starting the heterogeneous sub-equipment are grouped and divided into basic components and key components, so that the architecture of the heterogeneous equipment starting system is more flexible.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this is not intended to represent only one bus or type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
Corresponding to the foregoing method embodiment, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements any of the foregoing steps of the method for starting a heterogeneous device on a master control sub-device side provided in the embodiment of the present invention.
Corresponding to the above system embodiment, an embodiment of the present invention further provides an electronic device, as shown in fig. 8, including a processor 810, a communication interface 820, a memory 830 and a communication bus 840, where the processor 810, the communication interface 820 and the memory 830 complete communication with each other through the communication bus 840,
a memory 830 for storing a computer program;
the processor 810 is configured to, when executing the computer program stored in the memory 830, implement the steps of the method for starting a heterogeneous device of any one of the above heterogeneous sub devices provided in the embodiments of the present invention.
In the embodiment of the invention, the heterogeneous sub-equipment can firstly download the basic components required for starting from the main control sub-equipment, after the basic components required for starting are downloaded, the main control sub-equipment is requested to download the key components required for starting, and the resources required for starting the heterogeneous sub-equipment are grouped and divided into the basic components and the key components, so that the resource distribution processing required for downloading and starting the heterogeneous sub-equipment is realized, the instantaneous load of the main control sub-equipment can be reduced to a certain extent, the more reasonable resource downloading management is realized, and the more intelligent starting of the heterogeneous equipment is further realized.
And moreover, resources required by starting the heterogeneous sub-equipment are grouped into basic components and key components, so that the architecture of the heterogeneous equipment starting system is more flexible.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method for starting a heterogeneous device on a heterogeneous sub-device side provided in the embodiment of the present invention is implemented.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on differences from other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (17)

1. A heterogeneous device boot system is characterized by comprising a main control sub-device and a plurality of heterogeneous sub-devices;
the heterogeneous sub-device is used for sending a first downloading request, wherein the first downloading request is used for requesting to download basic components required by starting of the heterogeneous sub-device;
the main control sub-device is configured to receive the first download request, and reply a first download reply to the first download request, where the first download reply carries a download address of a basic component required for starting the heterogeneous sub-device;
the heterogeneous sub-device is further configured to receive the first download reply, and download the basic component from a download address carried by the received first download reply; after the basic component is downloaded, sending a second downloading request, wherein the second downloading request is used for requesting to download a key component required by starting the heterogeneous sub-equipment;
the main control sub-device is further configured to receive the second download request, and reply a second download reply to the second download request, where the second download reply carries a download address of a key component required for starting the heterogeneous sub-device;
the heterogeneous sub-device is further configured to receive the second download reply, and download the key component from the download address carried in the received second download reply to complete the starting;
the main control sub-device is also used for determining whether the plurality of heterogeneous sub-devices are allowed to simultaneously download key components required by the starting of the heterogeneous sub-devices; if the result is yes, executing the reply second downloading reply aiming at the second downloading request; if the determination result is negative, determining a preset configuration number of heterogeneous sub-devices from the plurality of heterogeneous sub-devices as first heterogeneous sub-devices; replying a second download reply aiming at the second download request sent by each first heterogeneous sub-device;
the first heterogeneous sub-device is used for receiving the second download reply and downloading the key component from the download address carried by the received second download reply; after the key component is downloaded, under the condition that a second download request sent by a second heterogeneous sub-device is received, replying a third download reply based on the received second download request, wherein the third download reply carries an address of the key component downloaded by the first heterogeneous sub-device, and the second heterogeneous sub-device comprises: the heterogeneous equipment starting system does not download the heterogeneous sub-equipment of the key component required by starting;
and the second heterogeneous sub-device is used for downloading the key component from the address carried by the received third download reply after receiving the third download reply so as to complete the starting.
2. The system according to claim 1, wherein the master sub-device is further configured to, after determining that the first heterogeneous sub-device finishes downloading the key component required for starting the heterogeneous device, in a case that a second download request sent by a second heterogeneous sub-device is received, if it is determined that the plurality of second heterogeneous sub-devices are not allowed to simultaneously download the key component required for starting the heterogeneous device, determine, as new first heterogeneous sub-devices, the preset number of heterogeneous sub-devices from among the plurality of second heterogeneous sub-devices, and reply a second download reply to each second download request sent by a new first heterogeneous sub-device;
and the new first heterogeneous sub-device is used for receiving the second download reply and downloading the key component from the download address carried by the received second download reply to complete the starting.
3. The heterogeneous device boot system of claim 1, wherein the second download request carries: the verification information of the key component corresponding to the basic component downloaded by the corresponding heterogeneous sub-equipment is used as first verification information;
the first heterogeneous sub-device is particularly used for
Acquiring verification information of the key component downloaded by the user as second verification information;
judging whether first check information carried by each received second download request is the same as the second check information or not according to each received second download request;
and if the judgment result is the same, replying the third download reply aiming at the second download request.
4. The heterogeneous device startup system of claim 1, wherein the master sub-device is specifically configured to
Determining an exchange board block to which each heterogeneous sub-device belongs based on a pre-configuration file;
determining the preset configuration number of heterogeneous sub-devices from the plurality of heterogeneous sub-devices as a first heterogeneous sub-device based on the determined exchange board block to which each heterogeneous sub-device belongs, wherein the first heterogeneous sub-device comprises: and at least one heterogeneous sub-device corresponding to each exchange board block.
5. The heterogeneous device startup system of claim 1, wherein the master sub-device is specifically configured to
Judging whether the number of the heterogeneous sub-devices is not higher than a preset configuration number, wherein if the number of the heterogeneous sub-devices is not higher than the preset configuration number, determining that the heterogeneous sub-devices are allowed to simultaneously download key components required by starting; and if the number of the heterogeneous sub-devices is judged to be higher than the preset configuration number, determining that the plurality of heterogeneous sub-devices are not allowed to simultaneously download and start the required key components.
6. A method for starting heterogeneous equipment is applied to a main control sub-equipment in a heterogeneous equipment starting system, the heterogeneous equipment starting system also comprises a plurality of heterogeneous sub-equipment, and the method comprises the following steps:
if a first downloading request sent by the heterogeneous sub-device is received, replying a first downloading reply aiming at the first downloading request so as to enable the heterogeneous sub-device to download the basic component from a downloading address carried by the received first downloading reply; the first download request is used for requesting to download a basic component required by starting heterogeneous sub-equipment, and the first download reply carries a download address of the basic component required by starting heterogeneous sub-equipment;
receiving a second download request, and replying a second download reply to the second download request, so that the heterogeneous sub-device downloads the key component from the download address carried by the received second download reply to complete the start, wherein the second download request is as follows: after the heterogeneous sub-equipment finishes downloading the basic component, sending a request for requesting to download the key component required by starting the heterogeneous sub-equipment, wherein the second download reply carries a download address of the key component required by starting the heterogeneous sub-equipment;
prior to the step of replying to a second download reply for the second download request, the method further comprises:
determining whether the plurality of heterogeneous sub-devices are allowed to simultaneously download key components required for startup;
if the result is yes, executing the step of replying a second download reply aiming at the second download request;
if the determination result is negative, determining a preset configuration number of heterogeneous sub-devices from the plurality of heterogeneous sub-devices as first heterogeneous sub-devices;
replying a second download reply aiming at a second download request sent by the first heterogeneous sub-device so as to enable the first heterogeneous sub-device to download the key component from the download address carried by the received second download reply; and after the first heterogeneous sub-device finishes downloading the key component, under the condition that a second download request sent by a second heterogeneous sub-device is received, replying a third download reply based on the received second download request, so that the second heterogeneous sub-device downloads the key component from an address carried by the received third download reply after receiving the third download reply to finish starting, wherein the third download reply carries the address of the key component stored by the first heterogeneous sub-device, and the second heterogeneous sub-device comprises: the heterogeneous equipment starts the heterogeneous sub-equipment of the key component required by the starting of the heterogeneous equipment in the system without downloading the key component.
7. The method of claim 6, further comprising:
after determining that the first heterogeneous sub-device finishes downloading key components required by the start of the first heterogeneous sub-device, under the condition that a second downloading request sent by a second heterogeneous sub-device is received, if it is determined that the plurality of second heterogeneous sub-devices are not allowed to simultaneously download key components required by the start of the second heterogeneous sub-device, determining the preset configuration number of heterogeneous sub-devices from the plurality of second heterogeneous sub-devices as new first heterogeneous sub-devices, and replying a second downloading reply aiming at the second downloading request sent by each new first heterogeneous sub-device; so that the new first heterogeneous sub-device downloads the key component from the download address carried by the received second download reply to complete the starting.
8. The method according to claim 6, wherein the step of determining a preset configuration number of heterogeneous sub-devices from the plurality of heterogeneous sub-devices as the first heterogeneous sub-device comprises:
determining an exchange board block to which each heterogeneous sub-device belongs based on a pre-configuration file;
determining the preset configuration number of heterogeneous sub-devices from the plurality of heterogeneous sub-devices as a first heterogeneous sub-device based on the determined exchange board block to which each heterogeneous sub-device belongs, wherein the first heterogeneous sub-device comprises: and at least one heterogeneous sub-device corresponding to each exchange board block.
9. The method of claim 6, wherein the step of determining whether to allow the plurality of heterogeneous sub-devices to simultaneously download key components required for booting comprises:
judging whether the number of the heterogeneous sub-devices is not higher than a preset configuration number, wherein if the number of the heterogeneous sub-devices is not higher than the preset configuration number, determining that the heterogeneous sub-devices are allowed to simultaneously download key components required by starting; and if the number of the heterogeneous sub-devices is judged to be higher than the preset configuration number, determining that the plurality of heterogeneous sub-devices are not allowed to simultaneously download and start the required key components.
10. A heterogeneous device boot method is applied to each heterogeneous sub-device in a heterogeneous device boot system, the heterogeneous device boot system further comprises a master sub-device, and the method comprises the following steps:
sending a first download request, so that the main control sub-device replies a first download reply to the first download request after receiving the first download request, where the first download request is used to request to download a basic component required by starting a heterogeneous sub-device, and the first download reply carries a download address of the basic component required by starting the heterogeneous sub-device;
receiving the first download reply, and downloading the basic component from the download address carried by the received first download reply;
after the basic component is downloaded, sending a second downloading request, wherein the second downloading request is used for requesting to download a key component required by starting the heterogeneous sub-equipment;
if a second download reply replied by the main control sub-device for the second download request is received, downloading a key component from a download address carried by the received second download reply to complete the starting, wherein the second download reply is as follows: after receiving the second download request, the main control sub-device replies to the second download request, where the second download reply carries a download address of a key component required for starting the heterogeneous sub-device;
under the condition that a second download reply sent by the main control sub-device is not received, if a third download reply is received, downloading the key component from the address of the downloaded key component stored in the first heterogeneous sub-device carried by the received third download reply to finish starting, wherein the third download reply is as follows: after the first heterogeneous sub-device finishes downloading key components required by the start of the first heterogeneous sub-device, the first heterogeneous sub-device responds to the reply of the second download request, and the first heterogeneous sub-device is: and the heterogeneous equipment starts heterogeneous sub-equipment which finishes the key component after being downloaded in the system.
11. The method of claim 10, wherein after the step of downloading the key component from the download address carried by the received second download reply, the method further comprises:
under the condition that a second download request sent by a second heterogeneous sub-device is received, replying a third download reply based on the received second download request, wherein the third download reply carries an address of a key component stored and downloaded by the heterogeneous sub-device, and the second heterogeneous sub-device comprises: and the heterogeneous equipment starts the heterogeneous sub-equipment of the key component required by starting the heterogeneous equipment in the system without downloading the heterogeneous sub-equipment.
12. The heterogeneous device starting apparatus is applied to a master control sub-device in a heterogeneous device starting system, the heterogeneous device starting system further includes a plurality of heterogeneous sub-devices, and the apparatus includes:
the first reply module is used for replying a first download reply aiming at the first download request if the first download request sent by the heterogeneous sub-equipment is received, so that the heterogeneous sub-equipment downloads the basic component from a download address carried by the received first download reply; the first download request is used for requesting to download a basic component required by starting heterogeneous sub-equipment, and the first download reply carries a download address of the basic component required by starting heterogeneous sub-equipment;
the first receiving module is used for receiving a second downloading request;
a second reply module, configured to reply a second download reply to the second download request, so that the heterogeneous child device downloads the key component from the download address carried in the received second download reply to complete the start, where the second download request is: after the heterogeneous sub-equipment finishes downloading the basic component, sending a request for requesting to download the key component required by starting the heterogeneous sub-equipment, wherein the second download reply carries a download address of the key component required by starting the heterogeneous sub-equipment;
a first determining module, configured to determine whether to allow the multiple heterogeneous sub-devices to simultaneously download key components required for starting, before replying a second download reply to the second download request; if the determination result is yes, triggering the first recovery module; if the determination result is negative, triggering a second determination module;
the second determining module is configured to determine, from the multiple heterogeneous sub-devices, a preset number of heterogeneous sub-devices as the first heterogeneous sub-device;
a third replying module, configured to reply a second download reply to a second download request sent by the first heterogeneous sub-device, so that the first heterogeneous sub-device downloads the key component from the download address carried in the received second download reply; and after the first heterogeneous sub-device finishes downloading the key component, under the condition that a second download request sent by a second heterogeneous sub-device is received, replying a third download reply based on the received second download request, so that the second heterogeneous sub-device downloads the key component from an address carried by the received third download reply after receiving the third download reply, so as to finish starting, wherein the third download reply carries the address of the first heterogeneous sub-device for storing the downloaded key component, and the second heterogeneous sub-device comprises: and the heterogeneous equipment starts the heterogeneous sub-equipment of the key component required by starting the heterogeneous equipment in the system without downloading the heterogeneous sub-equipment.
13. A heterogeneous device boot apparatus, applied to each heterogeneous sub device in a heterogeneous device boot system, the heterogeneous device boot system further including a master sub device, the apparatus comprising:
a first sending module, configured to send a first download request, so that after receiving the first download request, the main control sub-device replies a first download reply to the first download request, where the first download request is used to request to download a basic component required by starting a heterogeneous sub-device, and the first download reply carries a download address of the basic component required by starting the heterogeneous sub-device;
the receiving and downloading module is used for receiving the first downloading reply and downloading the basic component from the downloading address carried by the received first downloading reply;
the second sending module is used for sending a second downloading request after the basic component is downloaded, wherein the second downloading request is used for requesting to download key components required by starting heterogeneous sub-equipment;
a first downloading module, configured to download, if a second downloading reply to the second downloading request reply from the main control sub-device is received, a key component from a downloading address carried in the received second downloading reply to complete starting, where the second downloading reply is: after receiving the second download request, the main control sub-device replies to the second download request, where the second download reply carries a download address of a key component required for starting the heterogeneous sub-device;
a second downloading module, configured to, if a third download reply is received without receiving a second download reply sent by the main control sub-device, download the key component from an address, where the key component is stored by the first heterogeneous sub-device, carried in the received third download reply, to complete the starting, where the third download reply is: after the first heterogeneous sub-device finishes downloading key components required by the start of the first heterogeneous sub-device, the first heterogeneous sub-device responds to the reply of the second download request, and the first heterogeneous sub-device is: and the heterogeneous equipment starts heterogeneous sub-equipment which finishes the key component after being downloaded in the system.
14. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the heterogeneous device boot method of any of claims 6-9 when executing the computer program stored on the memory.
15. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the heterogeneous device boot method of any one of claims 6 to 9.
16. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the heterogeneous device boot method of claim 10 or 11 when executing the computer program stored in the memory.
17. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the heterogeneous device boot method of claim 10 or 11.
CN201811494761.1A 2018-12-07 2018-12-07 Heterogeneous equipment starting system, method and device and electronic equipment Active CN111294374B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811494761.1A CN111294374B (en) 2018-12-07 2018-12-07 Heterogeneous equipment starting system, method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811494761.1A CN111294374B (en) 2018-12-07 2018-12-07 Heterogeneous equipment starting system, method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111294374A CN111294374A (en) 2020-06-16
CN111294374B true CN111294374B (en) 2023-04-18

Family

ID=71028076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811494761.1A Active CN111294374B (en) 2018-12-07 2018-12-07 Heterogeneous equipment starting system, method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111294374B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114936043B (en) * 2022-05-20 2024-02-09 浪潮电子信息产业股份有限公司 Method, device, equipment and storage medium for starting pooled heterogeneous resources

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043649A (en) * 2009-10-23 2011-05-04 阿里巴巴集团控股有限公司 Plug-in downloading control method and plug-in downloading control system
CN103795740A (en) * 2012-10-29 2014-05-14 腾讯科技(深圳)有限公司 Downloading method of plug-in installation packages and downloading terminal
CN106161570A (en) * 2015-04-24 2016-11-23 阿里巴巴集团控股有限公司 Document down loading method based on page script, device, server group and system
CN108737505A (en) * 2018-04-27 2018-11-02 厦门理工学院 A kind of method of resource downloading, system and terminal device
CN108777691A (en) * 2018-06-12 2018-11-09 山东智慧云链网络科技有限公司 Network safety protection method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200614018A (en) * 2004-10-26 2006-05-01 Via Tech Inc System and method for integrating and transmitting data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043649A (en) * 2009-10-23 2011-05-04 阿里巴巴集团控股有限公司 Plug-in downloading control method and plug-in downloading control system
CN103795740A (en) * 2012-10-29 2014-05-14 腾讯科技(深圳)有限公司 Downloading method of plug-in installation packages and downloading terminal
CN106161570A (en) * 2015-04-24 2016-11-23 阿里巴巴集团控股有限公司 Document down loading method based on page script, device, server group and system
CN108737505A (en) * 2018-04-27 2018-11-02 厦门理工学院 A kind of method of resource downloading, system and terminal device
CN108777691A (en) * 2018-06-12 2018-11-09 山东智慧云链网络科技有限公司 Network safety protection method and device

Also Published As

Publication number Publication date
CN111294374A (en) 2020-06-16

Similar Documents

Publication Publication Date Title
CN110049130B (en) Service deployment and task scheduling method and device based on edge computing
CN108965485B (en) Container resource management method and device and cloud platform
CN106445473B (en) container deployment method and device
CN103955381A (en) Method and system for management server to perform batch software update on terminal equipment
JP6359652B2 (en) Information transmission method, apparatus and device
WO2021227999A1 (en) Cloud computing service system and method
CN116566984B (en) Routing information creation method and device of k8s container cluster and electronic equipment
CN113886069A (en) Resource allocation method and device, electronic equipment and storage medium
CN115168031A (en) Fog calculation system, method, electronic equipment and storage medium
CN111459676A (en) Node resource management method, device and storage medium
CN111294374B (en) Heterogeneous equipment starting system, method and device and electronic equipment
CN112965817B (en) Resource management method and device and electronic equipment
CN112130931B (en) Application deployment method, node, system and storage medium
CN112769829A (en) Deployment method of cloud physical machine, related equipment and readable storage medium
CN109922120B (en) Method and terminal for improving DNS availability
CN115473780B (en) Network target range distributed flow generation method and device
CN111131131B (en) Vulnerability scanning method and device, server and readable storage medium
CN107534678B (en) Method, device and system for establishing connection between VNFM and VIM
CN111338758A (en) Resource management method and device and electronic equipment
CN106445599B (en) Application program upgrading method and device and terminal
CN115550427A (en) Equipment upgrading method, device, equipment and storage medium
CN110661655B (en) Cluster deployment method and system, electronic device and storage medium
CN113504879A (en) Data storage method and intelligent household appliance
CN111045790A (en) Virtual machine deployment method and device
CN111935832A (en) Network resource allocation method and device and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant