Downloading service layered distribution method and device, electronic equipment and storage medium

By implementing the download service layered distribution method on the parent application distribution server, and using temporary distribution service nodes to distribute software updates, the problems of delays and failures of software updates within large enterprises are solved, and efficient and fast software updates are achieved.

CN119583642AActive Publication Date: 2025-03-07CHINA CONSTR BANK CO LTD GUANGDONG BRANCH
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411689366.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-03-07
Estimated Expiration
2044-11-25

AI Technical Summary

Technical Problem

The existing technology cannot update software in a timely manner, especially in the environment where the internal network of large enterprises is complex and the security is strictly restricted, resulting in software update delays or failures.

Method used

A download service layered distribution method is provided, and the parent application distribution server receives the download request of the target terminal and determines whether there is a temporary distribution service node of the network segment to which the target terminal belongs. If it exists, redirect to the temporary distribution service node for download; if it does not exist, provide the download service to the target terminal and start the temporary distribution service on it, making it a temporary distribution service node.

Benefits of technology

It realizes efficient software updates in complex enterprise network environments, reduces the load on the parent application distribution server, and improves download speed and success rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119583642A_ABST
    Figure CN119583642A_ABST
Patent Text Reader

Abstract

The invention discloses a downloading service layered distribution method and device, electronic equipment and a storage medium. The method comprises the following steps: receiving a downloading request of a target application sent by any target terminal; wherein the target terminal is a terminal in each network segment of a lower layer managed by the mother application distribution server; judging whether a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs exists at present; if the corresponding temporary distribution service node does not exist at present, providing a downloading service for the target terminal, and transmitting an update package of the target application; starting a temporary distribution service on the target terminal, so that the temporary distribution service becomes a temporary distribution service node of the target application corresponding to the network segment to which the temporary distribution service belongs; and if the corresponding temporary distribution service node exists at present, redirecting the downloading request of the target terminal to the temporary distribution service node, so that the temporary distribution service node provides a temporary downloading service for the target terminal through the temporary distribution service and transmits an update package of the target application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of application update technology, and in particular to a download service layered distribution method and device, electronic device, and storage medium. Background Art

[0002] In the information age, the stability, security and functionality of enterprise software systems are crucial to enterprise operations. Ensuring timely and effective updates of application software versions is essential for building a robust operating system, improving internal management efficiency, achieving sustainable growth and maintaining competitive advantage.

[0003] In order to effectively update the version of enterprise application software in a timely manner, one of the current methods is to apply P2P technology to enterprise application stores. Since P2P technology allows each node in the network to be both a service requester and a service provider, this feature can be used to download various parts of the software of multiple nodes that have updated their software versions, thereby achieving timely updates of the software on itself, and after the update, it also acts as a service provider to provide services for other nodes to download the software.

[0004] However, the internal networks of many large enterprises are relatively complex and have strict security requirements, so the networks of most of the institutions in the enterprise cannot be directly interconnected. Therefore, the nodes of different institutions cannot provide services to each other, and this method cannot be used. The number of nodes in an institution is limited, and the advantages of P2P technology cannot be brought into play. It may also cause a decrease in the success rate of file downloads due to resource competition, delaying the timely update of software versions. In addition, even if the networks of different institutions can be directly interconnected, the broadband configuration of different institutions is much lower than the broadband configuration of the local area network within the institution, so the speed of downloading files from the nodes of multiple remote institutions is slow. Especially when multiple terminals initiate download requests at the same time, the limited broadband resources will greatly reduce the download speed, or even cause download failures, which seriously affects the timely update of software. Summary of the invention

[0005] Based on the above-mentioned deficiencies of the prior art, the present application provides a download service layered distribution method and device, electronic device, and storage medium to solve the problem that the prior art cannot update software in a timely manner.

[0006] In order to achieve the above objectives, this application provides the following technical solutions:

[0007] In a first aspect, the present application provides a download service hierarchical distribution method, which is applied to a parent application distribution server. The download service hierarchical distribution method includes:

[0008] Receive a download request for a target application sent by any target terminal; wherein the target terminal is a terminal in each network segment of the lower layer managed by the parent application distribution server;

[0009] Determine whether there is currently a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs; wherein a temporary distribution service node of the target application corresponding to the network segment is a terminal that belongs to the network segment and has downloaded the target application and provides temporary distribution service;

[0010] If it is determined that there is currently no temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs, providing a download service to the target terminal and transmitting an update package of the target application;

[0011] Starting a temporary distribution service on the target terminal, making it a temporary distribution service node of the target application corresponding to the network segment to which it belongs;

[0012] If it is determined that there is currently a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs, the download request for the target application sent by the target terminal is redirected to the temporary distribution service node, so that the temporary distribution service node provides a temporary download service to the target terminal through a temporary distribution service, and transmits the update package of the target application.

[0013] Optionally, in the above-mentioned download service hierarchical distribution method, before determining whether there is currently a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs, the method further includes:

[0014] Determine whether the IP address of the target terminal is within a pre-configured downloadable network segment; wherein, if it is determined that the IP address of the target terminal is within the pre-configured downloadable network segment, execute the determination whether there is currently a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs.

[0015] Optionally, in the above-mentioned download service hierarchical distribution method, before determining whether there is currently a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs, the method further includes:

[0016] Determine whether there is a terminal in the network segment to which the target terminal belongs, and download the target application from the parent application distribution server;

[0017] If it is determined that there is currently a terminal in the network segment to which the target terminal belongs, downloading the target application from the parent application distribution server, then adding the download request of the target application sent by the target terminal to a queue for waiting, until there is currently no terminal in the network segment to which the target terminal belongs, downloading the target application from the parent application distribution server, and starting the temporary distribution service, then executing the step of determining whether there is currently a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs;

[0018] If it is determined that there is currently no terminal in the network segment to which the target terminal belongs, the target application is downloaded from the parent application distribution server, and then the determination of whether there is currently a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs is executed.

[0019] Optionally, in the above-mentioned download service hierarchical distribution method, the determining whether there is currently a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs includes:

[0020] Determine whether there is a currently valid IP address of the temporary distribution service node of the target application in the network segment to which the target terminal belongs;

[0021] If it is determined that the IP address of the temporary distribution service node of the target application in the network segment to which the target terminal belongs is recorded, it is determined that there is currently a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs.

[0022] Optionally, in the above-mentioned download service hierarchical distribution method, after starting the temporary distribution service on the target terminal to make it a temporary distribution service node of the target application in the corresponding network segment, the method further includes:

[0023] According to the network segment to which the target terminal belongs, the address of the temporary distribution service of the target terminal is configured and maintained.

[0024] Optionally, in the above-mentioned download service hierarchical distribution method, before providing the download service to the target terminal and transmitting the update package of the target application, the method further includes:

[0025] Determine whether the number of terminals currently downloading the target application from the parent application distribution server has reached a preset upper limit;

[0026] If it is determined that the number of terminals currently downloading the target application from the parent application distribution server has reached a preset upper limit, the download request of the target application sent by the target terminal is added to a queue for waiting until the number of terminals currently downloading the target application from the parent application distribution server does not reach the preset upper limit, and the download service is provided to the target terminal, and the update package of the target application is transmitted.

[0027] A second aspect of the present application provides a download service hierarchical distribution device, the download service hierarchical distribution device is a parent application distribution server, and the download service hierarchical distribution device includes:

[0028] A request receiving unit, configured to receive a download request for a target application sent by any target terminal; wherein the target terminal is a terminal in each network segment of the lower layer managed by the parent application distribution server;

[0029] A first judgment unit is used to judge whether there is currently a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs; wherein a temporary distribution service node of the target application corresponding to the network segment is a terminal that belongs to the network segment and has downloaded the target application and provides temporary distribution service;

[0030] A first downloading unit, configured to provide a download service to the target terminal and transmit an update package of the target application when it is determined that there is no temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs;

[0031] A starting unit, used to start a temporary distribution service on the target terminal, so that it becomes a temporary distribution service node of the target application corresponding to the network segment to which it belongs;

[0032] The second downloading unit is used to redirect the download request of the target application sent by the target terminal to the temporary distribution service node when it is determined that there is a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs, so that the temporary distribution service node can provide a temporary download service to the target terminal through a temporary distribution service and transmit the update package of the target application.

[0033] Optionally, in the above-mentioned download service hierarchical distribution device, it also includes:

[0034] The second judgment unit is used to judge whether the IP address of the target terminal is within a pre-configured downloadable network segment; wherein, if it is judged that the IP address of the target terminal is within the pre-configured downloadable network segment, the first judgment unit executes the judgment whether there is currently a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs.

[0035] Optionally, in the above-mentioned download service hierarchical distribution device, it also includes:

[0036] A third judgment unit is used to judge whether there is a terminal in the network segment to which the target terminal belongs, and download the target application from the parent application distribution server;

[0037] a first queuing unit, configured to, when it is determined that a terminal in the network segment to which the target terminal belongs currently downloads the target application from the parent application distribution server, add the download request of the target application sent by the target terminal to a queue for waiting, until there is no terminal in the network segment to which the target terminal belongs currently, downloads the target application from the parent application distribution server, and starts a temporary distribution service, the first determining unit then executing the determination of whether there is a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs currently;

[0038] If it is determined that there is currently no terminal in the network segment to which the target terminal belongs, the target application is downloaded from the parent application distribution server, and the first judgment unit executes the judgment whether there is currently a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs.

[0039] Optionally, in the above-mentioned download service layered distribution device, the first determination unit includes:

[0040] A fourth determination unit, configured to determine whether a currently valid IP address of a temporary distribution service node of the target application in the network segment to which the target terminal belongs is recorded;

[0041] The determining unit is used to determine that there is currently a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs when it is determined that the IP address of the temporary distribution service node for the target application to which the target terminal belongs is recorded.

[0042] Optionally, in the above-mentioned download service hierarchical distribution device, it also includes:

[0043] A configuration unit is used to configure and maintain the address of the temporary distribution service of the target terminal according to the network segment to which the target terminal belongs.

[0044] Optionally, in the above-mentioned download service hierarchical distribution device, it also includes:

[0045] A fifth determination unit, configured to determine whether the number of terminals currently downloading the target application from the parent application distribution server has reached a preset upper limit;

[0046] The second queuing unit is used to add the download request of the target application sent by the target terminal to the queue for waiting when it is determined that the number of terminals currently downloading the target application from the parent application distribution server has reached a preset upper limit, until the number of terminals currently downloading the target application from the parent application distribution server does not reach the preset upper limit, and the first downloading unit executes the provision of download service to the target terminal and transmits the update package of the target application.

[0047] A third aspect of the present application provides an electronic device, including:

[0048] Memory and processor;

[0049] Wherein, the memory is used to store programs;

[0050] The processor is used to execute the program, and when the program is executed, it is specifically used to implement the download service layered distribution method as described in any one of the above.

[0051] A fourth aspect of the present application provides a computer storage medium for storing a computer program, wherein when the computer program is executed by a processor, the computer program is used to implement the download service layered distribution method as described in any one of the above.

[0052] The present application provides a download service hierarchical distribution method, which is applied to a parent application distribution server. In the specific distribution process, a download request for a target application sent by any target terminal is first received, wherein the target terminal is a terminal in each network segment of the lower layer managed by the parent application distribution server, so that each parent application distribution server is responsible for the terminals in a limited network segment, avoiding being responsible for the download of too many terminals and affecting the download speed. Then, it is determined whether there is a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs. Among them, a temporary distribution service node for a target application corresponding to a network segment is a terminal that belongs to the network segment, has downloaded the target application and provides temporary distribution services. If it is determined that there is no temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs, a download service is provided to the target terminal, and an update package of the target application is transmitted, and a temporary distribution service is started on the target terminal, making it a temporary distribution service node for the target application corresponding to the network segment to which it belongs. If it is determined that there is a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs, the download request for the target application sent by the target terminal will be redirected to the temporary distribution service node, so that the temporary distribution service node can provide temporary download service to the target terminal through the temporary distribution service, and transmit the update package of the target application. Therefore, it is only downloaded from the parent application distribution server when there is no temporary distribution service node, so that only a small number of terminal download requests are processed by the parent application distribution server, and most of the terminal download requests are processed by the temporary distribution service node in the same network segment. The terminals in the same network segment belong to the same local area network and have a faster download speed. Therefore, the effective update of all terminals in the entire enterprise can be efficiently realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0054] Figure 1 A flowchart of a download service hierarchical distribution method provided in an embodiment of the present application;

[0055] Figure 2 A schematic diagram of an example of network segment division provided in an embodiment of the present application;

[0056] Figure 3 A schematic diagram of the architecture of a download service hierarchical distribution device provided in an embodiment of the present application;

[0057] Figure 4 A schematic diagram of the architecture of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0059] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0060] The embodiment of the present application provides a method for layered distribution of download services, which is applied to a parent application distribution server. Figure 1 As shown, the download service hierarchical distribution method provided in the embodiment of the present application includes the following steps:

[0061] S101: Receive a download request for a target application sent by any target terminal.

[0062] The target terminal is a terminal in each network segment of the lower layer managed by the parent application distribution server, so the parent application distribution server is an upper-layer server, and multiple lower-layer terminals managed by it are connected to it, that is, the parent application distribution server and each terminal managed by it are interoperable. The lower-layer terminals may belong to different organizations, so there will be multiple terminals in different network segments.

[0063] Therefore, in order to determine the parent application distribution server, the terminals managed by the parent application distribution service, and the network segments to which each terminal belongs, etc., it is optional to first determine the internal network architecture and terminal distribution information of the enterprise, so as to facilitate the sorting out of the location and IP address range of different institutions and different terminals, and other related information, which may specifically include but is not limited to the network segment information of each institution, such as the network segment start address, the number of terminal IPs that can be allocated, the number of terminals currently in use, etc., as well as the actual information such as the intercommunication status between different network segments.

[0064] Based on the above information, you can set software distribution rules, including but not limited to network access rules, data transmission control rules between network segments, and the download protocol used, such as only allowing http data transmission between terminals within a specific network segment, how to implement corresponding policy control, how to implement hierarchical distribution of application services, etc. In addition, you can set up a parent application distribution server, divide network segments, etc. Among them, the parent application distribution server is the source application distribution server, and its role is to provide a source download file task list and its corresponding software, and provide the ability to download services, and based on the software distribution rules set above, specifically implement relevant configuration control, thereby achieving software distribution.

[0065] Therefore, for each target terminal of a parent application distribution server, when it needs to download an application for update, it needs to send a download request of the application to the parent application distribution server. Optionally, for a target terminal, it can periodically initiate a request to download an update package to the parent application distribution server after the operating system is started, or a user actively triggers a request to download the update package to the parent application distribution server. At this time, the parent application distribution server receives the download request of the target application sent by the target terminal.

[0066] S102: Determine whether there is a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs.

[0067] The temporary distribution service node of the target application corresponding to a network segment is a terminal that belongs to the network segment and has downloaded the target application and started the temporary distribution service.

[0068] It should be noted that each network segment is pre-divided according to the sorted network segment information of each terminal, and each terminal in the same network segment belongs to the same regional network. Figure 2 As shown, under the parent application distribution server S (59.184.1.1.112), it can be divided into County A Company and County B Company according to the network segment. The network segment of County A Company is: 59.168.1.0 / 25 and the network segment of County B Company is: 59.138.1.128 / 25. The terminals A1 (59.168.1.2) and A2 (59.168.1.3) under County A Company both belong to the network segment of County A Company (59.168.1.0 / 25).

[0069] Since the regional network has a higher broadband configuration, that is, the terminals in the same regional network have a higher data transmission speed. Therefore, in the embodiment of the present application, in the terminal that has downloaded the target application in each network segment, the temporary distribution service is started, so that the terminal is used as a temporary distribution service node for the target application corresponding to the network segment, that is, relative to the fixed application distribution node of the parent application distribution server, it is used as a temporary distribution node, so that the terminal can distribute the target application to other terminals in the network segment through the temporary distribution service, and then the high broadband configuration in the network segment can be used to achieve rapid application updates. Optionally, the temporary distribution service node for the target application corresponding to a network segment can include only one, or multiple.

[0070] Optionally, a temporary distribution service node may become invalid after the application has been further updated, or after reaching its validity period, or after a specific event, such as when the terminal is restarted or all terminals in the network segment have been updated, that is, it will no longer serve as a temporary distribution service node to provide temporary distribution services for the target application.

[0071] Optionally, in order to avoid the need for temporary distribution services corresponding to a network segment to distribute applications to a large number of terminals, the enlarged network segment, that is, the network segment containing larger terminals, can be split into multiple network segments. For example, for the 59.168.2.0 / 24 network segment, it can be split into: 56.168.2.0 / 25 and 56.168.2.128 / 25, thereby reducing the number of terminals included in a network segment and correspondingly increasing the number of sub-download points, that is, the number of temporary distribution service nodes. Therefore, the stability of the network can be guaranteed, and the needs of multi-point distribution can be flexibly realized, thereby providing overall download efficiency.

[0072] Therefore, for a target terminal, the download speed from the temporary distribution service node corresponding to the network segment to which it belongs is much faster than the download speed from the parent application distribution server. In addition, since the parent application distribution server manages more terminals, in order to avoid too many terminals downloading from the parent application distribution server, increasing the load of the parent application distribution server and causing broadband congestion, affecting the download speed of the temporary distribution service node, when a target terminal needs to download an application, the parent application distribution server will give priority to it to download from the corresponding temporary distribution service node. Therefore, at this time, it will be determined whether there is a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs.

[0073] If it is determined that there is no temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs, that is, the target terminal is the first terminal in the network segment to request downloading the target application, or the temporary distribution service node in the network segment has expired. At this time, it can only be downloaded from the parent application distribution server, so step S103 is executed at this time. If it is determined that there is a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs, step S105 can be executed.

[0074] Optionally, in another embodiment of the present application, a specific implementation of step S102 includes:

[0075] It is determined whether a currently valid IP address of a temporary distribution service node of a target application in a network segment to which the target terminal belongs is recorded.

[0076] In order to facilitate forwarding the request to the temporary distribution service node, the IP address of the temporary distribution service node of the target application will be recorded. Therefore, if it is determined that the IP address of the temporary distribution service node of the target application of the network segment to which the currently valid target terminal belongs is recorded, it is determined that there is a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs.

[0077] Specifically, in order to determine the status of the temporary distribution service of each temporary distribution service node in a timely manner, it is necessary to continuously monitor the download service status of each network segment to ensure the normal operation of the service and to handle possible failures or abnormal situations in a timely manner.

[0078] Optionally, in another embodiment of the present application, before executing step S102, the method further includes:

[0079] Determine whether the IP address of the target terminal is within the pre-configured downloadable network segment.

[0080] In order to ensure that the parent application distribution server is only responsible for the download requests of the terminals in the corresponding network segment and avoid the situation where it undertakes the download services of too many terminals, the downloadable network segment of the parent application distribution server is pre-configured. Therefore, it is necessary to determine whether the IP address of the target terminal is within the pre-configured downloadable network segment. If it is determined that the IP address of the target terminal is within the pre-configured downloadable network segment, step S102 is performed.

[0081] Optionally, considering that a terminal in the network segment to which the target terminal belongs is already downloading the target application and the temporary distribution service has not yet been started, a temporary distribution service node may provide the application distribution service next, and in order to avoid too many terminals downloading from the parent application distribution server, affecting the download speed, in another embodiment of the present application, before executing step S102, the following is further performed:

[0082] Determine whether there is a terminal in the network segment to which the target terminal belongs, and download the target application from the parent application distribution server.

[0083] If it is determined that there is currently a terminal in the network segment to which the target terminal belongs, and the target application is downloaded from the parent application distribution server, the download request for the target application sent by the target terminal is added to the queue for waiting until there is currently no terminal in the network segment to which the target terminal belongs, the target application is downloaded from the parent application distribution server, and the temporary distribution service is started, and then step S102 is executed.

[0084] If it is determined that there is no terminal in the network segment to which the target terminal belongs, the target application is downloaded from the parent application distribution server, and step S102 is directly executed.

[0085] S103: Provide download service to the target terminal and transmit the update package of the target application.

[0086] Since there is no temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs, it can only be downloaded from the parent application distribution server. Therefore, the parent application distribution server responds to the download request of the target terminal and transmits the update package of the target application to the target terminal through the download server. Figure 2 As shown, after terminal A1 sends a download request to the parent application distribution server S, if the field of A County Company does not have a corresponding temporary distribution service node, the parent application distribution server S directly provides download service to terminal A1 and transmits the update package of the target application.

[0087] Optionally, in order to avoid too many applications being downloaded from the parent application distribution server at the same time, which would affect the download rate, in another embodiment of the present application, before executing step S103, the following may be further included:

[0088] It is determined whether the number of terminals currently downloading the target application from the parent application distribution server has reached a preset upper limit.

[0089] If it is determined that the number of terminals currently downloading the target application from the parent application distribution server has reached the preset upper limit, the download request of the target application sent by the target terminal is added to the queue for waiting until the number of terminals currently downloading the target application from the parent application distribution server does not reach the preset upper limit, and then step S103 is executed. If it is determined that the number of terminals currently downloading the target application from the parent application distribution server does not reach the preset upper limit, step S103 is executed.

[0090] S104: Start a temporary distribution service on the target terminal, so that the target terminal becomes a temporary distribution service node of the target application corresponding to the network segment.

[0091] Since there is no temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs, it is necessary to start the temporary distribution service on the target terminal to make it the temporary distribution service node for the target application corresponding to the network segment to which it belongs, so that it can distribute to other terminals in the same network segment. Optionally, the parent application distribution server can trigger the target terminal to start the temporary distribution service, or the target terminal can automatically start the temporary distribution service after downloading the update package of the target application.

[0092] Specifically, after the temporary service environment, including the network environment, file storage, etc., is ready, the temporary service is started immediately, and its availability status is continuously monitored so as to be able to respond to download requests from other terminals in the same network segment in a timely manner.

[0093] Optionally, in another embodiment of the present application, after executing step S104, the following further steps are included:

[0094] Configure and maintain the address of the temporary distribution service of the target terminal according to the network segment to which the target terminal belongs.

[0095] It should be noted that in order to ensure that the address of the temporary distribution service of the target terminal is accessible in the local area network of the network segment to which it belongs, it is necessary to configure and maintain the address of the temporary distribution service of the target terminal based on the network segment to which the target terminal belongs. Figure 2 The URL of the temporary distribution service configuration of terminal A1 is "http: / / 59.168.1.2".

[0096] S105: redirect the download request of the target application sent by the target terminal to the temporary distribution service node, so that the temporary distribution service node provides a temporary download service to the target terminal through the temporary distribution service, and transmits the update package of the target application.

[0097] Since the temporary distribution service node already exists at this time, the temporary distribution service node can provide download services, so the download request is redirected to the temporary distribution service address of the temporary distribution service node, so that the temporary distribution service node can provide temporary download services to the target terminal through the temporary distribution service and transmit the update package of the target application. Figure 2 As shown, when terminal A2 in the same network segment as terminal A1 initiates a download request, the parent application distribution server redirects the download request of terminal A2 to the URL of A1's temporary distribution service (http: / / 59.168.1.2).

[0098] Optionally, at this time, a temporary distribution service may also be started on the target terminal, so that it also becomes a temporary distribution service node of the network segment to which it belongs.

[0099] The embodiment of the present application provides a download service hierarchical distribution method, which is applied to a parent application distribution server. In the specific distribution process, a download request for a target application sent by any target terminal is first received, wherein the target terminal is a terminal in each network segment of the lower layer managed by the parent application distribution server, so that each parent application distribution server is responsible for the terminals in a limited network segment, avoiding being responsible for the download of too many terminals and affecting the download speed. Then, it is determined whether there is a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs. Among them, the temporary distribution service node for the target application corresponding to a network segment is a terminal that belongs to the network segment, has downloaded the target application and provides temporary distribution services. If it is determined that there is no temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs, a download service is provided to the target terminal, and the update package of the target application is transmitted, and a temporary distribution service is started on the target terminal, making it a temporary distribution service node for the target application corresponding to the network segment to which it belongs. If it is determined that there is a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs, the download request for the target application sent by the target terminal will be redirected to the temporary distribution service node, so that the temporary distribution service node can provide temporary download service to the target terminal through the temporary distribution service, and transmit the update package of the target application. Therefore, it is only downloaded from the parent application distribution server when there is no temporary distribution service node, so that only a small number of terminal download requests are processed by the parent application distribution server, and most of the terminal download requests are processed by the temporary distribution service node in the same network segment. The terminals in the same network segment belong to the same local area network and have a faster download speed. Therefore, the effective update of all terminals in the entire enterprise can be efficiently realized.

[0100] Another embodiment of the present application provides a download service hierarchical distribution device, which is a parent application distribution server. Figure 3 As shown, the download service layered distribution device includes:

[0101] The request receiving unit 301 is used to receive a download request of a target application sent by any target terminal.

[0102] The target terminals are terminals in each network segment of the lower layer managed by the parent application distribution server.

[0103] The first determination unit 302 is used to determine whether there is a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs. The temporary distribution service node of the target application corresponding to a network segment is a terminal that belongs to the network segment and has downloaded the target application and provides temporary distribution service.

[0104] The first downloading unit 303 is used to provide a download service to the target terminal and transmit an update package of the target application when it is determined that there is no temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs.

[0105] The starting unit 304 is used to start the temporary distribution service on the target terminal, so that it becomes a temporary distribution service node of the target application corresponding to the network segment.

[0106] The second download unit 305 is used to redirect the download request of the target application sent by the target terminal to the temporary distribution service node when it is determined that there is a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs, so that the temporary distribution service node can provide a temporary download service to the target terminal through the temporary distribution service and transmit the update package of the target application.

[0107] Optionally, in the download service layered distribution device provided in another embodiment of the present application, the device further includes:

[0108] The second judgment unit is used to judge whether the IP address of the target terminal is within the pre-configured downloadable network segment. If it is judged that the IP address of the target terminal is within the pre-configured downloadable network segment, the first judgment unit performs judgment on whether there is a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs.

[0109] Optionally, in the download service layered distribution device provided in another embodiment of the present application, the device further includes:

[0110] The third judgment unit is used to judge whether there is a terminal in the network segment to which the target terminal belongs, and download the target application from the parent application distribution server.

[0111] The first queuing unit is used to add the download request of the target application sent by the target terminal to the queue for waiting when it is determined that there is a terminal in the network segment to which the target terminal belongs, downloads the target application from the parent application distribution server, and starts the temporary distribution service until there is no terminal in the network segment to which the target terminal belongs, downloads the target application from the parent application distribution server, and the first judgment unit executes to judge whether there is a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs.

[0112] If it is determined that there is no terminal in the network segment to which the target terminal belongs, the target application is downloaded from the parent application distribution server, and the first determination unit determines whether there is a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs.

[0113] Optionally, in the download service layered distribution device provided in another embodiment of the present application, the first judgment unit includes:

[0114] The fourth determination unit is used to determine whether the IP address of the temporary distribution service node of the target application in the network segment to which the target terminal belongs that is currently valid is recorded.

[0115] The determination unit is used to determine the temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs when it is determined that the IP address of the temporary distribution service node of the target application of the network segment to which the target terminal belongs is recorded.

[0116] Optionally, in the download service layered distribution device provided in another embodiment of the present application, the device further includes:

[0117] The configuration unit is used to configure and maintain the address of the temporary distribution service of the target terminal according to the network segment to which the target terminal belongs.

[0118] Optionally, in the download service layered distribution device provided in another embodiment of the present application, the device further includes:

[0119] The fifth determination unit is used to determine whether the number of terminals currently downloading the target application from the parent application distribution server has reached a preset upper limit.

[0120] The second queuing unit is used to add the download request of the target application sent by the target terminal to the queue for waiting when it is determined that the number of terminals currently downloading the target application from the parent application distribution server has reached a preset upper limit, until the number of terminals currently downloading the target application from the parent application distribution server does not reach the preset upper limit, and the first downloading unit executes to provide download services to the target terminal and transmit the update package of the target application.

[0121] It should be noted that the specific working process of each unit provided in the above embodiments of the present application can refer to the implementation process of the corresponding steps in the above method embodiments, and will not be repeated here.

[0122] Another embodiment of the present application provides an electronic device, such as Figure 4 As shown, including:

[0123] Memory 401 and processor 402 .

[0124] The memory 401 is used to store programs.

[0125] The processor 402 is used to execute the program stored in the memory 401. When the program is executed, it is specifically used to implement the download service layered distribution method provided by any one of the above embodiments.

[0126] Another embodiment of the present application provides a computer storage medium for storing a computer program. When the computer program is executed by a processor, it is used to implement the download service layered distribution method provided in any of the above embodiments.

[0127] Computer storage media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer-readable instructions, data structures, program modules 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 disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0128] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0129] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A download service layered distribution method, characterized in that: Applied to the parent application distribution server, the download service hierarchical distribution method includes: Receive a download request for a target application sent by any target terminal; wherein the target terminal is a terminal in each network segment of the lower layer managed by the parent application distribution server; Determine whether there is currently a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs; wherein a temporary distribution service node of the target application corresponding to the network segment is a terminal that belongs to the network segment and has downloaded the target application and provides temporary distribution service; If it is determined that there is currently no temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs, providing a download service to the target terminal and transmitting an update package of the target application; Starting a temporary distribution service on the target terminal, making it a temporary distribution service node of the target application corresponding to the network segment to which it belongs; If it is determined that there is currently a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs, the download request for the target application sent by the target terminal is redirected to the temporary distribution service node, so that the temporary distribution service node provides a temporary download service to the target terminal through a temporary distribution service, and transmits the update package of the target application.

2. The method according to claim 1, characterized in that Before determining whether there is a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs, the method further includes: Determine whether the IP address of the target terminal is within a pre-configured downloadable network segment; wherein, if it is determined that the IP address of the target terminal is within the pre-configured downloadable network segment, execute the determination whether there is currently a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs.

3. The method according to claim 1, characterized in that Before determining whether there is a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs, the method further includes: Determine whether there is a terminal in the network segment to which the target terminal belongs, and download the target application from the parent application distribution server; If it is determined that there is currently a terminal in the network segment to which the target terminal belongs, downloading the target application from the parent application distribution server, then adding the download request of the target application sent by the target terminal to a queue for waiting, until there is currently no terminal in the network segment to which the target terminal belongs, downloading the target application from the parent application distribution server, and starting the temporary distribution service, then executing the step of determining whether there is currently a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs; If it is determined that there is currently no terminal in the network segment to which the target terminal belongs, the target application is downloaded from the parent application distribution server, and then the determination of whether there is currently a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs is executed.

4. The method according to claim 1, characterized in that: The determining whether there is currently a temporary distribution service node for the target application corresponding to the network segment to which the target terminal belongs includes: Determine whether there is a currently valid IP address of the temporary distribution service node of the target application in the network segment to which the target terminal belongs; If it is determined that the IP address of the temporary distribution service node of the target application in the network segment to which the target terminal belongs is recorded, it is determined that there is currently a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs.

5. The method according to claim 1, characterized in that After the temporary distribution service is started on the target terminal so that the target terminal becomes a temporary distribution service node of the target application in the network segment to which it belongs, the method further includes: According to the network segment to which the target terminal belongs, the address of the temporary distribution service of the target terminal is configured and maintained.

6. The method according to claim 1, characterized in that Before providing the download service to the target terminal and transmitting the update package of the target application, the method further includes: Determine whether the number of terminals currently downloading the target application from the parent application distribution server has reached a preset upper limit; If it is determined that the number of terminals currently downloading the target application from the parent application distribution server has reached a preset upper limit, the download request of the target application sent by the target terminal is added to a queue for waiting until the number of terminals currently downloading the target application from the parent application distribution server does not reach the preset upper limit, and the download service is provided to the target terminal, and the update package of the target application is transmitted.

7. A download service layered distribution device, characterized in that: The download service hierarchical distribution device is a parent application distribution server, and the download service hierarchical distribution device includes: A request receiving unit, configured to receive a download request for a target application sent by any target terminal; wherein the target terminal is a terminal in each network segment of the lower layer managed by the parent application distribution server; A first judgment unit is used to judge whether there is currently a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs; wherein a temporary distribution service node of the target application corresponding to the network segment is a terminal that belongs to the network segment and has downloaded the target application and provides temporary distribution service; A first downloading unit, configured to provide a download service to the target terminal and transmit an update package of the target application when it is determined that there is no temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs; A starting unit, used to start a temporary distribution service on the target terminal, so that it becomes a temporary distribution service node of the target application corresponding to the network segment to which it belongs; The second downloading unit is used to redirect the download request of the target application sent by the target terminal to the temporary distribution service node when it is determined that there is a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs, so that the temporary distribution service node can provide a temporary download service to the target terminal through a temporary distribution service and transmit the update package of the target application.

8. The device according to claim 7, characterized in that Also includes: The second judgment unit is used to judge whether the IP address of the target terminal is within a pre-configured downloadable network segment; wherein, if it is judged that the IP address of the target terminal is within the pre-configured downloadable network segment, the first judgment unit executes the judgment whether there is currently a temporary distribution service node of the target application corresponding to the network segment to which the target terminal belongs.

9. An electronic device, characterized in that: include: Memory and processor; Wherein, the memory is used to store programs; The processor is used to execute the program, and when the program is executed, it is specifically used to implement the download service layered distribution method as described in any one of claims 1 to 6.

10. A computer storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, is used to implement the download service layered distribution method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • File distribution method and system

    CN107231423A

  • Client upgrading method and system

    CN108173774A

  • Terminal system version downloading method, device and system based on peer-to-peer network thought

    CN110602232A

  • Method and system for downloading application package in application downloading platform

    CN113873048A

  • Software update file downloading method and device, electronic equipment and readable medium

    CN117201481A