A resource distribution method and system based on an intelligent bank intelligent broadcasting control system

By introducing resource distribution algorithms for primary and backup devices into the intelligent broadcast control system of smart banks, and dynamically allocating device bandwidth, the problem of high bandwidth consumption in resource distribution is solved, thereby improving the timeliness and response efficiency of resource distribution.

CN116708324BActive Publication Date: 2025-12-12NANJING AOTO ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310673767.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-08
Publication Date
2025-12-12
Estimated Expiration
2043-06-08

AI Technical Summary

Technical Problem

In the field of smart banking, resource distribution consumes a lot of bandwidth and faces great distribution pressure. Existing technologies are unable to effectively reduce bandwidth occupancy and improve the timeliness of resource distribution.

Method used

By introducing a resource distribution algorithm for primary and backup devices into the smart bank's intelligent broadcast control system, the primary device prioritizes acquiring resources and distributes them to the backup devices. After the primary device has finished downloading resources, the backup devices wait in a round-robin fashion to access the primary device for resource download, dynamically allocating device bandwidth to optimize resource distribution.

Benefits of technology

It significantly reduced bandwidth occupancy and server-side distribution pressure, and improved the timeliness and response efficiency of resource distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116708324B_ABST
    Figure CN116708324B_ABST
Patent Text Reader

Abstract

The application provides a resource distribution method and system based on an intelligent broadcasting system of a smart bank, and relates to the field of smart banks; the method comprises the following steps: receiving a resource distribution instruction issued by the intelligent broadcasting system, judging whether the resource exists or whether the resource is in a breakpoint continuation queue, completing or executing resource distribution after completing resource downloading when the resource exists; when the resource does not exist and the resource is not in the breakpoint continuation queue, inquiring whether the resource exists in other devices; when all devices feedback that the resource does not exist, selecting a device as a master device to execute resource downloading, and other devices as standby devices to enter a waiting state, and starting a resource downloading service when the master device completes resource downloading, so that each standby device waits to access the master device to download the resource. According to the scheme, the bandwidth of the intelligent broadcasting system is dynamically adjusted, the master device is selected to preferentially acquire the resource, the standby devices in the network segment are distributed after the master device acquires the resource, and all resource distribution is completed through rotation.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of smart bank, in particular to a resource distribution method and system based on a smart bank intelligent broadcasting system. BACKGROUND

[0002] With the rapid development of the Internet, Moore's law is gradually invalid, and it is difficult to experience such a rapid bandwidth change from dial-up optical modem to fiber to the building in the short term; on the one hand, the bandwidth will not have a very obvious progressive change in the short term, but more in the case of node type explosive growth after technical update, on the other hand, in the case of more and more user requirements based on bandwidth transmission and more and more resources, the smart bank field needs to compress resources or allocate network resources for resource distribution with high bandwidth occupation in the system based on security and other reasons. SUMMARY

[0003] The present application aims to provide a resource distribution method and system based on a smart bank intelligent broadcasting system, proposes a resource distribution algorithm based on a master device and a backup device, to solve the problem of reducing bandwidth occupation rate and server side distribution pressure of smart bank for resource distribution, and improve the timeliness and response efficiency of resource distribution;

[0004] In order to achieve the above purpose, the present application proposes the following technical scheme:

[0005] In the first aspect, a resource distribution method based on a smart bank intelligent broadcasting system is proposed, comprising:

[0006] Respectively receiving the resource distribution instruction issued by the intelligent broadcasting system according to the device list in communication with it, the resource distribution instruction including main line bandwidth, resource ID, resource size, file MD5;

[0007] For any device, according to the resource distribution instruction received, it is judged in turn whether the corresponding resource exists in the device or the corresponding resource task is in the breakpoint resume queue, and when the corresponding resource exists in the device or the corresponding resource is in the breakpoint resume queue, the resource distribution is completed or executed after the resource download is completed;

[0008] When the corresponding resource does not exist in the device and the corresponding resource is not in the breakpoint resume queue, a query message is broadcasted to the device list to inquire whether the resource exists in other devices in the device list; wherein the content of the query message contains resource ID, resource size, file MD5;

[0009] Receiving the feedback message of each device;

[0010] When all feedback messages are nonexistence of the resource, according to the time of each device receiving the resource distribution instruction, one of the devices is selected as the master device to access the HTTP server to perform resource download, and the other devices are standby devices in a waiting state, and when the master device completes resource download, the resource download service is started, and a broadcast message is sent to all standby devices to enable each standby device to wait in turn to access the master device for resource download after receiving and verifying the resource information; wherein the broadcast message is the master device resource distribution instruction, including resource ID, resource size, file MD5;

[0011] When at least one device feedback message is existence of the resource, a device with the resource is selected as an FTP server and accessed to perform resource download to complete resource distribution.

[0012] Further, the process of starting the resource download service after the master device completes resource download is:

[0013] According to the performance and network bandwidth of the master device, the number of standby device connections and the download speed of the resource download service are set;

[0014] According to the set number of standby device connections, the access request of the standby device within the allowed range is allowed to enable the accessed standby device to perform resource download; the access request of the standby device beyond the range of the number of standby device connections is rejected to enable the rejected standby device to save the resource request address and enter a waiting state in turn, and access the resource request address at regular intervals until it receives the resource download completion message pushed by the standby device.

[0015] Further, it also includes:

[0016] During the process of the master device accessing the HTTP server to perform resource download and the other devices being standby devices in a waiting state, the master device receives the communication of the standby device at regular intervals to enable the standby device to confirm whether the master device is in a normal download state;

[0017] When the standby device confirms that the master device is in an abnormal download state, a standby master device in the standby device is determined to access the HTTP server to perform resource download.

[0018] Further, it also includes:

[0019] When the resource distribution instruction issued by the intelligent broadcast control system includes multiple resources, the corresponding resources do not exist in the device, and the corresponding resources are not in the breakpoint resume queue, then:

[0020] For any resource, it is judged in sequence whether the resource exists in other devices, and when the resource does not exist in any device, a master device is determined for any resource to access the HTTP server to perform resource download.

[0021] Further, it further comprises:

[0022] When the standby device pushes the resource download completion message, the resource download service is started as a secondary server.

[0023] Further, the master device is the first device to receive the resource distribution instruction, and the standby master device is the first standby device to receive the resource distribution instruction among the standby devices.

[0024] In a second aspect, a resource distribution system based on an intelligent bank intelligent broadcasting control system is provided, comprising:

[0025] A first receiving module is configured to receive resource distribution instructions issued by the intelligent broadcasting control system according to a device list in communication with the intelligent broadcasting control system, wherein the resource distribution instructions include main line bandwidth, resource ID, resource size, and file MD5.

[0026] A judgment execution module is configured to judge, for any device, whether the corresponding resource exists in the device or the corresponding resource task is in a breakpoint resume queue according to the resource distribution instruction received by the device, and when the corresponding resource exists in the device or the corresponding resource is in the breakpoint resume queue, the resource distribution is completed or executed after the resource download is completed.

[0027] A broadcasting module is configured to broadcast a query message to the device list to inquire whether the resource exists in other devices in the device list when the corresponding resource does not exist in the device and the corresponding resource is not in the breakpoint resume queue, wherein the content of the query message includes resource ID, resource size, and file MD5.

[0028] A second receiving module is configured to receive feedback messages of the devices.

[0029] A first selection execution module is configured to select one device as a master device to access the HTTP server to perform resource download and other devices as standby devices to enter a waiting state when all feedback messages are that the resource does not exist, according to the time when the resource distribution instruction is received by each device, and start a resource download service when the resource download of the master device is completed, and send a broadcast message to all standby devices to enable each standby device to wait in turn to access the master device to perform resource download after receiving and verifying the resource information; wherein the broadcast message is a master device resource distribution instruction, including resource ID, resource size, and file MD5.

[0030] The second selection execution module is configured to select a device existing the resource as an FTP server and access to execute resource download to complete resource distribution when at least one device feedback message exists the resource.

[0031] Further, the execution unit for starting the resource download service after the resource download of the master device in the first selection execution module comprises:

[0032] The setting unit is configured to set the number of backup device connections and the download speed of the resource download service according to the performance and network bandwidth of the master device.

[0033] The allowing unit is configured to allow the access request of the backup device within the range of the number of backup device connections to enable the accessed backup device to execute resource download.

[0034] The rejecting unit is configured to reject the access request of the backup device beyond the range of the number of backup device connections to enable the rejected backup device to save a resource request address and enter a polling waiting state, and access the resource request address at a regular time until the backup device receives a resource download completion message pushed by the backup device.

[0035] Further, the method further comprises:

[0036] The third selection execution module is configured to: when the resource distribution instruction issued by the intelligent broadcast control system comprises multiple resources, the corresponding resources do not exist in the devices, and the corresponding resources are not in the breakpoint continuation queue, for any resource, sequentially determine whether the resource exists in other devices, and when the resources do not exist in any device, for any resource, determine a master device to access an HTTP server to execute resource download.

[0037] In a third aspect, an electronic device is provided, comprising at least one processor; the processor is coupled with a memory, and the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the steps of the resource distribution method based on the intelligent bank intelligent broadcast control system.

[0038] From the above technical solutions, the technical solutions of the present application have the following beneficial effects:

[0039] The application discloses a resource distribution method and system based on an intelligent bank intelligent broadcasting control system, and the method is mainly based on the current resource distribution process of the intelligent bank broadcasting control system, and according to the current bank bandwidth and the number of devices, the bandwidth between the branch device and the broadcasting control system end is dynamically allocated, the main device is selected to preferentially acquire resources, the communication between the devices adopts an encryption protocol to ensure communication safety, the main device sequentially distributes the secondary devices in the network segment after acquiring the resources, and the subsequent devices complete all resource distribution functions according to the process. Specifically, the method comprises the following steps: receiving a resource distribution instruction issued by the intelligent broadcasting control system according to a device list in communication with the intelligent broadcasting control system, when the device memory resource or is in a breakpoint resume queue, directly completing or executing resource download to complete resource distribution; when the resource does not exist and the resource is not in the breakpoint resume queue, inquiring whether the resource exists in other devices, when the resource does not exist in all the devices, selecting a device as a main device to execute resource download, and other devices are all standby devices in a waiting state, until the main device completes resource download, and then starting a resource download service, and then each standby device waits to access the main device to download resources.

[0040] The application provides a new idea for the intelligent bank to distribute resources with high bandwidth occupation based on a network, a computer and a data distribution algorithm, reduces bandwidth occupation rate and server end distribution pressure, and improves resource distribution timeliness and response efficiency.

[0041] It should be understood that all combinations of the aforementioned concepts and additional concepts described in greater detail below can be seen as part of the subject matter of the present disclosure as long as such concepts are not mutually contradictory.

[0042] The aforementioned and other aspects, embodiments, and features of the present teachings can be understood more readily by reference to the following description in conjunction with the accompanying drawings. Other aspects, features, and / or advantages of the present teachings will become apparent upon consideration of the description and the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS

[0043] The drawings are not drawn to true scale. In the drawings, like reference numerals can be used to indicate like parts throughout the various figures. For the purposes of clarity, not every component can be called out in every drawing. There can now be briefly described the embodiments of various aspects of the present application with reference to the drawings in which:

[0044] Figure 1 A resource distribution method flowchart based on an intelligent bank intelligent broadcasting control system is provided for the present application;

[0045] Figure 2 A flowchart of a main device starting a resource download service is provided for the present application;

[0046] Figure 3 A standby master device resource distribution flowchart provided by the present application;

[0047] Figure 4 A plurality of resource distribution method flowcharts provided by the present application;

[0048] Figure 5 A standby device resource distribution flowchart provided by the present application;

[0049] Figure 6 An example diagram of an electronic device provided by the present application;

[0050] Figure 7 An example framework diagram of a resource distribution system provided by the present application. DETAILED DESCRIPTION

[0051] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions of the embodiments of the present application will be described clearly and completely below with reference to the drawings of the embodiments of the present application. Obviously, the described embodiments are some of the embodiments of the present application, rather than all the embodiments of the present application. Based on the described embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without any creative effort belong to the scope of protection of the present application. Unless otherwise defined, the technical terms or scientific terms used herein should have the usual meanings understood by those of ordinary skill in the art to which the present application belongs.

[0052] The terms "first", "second", and similar terms used in the patent application specification and claims of the present application do not represent any order, number, or importance, but are only used to distinguish different components. Similarly, unless the context clearly indicates otherwise, the singular forms "a", "an", and "the" and the like do not represent a quantity limitation, but represent the existence of at least one. The terms "include" or "contain" and the like mean that the elements or objects appearing before "include" or "contain" cover the features, integers, steps, operations, elements, and / or components listed after "include" or "contain", and do not exclude the existence or addition of one or more other features, integers, steps, operations, elements, components, and / or sets thereof. "Up", "down", "left", "right", and the like are only used to represent relative positional relationships, and when the absolute positions of the described objects change, the relative positional relationships may also change accordingly.

[0053] With the rapid development of Internet technology, data in various industries is growing rapidly, resulting in increasingly high requirements for transmission bandwidth usage; but some units have bandwidth limitations, such as the army, banks, etc., and resource compression is required during resource transmission or network use to meet bandwidth usage requirements; for example, smart banks need to compress resources or allocate network resources for resource distribution that occupies a high bandwidth in the system for security and other reasons. The present application proposes a resource distribution method and system based on a smart bank intelligent broadcasting control system for the resource distribution of a smart bank. The bandwidth of the device in the broadcasting control system is dynamically allocated, significantly improving the timeliness and response efficiency of resource distribution.

[0054] The resource distribution method and system based on the smart bank intelligent broadcasting control system disclosed in the present application will be further described in detail below in conjunction with the specific embodiments shown in the accompanying drawings.

[0055] In conjunction with Figure 1 The resource distribution method based on the smart bank intelligent broadcasting control system disclosed in the embodiment includes the following steps:

[0056] Step S102, respectively receiving resource distribution instructions issued by the intelligent broadcasting control system according to the device list in communication with it, the resource distribution instructions including main line bandwidth, resource ID, resource size, file MD5;

[0057] Step S104, for any device, according to the resource distribution instructions received, sequentially judging whether the corresponding resource exists in the device or the corresponding resource task is in the breakpoint resume queue, and when the corresponding resource exists in the device or the corresponding resource is in the breakpoint resume queue, completing or executing resource download to complete resource distribution;

[0058] Step S106, when the corresponding resource does not exist in the device and the corresponding resource is not in the breakpoint resume queue, a query message is broadcasted to the device list to inquire whether the resource exists in other devices in the device list; wherein the content of the query message contains resource ID, resource size, file MD5; each device receiving the query message performs cross message communication, and judges whether the resource exists by comparing the consistency of resource ID, resource size, and file MD5;

[0059] Step S108, receiving feedback messages of each device;

[0060] Step S110, when all feedback messages are nonexistence of the resource, according to the time of each device receiving the resource distribution instruction, one of the devices is selected as the master device to access the HTTP server to perform resource download, and the other devices are standby devices in a waiting state, and when the master device resource download is completed, the resource download service is started, and a broadcast message is sent to all standby devices to make each standby device wait in turn to access the master device for resource download after receiving and verifying the resource information; wherein the broadcast message is the master device resource distribution instruction, including resource ID, resource size, file MD5; the master device is the first device to receive the resource distribution instruction; if the standby device checks the resource information, if any of the resource ID, resource size, file MD5 in the received resource distribution instruction is inconsistent with the broadcast message, the standby device is filtered and resource download is not performed.

[0061] Step S112, when at least one device feedback message is existence of the resource, a device with the resource is selected as an FTP server and accessed to perform resource download, complete resource distribution, and directly distribute and obtain resources between devices; when the scheme is implemented, the device with the earliest feedback message is selected as the FTP server, and each device accesses the FTP server to perform resource download within the allowed device connection number of the FTP server according to the device performance and network bandwidth of the FTP server, and completes resource distribution.

[0062] The process of starting the resource download service after the master device resource download is completed is as shown in Figure 2 The process of starting the resource download service after the master device resource download is completed is as shown in

[0063] As an optional embodiment, the resource distribution method based on the intelligent broadcasting control system of the smart bank disclosed in the embodiment is as shown in Figure 3As shown, the method further comprises: step S302, during the process that the master device accesses the HTTP server to perform resource downloading and other devices all enter a waiting state as standby devices, the master device receives communications from the standby devices in a timely manner so that the standby devices confirm whether the master device is in a normal downloading state; and step S304, when the standby devices confirm that the master device is in an abnormal downloading state, a standby master device is determined in the standby devices to access the HTTP server to perform resource downloading. For example, the standby master device is selected as the standby device that receives the resource distribution instruction first in the standby devices in the waiting state.

[0064] To further improve the resource distribution efficiency, the resource distribution method disclosed by the embodiment further comprises starting a resource downloading service as a secondary server when the standby devices complete resource downloading through the master device, i.e., step S402, after the standby devices push a resource downloading completion message, the resource downloading service is started as a secondary server, such as Figure 4 When the resource downloading service is started, the number of connected devices and the downloading speed in communication with each standby device that completes resource downloading are limited according to the current performance and network bandwidth of the standby device, and then a broadcast message is sent to notify other standby devices still in the waiting state to access the corresponding standby device to perform resource downloading. When the standby devices perform resource downloading, the simplest selection criterion is to access the standby devices in turn according to the time when the standby devices complete resource downloading and the time when the standby devices in the waiting state receive the resource distribution instruction, and the standby devices are accessed in turn according to the number of connected devices set by the standby devices to complete resource downloading.

[0065] To ensure that each device that receives the resource distribution instruction issued by the intelligent broadcasting control system completes resource downloading, any device, including the master device and the standby device, sends a message to the intelligent broadcasting control system after completing resource downloading to inform the intelligent broadcasting control system that the resource downloading is completed.

[0066] As another embodiment of the application, the resource distribution method based on the intelligent broadcasting control system of the smart bank comprises Figure 5 As shown, the method further comprises a case of multiple resource distribution, i.e., step S502, when the resource distribution instruction issued by the intelligent broadcasting control system comprises multiple resources, the corresponding resources do not exist in the device, and the corresponding resources are not in the breakpoint resume queue, then: for any resource, it is determined whether the resource exists in other devices in turn, and when the resources do not exist in any device, a master device is determined to access the HTTP server to perform resource downloading for any resource. Specifically, when the intelligent broadcasting control system has multiple resources to be issued, the master device is selected multiple times according to step S110 to complete the resource distribution function of the intelligent broadcasting control system, avoid the problem that multiple devices simultaneously occupy the network point and the main line bandwidth, and improve the distribution efficiency.

[0067] The resource distribution method based on the intelligent bank intelligent broadcast control system disclosed in the present application realizes network optimization of intelligent bank device resource distribution, and under the current intelligent bank broadcast control system resource distribution process, it is determined whether there is to-be-distributed resource in the device, and when the resource exists in the device, the resource is directly downloaded; when there is no resource in the device, the main device is selected to preferentially acquire the resource, and then the standby devices in the network segment are sequentially distributed after the main device acquires the resource; the standby devices acquire the resource to form a new resource center, and distribute to other standby devices until all resource distribution is completed. According to the current bank bandwidth and the number of devices, the network device is dynamically bandwidth-allocated at the intelligent broadcast control system end, and the timeliness of resource distribution is significantly improved.

[0068] In the embodiments of the present application, an electronic device is also provided, which comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor realizes the resource distribution method based on the intelligent bank intelligent broadcast control system disclosed in the above embodiments when executing the computer program. As shown in Figure 6 The electronic device can include one or more (only one is shown in the figure) processors (the processor can include but is not limited to a microprocessor MCU or a programmable logic device FPGA processing device), a memory for storing data, and a transmission device for communication function. As can be understood by those skilled in the art, Figure 6 The structure shown in the figure is only schematic, and does not limit the structure of the above-mentioned electronic device.

[0069] The above-mentioned program can be executed in the processor, or can also be stored in the memory, that is, the computer readable medium, and the computer readable medium includes permanent and non-permanent, removable and non-removable media, which can realize information storage by any method or technology. Information can be computer readable instructions, data structure, program module or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage device, or any other non-transmission medium that can be used to store information accessible by a computing device. According to the definition in this paper, computer readable medium does not include temporary computer readable medium, such as modulated data signals and carrier waves. These computer programs can also be loaded into a computer or other programmable data processing

[0070] On a device, instructions that execute on a computer or other programmable device provide instructions for implementing a process. Figure 1 One or more processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes can be implemented through different modules, corresponding to different method steps.

[0071] In this embodiment, an apparatus or system is provided, which can be referred to as a resource distribution system based on a smart bank intelligent broadcast control system. This system, as follows... Figure 7 The system includes: a first receiving module, used to receive resource distribution instructions issued by the intelligent broadcast control system according to the device list it communicates with, wherein the resource distribution instructions include the main line bandwidth, resource ID, resource size, and file MD5; a judgment and execution module, used to, for any device, sequentially determine whether the corresponding resource exists in the device or whether the corresponding resource task is in the breakpoint resume queue, and if the corresponding resource exists in the device or is in the breakpoint resume queue, then complete or execute the resource download and complete the resource distribution; a broadcast module, used to, when the corresponding resource does not exist in the device and the corresponding resource is not in the breakpoint resume queue, broadcast a query message to the device list to inquire whether other devices in the device list have the resource; wherein the content of the query message includes the resource ID, resource size, and file MD5; and a second receiving module, used to... The system receives feedback messages from each device. A first execution selection module, when all feedback messages indicate the resource does not exist, selects one device as the primary device to access the HTTP server and download the resource, based on the time each device received the resource distribution instruction. The other devices act as backup devices and enter a waiting state. Once the primary device completes the resource download, it starts the resource download service and simultaneously sends a broadcast message to all backup devices. This allows each backup device to receive and verify the resource information and then wait in turn to access the primary device for resource download. The broadcast message is the primary device's resource distribution instruction, including the resource ID, resource size, and file MD5. A second execution selection module, when at least one device reports the resource's existence, selects a device containing the resource as an FTP server and accesses it to perform the resource download, thus completing the resource distribution.

[0072] The steps of the system for implementing the resource distribution method based on the intelligent broadcast control system of a smart bank disclosed in the above embodiments have already been described and will not be repeated here.

[0073] For example, the execution unit of the first selection execution module for starting the resource download service after the master device resource download is completed comprises: a setting unit configured to set the number of backup device connections and the download speed of the resource download service according to the performance and network bandwidth of the master device; an allowing unit configured to allow the access request of the backup device within the range of the number of backup device connections, so that the accessed backup device performs resource download; and a rejecting unit configured to reject the access request of the backup device beyond the range of the number of backup device connections, so that the rejected backup device saves a resource request address and enters a polling waiting state, and accesses the resource request address at a regular time until the backup device receives a resource download completion message pushed by the backup device.

[0074] For another example, the system further comprises a receiving confirmation module configured to, during the process that the master device accesses the HTTP server to perform resource download and other devices all enter the waiting state as backup devices, the master device receives the communication of the backup devices regularly, so that the backup devices confirm whether the master device is in a normal download state; when the backup devices confirm that the master device is in an abnormal download state, a backup master device is determined in the backup devices to access the HTTP server to perform resource download.

[0075] For another example, the system further comprises a third selection execution module configured to, when the resource distribution instruction issued by the intelligent broadcast control system comprises a plurality of resources, the corresponding resources do not exist in the devices, and the corresponding resources are not in the breakpoint continuation queue, for any resource, it is determined whether the resource exists in other devices, and when the resources all do not exist in any device, for any resource, a master device is determined to access the HTTP server to perform resource download.

[0076] For another example, the system further comprises a secondary distribution module configured to, after the backup device pushes the resource download completion message, start the resource download service as a secondary server.

[0077] The resource distribution method and system based on the intelligent broadcast control system of the intelligent bank disclosed in the application mainly has the following functions: based on the current resource distribution process of the intelligent bank broadcast control system, according to the current bank bandwidth and the number of devices, the branch device is dynamically arranged to the broadcast control system end for bandwidth allocation; the scheme adopts the following steps: first, the master device preferentially acquires resources; then, the master device after acquiring the resources distributes the resources to the backup devices; finally, the backup devices after acquiring the resources distribute the resources to other backup devices that have not acquired the resources, until all the devices complete resource acquisition; during the resource distribution process, the master device and all the backup devices that acquire the resources before the last round acquire the resources all start the resource download service as servers, and a new idea is proposed for the intelligent bank to distribute resources with high bandwidth occupation; that is, by reducing the bandwidth occupation rate and the server end distribution pressure, the timeliness and response efficiency of resource distribution are improved.

[0078] While the application has been described by way of example with reference to preferred embodiments, it is to be understood that this application is not limited to the embodiments disclosed, but is intended to cover modifications and variations within the spirit and scope of the application. Therefore, the scope of the application is defined not by the detailed description of the preferred embodiments but by the following claims.

Claims

1. A resource distribution method based on a smart bank intelligent broadcast control system, characterized in that, include: Each device receives a resource distribution instruction from the intelligent broadcast control system based on the list of devices it communicates with. The resource distribution instruction includes the main line bandwidth, resource ID, resource size, and file MD5. For any device, based on the resource distribution instruction received, it is determined in turn whether there is a corresponding resource or whether the corresponding resource task is in the breakpoint resume queue. If there is a corresponding resource or the corresponding resource is in the breakpoint resume queue, the resource distribution is completed or the resource download is executed to complete the resource distribution. If the corresponding resource does not exist in the device and the corresponding resource is not in the breakpoint resume queue, a query message is broadcast to the device list to inquire whether other devices in the device list have the resource; wherein, the content of the query message includes the resource ID, resource size, and file MD5; Receive feedback messages from each device; When all feedback messages indicate that the resource does not exist, based on the time each device receives the resource distribution instruction, one device is selected as the master device to access the HTTP server and perform resource download. All other devices enter a waiting state as backup devices. Once the master device completes the resource download, it starts the resource download service and simultaneously sends a broadcast message to all backup devices. This allows each backup device to receive and verify the resource information and then round-robin to access the master device for resource download. The broadcast message is the master device's resource distribution instruction, including the resource ID, resource size, and file MD5. When at least one device reports that the resource exists, select the device that has the resource as the FTP server and access it to perform the resource download and complete the resource distribution.

2. The resource distribution method based on a smart bank intelligent broadcast control system according to claim 1, characterized in that, The process of starting the resource download service after the main device completes the resource download is as follows: Based on the performance and network bandwidth of the main device, the number of backup device connections and the download speed of the resource download service are set; Access requests from backup devices within the allowed range of the configured backup device connection limit are permitted, enabling the accessing backup devices to perform resource downloads. Access requests from backup devices exceeding the configured backup device connection limit are rejected, causing the rejected backup devices to save the resource request address and enter a polling waiting state, periodically accessing the resource request address until they receive a resource download completion message pushed by the backup device.

3. The resource distribution method based on a smart bank intelligent broadcast control system according to claim 1, characterized in that, Also includes: During the process where the main device accesses the HTTP server to perform resource download and other devices enter a waiting state as backup devices, the main device periodically receives communications from the backup devices so that the backup devices can confirm whether the main device is in a normal download state. When the backup device confirms that the primary device is in an abnormal download state, it selects a backup primary device from among the backup devices to access the HTTP server to perform resource download.

4. The resource distribution method based on a smart bank intelligent broadcast control system according to claim 1, characterized in that, Also includes: When the resource distribution instruction issued by the intelligent broadcast control system includes multiple resources, the corresponding resource does not exist in the device, and the corresponding resource is not in the breakpoint resume queue, then: For any given resource, sequentially check whether the resource exists on other devices. If the resource does not exist on any device, determine a master device for each resource and access the HTTP server to download the resource.

5. The resource distribution method based on a smart bank intelligent broadcast control system according to claim 2, characterized in that, Also includes: Once the backup device pushes a message indicating that the resource download is complete, it starts the resource download service as a secondary server.

6. The resource distribution method based on the intelligent broadcast control system of a smart bank according to claim 3, characterized in that, The primary device is the first device to receive the resource distribution instruction, and the backup primary device is the first backup device among the backup devices to receive the resource distribution instruction.

7. A resource distribution system based on a smart bank intelligent broadcast control system, characterized in that, include: The first receiving module is used to receive resource distribution instructions issued by the intelligent broadcast control system according to the list of devices communicating with it. The resource distribution instructions include the main line bandwidth, resource ID, resource size, and file MD5. The judgment and execution module is used to determine, for any device, whether there is a corresponding resource or whether the corresponding resource task is in the breakpoint resume queue according to the resource distribution instruction received by the device. If there is a corresponding resource or the corresponding resource is in the breakpoint resume queue, the resource distribution is completed or the resource download is executed and the resource distribution is completed. The broadcast module is used to broadcast a query message to the device list when the corresponding resource does not exist in the device and the corresponding resource is not in the breakpoint resume queue, in order to ask other devices in the device list whether the resource exists; wherein, the content of the query message includes the resource ID, resource size, and file MD5; The second receiving module is used to receive feedback messages from each device; The first selection execution module is used to select one device as the master device to access the HTTP server and perform resource download when all feedback messages indicate that the resource does not exist, based on the time when each device receives the resource distribution instruction. All other devices enter a waiting state as backup devices. Once the master device completes the resource download, it starts the resource download service and simultaneously sends a broadcast message to all backup devices. This allows each backup device to receive and verify the consistency of the resource information before round-robin waiting to access the master device for resource download. The broadcast message is the master device's resource distribution instruction, including the resource ID, resource size, and file MD5. The second selection execution module is used to select a device that has the resource as an FTP server and access it when at least one device reports that the resource exists, so as to perform resource download and complete resource distribution.

8. The resource distribution system based on the intelligent broadcast control system of a smart bank according to claim 7, characterized in that, The execution unit that starts the resource download service after the main device resource download is completed in the first selection execution module includes: The setting unit is used to set the number of backup device connections and the download speed of the resource download service according to the performance of the main device and the network bandwidth. The permission unit is configured to allow access requests from backup devices within a set range of backup device connection numbers, so that the accessing backup devices can perform resource downloads. The rejection unit is used to reject access requests from backup devices that exceed the range of backup device connection numbers, so that the rejected backup device saves the resource request address and enters a polling waiting state, and periodically accesses the resource request address until it receives a resource download completion message pushed by the backup device.

9. The resource distribution system based on the intelligent broadcast control system of a smart bank according to claim 7, characterized in that, Also includes: The third selection execution module is used when the resource distribution instruction issued by the intelligent broadcast control system includes multiple resources, the corresponding resource does not exist in the device and the corresponding resource is not in the breakpoint resume queue, then: for any resource, it is sequentially determined whether the resource exists in other devices, and when each resource does not exist in any device, a master device is determined for each resource to access the HTTP server to perform resource download.

10. An electronic device, characterized in that, It includes at least one processor; the processor is coupled to a memory for storing one or more computing instructions, wherein the one or more computing instructions are executed by the processor at runtime to implement the steps of the resource distribution method based on the intelligent broadcast control system of a smart bank as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • An apparatus, method, and system for a fast configuration mechanism

    CN105830053A

  • TMS (Terminal Management System) application downloading adaptive policy method

    CN107786611A