Local area network management method and device and storage medium
By generating resource download services in the LAN and broadcasting download information, the slow and lag problems caused by multiple devices downloading the same resource at the same time are solved, download efficiency is improved, and network congestion is avoided.
Patent Information
- Application Number
- CN202411231546.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-04
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-09-04
AI Technical Summary
When multiple devices in a LAN download the same resource at the same time, it causes slow and stuttering resource downloads.
By generating resource download services in the LAN, the device downloads resources from the Internet and broadcasts download information on the LAN. Other devices can download directly from the device that has downloaded resources to avoid repeated downloads from the Internet.
Improve resource download efficiency, avoid network congestion, and solve the problems of slow and stuttering resource downloads.
Smart Images

Figure CN119172392A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a local area network management method, device and storage medium. Background Art
[0002] A local area network (LAN) refers to a group of devices located in the same geographical location and the communication network connected to them. This group of devices can communicate with each other to achieve data transmission and sharing. LAN devices include computers, servers, routers, etc. LANs have the characteristics of fast transmission speed, stable performance, simple framework, and security, so they are widely used in different places such as homes, offices, or factories. In some scenarios, multiple devices in the same LAN need to request the same resource from the Internet within a relatively concentrated period of time (for example, multiple devices perform software upgrades). When the number of devices requesting the resource is large and the bandwidth is limited, slow resource downloads and freezes will occur. Summary of the invention
[0003] In view of the above problems, the present application provides a local area network management method for solving the technical problems of slow downloading and jamming caused by repeated downloading of the same resource in a local area network.
[0004] To achieve the above purpose, the present application provides a local area network management method, comprising the following steps:
[0005] The device in the local area network downloads resources from the Internet and generates a download service for the downloaded resources;
[0006] Sending download information of the resource in the form of broadcast in the local area network, wherein the content of the download information includes the download address of the resource in the local area network and the feature code of the resource;
[0007] Other devices in the local area network receive the download information and select a download address to download resources according to the download information.
[0008] Furthermore, the device in the local area network receives the download information and selects a download address to download resources according to the download information, and then further includes the steps of:
[0009] The device that has downloaded the resource from the download address generates a download service for the resource, and updates the download information corresponding to the generated download service to the download information, so that the content of the download information includes more than two download addresses;
[0010] Updated download information is broadcasted within the local area network.
[0011] Furthermore, the method further comprises the steps of:
[0012] It is determined whether a device in the local area network has downloaded the resource. If so, the device does not receive the updated download information.
[0013] Furthermore, the download service includes providing a download address of the resource, and the number of devices currently connected to the download address or the number of devices currently available for connection;
[0014] Determine whether the number of devices currently connected to the download address is full or whether the number of devices available for connection is zero. If so, suspend the download service.
[0015] Furthermore, the download service includes providing a download address of the resource, the number of devices currently connected to the download address or the number of devices currently available for connection;
[0016] The step of selecting a download address according to the download information to download the resource includes:
[0017] The download address with the least number of currently connected devices or the largest number of devices available for connection among the download addresses is selected for resource downloading.
[0018] Furthermore, the device in the local area network downloads resources from the Internet, including:
[0019] The device applies to the local area network to download the resource on the Internet;
[0020] It is determined whether the number of devices currently applying to download resources in the local area network is greater than a threshold value. If not, the application is allowed; if so, the application exceeding the threshold value is prohibited.
[0021] Furthermore, the method further comprises the steps of:
[0022] It is determined whether a download event is received within a preset time after broadcasting the download information, in which other devices in the local area network download the download information through the download information. If not, the broadcast and the download service are closed.
[0023] Furthermore, the content of the download information also includes a unique code of the device, and the unique code includes a MAC address or UUID of the device;
[0024] The resource feature code includes the MD5 value, SHA1 value, HMAC value or NTLM value of the resource.
[0025] In order to solve the above technical problems, this application also provides another technical solution:
[0026] A local area network management device, comprising:
[0027] A first download module, used to download resources from the Internet, generate a download service for the downloaded resources, and send the download information of the resources in a broadcast form in the local area network, wherein the content of the download information includes the download address of the resources in the local area network and the feature code of the resources;
[0028] The second download module is used to receive the download information and select a download address to download resources according to the download information.
[0029] In order to solve the above technical problems, this application also provides another technical solution:
[0030] A computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the local area network management method described in any one of the above technical solutions is executed.
[0031] Different from the existing technology, the local area network device that has downloaded resources from the Internet in the above technical solution generates a download service for the resource, that is, acts as a server for downloading the resource in the local area network, and broadcasts the download information of the resource in the local area network. Therefore, when other devices in the local area network need to download the resource, they can directly download the resource from the above-mentioned device that has downloaded the resource in the local area network without downloading it from the Internet again. Therefore, network congestion can be avoided and resource download efficiency can be improved.
[0032] The above-mentioned records related to the invention content are only an overview of the technical solution of the present application. In order to enable ordinary technicians in the field to more clearly understand the technical solution of the present application, and then implement it according to the text of the specification and the contents recorded in the drawings, and to make the above-mentioned purpose and other purposes, features and advantages of the present application easier to understand, the following is an explanation in combination with the specific implementation mode and drawings of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The drawings are only used to illustrate the principles, implementation methods, applications, characteristics and effects of the specific embodiments of the present invention and other related contents, and shall not be considered as limiting the present application.
[0034] In the drawings of the specification:
[0035] Figure 1 It is a flowchart of the local area network management method described in the specific implementation method;
[0036] Figure 2 A flowchart of broadcast updating and retransmission described in the specific implementation method;
[0037] Figure 3 It is a schematic diagram of the broadcast content described in the specific implementation method;
[0038] Figure 4It is a schematic diagram of the updated broadcast content described in the specific implementation method;
[0039] Figure 5 It is a module block diagram of the local area network management device described in the specific implementation method;
[0040] Figure 6 A schematic diagram of a computer-readable storage medium according to a specific embodiment;
[0041] The reference numerals in the above drawings are described as follows:
[0042] 500, local area network management device; 501, first download module; 502, second download module;
[0043] 600. Computer readable storage medium; DETAILED DESCRIPTION
[0044] In order to explain in detail the possible application scenarios, technical principles, specific schemes that can be implemented, and the purposes and effects that can be achieved, the following is a detailed description of the specific embodiments listed in conjunction with the accompanying drawings. The embodiments described herein are only used to more clearly illustrate the technical solutions of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0045] Reference to "embodiment" herein means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The term "embodiment" appearing in various places in the specification does not necessarily refer to the same embodiment, nor does it particularly limit its independence or association with other embodiments. In principle, in the present application, as long as there is no technical contradiction or conflict, the various technical features mentioned in the embodiments can be combined in any way to form a corresponding implementable technical solution.
[0046] Unless otherwise defined, the technical terms used in this document have the same meanings as those generally understood by those skilled in the art to which this application belongs; the use of relevant terms in this document is only for describing specific embodiments and is not intended to limit this application.
[0047] In the description of this application, the term "and / or" is an expression used to describe the logical relationship between objects, indicating that three relationships may exist, for example, A and / or B, which means: A exists, B exists, and A and B exist at the same time. In addition, the character " / " in this article generally indicates that the objects before and after are in an "or" logical relationship.
[0048] In the present application, terms such as “first” and “second” are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship of quantity, priority or sequence between these entities or operations.
[0049] Without further limitations, in this application, the words "include", "comprises", "has" or other similar open-ended expressions used in sentences are intended to cover non-exclusive inclusion. These expressions do not exclude the presence of additional elements in the process, method or product including the elements, so that the process, method or product including a series of elements may include not only those limited elements, but also other elements not explicitly listed, or also include elements inherent to such process, method or product.
[0050] Similar to the understanding in the Examination Guidelines, in this application, expressions such as "greater than", "less than", "exceed" and the like are understood to exclude the number itself; expressions such as "above", "below", "within" and the like are understood to include the number itself. In addition, in the description of the embodiments of this application, "multiple" means more than two (including two), and similar expressions related to "multiple" are also understood in this way, such as "multiple groups", "multiple times", etc., unless otherwise clearly and specifically limited.
[0051] In the description of the embodiments of the present application, space-related expressions used, such as "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "vertical", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicate the orientation or position relationship based on the orientation or position relationship shown in the specific embodiments or drawings, and are only for the convenience of describing the specific embodiments of the present application or facilitating the reader's understanding, and do not indicate or imply that the referred device or component must have a specific position, a specific orientation, or be constructed or operated in a specific orientation, and therefore cannot be understood as a limitation on the embodiments of the present application.
[0052] Unless otherwise expressly specified or limited, in the description of the embodiments of the present application, the terms such as "install", "connect", "connect", "fix", "set", etc. used should be understood in a broad sense. For example, the "connection" can be a fixed connection, a detachable connection, or an integrated setting; it can be a mechanical connection, an electrical connection, or a communication connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. For technicians in the technical field to which the present application belongs, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.
[0053] The present embodiment provides a local area network management method, which can be applied to different local area network scenarios and is used to manage the downloading of resources on the Internet by devices in the local area network. The resources can be a variety of resources such as software installation packages of devices, multimedia resources, etc. In the related art, the devices in the local area network need to download resources from the Internet one by one, so there are problems such as repeated downloading of resources, occupying network bandwidth, and slow and stuck resource downloading. In this embodiment, after the device in the local area network downloads the resource from the Internet, the device is used as a server for downloading the resource in the local area network (i.e., a download service for the downloaded resource is generated), and broadcast in the local area network. When other devices in the local area network need to download the same resource, they can directly download the resource from the above-mentioned device that has downloaded the resource, so there is no need to repeatedly download the resource from the Internet, thereby improving the resource download efficiency.
[0054] See also Figure 1 The local area network management method of this embodiment includes the following steps:
[0055] S101, a device in a local area network downloads resources from the Internet, and generates a download service for the downloaded resources;
[0056] S102, sending download information of the resource in the form of broadcast in the local area network, wherein the content of the broadcast includes the download address of the resource in the local area network and the feature code of the resource;
[0057] S103: Other devices in the local area network receive the broadcast and select a download address to download resources according to the broadcast.
[0058] In step S101, the device in the local area network connects to the Internet through the gateway of the local area network, and downloads resources from the Internet. The resources can be software installation packages (including software upgrade packages and initial installation packages), multimedia files, etc. The resources downloaded by the device may carry feature codes such as MD5 values. The above feature codes are used to characterize the uniqueness of the resources, and can also be used to verify the integrity and correctness (i.e., not tampered with) of the downloaded resources. The feature code of the above resource is preferably the MD5 value of the resource, wherein the MD5 value is data obtained by a hash algorithm, which is used to generate a unique fingerprint of the data. The downloaded resource is accompanied by an MD5 value, which can be used to verify the integrity and correctness of the downloaded resource to ensure that the downloaded resource has not been tampered with or damaged. In some embodiments, if the downloaded resource does not have the above feature code, the device can calculate the downloaded resource to obtain the feature code of the resource after downloading the resource.
[0059] In other embodiments, in addition to using the MD5 value, the feature code of the resource may also be any one of the SHA1 value, HMAC value or NTLM value of the resource.
[0060] And in step S101, the device generates a download service for the downloaded resource, which means that after downloading the above resource, the device acts as a server for downloading this resource in the local area network to prepare for the device to provide the download service for the resource, and other devices in the local area network can download the above resource from this device. For example, device A has downloaded resource a from the Internet. At this time, device A prepares the download service for resource a, and other devices in the local area network can download resource a through the download service provided by device A. Among them, the download service generated by device A includes: sharing the storage location of resource a on device A with other devices in the local area network, and other devices can download resource a by accessing the storage location; or, device A can generate a download link for resource a in the local area network, and other devices can download resource a by accessing the download link. Of course, this application includes but is not limited to the above two types of download services in the local area network.
[0061] In step S102, the device that has downloaded the resource (for example, the device A) broadcasts the download information of the resource in the local area network. The download information can be received by all other devices in the local area network in the form of broadcasting, thereby ensuring the coverage of the download information. The download information is used to notify other devices that the resource can be downloaded from the device, and the download information includes the description information of the resource and the download method of the resource. The description information of the resource includes any one or more of the name, size, and feature code of the resource. The download method of the resource can be a download address, a storage address of the resource, etc. In step S102, the download information can also include the unique code of the device, and the unique code includes the MAC address or UUID of the device. Taking device A as an example, the download information broadcast by device A can include the MAC address of device A, the download address, and the MD5 value of the resource. Of course, the download information in this application does not necessarily include the above content. In some embodiments, the download information can also only include the MAC address of the device and the MD5 value of the resource. Other devices in the local area network can download the resource according to the MAC address of the device.
[0062] In step S102, the devices in the local area network can use UDP broadcast to broadcast the above download information, or broadcast the download information through a publish / subscribe mechanism based on a specific protocol. Of course, the present application is not limited to the above two broadcast methods.
[0063] In step S103, when other devices in the local area network receive the download information, they can know whether it is the resource they need to download through the resource description information. If it is the resource they need to download, they can download this resource through the download information, so there is no need to connect to the Internet to repeatedly download the same resource.
[0064] In some embodiments, when other devices in the local area network download the required resources from the local area network, they can also generate resource download services in the same way and broadcast resource download information in the local area network. The download information includes the download address provided by the device (e.g., device B), so that there are more download information broadcasts in the local area network, so that devices in the local area network that have not downloaded the resource can download the resource through any download information in the broadcast.
[0065] In this embodiment, the local area network also controls the broadcast volume of the same resource. When more than two devices in the local area network are broadcasting download information at the same time (that is, it is a download server and provides download services to other devices), other devices that have completed resource downloading will not broadcast.
[0066] like Figure 2 As shown, in other embodiments, after the device in the local area network receives the download information and selects a download address to download resources according to the download information, the steps further include:
[0067] S201, the device that has downloaded the resource from the download address generates a download service for the resource, and updates the download address corresponding to the generated download service to the download information, so that the content of the download information includes more than two download addresses;
[0068] S202: Relay the updated download information in the local area network in the form of broadcasting.
[0069] In this embodiment, when a device in the local area network downloads the required resources from the local area network, it does not broadcast the download information in the same way as in the previous embodiment, so that there are multiple download information of the same resource in the local area network, but updates the received original download information, adds the new download address to the original download information, and obtains the updated download information, so that the updated download information contains more than two download addresses provided by the download services generated by more than two different devices. Then, the updated download information is broadcasted in the local area network. The download address can be the IP address of the device, or the download address can also be a download link.
[0070] For example, in the previous example, device A downloads resource a from the Internet, generates a resource a download service in the local area network, and broadcasts the download information of resource a, such as Figure 3 As shown, the download information includes download address 1. In this embodiment, after device B downloads resource a from the download information, it also generates a download service for resource a, and updates the download address 2 provided by device B to the download information generated by device A, as shown in FIG. Figure 4As shown, the updated download information contains both download address 1 and download address 2. Then the updated download information is rebroadcasted. Other devices in the local area network can download resource a from any one of download address 1 and download address 2. Therefore, in this embodiment, multiple resource download information and download addresses generated by each device can be integrated into one broadcast, so that the devices in the local area network can select and download.
[0071] In one embodiment, the above embodiment is supplemented, that is, a step is added on the basis of the above embodiment: determining whether the device in the local area network has downloaded the resource, and if so, not receiving the updated broadcast.
[0072] For example, it is assumed that device A and device B have downloaded resource a. After downloading resource a, device A and device B perform corresponding settings to filter out download information about resource a.
[0073] In one embodiment, the download service in the above-mentioned local area network management method includes the number of devices currently connected to the corresponding download address or the number of devices currently available for connection;
[0074] Determine whether the number of devices currently connected to the download address is full or the number of devices available for connection is zero. If so, suspend the download service; when the number of devices currently connected to the download address does not reach a threshold or there are remaining devices available for connection, reopen the download service.
[0075] The step of selecting a download address according to the broadcast to download resources includes:
[0076] The download address with the least number of currently connected devices or the largest number of devices available for connection among the download addresses is selected for resource downloading.
[0077] like Figure 4As shown, in the download information, in addition to displaying the download address provided by each device, the number of devices currently connected to the download address is also provided, that is, how many devices are currently connected to the download address to download this resource. The speed of downloading in the local area network is related to the performance of the device providing the download service, the bandwidth of the local area network, and the number of connected download devices. The more devices are connected, the slower the download rate may be. Therefore, in this embodiment, by the number of connected devices displayed in the download information, the download address with a faster download rate can be selected for resource download to increase the resource download rate. Alternatively, in some embodiments, a certain download connection amount threshold can be set for each download address, and then the number of devices remaining for connection to each download address is displayed. In principle, the more devices available for connection, the faster the download rate of the download address. For example, the download connection amount threshold of device A can be set to 10. When device A has connected 4 download devices, the number of devices remaining for connection is 6.
[0078] In this embodiment, the number of devices currently connected to the download address or the number of devices currently available for connection is updated in a timely manner. When a device in the local area network connects to the download address, the number of devices currently connected and the number of devices currently available for connection are updated.
[0079] In the above embodiment, the device that has completed the resource download in the local area network will send a download information broadcast: the content of the download information carries the timestamp timeStamp, the MD5 value of the resource, the broadcast type Type, the device IP, and the current number of available connections, where the device IP is the download address. When other devices in the local area network receive this broadcast, they will save the download information and obtain the download address from the download information to download the resource. When the new device completes the download and compares the MD5 value, it will add its own device IP to the previously saved download information to form an IP list. This list is the resource download list, and then broadcast the download information with its own device IP added. The original device that sent the broadcast will no longer send the broadcast after receiving this broadcast. When the number of device connections is full, its own IP will be removed from the broadcast data or when the number of available connections changes, the download information will also be updated externally.
[0080] In the above embodiment, the download information broadcasted by the LAN device includes a timestamp timeStamp, and the time when the download information starts to be broadcasted can be determined according to the order of the timestamps, and the integrity of the download information can be compared according to the number of download addresses included in the download information. In the above step S201, when the download information is being updated, the download information with the timestamp closest to the current time or the most complete download information can be updated according to the timestamp or by comparing the integrity of the download information, and the download address of the device that has completed the resource download is updated to the download information. The updated download information includes all the download addresses, and the device continues to broadcast the updated download information, so the remaining devices can turn off the broadcast. Therefore, only one device in the LAN broadcasts, and the download information broadcast by the device includes all the download addresses.
[0081] In the above embodiment, the device in the local area network downloads resources from the Internet, including:
[0082] The device applies to the local area network to download the resource on the Internet;
[0083] It is determined whether the number of devices currently applying to download resources is greater than a threshold value. If not, the application is allowed; if so, the application exceeding the threshold value is prohibited.
[0084] Since in the above embodiment, the devices in the local area network can download the required resources from the download service provided by the device that has downloaded the resources, when there are still many devices applying to download resources from the Internet, that is, the number of the above applications is greater than the threshold, in order to avoid network congestion, a part of the applications can be temporarily suspended so that these devices can turn to the download service provided inside the local area network to download resources. For example, the threshold of the above application can be set to 3. When the local area network server receives 4, 5 or more applications to download resources from the Internet, the local area network server only allows the first 3 application devices to download resources from the Internet, and the download application of the device that applied later is rejected. When these devices that have downloaded resources from the Internet broadcast the download information of the resource in the local area network, the above rejected devices can download the resource from the local area network.
[0085] In one embodiment, the local area network management method further includes the steps of:
[0086] It is determined whether a download event is received within a preset time after broadcasting the download information, in which other devices in the local area network download the download information through the download information. If not, the broadcast and the download service are closed.
[0087] The preset time can be set according to the actual situation such as the number of devices in the local area network and the importance of resources. For example, the preset time can be set to one minute. When the device broadcasts the download information in the local area network for one minute, if no download request is received, the broadcast is closed and the download service is terminated, thereby terminating the download management activity. In this embodiment, by judging whether there is a download event within the preset time, it can be judged whether there is a download demand for the resource, so that unnecessary download services and broadcasts can be terminated in time to save system resources of the local area network and avoid unnecessary broadcast overhead.
[0088] In some embodiments, state management and error handling can also be set in the above-mentioned local area network management method. In state management, each device providing download services needs to maintain the download status and number of connections of the device to ensure the accuracy of the broadcast information. Error handling: Add error handling and retry mechanisms to deal with network problems or device failures.
[0089] like Figure 5 As shown, in one embodiment, a local area network management device 500 is provided, and the local area network management device 500 includes: a first download module 501 and a second download module 502.
[0090] Among them, the first download module 501 is used to download resources from the Internet, generate a download service for the downloaded resources, and send the download information of the resources in the form of broadcast in the local area network. The content of the download information includes the download address of the resources in the local area network and the feature code of the resources.
[0091] The second download module is used to receive the download information and select a download address to download resources according to the download information.
[0092] The description of each feature in the local area network management device 500 of this embodiment follows the description and explanation of each feature in each embodiment of the above local area network management method. In this local area network management device, the local area network device that has downloaded resources from the Internet generates a download service for the resource and broadcasts the download information of the resource in the local area network. Therefore, when other devices in the local area network need to download the resource, they can directly download the resource from the above-mentioned device in the local area network that has downloaded the resource, without downloading it from the Internet again, thereby avoiding network congestion and improving resource download efficiency.
[0093] like Figure 6 As shown, in another embodiment, a computer-readable storage medium 600 is provided, in which a computer program is stored. When the computer program is executed by a processor, the local area network management method described in any one of the above embodiments is executed.
[0094] The computer-readable storage medium may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a ferromagnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory may be a disk memory or a tape memory.
[0095] The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SR AM), synchronous static random access memory (SSR AM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), direct memory bus random access memory (DRRAM). The computer-readable storage medium described in the embodiments of the present invention is intended to include these and any other suitable types of memory.
[0096] In some embodiments, the processor can be implemented by software, hardware, firmware or a combination thereof, and can use circuits, single or multiple application specific integrated circuits (Application Specific Integrated Circuit, ASIC), digital signal processors (Digital Signal Processor, DSP), digital signal processing devices (Digital Signal Processing Device, DSPD), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field Programmable Gate Array, FPGA), central processing units (Central Processing Unit, CPU), controllers, microcontrollers, at least one of microprocessors, so that the processor can execute some or all of the steps in the local area network management method in each embodiment of the present application or any combination of the steps therein.
[0097] Finally, it should be noted that although the above embodiments have been described in the specification and drawings of this application, this does not limit the scope of patent protection of this application. All technical solutions generated by replacing or modifying equivalent structures or equivalent processes based on the essential concept of this application using the contents recorded in the specification and drawings of this application, as well as directly or indirectly implementing the technical solutions of the above embodiments in other related technical fields, are included in the scope of patent protection of this application.
Claims
1. A local area network management method, characterized in that: The following steps are involved: The device in the local area network downloads resources from the Internet and generates a download service for the downloaded resources; Sending download information of the resource in the form of broadcast in the local area network, wherein the content of the download information includes the download address of the resource in the local area network and the feature code of the resource; Other devices in the local area network receive the download information and select a download address to download resources according to the download information.
2. The local area network management method according to claim 1, characterized in that: The device in the local area network receives the download information and selects a download address to download resources according to the download information, and then further includes the steps of: The device that has downloaded the resource from the download address generates a download service for the resource, and updates the download address corresponding to the generated download service to the download information, so that the content of the download information includes more than two download addresses; Updated download information is broadcasted within the local area network.
3. The local area network management method according to claim 2, characterized in that: Also includes the steps: It is determined whether a device in the local area network has downloaded the resource. If so, the device does not receive the updated download information.
4. The local area network management method according to claim 2, characterized in that: The download service includes providing a download address of the resource, and the number of devices currently connected to the download address or the number of devices currently available for connection; Determine whether the number of devices currently connected to the download address is full or whether the number of devices available for connection is zero. If so, suspend the download service.
5. The local area network management method according to claim 2, characterized in that: The download service includes providing a download address for the resource, the number of devices currently connected to the download address or the number of devices currently available for connection; The step of selecting a download address according to the download information to download the resource includes: The download address with the least number of currently connected devices or the largest number of devices available for connection among the download addresses is selected for resource downloading.
6. The local area network management method according to claim 1, characterized in that: The device in the local area network downloads resources from the Internet, including: The device applies to the local area network to download the resource on the Internet; It is determined whether the number of devices currently applying to download resources in the local area network is greater than a threshold value. If not, the application is allowed; if so, the application exceeding the threshold value is prohibited.
7. The local area network management method according to claim 1, characterized in that: Also includes the steps: It is determined whether a download event is received within a preset time after broadcasting the download information, in which other devices in the local area network download the download information through the download information. If not, the broadcast and the download service are closed.
8. The local area network management method according to claim 1, characterized in that: The content of the download information also includes a unique code of the device, and the unique code includes a MAC address or UUID of the device; The resource feature code includes the MD5 value, SHA1 value, HMAC value or NTLM value of the resource.
9. A local area network management device, characterized in that: include: A first download module, used to download resources from the Internet, generate a download service for the downloaded resources, and send the download information of the resources in a broadcast form in the local area network, wherein the content of the download information includes the download address of the resources in the local area network and the feature code of the resources; The second download module is used to receive the download information and select a download address to download resources according to the download information.
10. A computer-readable storage medium having a computer program stored therein, characterized in that: When the computer program is executed by a processor, the local area network management method according to any one of claims 1 to 8 is executed.
Citation Information
Patent Citations
Local area network downloading device and method based on multiple collaborators
CN103856531A
Method and device of downloading audio and video files
CN104202655A
Resource download method and resource download device
CN106686141A
Rapid file transmission method, system and device for intelligent screen of Internet of Things and medium
CN117061500A
Software update file downloading method and device, electronic equipment and readable medium
CN117201481A
Cited By
Interactive software updating method, device and system based on local area network
CN120567676A
