CN112243038B - Downloading method, terminal and computer storage medium - Google Patents

Downloading method, terminal and computer storage medium Download PDF

Info

Publication number
CN112243038B
CN112243038B CN202011205020.4A CN202011205020A CN112243038B CN 112243038 B CN112243038 B CN 112243038B CN 202011205020 A CN202011205020 A CN 202011205020A CN 112243038 B CN112243038 B CN 112243038B
Authority
CN
China
Prior art keywords
terminal
downloading
sub
strategy
sharing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011205020.4A
Other languages
Chinese (zh)
Other versions
CN112243038A (en
Inventor
卢阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011205020.4A priority Critical patent/CN112243038B/en
Publication of CN112243038A publication Critical patent/CN112243038A/en
Application granted granted Critical
Publication of CN112243038B publication Critical patent/CN112243038B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/108Resource delivery mechanisms characterised by resources being split in blocks or fragments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application discloses a downloading method, a terminal and a computer storage medium, wherein the method comprises the following steps: receiving a downloading instruction, and responding to the downloading instruction to acquire a task to be downloaded; splitting the task to be downloaded to obtain a first subtask and a second subtask; transmitting the second subtask to a second terminal; the second terminal is at least one terminal device in the same local area network as the first terminal; determining a first downloading strategy and a first sharing strategy according to a first network mode; executing downloading processing of a first subtask based on a first downloading strategy to obtain a first sub-file, sending the first sub-file to a second terminal based on a first sharing strategy, and receiving a second sub-file corresponding to a second subtask sent by the second terminal; the second sub-file is acquired by the second terminal based on a second downloading strategy and sent based on a second sharing strategy; and generating a target file corresponding to the task to be downloaded according to the first sub-file and the second sub-file.

Description

Downloading method, terminal and computer storage medium
Technical Field
The present invention relates to the field of terminal downloading technologies, and in particular, to a downloading method, a terminal, and a computer storage medium.
Background
With the rapid development of the mobile internet, mobile terminal users can use the mobile network to conveniently download files (such as video cache, electronic book cache, song cache, etc.). Currently, the file downloading mode of the terminal is mainly a traditional downloading mode of a server/client mode, and a peer-to-peer (P2P) downloading mode of file sharing between terminal devices.
Specifically, in the traditional server/client downloading mode, the downloading speed mainly depends on the bandwidth of the client and the speed limiting threshold of the server, and the terminal can further realize the rapid downloading of the file on the basis of meeting the expected downloading requirement only under the conditions that the bandwidth of the client is stable and the speed limiting threshold of the server is higher; on the other hand, although P2P is based on a shared download protocol, it requires that the end user who has historically downloaded the file upload continuously, and if the uploading is few or no one, the file download speed is extremely undesirable.
Therefore, the data downloading mode in the related art generally depends on the bandwidth of the client, and greatly limits the downloading speed. In view of this, how to effectively increase the data downloading speed to achieve high-efficiency downloading is a technical problem to be solved.
Disclosure of Invention
The embodiment of the application provides a downloading method, a terminal and a computer storage medium, which realize multi-terminal collaborative downloading, effectively improve the data downloading speed and further realize high-efficiency downloading of the terminal.
The technical scheme of the embodiment of the application is realized as follows:
in a first aspect, an embodiment of the present application provides a downloading method, applied to a first terminal, where the method includes:
receiving a downloading instruction, and responding to the downloading instruction to acquire a task to be downloaded;
splitting the task to be downloaded to obtain a first subtask and a second subtask;
transmitting the second subtask to a second terminal; the second terminal is at least one terminal device in the same local area network as the first terminal;
acquiring a first network mode, and determining a first downloading strategy and a first sharing strategy according to the first network mode;
executing the downloading process of the first sub-task based on the first downloading strategy to obtain a first sub-file, transmitting the first sub-file to the second terminal based on the first sharing strategy, and simultaneously receiving a second sub-file transmitted by the second terminal; the second sub-file is acquired by the second terminal based on a second downloading strategy and sent based on a second sharing strategy;
And generating a target file corresponding to the task to be downloaded according to the first sub-file and the second sub-file.
In a second aspect, an embodiment of the present application provides a downloading method, applied to a second terminal, where the method includes:
receiving a second subtask sent by the first terminal; the first terminal is a terminal device in the same local area network as the second terminal, and the second subtask is a partial download task in the tasks to be downloaded, which is sent by the first terminal;
determining a second downloading strategy and a second sharing strategy;
executing the downloading process of the second sub-task based on the second downloading strategy to obtain a second sub-file, and sending the second sub-file to the first terminal based on the second sharing strategy; meanwhile, a first sub-file corresponding to a first sub-task sent by the first terminal is received; the first sub-file is acquired by the first terminal based on a first downloading strategy and sent based on a first sharing strategy, and the first sub-task is a downloading task different from the second sub-task in the tasks to be downloaded;
and generating a target file according to the first sub-file and the second sub-file.
In a third aspect, an embodiment of the present application provides a first terminal, where the first terminal includes: a first receiving unit, a first obtaining unit, a first splitting unit, a first transmitting unit, a first determining unit, a first downloading unit, a first sharing unit and a first generating unit,
the first receiving unit is used for receiving a downloading instruction,
the first acquisition unit is used for responding to the downloading instruction and acquiring a task to be downloaded;
the first splitting unit is used for splitting the task to be downloaded to obtain a first subtask and a second subtask;
the first sending unit is used for sending the second subtask to a second terminal; the second terminal is at least one terminal device in the same local area network as the first terminal;
the first acquisition unit is further used for acquiring a first network mode;
the first determining unit is configured to determine a first downloading policy and a first sharing policy according to the first network mode;
the first downloading unit is used for executing the downloading process of the first subtask based on the first downloading strategy to obtain a first subfile;
the first sharing unit is used for sending the first subfile to the second terminal based on the first sharing strategy;
The first receiving unit is further configured to simultaneously receive a second sub-file corresponding to the second sub-task sent by the second terminal; the second sub-file is acquired by the second terminal based on a second downloading strategy and sent based on a second sharing strategy;
the first generating unit is configured to generate, according to the first sub-file and the second sub-file, a target file corresponding to the task to be downloaded.
In a fourth aspect, an embodiment of the present application provides a second terminal, where the second terminal includes: a second receiving unit, a second determining unit, a second downloading unit, a second sharing unit and a second generating unit,
the second receiving unit is used for receiving a second subtask sent by the first terminal; the first terminal is a terminal device in the same local area network as the second terminal, and the second subtask is a partial download task in the tasks to be downloaded, which is sent by the first terminal;
the second determining unit is configured to determine a second downloading policy and a second sharing policy;
the second downloading unit is used for executing the downloading process of the second subtask based on the second downloading strategy to obtain a second sub-file;
The second sharing unit is used for sending the second subfile to the first terminal based on the second sharing policy;
the second receiving unit is further configured to simultaneously receive a first sub-file corresponding to a first sub-task sent by the first terminal; the first sub-file is acquired by the first terminal based on a first downloading strategy and sent based on a first sharing strategy, and the first sub-task is a downloading task different from the second sub-task in the tasks to be downloaded;
the second generating unit is configured to generate a target file according to the first subfile and the second subfile.
In a fifth aspect, embodiments of the present application provide a first terminal, where the first terminal includes a first processor, and a first memory storing instructions executable by the first processor, and when the instructions are executed by the first processor, the downloading method described above is implemented.
In a sixth aspect, embodiments of the present application provide a second terminal, where the second terminal includes a second processor, and a second memory storing instructions executable by the second processor, where the instructions, when executed by the second processor, implement a downloading method as described above.
In a seventh aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon a program that, when executed by a first processor, implements a downloading method as described above.
In an eighth aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon a program that, when executed by a second processor, implements a downloading method as described above.
The embodiment of the application provides a downloading method, a terminal and a computer storage medium. The first terminal receives a downloading instruction, responds to the downloading instruction and acquires a task to be downloaded; splitting the task to be downloaded to obtain a first subtask and a second subtask; transmitting the second subtask to a second terminal; the second terminal is at least one terminal device in the same local area network as the first terminal; acquiring a first network mode, and determining a first downloading strategy and a first sharing strategy according to the first network mode; executing downloading processing of a first subtask based on a first downloading strategy to obtain a first sub-file, sending the first sub-file to a second terminal based on a first sharing strategy, and receiving a second sub-file corresponding to a second subtask sent by the second terminal; the second sub-file is acquired by the second terminal based on a second downloading strategy and sent based on a second sharing strategy; and generating a target file corresponding to the task to be downloaded according to the first sub-file and the second sub-file. That is, in the embodiment of the present application, after the terminal obtains the task to be downloaded according to the downloading instruction, the terminal is not limited to single-ended downloading, but through splitting and distributing the task to be downloaded, other terminals in the same local area network can share the downloading task together, and share the downloading file by using the strong near field communication function of the local area network, so that the dependence on the bandwidth of the client is reduced, and the multi-terminal collaborative downloading is realized; meanwhile, considering the difference of network modes of different terminals, a proper downloading strategy and a proper sharing strategy can be dynamically selected according to the current network mode, so that the collaborative downloading efficiency is higher. The efficient multi-terminal collaborative downloading mechanism provided by the application effectively improves the data downloading speed, and is higher in terminal intelligence.
Drawings
Fig. 1 is a schematic implementation flow diagram of a downloading method according to an embodiment of the present application;
fig. 2 is a second implementation flow chart of the downloading method according to the embodiment of the present application;
fig. 3 is a schematic diagram of an implementation flow of a downloading method according to an embodiment of the present application;
fig. 4 is a schematic implementation flow diagram of a downloading method according to an embodiment of the present application;
fig. 5 is a schematic flow chart of implementing multi-terminal collaborative downloading according to an embodiment of the present application;
fig. 6 is a schematic diagram of an exemplary multi-terminal downloading process according to an embodiment of the present application;
fig. 7 is a schematic diagram of a first component structure of a first terminal according to an embodiment of the present application;
fig. 8 is a second schematic structural diagram of the first terminal according to the embodiment of the present application;
fig. 9 is a schematic diagram of a composition structure of a second terminal according to an embodiment of the present application;
fig. 10 is a schematic diagram of a second component structure of the second terminal according to the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to be limiting. It should be noted that, for convenience of description, only a portion related to the related application is shown in the drawings.
With the rapid development of the mobile internet, mobile terminal users can use the mobile network to conveniently download files (such as video cache, electronic book cache, song cache, etc.). At present, the file downloading mode of the terminal is mainly a traditional downloading mode of a server/client mode, and a P2P downloading mode capable of sharing files among all terminal devices.
In particular, in conventional server/client download approaches, the download speed is primarily dependent on the client bandwidth and the server speed limit threshold. For example, in a real scene, assuming that 5 friends are together, 5 persons want to download a game of about 2G separately, if the download speed is 2M, each person needs to download about 17 minutes. Further, even if one of the 5 persons has downloaded the game, the other 4 persons still take 17 minutes to download the game. Because the bandwidth of the terminal is unstable in the actual downloading process, the actual downloading speed is far lower than the expected 2M downloading speed, that is, the terminal can further realize the rapid downloading of the file on the basis of meeting the expected downloading requirement only under the conditions that the bandwidth of the client is stable and the speed limiting threshold of the server is higher.
On the other hand, the P2P downloading mode further realizes multi-user collaborative downloading by utilizing downloading, uploading and file sharing protocols, and the point-to-point sharing scheme can obtain more downloading source addresses along with the increase of the number of downloading resource people, so that the downloading speed is improved; however, when the number of uploading persons is small, the downloading speed is reduced, and even the downloading is stopped. As can be seen, the P2P download is a collaborative download based on a shared download protocol, but the end user who needs to download files historically continuously performs file upload, and if the uploading is few or unmanned, the file download speed is extremely not ideal.
Therefore, the file downloading method in the related art generally depends on the bandwidth of the client, and greatly limits the speed of file downloading. In view of this, how to effectively increase the file downloading speed to achieve efficient file downloading is a technical problem to be solved.
In order to solve the problems of the existing downloading mechanism, the embodiment of the application provides a downloading method, a terminal and a computer storage medium. Specifically, after obtaining a task to be downloaded according to a downloading instruction, the terminal is not limited to single-ended downloading any more, but other terminals in the same local area network can share the downloading task together through splitting and distributing the task to be downloaded, and download files are shared by utilizing a strong near field communication function of the local area network, so that the dependence on the bandwidth of a client is reduced, and multi-terminal collaborative downloading is realized; meanwhile, considering the difference of network modes of different terminals, a proper downloading strategy and a proper sharing strategy can be dynamically selected according to the current network mode, so that the collaborative downloading efficiency is higher. The efficient multi-terminal collaborative downloading mechanism provided by the application effectively improves the data downloading speed, and is higher in terminal intelligence.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
An embodiment of the present application provides a downloading method, fig. 1 is a schematic implementation flow diagram of the downloading method provided in the embodiment of the present application, as shown in fig. 1, where in the embodiment of the present application, the method for downloading by a first terminal may include the following steps:
step 101, receiving a downloading instruction, and responding to the downloading instruction to acquire a task to be downloaded.
In the embodiment of the application, the terminal may receive the downloading instruction, and further obtain the corresponding task to be downloaded in response to the downloading instruction.
It should be understood that in embodiments of the present application, the first terminal includes, but is not limited to, a tablet computer, a mobile phone, an electronic reader, a personal computer (Personal Computer, PC), a notebook computer, a vehicle-mounted device, a wearable device, etc.; specifically, the first terminal is terminal equipment for splitting and distributing downloading tasks and is mainly responsible for coordinated distribution of the downloading tasks.
Optionally, in an embodiment of the present application, the first terminal may receive the download instruction based on a download operation of a user, or may receive the download instruction based on a preset trigger mechanism. For example, when the user clicks a video cache button, the terminal may receive a download instruction corresponding to the video based on the clicking operation of the user; or the terminal automatically updates the application when being connected with the WiFi, and once the terminal is currently under the WiFi network, the terminal automatically receives a downloading instruction to download and update the application installation package.
Specifically, the task to be downloaded includes information such as the size, name, type, version, etc. of the file to be downloaded; optionally, the tasks to be downloaded include, but are not limited to, documents, videos, games, and applications such as electronic novels, movies, principals glowing and WeChat, payoff treasures, etc.
For example, assuming that the user wants to download the game by the queen currently, after the user clicks the download button corresponding to the game, the first terminal receives the download instruction based on the clicking operation of the user, and the first terminal obtains the task to be downloaded with the size of 2G, names the queen and types the game, and the version is 2020 the latest version.
Further, in the embodiment of the present application, fig. 2 is a schematic diagram of a second implementation flow of the downloading method provided in the embodiment of the present application, as shown in fig. 2, after the first terminal obtains the task to be downloaded in response to the downloading instruction, that is, after step 101, and performs splitting processing on the task to be downloaded, to obtain a first subtask and a second subtask, that is, before step 102, the method for downloading by the first terminal may further include the following steps:
step 107, detecting the current network environment.
Step 108, if the current network environment does not meet the preset collaborative download condition, starting a mobile wireless Access Point (AP) hotspot.
And step 109, constructing local area network connection with the second terminal based on the mobile AP hot spot so that the first terminal and the second terminal are in the same local area network.
It may be understood that the collaborative download refers to sharing a download task and sharing a download file with the first terminal by other terminal devices, and in the embodiment of the present application, the first terminal may implement the multi-terminal collaborative download by using a strong near field communication function of a specific network environment.
Alternatively, the specific network environment may be a personal area network (Personal Area Network, PAN); may be a WiFi local area network; or may also be bluetooth communication or Zigbee communication, etc., and preferably, the specific network environment is a local area network environment.
In the embodiment of the present application, the preset collaborative download condition refers to the specific network environment capable of implementing the task to be downloaded and the shared download file commonly assigned by the multiple terminals.
Specifically, in the embodiment of the present application, before data downloading is performed, the first terminal may detect the current network environment, and determine whether the current network environment meets a multi-terminal collaborative download condition, that is, determine whether there is a second terminal that can share a download task and share a download file together.
Specifically, if the current network environment is a local area network and other terminal devices exist in the local area network, the first terminal determines that the current network environment meets the multi-terminal collaborative download condition, namely, a second terminal capable of sharing the download task and sharing the download file is present; otherwise, the first terminal determines that the current network environment does not meet the multi-terminal collaborative download condition.
It can be appreciated that when there is no second terminal that can share the download task together with sharing the download file, the first terminal may actively perform creation of the local area network in order to further implement the collaborative download.
Optionally, the first terminal may start a mobile AP (WiFi hotspot), and actively send a network connection request and network connection information corresponding to the mobile AP to the second terminal, where the network connection information includes a service set identifier (Service Set Identifier, SSID) and a password, so as to construct a local area network connection with the second terminal when receiving a connection response returned by the second terminal.
Optionally, the first terminal may turn on a mobile AP (WiFi hotspot), when receiving a network connection request sent by the second terminal, send, in response to the network connection request, network connection information corresponding to the mobile AP to the second terminal, where the network connection information includes a service set identifier (Service Set Identifier, SSID) and a password, and further, when receiving a connection response returned by the second terminal, construct a local area network connection with the second terminal.
In summary, after the first terminal and the second terminal build a successful lan, the first terminal and the second terminal are located in a lan and can communicate with each other.
It should be noted that, in the embodiment of the present application, the steps 107 to 109 may be located before the step 101, may be located after the step 101, or may be performed synchronously with the step 101; the present application is not particularly limited thereto.
Optionally, in the embodiment of the present application, the second terminal that implements cooperative downloading with the first terminal may be one or multiple second terminals. It should be understood that the more second terminals, i.e. the more cooperative downloading devices, the fewer download subtasks the first terminal allocates, the faster the download speed.
Further, in the embodiment of the present application, after the first terminal acquires the task to be downloaded and is in the same lan as the second terminal, the splitting process of the task to be downloaded may be further performed.
And 102, splitting the task to be downloaded to obtain a first subtask and a second subtask.
In the embodiment of the application, after determining the task to be downloaded based on the received downloading instruction and being in the same local area network with the second terminal, the first terminal can split the task to be downloaded first, so as to obtain a first subtask and a second subtask.
It should be noted that, based on the step 107 to the step 109, before the step 102, the first terminal may actively construct a lan environment that satisfies the collaborative download condition, so that the second terminal may be used as a collaborative download device, thereby utilizing the near field communication function of the lan, and the second terminal may share the download task and share the download file with the first terminal.
It may be understood that, in the embodiment of the present application, after the first terminal establishes a local area network connection with the second terminal, the first terminal may further request, based on the address and the port corresponding to the second terminal, a download parameter corresponding to the second terminal, including a quantity parameter and a type parameter, to the second terminal, determine a download proportion according to the download parameter corresponding to the second terminal, and further perform task splitting processing according to the download proportion, thereby obtaining a first subtask and a second subtask.
Specifically, the first terminal may first send a request for obtaining the download parameter to the second terminal based on the IP address and the port corresponding to the second terminal, and then receive response information returned by the second terminal for the request for the download parameter; the response information carries the quantity parameter and the type parameter corresponding to the second terminal.
Optionally, the download parameter may be at least one of a quantity parameter and a type parameter corresponding to the second terminal.
Further, in this embodiment of the present application, after determining, according to the download parameter corresponding to the second terminal, the download proportion corresponding to the download task, and performing task splitting processing according to the download proportion, the first terminal obtains a task splitting that needs to be performed by the first terminal, that is, a first subtask, and a task splitting that is cooperatively downloaded by at least one second terminal, that is, a second subtask.
It should be noted that, in the embodiment of the present application, the second subtask is a partial download task borne by the cooperative download device, that is, the second terminal, and the second subtask may be at least one. Specifically, when there is only one second terminal, the second subtask is a download task corresponding to the one second terminal; when the number of the second terminals is multiple, the number of the second subtasks is also multiple, and each second subtask corresponds to one second terminal. It should be understood that the tasks of the second subtasks respectively undertaken at the plurality of second terminals are compared to the second subtasks undertaken at one second terminal; the amount is smaller.
Alternatively, the splitting process of the task to be downloaded may be an average splitting process or an uneven splitting process.
It can be understood that if the first terminal and the second terminal are the same device type and have the same performance (download bandwidth), that is, the first terminal and the second terminal have the same type parameter, when the second terminal has only one, the first terminal equally divides the task to be downloaded to obtain a first subtask and a second subtask which are equal, wherein the first subtask corresponds to the first terminal, the second subtask corresponds to the second terminal, and the second subtask is the download task born by the second terminal.
When a plurality of second terminals exist, the first terminal performs equally dividing processing of the downloading task according to the number of the second terminals which share the task to be downloaded, namely the number parameter, and at the moment, a first subtask and a plurality of second subtasks which are equal are obtained, at the moment, the first subtask corresponds to the first terminal, the plurality of second subtasks correspond to the plurality of second terminals, and each second subtask corresponds to each second terminal one by one.
For example, the first terminal is a mobile phone 1, the second terminal includes a mobile phone 2, a mobile phone 3 and a mobile phone 4, and the download bandwidth is 2M, so when the owner downloading 2G glows the game, the mobile phone 1 determines that the total number of download devices is 4, and the download proportion occupied by each mobile phone is 25%, that is, each mobile phone of the mobile phone 1, the mobile phone 2, the mobile phone 3 and the mobile phone 4 downloads 0.5G.
It will be appreciated that if the first terminal and the second terminal are not of the same device class and do not have the same performance (download bandwidth), i.e. the first terminal and the second terminal do not have the same type parameter, the first terminal needs to determine the download proportion jointly in combination with the quantity parameter and the type parameter, i.e. determine the respective download proportion intelligently according to the number of terminals, the device class and the terminal performance of the commonly assigned tasks to be downloaded, so as to perform the non-uniform division processing of the tasks to be downloaded.
Specifically, when the second terminal has only one, the first terminal splits the task to be downloaded to obtain a first subtask and a second subtask which are unequal; when the second terminals are multiple, the first terminal needs to split the downloading task according to the number, namely the number parameter and the type parameter of the second terminals commonly assigned with the tasks to be downloaded, so as to obtain a first subtask and a plurality of second subtasks which are possibly different from each other.
For example, the first terminal is a mobile phone 1, the second terminal includes a mobile phone 2, a computer and an ipad, and the download bandwidths corresponding to the mobile phone, the computer and the ipad are different (computer > ipad > mobile phone), so when the owner downloading 2G glows the game, the mobile phone 1 determines that the total number of download devices is 4, the download proportion of each of the mobile phone 1 and the mobile phone 2 is 15%, the download proportion of the computer is 40%, and the download proportion of the ipad is 30%.
It can be understood that, since the first subtask and the second subtask are part of the tasks to be downloaded, after splitting the tasks to be downloaded, each subtask includes a corresponding part of the content addresses, for example, the tasks to be downloaded are content information from address 1 to address 10, the first subtask may be content information from address 1 to address 3, and the second subtask may be content information from address 4 to address 10.
Further, in the embodiment of the present application, after splitting the task to be downloaded to obtain the first subtask and the second subtask, the first terminal may further perform subtask allocation.
Step 103, sending the second subtask to a second terminal; the second terminal is at least one terminal device in the same local area network as the first terminal.
In this embodiment of the present application, after splitting a task to be downloaded to obtain a first subtask and a second subtask, the first terminal may send the second subtask to the second terminal.
Specifically, in the embodiment of the present application, the first subtask is a preset partial task that the first terminal needs to perform the downloading process, the second subtask is a residual partial task that needs to be jointly born by the second terminal, and the first terminal may allocate the downloading task that needs to be jointly born by the second terminal, that is, the second downloading task to the second terminal.
Specifically, if the second terminal is one, the first terminal only needs to send all remaining sub-tasks except the first sub-task in the task to be downloaded to the one second terminal.
Specifically, if there are multiple second terminals, the first terminal may send each second sub-task to its corresponding second terminal according to the correspondence between the multiple second sub-tasks and the multiple second terminals.
Further, in the embodiment of the present application, after the first terminal performs the splitting process to be downloaded and sends the obtained second subtask to the second terminal in the same lan, the first terminal may further continue to determine the downloading policy and the sharing policy to further perform task downloading and file sharing.
Step 104, acquiring a first network mode, and determining a first downloading strategy and a first sharing strategy according to the first network mode.
In the embodiment of the present application, after splitting and allocating a task to be downloaded, the first terminal may first acquire a first network mode, and then determine a first downloading policy and a first sharing policy based on the network mode.
It can be understood that, because the first terminal and the second terminal are configured based on the WiFi network, the first terminal and the second terminal support the WiFi network communication all the time, that is, the first terminal can download data based on the WiFi network, and even use the WiFi network to share data at the same time.
Specifically, in the embodiment of the present application, in order to select a better data downloading policy and a data sharing policy, to implement multi-terminal collaborative downloading with higher efficiency, a first terminal may acquire a current first network mode (104 a), and then may dynamically select an appropriate downloading policy and a sharing policy according to the current network mode.
It should be noted that, in the embodiment of the present application, the first network mode is used to characterize the network downloading conditions currently supported by the terminal, including the mobile data network conditions and the WiFi network conditions.
Specifically, the first network mode includes a mobile data mode, a dual network mode, a single WiFi link mode, and a dual WiFi link mode.
Optionally, when the first network mode is a mobile data mode, it is characterized that the first terminal supports mobile data traffic downloading but does not support a dual WiFi link.
Optionally, when the first network mode is the dual network mode, the first terminal is characterized as supporting both mobile data traffic downloading and dual WiFi links.
Optionally, when the first network mode is a single WiFi link mode, that is, the first terminal is characterized as supporting neither data traffic downloading nor dual WiFi links.
Optionally, when the first network mode is a dual WiFi link mode, it is characterized that the first terminal does not support data traffic downloading but supports a dual WiFi link.
Further, fig. 3 is a schematic implementation flow chart III of a downloading method provided in an embodiment of the present application, and as shown in fig. 3, a method for determining, by a terminal, a first downloading policy and a first sharing policy according to a first network mode specifically includes the following steps:
in step 104b1, when the first network mode is the mobile data mode, the first downloading policy is determined to be mobile data downloading, and the first sharing policy is determined to be synchronous sharing.
Step 104b2, when the first network mode is the dual network mode, determining the first downloading policy as dual network downloading, and determining the first sharing policy as synchronous sharing.
Step 104b3, when the first network mode is the single WiFi link mode, determining the first downloading policy as WiFi downloading, and determining the first sharing policy as asynchronous sharing.
Step 104b4, when the first network mode is the dual WiFi link mode, determining the first downloading policy as WiFi downloading, and determining the first sharing policy as synchronous sharing.
Optionally, in an embodiment of the present application, the first terminal may pre-establish a correspondence between the network mode and the download policy and a sharing policy, and further after the first terminal obtains the current network mode, the first terminal may select the download policy and the sharing policy corresponding to the current network mode based on the current network mode, the preset correspondence between the network mode and the download policy and the sharing policy.
Specifically, in the embodiment of the present application, if the current network mode characterizes that mobile data traffic downloading is supported but dual WiFi links are not supported, the first terminal may use the mobile data traffic to perform data downloading, and use only one WiFi link to perform local area network communication; and because the mobile data network for downloading data and the WiFi network for sharing data by using local area network communication are not interfered with each other, the first terminal can synchronously share data while downloading data.
Specifically, in the embodiment of the present application, if the current network mode representation supports both mobile data traffic downloading and dual WiFi links, in order to save traffic consumption of the terminal, the first terminal may form a service level agreement (Service Level Agreement, SLA) by using the current mobile data network and one WiFi link, that is, determine a downloading agreement, and perform data downloading together by using traffic and WiFi, and simultaneously, use another WiFi link to perform local area network communication; and the downloading and sharing are not interfered mutually, and the first terminal can synchronously share the data while downloading the data.
Specifically, in the embodiment of the present application, if the current network mode representation does not support data traffic downloading or dual WiFi links, at this time, the first terminal can only use only one WiFi link to perform data downloading and data sharing, so as to avoid data omission, the terminal can only perform data sharing after the data downloading is completed, i.e. after the first sub-file corresponding to the first sub-task is obtained.
Specifically, in the embodiment of the present application, if the current network mode characterizes that data traffic downloading is not supported but dual WiFi links are supported, at this time, the first terminal does not need to use data traffic, directly uses one WiFi link to download data, and uses the other WiFi link to perform local area network communication; and the two paths of WiFi links are not mutually interfered, and the first terminal can synchronously share data while downloading the data.
Further, in the embodiment of the present application, the first terminal may further perform determination of the second terminal downloading policy and the sharing policy. Specifically, the first terminal may send a network mode acquisition request to the second terminal to receive response information carrying the network mode of the second terminal returned by the second terminal, so that the first terminal may perform the determination of the second downloading policy and the second sharing policy according to the second network mode by referring to the methods from step 104b1 to step 104b 4. Further, the first terminal may send the determined second downloading policy and the determined second sharing policy to the second terminal, so that the second terminal completes the downloading process and the sharing process of the second downloading task.
Further, in the embodiment of the present application, after the first terminal obtains the first network mode and determines the first downloading policy and the second downloading policy based on the first network mode, the downloading process and the sharing process of the first subtask may be further implemented based on the policies.
Step 105, executing the downloading process of the first subtask based on the first downloading strategy to obtain a first sub-file, transmitting the first sub-file to the second terminal based on the first sharing strategy, and simultaneously receiving a second sub-file corresponding to the second sub-task transmitted by the second terminal; the second sub-file is acquired by the second terminal based on a second downloading strategy and sent based on a second sharing strategy.
In the embodiment of the application, after acquiring the first network mode and determining the first downloading policy and the second downloading policy based on the first network mode, the first terminal may further execute the downloading process of the first subtask based on the downloading policy to obtain the first subfile, and then send the first subfile to the second terminal according to the first sharing policy; meanwhile, the first terminal may receive a second sub-file corresponding to the second sub-task sent by the second terminal.
It should be noted that, in the embodiment of the present application, the first terminal needs to download a first sub-file corresponding to the first sub-task from a preset server; the preset server is a server for storing the content information of the file to be downloaded.
Specifically, the first terminal may initiate a first download request to a preset server based on a first download policy; the downloading request carries a first sub-task, then a downloading response to the first downloading request returned by the server is received, and the response information carries a first sub-file.
Further, the first terminal may share the first sub-file to the second terminal based on the first sharing policy, which may be synchronous sharing, that is, sharing while downloading, or asynchronous sharing, that is, sharing after obtaining the complete first sub-file.
Meanwhile, the terminal can also receive a second sub-file corresponding to a second sub-task sent by the second terminal while downloading the first sub-file from the server; the second sub-file is obtained by downloading the sub-task by the second terminal based on a second downloading strategy corresponding to the second sub-file and is sent based on a second sharing strategy.
It can be seen that the first terminal does not need to download all files from the server by itself, only needs to download part of the subfiles corresponding to the download tasks from the server after the coordinated allocation of the tasks to be downloaded is performed, and obtains the rest of subfiles directly through near field communication after the second terminal downloads other subfiles corresponding to other download tasks in the same local area network. It can be understood that, because the bandwidth of near field communication is infinite, no actual time overhead is generated, that is, the first terminal only needs to use the same time as the downloading of the first sub-file, so that the whole file can be obtained, and the downloading speed is greatly improved.
Further, in the embodiment of the present application, since the first terminal may obtain the file summary information corresponding to each sub-task segment based on a preset algorithm (such as md5 algorithm) when the first terminal performs the allocation of the sub-tasks, after the first terminal obtains the first sub-file and the second sub-file, the first terminal may perform verification processing based on the file summary information corresponding to each sub-file segment, so as to determine that the obtained sub-file is a correct sub-file. If the verification result is that the subfiles are wrong, the first terminal can download the first subfiles from the preset server again.
Further, in the embodiment of the present application, after the first terminal obtains the first subfile and the second subfile, the first terminal may further generate a complete file based on each subfile.
And 106, generating a target file corresponding to the task to be downloaded according to the first sub-file and the second sub-file.
It should be noted that, in the embodiment of the present application, the target file refers to a complete download file corresponding to a task to be downloaded. For example, a complete 2G king glows game.
Specifically, in the embodiment of the present application, after obtaining the first sub-file and the second sub-file, the first terminal may combine the sub-files based on a preset file aggregation algorithm, so as to obtain a complete file corresponding to the task to be downloaded.
Further, in the embodiment of the present application, after the first terminal generates the complete file, the first terminal may perform digest calculation on the complete file to perform verification processing on the complete file.
The embodiment of the application provides a downloading method. The first terminal receives a downloading instruction, responds to the downloading instruction and acquires a task to be downloaded; splitting the task to be downloaded to obtain a first subtask and a second subtask; transmitting the second subtask to a second terminal; the second terminal is at least one terminal device in the same local area network as the first terminal; acquiring a first network mode, and determining a first downloading strategy and a first sharing strategy according to the first network mode; executing downloading processing of a first subtask based on a first downloading strategy to obtain a first sub-file, sending the first sub-file to a second terminal based on a first sharing strategy, and receiving a second sub-file corresponding to a second subtask sent by the second terminal; the second sub-file is acquired by the second terminal based on a second downloading strategy and sent based on a second sharing strategy; and generating a target file corresponding to the task to be downloaded according to the first sub-file and the second sub-file. That is, in the embodiment of the present application, after the first terminal obtains the task to be downloaded according to the downloading instruction, the first terminal is not limited to single-ended downloading, but through splitting and distributing the task to be downloaded, other terminals in the same local area network can share the downloading task together, and share the downloading file by using the powerful near field communication function of the local area network, so that the dependence on the bandwidth of the client is reduced, and the multi-terminal collaborative downloading is realized; meanwhile, considering the difference of network modes of different terminals, a proper downloading strategy and a proper sharing strategy can be dynamically selected according to the current network mode, so that the collaborative downloading efficiency is higher. The efficient multi-terminal collaborative downloading mechanism provided by the application effectively improves the data downloading speed, and is higher in terminal intelligence.
Based on the foregoing embodiments, in still another embodiment of the present application, fig. 4 is a schematic diagram showing a implementation flow of the downloading method set forth in the present application, as shown in fig. 4, where in an embodiment of the present application, the method for downloading by the second terminal may include:
step 201, receiving a second subtask sent by a first terminal; the first terminal is a terminal device in the same local area network as the second terminal, and the second subtask is a partial download task in the tasks to be downloaded, which is sent by the first terminal.
In the embodiment of the present application, based on step 101, it can be known that the first terminal and the second terminal are different terminal devices in the same lan; alternatively, the local area network may be constructed by the first terminal actively starting the AP hotspot.
It should be noted that, in the embodiment of the present application, the second terminal may be the same terminal device as the task to be downloaded by the first terminal. For example, the second terminal is a terminal device that needs to download a 2G master blaze game with the first terminal.
It should be understood that if the second terminal and the first terminal need to cooperatively download to complete the task to be downloaded, the second terminal needs to be in the same lan as the first terminal, and then the second terminal can only receive and obtain the download task allocated by the first terminal.
Specifically, in the embodiment of the present application, before receiving the partial download task sent by the first terminal, the second terminal may first detect the current network environment and determine whether the current multi-terminal collaborative download condition is satisfied, that is, whether the second terminal and the first terminal are in the same local area network.
It can be understood that when it is determined that the preset cooperative downloading condition is not satisfied, in order to further implement cooperative downloading, the second terminal may obtain, by using the second terminal, network link information including an SSID and a password when the first terminal is used as an AP, and then access the mobile AP according to the SSID and the password, and successfully construct a local area network with the first terminal.
It should be understood that the second terminal is a terminal device that receives the download task allocated by the first terminal, and is mainly responsible for sharing the download task. Including but not limited to tablet computers, cell phones, electronic readers, personal computers (Personal Computer, PCs), notebook computers, vehicle-mounted devices, wearable devices, and the like.
Specifically, in the embodiment of the present application, the second terminal may receive the second subtask from the first terminal after the first terminal performs the splitting process and the task allocation of the task to be downloaded. I.e. the part of the download task that the second terminal is required to commonly assume.
Optionally, if the second terminal is the only terminal device that needs to share the download task with the first terminal, the second sub-task is the remaining all download tasks except the first sub-task in the tasks to be downloaded.
Optionally, if there are multiple second terminals sharing the download task with the first terminal, there may be other second terminals besides the second terminal, where the second task received by the second terminal is a partial download task of the remaining full download tasks except the first subtask, that is, one of the multiple second subtasks.
Further, in the embodiment of the present application, after receiving the second subtask sent by the first terminal, i.e. after step 201, and before determining the second downloading policy and the second sharing policy, i.e. before step 202, the second terminal may further acquire the current network mode corresponding to the second terminal, i.e. the second network mode. The specific type of the second network mode may refer to step 104, which is not described herein.
Further, the second terminal may also send the second network mode to the first terminal to determine the download policy and the sharing policy through the first terminal.
Step 202, determining a second downloading policy and a second sharing policy.
In an embodiment of the present application, after receiving the second subtask sent by the first terminal, the second terminal may further determine a second download policy and a second sharing policy for the second subtask.
Optionally, in an embodiment of the present application, the second terminal may actively determine the second downloading policy, or may passively determine the second downloading policy.
Specifically, if the method is active, the second terminal may directly determine the corresponding second downloading policy and the second sharing policy according to the acquired second network mode. Here, the specific method for determining the second downloading policy and the second sharing policy may refer to steps 104b1 to 104b4, which are not described herein.
Specifically, if the second terminal is passive, the second terminal may send policy request information to the first terminal, where the policy request information carries a second network mode, and after the first terminal receives the second network mode and determines a second downloading policy and a second sharing policy corresponding to the second network mode, the second terminal may receive response information, which carries the second downloading policy and the sharing policy, of the first terminal for the policy request.
Further, in the embodiment of the present application, after determining the first downloading policy and the second downloading policy, the second terminal may further implement downloading of the task and sharing of the file based on the policies.
Step 203, executing the download process of the second sub-task based on the second download policy, obtaining a second sub-file, and sending the second sub-file to the first terminal based on the second sharing policy; meanwhile, a first sub-file corresponding to a first sub-task sent by a first terminal is received; the first sub-file is acquired by the first terminal based on a first downloading strategy and sent based on a first sharing strategy, and the first sub-task is a downloading task which is different from the second sub-task in the tasks to be downloaded.
And 204, generating a target file according to the first subfile and the second subfile.
In the embodiment of the application, after determining the first downloading policy and the second downloading policy, the second terminal may further execute the downloading process of the second sub-task based on the downloading policy, and send the second sub-file obtained by downloading to the first terminal based on the second sharing policy; meanwhile, the second terminal can receive the first sub-file corresponding to the first sub-task sent by the first terminal, and further generate a complete file based on the first sub-file and the second sub-file.
It should be noted that, in the embodiment of the present application, the second terminal needs to download a second sub-file corresponding to the second sub-task from the preset server; the preset server and the server of the first terminal for downloading the first subfile are the same server. That is, the servers storing the content information of the files to be downloaded are the same, except that the download terminals are different, and the downloaded content pieces are different.
Specifically, the second terminal may initiate a second download request to the preset server based on the second download policy, and receive a download response to the second download request returned by the server, where the response information carries the second subfiles.
Further, the second terminal may share the second sub-file to the first terminal based on the second sharing policy, and may download and share the second sub-file at the same time, or may share the second sub-file after obtaining the complete second sub-file.
Meanwhile, the terminal can also receive the first sub-file corresponding to the first sub-task sent by the first terminal while downloading the second sub-file from the server.
It should be noted that, in the embodiment of the present application, if the second terminal is the only terminal device that needs to share the downloading task with the first terminal, the second sub-file is all the sub-files except the remaining sub-files in the first sub-file in the complete file.
Furthermore, the second terminal can combine the second sub-file and the first sub-file downloaded from the server by itself only by receiving the first sub-file sent by the first terminal, and obtain the complete file through file merging processing.
Optionally, if there are multiple second terminals sharing the downloading task together with the first terminal, the second terminal needs to receive other second subfiles sent by other second terminals, and meanwhile, share the current second subfiles to other second terminals based on a second sharing policy, so as to combine the current second subfiles downloaded from the server, the first subfiles received from the first terminal, and other second subfiles received from other second terminals, and obtain the complete file through file merging processing.
When the multiple terminals cooperatively download, the second terminal in the same local area network as the first terminal only needs to passively receive the sub-task segment sent by the first terminal, download the sub-file corresponding to the sub-task segment from the server, and obtain the rest of sub-files directly through near field communication after the first terminal and even other second terminals in the same local area network download other sub-files. It can be understood that, because the bandwidth of near field communication is infinite, no actual time overhead is generated, that is, the second terminal only needs to use the same time as the downloading of the current sub-file to acquire the whole file, so that the downloading speed is greatly improved.
The embodiment of the application provides a downloading method. The second terminal can receive a second subtask sent by the first terminal; the first terminal is a terminal device in the same local area network as the second terminal, and the second subtask is a partial download task in the tasks to be downloaded, which is sent by the first terminal; determining a second downloading strategy and a second sharing strategy; executing the downloading process of the second sub-task based on the second downloading strategy to obtain a second sub-file, and sending the second sub-file to the first terminal based on the second sharing strategy; meanwhile, a first sub-file corresponding to a first sub-task sent by a first terminal is received; the first sub-file is acquired by the first terminal based on a first downloading strategy and sent based on a first sharing strategy, and the first sub-task is a downloading task different from the second sub-task in the tasks to be downloaded; and generating a target file according to the first sub-file and the second sub-file. That is, in the embodiment of the application, the terminal is not limited to single-ended downloading, but other terminals in the same local area network can share the downloading task together through splitting and distributing the task to be downloaded, and the downloading file is shared by utilizing the strong near field communication function of the local area network, so that the dependence on the bandwidth of the client is reduced, and the multi-terminal collaborative downloading is realized; meanwhile, considering the difference of network modes of different terminals, a proper downloading strategy and a proper sharing strategy can be dynamically selected according to the current network mode, so that the collaborative downloading efficiency is higher. The efficient multi-terminal collaborative downloading mechanism provided by the application effectively improves the data downloading speed, and is higher in terminal intelligence.
Based on the above embodiment, in still another embodiment of the present application, fig. 5 is a schematic flow chart of implementing multi-terminal collaborative downloading, as shown in fig. 5, and assuming that the terminal 1, the terminal 2 and the terminal 3 need to download the same data and that the terminal 1, the terminal 2 and the terminal 3 are not in the same lan previously, the method for downloading by the terminal 1, the terminal 2 and the terminal 3 may include the following steps:
step 301, the terminal 1 starts a mobile AP hotspot.
In step 302a, the terminal 1 sends network connection information corresponding to the mobile AP to the terminal 2.
Step 302b, the terminal 1 sends network connection information corresponding to the mobile AP to the terminal 3.
In step 303a, the terminal 1 receives the connection response returned by the terminal 2, and constructs a local area network connection with the terminal 2.
In step 303b, the terminal 1 receives the connection response returned by the terminal 3, and constructs a local area network connection with the terminal 3.
It should be understood that the terminal serving as the mobile AP may be any one of the terminal 1, the terminal 2 or the terminal 3, and only the cooperative downloading device is required to be finally implemented to be in the same local area network.
Step 304, the terminal 1 receives the download instruction, and obtains the task to be downloaded in response to the download instruction.
In step 305, the terminal 1 splits the task to be downloaded to obtain a subtask 1, a subtask 2 and a subtask 3.
Step 306a, terminal 1 sends subtask 2 to terminal 2.
Step 306b, terminal 1 sends subtask 3 to terminal 3.
It should be understood that the terminal that builds the local area network by turning on the mobile AP may be the same as or different from the terminal that receives the download instruction; for example, after the terminal 1 successfully builds a local area network with the terminals 2 and 3 by starting the mobile AP hotspot, the terminal 1 may continue to receive the download instruction based on the designated operation of the user on the download operation interface; the terminal 2 may receive the download instruction based on the user's designated operation after successfully constructing the lan with the terminals 1 and 3.
Correspondingly, the terminal for carrying out task splitting processing is a terminal for receiving a downloading instruction; if the terminal receiving the download instruction is the terminal 1 in the same local area network, the terminal 1 can split the task to be downloaded acquired based on the download instruction, and send the acquired subtask 2 to the terminal 2, and the subtask 3 to the terminal 3. Namely, the terminal 1 that receives the download instruction and performs the task splitting process is a master device, and the terminal 2 that receives the download subtask and the subtask 3 belong to a passive device.
Specifically, since the current local area network includes the terminal 1, the terminal 2 and the terminal 3, the terminal 1 needs to split the task to be downloaded into three equal or unequal parts according to the terminal number parameter and the type parameter, and further allocates the subtask 2 to be born by the terminal 2 to the terminal 2, and the subtask 3 to be born by the terminal 3 to the terminal 3.
Step 307, the terminal 1 acquires the network mode 1, and determines the downloading policy 1 and the sharing policy 2 according to the network mode 1.
Step 308, the terminal 2 obtains the network mode 2, and determines the downloading policy 2 and the sharing policy 2 according to the network mode 2.
Step 309, the terminal 3 acquires the network mode 3, and determines the downloading policy 3 and the sharing policy 3 according to the network mode 3.
Specifically, in order to better reduce mobile data traffic consumption, the terminal 1, the terminal 2 and the terminal 3 may dynamically select the best downloading policy and sharing policy according to the respective current network modes, and refer to steps 104a to 104d herein, so that traffic consumption is saved and downloading speed is increased.
In step 310, the terminal 1 performs the download process of the sub-task 1 based on the download policy 1, to obtain the sub-file 1.
Step 311, the terminal 2 performs the download process of the subtask 2 based on the download policy 2, to obtain the subfile 2.
Step 312, the terminal 3 performs the download process of the subtask 3 based on the download policy 3, to obtain the subfile 3.
Specifically, the terminal 1, the terminal 2, and the terminal 3 may download the subfiles corresponding to the subtasks from the preset file server, respectively.
Step 313a, the terminal 1 sends the subfile 1 to the terminal 2 based on the sharing policy 1.
Step 313b, the terminal 1 sends the subfile 1 to the terminal 3 based on the sharing policy 1.
Step 314a, terminal 2 sends sub-file 2 to terminal 1 based on sharing policy 2.
Step 314b, terminal 2 sends sub-file 2 to terminal 3 based on sharing policy 2.
Step 315a, the terminal 3 sends the subfile 3 to the terminal 1 based on the sharing policy 3.
Step 315b, the terminal 3 sends the subfile 3 to the terminal 2 based on the sharing policy 3.
Specifically, the terminal 1, the terminal 2, and the terminal 3 can perform file sharing based on near field communication.
Step 316, the terminal 1 generates the target file based on the subfile 1, subfile 2, and subfile 3.
Step 317, the terminal 2 generates the target file based on the subfile 1, subfile 2, and subfile 3.
Step 318, the terminal 8 generates the target file based on the subfile 1, subfile 2, and subfile 3.
It should be understood that when the multiple terminals cooperatively download, after each terminal in the local area network downloads the corresponding sub-file from the server according to the corresponding downloading strategy, the sub-file is shared to other devices in the local area network according to the sharing strategy, and meanwhile, other sub-files are acquired from other terminals based on near field communication, so that a complete target file is further generated, namely, the complete target file can be obtained only in the same time as the downloading of the sub-file, and high-speed downloading is further realized.
In the embodiment of the present application, fig. 6 is a schematic diagram of an exemplary multi-terminal downloading process provided in the embodiment of the present application, as shown in fig. 6, assuming that a user 1 carrying device is a computer, a user 2 carrying device is a mobile phone, and a user 3 carrying device is an ipad, if all users 1, 2 and 3 want to download a game by a king person, but the bandwidths of the users are too limited, a terminal, such as a computer, may be selected as an AP at will, and an SSID and a password corresponding to the mobile AP are sent to a peripheral mobile phone and the ipad by means of a connection request, and then, when a connection response of the mobile phone and the ipad is received, local area network connection is established with the mobile phone and the ipad.
Further, the user can click a download button on a download operation interface of the computer, the computer receives a download instruction based on user operation and responds to the download instruction to acquire a game task to be downloaded, further, the computer can acquire download bandwidths of a mobile phone and an ipad in the same local area network, and the number of current common download devices splits the current game task to be downloaded according to corresponding download proportions, namely, the computer itself 40% task segment 1, the mobile phone 25% task segment 2 and the ipad35% task segment 3. And the corresponding download tasks are distributed to the mobile phone and the ipad.
Furthermore, after the computer determines to download the data by adopting the flow according to the current network mode, the computer executes the downloading of 40% of tasks based on the flow, obtains 40% of subfiles from the server, and synchronously shares the subfiles to the mobile phone and the ipad based on near field communication, and meanwhile, the computer can also receive 25% of subfiles downloaded by the mobile phone and 35% of subfiles downloaded by the ipad.
Specifically, after receiving the corresponding 25% download task and 35% download task, the mobile phone and the ipad determine the download policy and the share policy based on the current network mode, and then send 25% subfiles and 35% subfiles from the same server based on the download policy to the computer based on the share policy, and only based on the different current network modes of different devices, the download policy and the share policy may have differences.
Therefore, based on the downloading method provided by the application, the cooperative downloading of multiple devices is realized by utilizing the strong near field communication function of the local area network, and the file downloading speed is greatly improved; in the scene of N devices of the same type, the downloading time is approximately equal to 1/N, and the downloading speed is N times of that of single-end downloading. In addition, the optimal downloading strategy and sharing strategy are dynamically selected, so that the mobile data traffic overhead is greatly reduced, and the downloading traffic is approximately equal to 1/N under the scene of N devices of the same type.
The embodiment of the application provides a downloading method. The terminal is not limited to single-ended downloading any more, but other terminals in the same local area network can share the downloading task together through splitting and distributing the task to be downloaded, and download files are shared by utilizing a strong near field communication function of the local area network, so that the dependence on the bandwidth of a client is reduced, and multi-terminal collaborative downloading is realized; meanwhile, considering the difference of network modes of different terminals, a proper downloading strategy and a proper sharing strategy can be dynamically selected according to the current network mode, so that the collaborative downloading efficiency is higher. The efficient multi-terminal collaborative downloading mechanism provided by the application effectively improves the data downloading speed, and is higher in terminal intelligence.
In another embodiment of the present application, fig. 7 is a schematic diagram of the composition structure of the first terminal according to the embodiment of the present application, as shown in fig. 7, the first terminal 10 according to the embodiment of the present application may include a first receiving unit 11, a first obtaining unit 12, a first splitting unit 13, a first transmitting unit 14, a first determining unit 15, a first downloading unit 16, a first sharing unit 17 and a first generating unit 18,
The first receiving unit 11 is configured to receive a download instruction;
the first obtaining unit 12 is configured to obtain a task to be downloaded in response to the download instruction;
the first splitting unit 13 is configured to split the task to be downloaded to obtain a first subtask and a second subtask;
the first sending unit 14 is configured to send the second subtask to a second terminal; the second terminal is at least one terminal device in the same local area network as the first terminal;
the first acquiring unit 12 is further configured to acquire a first network mode;
the first determining unit 15 is configured to determine a first downloading policy and a first sharing policy according to the first network mode;
the first downloading unit 16 is configured to perform a downloading process of the first subtask based on the first downloading policy, to obtain a first subfile;
the first sharing unit 17 is configured to send the first subfile to the second terminal based on the first sharing policy;
the first receiving unit 11 is further configured to simultaneously receive a second sub-file corresponding to the second sub-task sent by the second terminal; the second sub-file is acquired by the second terminal based on a second downloading strategy and sent based on a second sharing strategy;
The first generating unit 18 is configured to generate, according to the first subfile and the second subfile, a target file corresponding to the task to be downloaded.
In an embodiment of the present application, further, fig. 8 is a schematic diagram of a first terminal composition structure according to an embodiment of the present application, as shown in fig. 8, the first terminal 10 according to an embodiment of the present application may further include a first processor 19, a first memory 110 storing executable instructions of the first processor 19, further, the first terminal 10 may further include a first communication interface 111, and a first bus 112 for connecting the first processor 19, the first memory 110, and the first communication interface 111.
Further, in the embodiment of the present application, the first processor 19 is configured to receive a download instruction, and obtain a task to be downloaded in response to the download instruction; splitting the task to be downloaded to obtain a first subtask and a second subtask; transmitting the second subtask to a second terminal; the second terminal is at least one terminal device in the same local area network as the first terminal; acquiring a first network mode, and determining a first downloading strategy and a first sharing strategy according to the first network mode; executing the downloading process of the first sub-task based on the first downloading strategy to obtain a first sub-file, transmitting the first sub-file to the second terminal based on the first sharing strategy, and simultaneously receiving a second sub-file transmitted by the second terminal; the second sub-file is acquired by the second terminal based on a second downloading strategy and sent based on a second sharing strategy; and generating a target file corresponding to the task to be downloaded according to the first sub-file and the second sub-file. .
Based on the above-described embodiments, in another embodiment of the present application, fig. 9 is a schematic diagram of the composition structure of the second terminal according to the embodiment of the present application, and as shown in fig. 9, the second terminal 20 according to the embodiment of the present application may include a second receiving unit 21, a second determining unit 22, a second downloading unit 23, a second sharing unit 24 and a second generating unit 25,
the second receiving unit 21 is configured to receive a second subtask sent by the first terminal; the first terminal is a terminal device in the same local area network as the second terminal, and the second subtask is a partial download task in the tasks to be downloaded, which is sent by the first terminal;
the second determining unit 22 is configured to determine a second downloading policy and a second sharing policy;
the second downloading unit 23 is configured to execute a downloading process of the second subtask based on the second downloading policy, to obtain a second subfile;
the second sharing unit 24 is configured to send the second subfile to the first terminal based on the second sharing policy;
the second receiving unit 21 is further configured to simultaneously receive a first sub-file corresponding to a first sub-task sent by the first terminal; the first sub-file is acquired by the first terminal based on a first downloading strategy and sent based on a first sharing strategy, and the first sub-task is a downloading task different from the second sub-task in the tasks to be downloaded;
The second generating unit 25 is configured to generate a target file according to the first subfile and the second subfile.
In an embodiment of the present application, further, fig. 10 is a second schematic diagram of a second terminal composition structure according to an embodiment of the present application, as shown in fig. 10, the second terminal 20 according to an embodiment of the present application may further include a second processor 26, a second memory 27 storing executable instructions of the second processor 26, further, the second terminal 20 may further include a second communication interface 28, and a second bus 29 for connecting the second processor 26, the second memory 27, and the second communication interface 28.
Further, in the embodiment of the present application, the second processor 26 is configured to receive a second subtask sent by the first terminal; the first terminal is a terminal device in the same local area network as the second terminal, and the second subtask is a partial download task in the tasks to be downloaded, which is sent by the first terminal; determining a second downloading strategy and a second sharing strategy; executing the downloading process of the second sub-task based on the second downloading strategy to obtain a second sub-file, and sending the second sub-file to the first terminal based on the second sharing strategy; meanwhile, a first sub-file corresponding to a first sub-task sent by the first terminal is received; the first sub-file is acquired by the first terminal based on a first downloading strategy and sent based on a first sharing strategy, and the first sub-task is a downloading task different from the second sub-task in the tasks to be downloaded; and generating a target file according to the first sub-file and the second sub-file.
In an embodiment of the present application, the first processor 19 and the second processor 26 may be at least one of an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a digital signal processor (Digital Signal Processor, DSP), a digital signal processing device (Digital Signal Processing Device, DSPD), a programmable logic device (ProgRAMmable Logic Device, PLD), a field programmable gate array (Field ProgRAMmable Gate Array, FPGA), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, and a microprocessor. It will be appreciated that the electronic device for implementing the above-mentioned processor function may be other for different apparatuses, and embodiments of the present application are not specifically limited. The first memory 110 and the second memory 27 are used for storing executable program code comprising computer operating instructions, the first memory 110 and the second memory 27 may comprise high speed RAM memory and may also comprise non-volatile memory, e.g. at least two disk memories.
In addition, each functional module in the present embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional modules.
The integrated units, if implemented in the form of software functional modules, may be stored in a computer-readable storage medium, if not sold or used as separate products, and based on this understanding, the technical solution of the present embodiment may be embodied essentially or partly in the form of a software product, or all or part of the technical solution may be embodied in a storage medium, which includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or processor (processor) to perform all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The embodiment of the application provides a first terminal, which is not limited to single-ended downloading after acquiring a task to be downloaded according to a downloading instruction, and other terminals in the same local area network can share the downloading task together through splitting and distributing the task to be downloaded, and share downloading files by utilizing a strong near field communication function of the local area network, so that the dependence on the bandwidth of a client is reduced, and multi-terminal collaborative downloading is realized; meanwhile, considering the difference of network modes of different terminals, a proper downloading strategy and a proper sharing strategy can be dynamically selected according to the current network mode, so that the collaborative downloading efficiency is higher. The efficient multi-terminal collaborative downloading mechanism provided by the application effectively improves the data downloading speed, and is higher in terminal intelligence.
The present embodiment provides a computer-readable storage medium having stored thereon a program which, when executed by a first processor, implements the downloading method as described above.
Specifically, the program instructions corresponding to one downloading method in the present embodiment may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the program instructions corresponding to one network connection method in the storage medium are read or executed by an electronic device, the method includes the following steps:
receiving a downloading instruction, and responding to the downloading instruction to acquire a task to be downloaded;
splitting the task to be downloaded to obtain a first subtask and a second subtask;
transmitting the second subtask to a second terminal; the second terminal is at least one terminal device in the same local area network as the first terminal;
acquiring a first network mode, and determining a first downloading strategy and a first sharing strategy according to the first network mode;
executing the downloading process of the first sub-task based on the first downloading strategy to obtain a first sub-file, transmitting the first sub-file to the second terminal based on the first sharing strategy, and simultaneously receiving a second sub-file transmitted by the second terminal; the second sub-file is acquired by the second terminal based on a second downloading strategy and sent based on a second sharing strategy;
And generating a target file corresponding to the task to be downloaded according to the first sub-file and the second sub-file.
The present embodiment provides a computer-readable storage medium having stored thereon a program which, when executed by a second processor, implements the downloading method as described above.
Specifically, the program instructions corresponding to one downloading method in the present embodiment may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the program instructions corresponding to one network connection method in the storage medium are read or executed by an electronic device, the method includes the following steps:
receiving a second subtask sent by the first terminal; the first terminal is a terminal device in the same local area network as the second terminal, and the second subtask is a partial download task in the tasks to be downloaded, which is sent by the first terminal;
determining a second downloading strategy and a second sharing strategy;
executing the downloading process of the second sub-task based on the second downloading strategy to obtain a second sub-file, and sending the second sub-file to the first terminal based on the second sharing strategy; meanwhile, a first sub-file corresponding to a first sub-task sent by the first terminal is received; the first sub-file is acquired by the first terminal based on a first downloading strategy and sent based on a first sharing strategy, and the first sub-task is a downloading task different from the second sub-task in the tasks to be downloaded;
And generating a target file according to the first sub-file and the second sub-file.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of implementations of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block and/or flow of the flowchart illustrations and/or block diagrams, and combinations of blocks and/or flow diagrams in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart block or blocks and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart block or blocks and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks and/or block diagram block or blocks.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the scope of the present application.

Claims (20)

1. A downloading method, wherein the downloading method is applied to a first terminal, the method comprising:
receiving a downloading instruction, and responding to the downloading instruction to acquire a task to be downloaded;
Splitting the task to be downloaded to obtain a first subtask and a second subtask;
transmitting the second subtask to a second terminal; the second terminal is at least one terminal device in the same local area network as the first terminal;
acquiring a first network mode, and determining a first downloading strategy and a first sharing strategy according to the first network mode; the first network mode comprises a mobile data mode, a double network mode, a single WiFi link mode and a double WiFi link mode;
executing the downloading process of the first sub-task based on the first downloading strategy to obtain a first sub-file, transmitting the first sub-file to the second terminal based on the first sharing strategy, and simultaneously receiving a second sub-file transmitted by the second terminal; the second sub-file is acquired by the second terminal based on a second downloading strategy and sent based on a second sharing strategy;
generating a target file corresponding to the task to be downloaded according to the first sub-file and the second sub-file;
wherein the method further comprises:
if the current network environment does not meet the preset collaborative download condition, starting a mobile AP hot spot, and constructing local area network connection with the second terminal based on the mobile AP hot spot so that the first terminal and the second terminal are in the same local area network.
2. The method according to claim 1, wherein before splitting the task to be downloaded to obtain the first subtask and the second subtask, the method further comprises:
detecting the current network environment;
if the current network environment does not meet the preset collaborative download condition, starting an AP hot spot of the mobile wireless access point;
and constructing local area network connection with the second terminal based on the mobile AP hot spot so that the first terminal and the second terminal are in the same local area network.
3. The method according to claim 1, wherein splitting the task to be downloaded to obtain a first subtask and a second subtask includes:
acquiring a quantity parameter and a type parameter corresponding to the second terminal;
determining a downloading proportion according to the quantity parameter and the type parameter;
and carrying out splitting processing on the task to be downloaded based on the downloading proportion to obtain the first subtask and the second subtask.
4. The method of claim 1, wherein before the receiving the second sub-file corresponding to the second sub-task sent by the second terminal, the method further comprises:
Receiving a second network mode sent by the second terminal;
determining the second downloading strategy and the second sharing strategy according to the second network mode;
and sending the second downloading strategy and the second sharing strategy to the second terminal.
5. The method of claim 1, wherein the first network mode is any one of a mobile data mode, a dual network mode, a single WiFi link mode, and a dual WiFi link mode.
6. The method of claim 5, wherein determining the first download policy and the first sharing policy based on the first network mode comprises:
when the first network mode is a mobile data mode, determining the first downloading strategy as mobile data downloading, and determining the first sharing strategy as synchronous sharing;
when the first network mode is a dual-network mode, determining the first downloading strategy as dual-network downloading, and determining the first sharing strategy as synchronous sharing;
when the first network mode is a single WiFi link mode, determining the first downloading strategy as WiFi downloading, and determining the first sharing strategy as asynchronous sharing;
And when the first network mode is a dual WiFi link mode, determining the first downloading strategy as WiFi downloading, and determining the first sharing strategy as synchronous sharing.
7. The method according to claim 1 or 6, wherein the performing the download process of the first sub-task based on the first download policy, to obtain a first sub-file, includes:
initiating a first downloading request to a preset server based on the first downloading strategy; wherein the first download request carries the first subtask;
receiving a first downloading response aiming at the first downloading request and returned by the preset server; wherein the first download response carries the first subfile.
8. A downloading method, wherein the downloading method is applied to a second terminal, the method comprising:
receiving a second subtask sent by the first terminal; the first terminal is a terminal device in the same local area network as the second terminal, and the second subtask is a partial download task in the tasks to be downloaded, which is sent by the first terminal;
determining a second downloading strategy and a second sharing strategy according to the second network mode; the second network mode comprises a mobile data mode, a double network mode, a single WiFi link mode and a double WiFi link mode;
Executing the downloading process of the second sub-task based on the second downloading strategy to obtain a second sub-file, and sending the second sub-file to the first terminal based on the second sharing strategy; meanwhile, a first sub-file corresponding to a first sub-task sent by the first terminal is received; the first sub-file is acquired by the first terminal based on a first downloading strategy and sent based on a first sharing strategy, and the first sub-task is a downloading task different from the second sub-task in the tasks to be downloaded;
generating a target file according to the first sub-file and the second sub-file;
wherein the method further comprises:
if the current network environment does not meet the preset collaborative download condition, local area network connection is established with the first terminal based on the mobile AP hot spot provided by the first terminal, so that the second terminal and the first terminal are in the same local area network.
9. The method of claim 8, wherein prior to receiving the second sub-task sent by the first terminal, the method further comprises:
detecting the current network environment;
if the current network environment does not meet the preset collaborative download condition, local area network connection is established with the first terminal based on the mobile AP hot spot provided by the first terminal, so that the second terminal and the first terminal are in the same local area network.
10. The method of claim 8, wherein prior to determining the second download policy and the second sharing policy, the method further comprises:
acquiring a second network mode; the second network mode is any one of a mobile data mode, a dual network mode, a single WiFi link mode and a dual WiFi link mode.
11. The method of claim 10, wherein the determining the second download policy and second sharing policy comprises:
sending a policy request to the first terminal; wherein the policy request carries the second network mode;
receiving a strategy response aiming at the strategy request returned by the first terminal; wherein the policy response carries the second download policy and the second sharing policy.
12. The method of claim 10, wherein the determining the second download policy and second sharing policy comprises:
and determining the second downloading strategy and the second sharing strategy according to the second network mode.
13. The method of claim 12, wherein said determining the second download policy and the second sharing policy according to the second network mode comprises:
When the second network mode is a mobile data mode, determining the second downloading strategy as mobile data downloading, and determining the second sharing strategy as synchronous sharing;
when the second network mode is a dual-network mode, determining the second downloading strategy as dual-network downloading, and determining the second sharing strategy as synchronous sharing;
when the second network mode is a single WiFi link mode, determining the second downloading strategy as WiFi downloading, and determining the second sharing strategy as asynchronous sharing;
and when the second network mode is a dual WiFi link mode, determining the second downloading strategy as WiFi downloading, and determining the second sharing strategy as synchronous sharing.
14. The method according to claim 8 or 13, wherein said performing a download process of said second sub-task based on said second download strategy, obtaining a second sub-file, comprises:
initiating a second downloading request to a preset file server based on the second downloading strategy; wherein the second download request carries the second subtask;
receiving a second downloading response aiming at the second downloading request and returned by the preset file server; wherein the second download response carries the second subfile.
15. A first terminal, the first terminal comprising: a first receiving unit, a first obtaining unit, a first splitting unit, a first transmitting unit, a first determining unit, a first downloading unit, a first sharing unit and a first generating unit,
the first receiving unit is used for receiving a downloading instruction,
the first acquisition unit is used for responding to the downloading instruction and acquiring a task to be downloaded;
the first splitting unit is used for splitting the task to be downloaded to obtain a first subtask and a second subtask;
the first sending unit is used for sending the second subtask to a second terminal; the second terminal is at least one terminal device in the same local area network as the first terminal;
the first acquisition unit is further used for acquiring a first network mode; the first network mode comprises a mobile data mode, a double network mode, a single WiFi link mode and a double WiFi link mode;
the first determining unit is configured to determine a first downloading policy and a first sharing policy according to the first network mode;
the first downloading unit is used for executing the downloading process of the first subtask based on the first downloading strategy to obtain a first subfile;
The first sharing unit is used for sending the first subfile to the second terminal based on the first sharing strategy;
the first receiving unit is further configured to simultaneously receive a second sub-file corresponding to the second sub-task sent by the second terminal; the second sub-file is acquired by the second terminal based on a second downloading strategy and sent based on a second sharing strategy;
the first generating unit is used for generating a target file corresponding to the task to be downloaded according to the first sub-file and the second sub-file;
the first terminal is configured to open a mobile AP hotspot if the current network environment does not meet a preset collaborative download condition; and constructing local area network connection with the second terminal based on the mobile AP hot spot so that the first terminal and the second terminal are in the same local area network.
16. A second terminal, the second terminal comprising: a second receiving unit, a second determining unit, a second downloading unit, a second sharing unit and a second generating unit,
the second receiving unit is used for receiving a second subtask sent by the first terminal; the first terminal is a terminal device in the same local area network as the second terminal, and the second subtask is a partial download task in the tasks to be downloaded, which is sent by the first terminal;
The second determining unit is configured to determine a second downloading policy and a second sharing policy according to a second network mode; the second network mode comprises a mobile data mode, a double network mode, a single WiFi link mode and a double WiFi link mode;
the second downloading unit is used for executing the downloading process of the second subtask based on the second downloading strategy to obtain a second sub-file;
the second sharing unit is used for sending the second subfile to the first terminal based on the second sharing policy;
the second receiving unit is further configured to simultaneously receive a first sub-file corresponding to a first sub-task sent by the first terminal; the first sub-file is acquired by the first terminal based on a first downloading strategy and sent based on a first sharing strategy, and the first sub-task is a downloading task different from the second sub-task in the tasks to be downloaded;
the second generating unit is used for generating a target file according to the first subfile and the second subfile;
and the second terminal is used for establishing local area network connection with the first terminal based on the mobile AP hot spot provided by the first terminal if the current network environment does not meet the preset collaborative download condition, so that the second terminal and the first terminal are in the same local area network.
17. A first terminal comprising a first processor, a first memory storing instructions executable by the first processor, which when executed by the first processor, implement the method of any of claims 1-7.
18. A second terminal comprising a second processor, a second memory storing instructions executable by the second processor, which when executed by the second processor, implement the method of any of claims 8-14.
19. A computer readable storage medium having stored thereon a program for use in a first terminal, wherein the program, when executed by a first processor, implements the method according to any of claims 1-7.
20. A computer readable storage medium having stored thereon a program for use in a second terminal, wherein the program, when executed by a second processor, implements the method according to any of claims 8-14.
CN202011205020.4A 2020-11-02 2020-11-02 Downloading method, terminal and computer storage medium Active CN112243038B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011205020.4A CN112243038B (en) 2020-11-02 2020-11-02 Downloading method, terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011205020.4A CN112243038B (en) 2020-11-02 2020-11-02 Downloading method, terminal and computer storage medium

Publications (2)

Publication Number Publication Date
CN112243038A CN112243038A (en) 2021-01-19
CN112243038B true CN112243038B (en) 2023-07-18

Family

ID=74169816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011205020.4A Active CN112243038B (en) 2020-11-02 2020-11-02 Downloading method, terminal and computer storage medium

Country Status (1)

Country Link
CN (1) CN112243038B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114024953B (en) * 2021-10-22 2024-02-23 北京达佳互联信息技术有限公司 File transmission method and device and electronic equipment
CN115102950A (en) * 2022-06-30 2022-09-23 京东方科技集团股份有限公司 File downloading method, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200606A (en) * 2013-03-18 2013-07-10 东莞宇龙通信科技有限公司 Terminal and data service processing method
CN103327101A (en) * 2013-06-21 2013-09-25 上海交通大学 Mobile terminal collaboration downloading method
CN103412795A (en) * 2013-08-27 2013-11-27 中国科学院计算技术研究所 Collaborative downloading task scheduling method and system for mobile intelligent terminals
CN106028259A (en) * 2016-04-28 2016-10-12 北京小米移动软件有限公司 Data download method and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237300B (en) * 2013-04-28 2015-09-09 小米科技有限责任公司 A kind of method of file download, Apparatus and system
CN106550035A (en) * 2016-11-04 2017-03-29 上海斐讯数据通信技术有限公司 A kind of method of file download terminal and file download
CN106603660A (en) * 2016-12-14 2017-04-26 传线网络科技(上海)有限公司 Collaborative downloading method, terminal and system for distributed type videos
CN109862065B (en) * 2018-12-06 2021-09-14 北京字节跳动网络技术有限公司 File downloading method and device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200606A (en) * 2013-03-18 2013-07-10 东莞宇龙通信科技有限公司 Terminal and data service processing method
CN103327101A (en) * 2013-06-21 2013-09-25 上海交通大学 Mobile terminal collaboration downloading method
CN103412795A (en) * 2013-08-27 2013-11-27 中国科学院计算技术研究所 Collaborative downloading task scheduling method and system for mobile intelligent terminals
CN106028259A (en) * 2016-04-28 2016-10-12 北京小米移动软件有限公司 Data download method and terminal

Also Published As

Publication number Publication date
CN112243038A (en) 2021-01-19

Similar Documents

Publication Publication Date Title
US10708350B2 (en) Method and system for content delivery of mobile terminal applications
US7894828B2 (en) System and method for establishing peer-to-peer bandwidth sharing ad hoc networks
CN109981751B (en) File transmission method and system, computer equipment and storage medium
EP2122984B1 (en) A method and apparatus for enabling user group services in a communication network
US11102290B2 (en) Peer-to-peer network prioritizing propagation of objects through the network
CN112243038B (en) Downloading method, terminal and computer storage medium
US7873019B2 (en) Systems and methods for establishing gateway bandwidth sharing ad-hoc networks
CN108737224B (en) Message processing method and device based on micro-service architecture
JP7297894B2 (en) V2X message transmission method, device and system
US20210360476A1 (en) Method for downloading data and terminal device
CN101247316A (en) Data sharing method of communication terminal
KR101573197B1 (en) Control method for transmitting distributed file based on P2Peer and P2P communication control apparatus therefor
CN109561054B (en) Data transmission method, controller and access device
CN101267383A (en) Data transmission method and system
US10432714B2 (en) Data processing method and system based on asymmetric P2P network
CN113055444B (en) File sharing method and related device thereof
RU2522995C2 (en) Method and apparatus for creating peer-to-peer group in peer-to-peer application and method of using peer-to-peer group
CN109067487B (en) Channel selection method, terminal and computer storage medium
JP2018537049A (en) Method for selecting a negotiation partner, method for responding to a discovery message and related apparatus
CN115277802B (en) Data transmission method and gateway
CN116302618B (en) Session information processing method and device
KR101984007B1 (en) A method for providing the information on the content which other user receives in p2p network-based content delivery service
KR101535085B1 (en) PtoP communication control method and apparatus
CN112398851B (en) Data processing method, data processing device, storage medium and electronic equipment
CN105827584A (en) Interaction method of third-party application server with client background system, and background system

Legal Events

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