CN104184770A - Resource transmission method and device - Google Patents

Resource transmission method and device Download PDF

Info

Publication number
CN104184770A
CN104184770A CN201310196624.0A CN201310196624A CN104184770A CN 104184770 A CN104184770 A CN 104184770A CN 201310196624 A CN201310196624 A CN 201310196624A CN 104184770 A CN104184770 A CN 104184770A
Authority
CN
China
Prior art keywords
resource
shared
terminal
burst
download
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.)
Granted
Application number
CN201310196624.0A
Other languages
Chinese (zh)
Other versions
CN104184770B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310196624.0A priority Critical patent/CN104184770B/en
Publication of CN104184770A publication Critical patent/CN104184770A/en
Application granted granted Critical
Publication of CN104184770B publication Critical patent/CN104184770B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a resource transmission method and a device, and belongs to the technical field of communication. The method comprises steps: information of to-be-shared resources of all terminals and the current network connection type are acquired; according to the current network connection type and the to-be-shared resource information, a sharing strategy of each terminal to load the to-be-shared resources is acquired; the sharing strategy is correspondingly sent to each terminal to load the resources to enable each terminal to load the to-be-shared resources performs loading according to the sharing strategy. Through statistical analysis on all sharing resources and the terminal in need of loading, the loading strategy of each terminal in the network is made, and therefore the purpose that the resource sharing speed in the Wi-Fi Direct networking can be improved is realized.

Description

The method and apparatus of resource transmission
Technical field
The present invention relates to communication technical field, particularly a kind of method and apparatus of resource transmission.
Background technology
Along with the development of the communication technology, Wi-Fi Direct technology is also suggested.Wi-Fi Direct standard refers to that the equipment allowing in wireless network is without interconnecting by wireless router.This technology and Bluetooth technology are similar, allow wireless device interconnect with point-to-point form, but have significantly lifting than bluetooth aspect transmission speed and transmission range.
In the networking mode of Wi-Fi Direct, comprise the network connection type of multi-to-multi and the network connection type of one-to-many.Wherein, multi-to-multi refers between multiple terminals and is connected to each other, be that every two terminals in network can be connected to each other, transfer resource mutually each other, one-to-many refers in network to only have a terminal can connect other terminal, between other terminal, do not connect, and other terminal is disconnecting with before being connected of this terminal, and can not connect other terminal again.
In the face of the networking mode of existing Wi-Fi Direct, in the time that one or more terminals have file to be shared with some or all terminal, how organizing the optimization download of one or more terminal documents is the problems that need solution.
Summary of the invention
In order to improve the resource sharing speed in Wi-Fi Direct networking, the embodiment of the present invention provides a kind of method and apparatus of resource transmission.Described technical scheme is as follows:
On the one hand, provide a kind of method of resource transmission, described method comprises:
Obtain the information of the resource to be shared of all terminals, described in the information of resource to be shared comprise: the title of each resource, the title of described each resource place terminal and the size of described each resource;
Obtain current network connection type;
According to described current network connection type with described in the information of resource to be shared, obtain resource to be shared described in each will download terminal share strategy;
The described strategy of sharing is sent to described each terminal of wanting downloaded resources accordingly, make to share strategy described in the described each terminal basis that will download resource to be shared and download.
On the other hand, provide a kind of device of resource transmission, described device comprises:
Resource acquisition module, for obtaining the information of resource to be shared of all terminals, described in the information of resource to be shared comprise: the title of each resource, the title of described each resource place terminal and the size of described each resource;
Network connection type acquisition module, for obtaining current network connection type;
Share tactful acquisition module, for according to described current network connection type with described in the information of resource to be shared, obtain resource to be shared described in each will download terminal share strategy;
Resource downloading module, for the described strategy of sharing is sent to described each terminal of wanting downloaded resources accordingly, makes to share strategy described in the described each terminal basis that will download resource to be shared and downloads.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is: obtain the information of resource to be shared of all terminals and current network connection type; According to described current network connection type with described in the information of resource to be shared, obtain resource to be shared described in each will download terminal share strategy; The described strategy of sharing is sent to described each terminal of wanting downloaded resources accordingly, share strategy described in the each terminal basis that will download resource to be shared to download.By to all statistical analyses of sharing resource and wanting download terminal, formulate the download policy of each terminal in network, thereby realize the object that improves the resource sharing speed in Wi-Fi Direct networking.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the environment enforcement figure that a kind of smart mobile phone that provides in the embodiment of the present invention participates in Wi-Fi Direct networking;
Fig. 2 is the environment enforcement figure that the another kind of smart mobile phone that provides in the embodiment of the present invention participates in Wi-Fi Direct networking;
Fig. 3 is the method flow diagram of a kind of resource transmission of providing in the embodiment of the present invention one;
Fig. 4 is the method flow diagram of a kind of resource transmission of providing in the embodiment of the present invention two;
Fig. 5 is the method flow diagram of a kind of resource transmission of providing in the embodiment of the present invention three;
Fig. 6 a is the apparatus structure schematic diagram of a kind of resource transmission of providing in the embodiment of the present invention four;
Fig. 6 b is the apparatus structure schematic diagram of the another kind of resource transmission that provides in the embodiment of the present invention four;
Fig. 6 c is the apparatus structure schematic diagram of the another kind of resource transmission that provides in the embodiment of the present invention four.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
In the present embodiment, the terminal that participates in Wi-Fi Direct networking includes but not limited to: smart mobile phone, panel computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio frequency aspect 3), MP4(Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio frequency aspect 3) player, pocket computer on knee and desktop computer etc.
Referring to Fig. 1, in the present embodiment, provide a kind of smart mobile phone to participate in the environment enforcement figure of Wi-Fi Direct networking, multiple smart mobile phones are in Wi-Fi Direct network, between multiple terminals, be connected to each other, form the network connection type of multi-to-multi, every two terminals in network can be connected to each other, each other transfer resource mutually.
As shown in Figure 2, in the present embodiment, also provide another kind of smart mobile phone to participate in the environment enforcement figure of Wi-Fi Direct networking, multiple smart mobile phones are in Wi-Fi Direct network, only have a terminal can connect other terminal, between other terminal, do not connect, other terminal is carried out resource transmission by the allotment of first terminal.
What deserves to be explained is, the networking type in the present embodiment comprises Wi-Fi Direct network, but is also not limited to this network type, and for any networking type that comprises multi-to-multi or one-to-many, the present invention is suitable for, to repeating no more in this present embodiment.
Resource to be shared in the present embodiment includes but not limited to: the application programs such as audio-video document or game, and in this present embodiment and be not specifically limited.
Embodiment mono-
Referring to Fig. 3, a kind of method of resource transmission is provided in the embodiment of the present invention, comprising:
101, obtain the information of the resource to be shared of all terminals, described in the information of resource to be shared comprise: the title of each resource, the title of described each resource place terminal and the size of described each resource;
102, obtain current network connection type;
103, according to described current network connection type with described in the information of resource to be shared, obtain resource to be shared described in each will download terminal share strategy;
104, the described strategy of sharing is sent to described each terminal of wanting downloaded resources accordingly, make to share strategy described in the described each terminal basis that will download resource to be shared and download.
In another embodiment, described network type includes but not limited to: multi-to-multi network connection type or one-to-many network connection type.
In another embodiment, in the time that described current network type is multi-to-multi network connection type, described according to described current network connection type with described in the information of resource to be shared, obtain resource to be shared described in each will download terminal share strategy, comprising:
Obtain the first kind resource to be shared in the resource to be shared of described all terminals, in described first kind resource to be shared, the size of resource is more than or equal to least unit;
Resource each to be shared in described first kind resource to be shared is carried out to burst processing, obtain the burst multiple to be shared of described each resource to be shared, the size of described each burst to be shared is greater than described least unit;
Setting will be downloaded i terminal of described first kind resource to be shared, first corresponding i the burst of downloading in described first kind resource to be shared, and after described i burst downloaded, the terminal of described i the burst of notice storage, and then obtain the information of having descended the terminal of (i+1) %n burst, from described the end of complete (i+1) %n burst download described (i+1) %n burst, until all bursts in the complete described first kind of described i terminal downloads resource to be shared, wherein, n is all number of terminals that will download described first kind resource to be shared.
In another embodiment, described resource each to be shared in described first kind resource to be shared is carried out to burst processing, obtains the burst multiple to be shared of described each resource to be shared, comprising:
Resource each to be shared in resource to be shared the described first kind, divided by all number of terminals that will download described first kind resource to be shared, is obtained to the size of the burst to be shared of described each resource to be shared;
According to the size of the burst to be shared of described each resource to be shared, described each resource to be shared is carried out to burst, obtain the burst multiple to be shared of described each resource to be shared.
In another embodiment, described method also comprises:
Obtain the Equations of The Second Kind resource to be shared in the resource to be shared of described all terminals, in described Equations of The Second Kind resource to be shared, the size of resource is less than described least unit;
Setting will be downloaded the terminal of described Equations of The Second Kind resource to be shared and directly directly be downloaded from the end of storing described Equations of The Second Kind resource to be shared.
In another embodiment, in the time that described current network type is one-to-many network connection type, described according to described current network connection type with described in the information of resource to be shared, obtain resource to be shared described in each will download terminal share strategy, comprising:
The current state of the terminal of resource to be shared described in all will download is updated to the state of download;
The terminal of resource to be shared described in described all will download is matched, the terminal that makes resource to be shared described in described each will download is disconnecting with after local connection, is connected and downloads resource accordingly to be shared according to described pairing result with terminal accordingly.
In another embodiment, described method also comprises:
Re-establish and be connected with the described terminal of having downloaded resource accordingly to be shared, and described in upgrading, downloaded the resource of the terminal storage of resource accordingly to be shared;
According to the resource of the described terminal storage of having downloaded resource accordingly to be shared, again the terminal of resource to be shared described in will downloading is matched, the complete required resource to be shared of the terminal downloads of resource to be shared described in will downloading until all.
In another embodiment, described by described share strategy send to accordingly described each terminal of wanting downloaded resources after, also comprise:
When the size of resource described to be shared is greater than preset value, and described in described will download in the time that the number of terminals m that shares resource is even number, described in inciting somebody to action, resource to be shared is divided into m burst to be shared, and described each burst correspondence to be shared is transferred to a terminal in n terminal, make the terminal of the described burst of described each storage carry out resource downloading by the described strategy of sharing.
In another embodiment, described by described share strategy send to accordingly described each terminal of wanting downloaded resources after, also comprise:
When the size of resource described to be shared is greater than preset value, and described in described will download in the time that the number of terminals m that shares resource is odd number, described in inciting somebody to action, resource to be shared is divided into m-1 burst to be shared, and described each burst correspondence to be shared is transferred to a terminal in m-1 terminal, make the terminal of the described burst of described each storage carry out resource downloading by the described strategy of sharing;
Connect described m terminal, described in inciting somebody to action, resource to be shared is directly transferred to described m terminal.
The beneficial effect of the present embodiment comprises: obtain the information of resource to be shared of all terminals and current network connection type; According to described current network connection type with described in the information of resource to be shared, obtain the strategy of sharing of resource to be shared described in each will download; The described strategy of sharing is sent to described each terminal of wanting downloaded resources accordingly, share strategy described in the each terminal basis that will download resource to be shared to download.By to all statistical analyses of sharing resource and wanting download terminal, formulate the download policy of each terminal in network, thereby realize the object that improves the resource sharing speed in Wi-Fi Direct networking.
Embodiment bis-
A kind of method of resource transmission is provided in the embodiment of the present invention, in the present embodiment, has proposed one for the network connection type of multi-to-multi and shared strategy, to accelerate the speed of download of resource.Referring to Fig. 4, method flow comprises:
201, trigger resource-sharing operation.
In the present embodiment, when in the network terminal of multi-to-multi, while having part terminal to have file to share, trigger the resource-sharing operation of multi-to-multi network.Wherein, resource-sharing operation can be initiated by arbitrary terminal in multi-to-multi network, in this present embodiment and be not specifically limited.
202, obtain the information of the resource to be shared of all terminals.
In the present embodiment, after resource-sharing operation is triggered, the information of the to be shared resource of any one terminal in multiple terminals to all terminals is added up, wherein, the information of resource to be shared includes but not limited to: title and the size of described each resource etc. of the title of each resource, described each resource place terminal.
In the present embodiment, for convenience of description, the terminal of the information of adding up resource to be shared is called to statistics terminal, statistics terminal can be the arbitrary terminal during multi-to-multi network connects, in this present embodiment and be not specifically limited.
203, obtain current network connection type.
In this step, statistics terminal is getting after the resource information of sharing, and obtains current network connection type, calculates and shares strategy based on current network connection type.
Preferably, obtain the connection type of current network, comprising: know current network connection type according to the internetwork connection mode of self.In the present embodiment, because any two terminals in multi-to-multi network connection type can connect, and a terminal can only connect with that terminal of initiatively initiating to be connected in one-to-many terminal, so according to the difference of self connected mode, just can know current network connection type, to repeating no more in this present embodiment.
204, according to described current network connection type with described in the information of resource to be shared, obtain resource to be shared described in each will download terminal share strategy.
In this step, for current multi-to-multi network connection type, calculate the strategy of sharing of each terminal of wanting downloaded resources.Share the rule that strategy just refers to each terminal downloads resource.Preferably, in the time that described current network type is multi-to-multi network connection type, according to described current network connection type with described in the information of resource to be shared, obtain resource to be shared described in each will download terminal share strategy, comprising:
Obtain the first kind resource to be shared in the resource to be shared of described all terminals, in described first kind resource to be shared, the size of resource is more than or equal to least unit;
Resource each to be shared in described first kind resource to be shared is carried out to burst processing, obtain the burst multiple to be shared of described each resource to be shared, the size of described each burst to be shared is greater than described least unit;
Setting will be downloaded i terminal of described first kind resource to be shared, first corresponding i the burst of downloading in described first kind resource to be shared, and after described i burst downloaded, the terminal of described i the burst of notice storage, and then obtain the information of having descended the terminal of (i+1) %n burst, from described the end of complete (i+1) %n burst download described (i+1) %n burst, wherein, n is all number of terminals that will download described first kind resource to be shared.
Preferably, obtain the Equations of The Second Kind resource to be shared in the resource to be shared of described all terminals, in described Equations of The Second Kind resource to be shared, the size of resource is less than described least unit;
Setting will be downloaded the terminal of described Equations of The Second Kind resource to be shared and directly directly be downloaded from the end of storing described Equations of The Second Kind resource to be shared.
In the present embodiment, due to varying in size of each terminal resource to be shared, in order to accelerate transmission speed, file is carried out to burst.Wherein, the least unit of enactment document burst, carries out burst to the file that is greater than least unit.Preferably, be divided into two classes according to the large young pathbreaker resource to be shared of resource, one class is that the size of resource is more than or equal to least unit, this class resource need to be carried out burst, another kind of is that the size of resource is less than least unit, this class resource, because file is smaller, can directly be downloaded, and does not need burst again.
In the present embodiment, preferably, resource each to be shared in described first kind resource to be shared is carried out to burst processing, obtain the burst multiple to be shared of described each resource to be shared, comprise: the resource each to be shared in resource to be shared the described first kind, divided by all number of terminals that will download described first kind resource to be shared, is obtained to the size of the burst to be shared of described each resource to be shared; According to the size of the burst to be shared of described each resource to be shared, described each resource to be shared is carried out to burst, obtain the burst multiple to be shared of each resource to be shared.
In the present embodiment, the size of each burst is not less than least unit, if least unit is 20k, the size of resource is 70k, has 3 terminals will download this resource, and the burst size of calculating this resource is 23k, be 23k to this resource division, 23k, 23k, 1k, because last burst 1k is less than least unit, so itself and the 3rd burst are merged, 3 bursts dividing are 23k, 23k, 24k.
In the present embodiment, in the time that strategy is shared in calculating, specify the corresponding burst of the corresponding download of each terminal, as 3 terminals, first terminal is downloaded first burst 23k, second burst 23k of second terminal downloads, the 3rd burst 24k of the 3rd terminal downloads, after each terminal downloads, the terminal of this resource of notice storage, this terminal records corresponding download terminal and its burst of having downloaded, the terminal of so having downloaded one of them burst has also become resource storage person, two other terminal of not downloading this burst can be downloaded this burst from this end, also can download this burst from former resource storage person, until all terminals are by complete whole resource downloading, so not only increase download channel, also improved speed of download.
205, the described strategy of sharing is sent to described each terminal of wanting downloaded resources accordingly.
In this step, statistics terminal is shared after strategy calculating, and sends to accordingly by sharing strategy the each terminal that will download resource to be shared, makes these terminals carry out resource downloading according to the strategy of sharing of its correspondence.
206, described in the each terminal basis that will download resource to be shared, share strategy and download, to obtain resource to be shared.
In this step, each will download wait the terminal of sharing resource receiving sharing after strategy of statistics terminal transmission, download according to sharing strategy execution, and after downloading, notify the storage person of downloaded resources, the storage person of downloaded resources records the corresponding terminal of downloading and the resource of download, the terminal that makes to have downloaded resource also becomes the storage person of resource, downloads, until all resources to be shared are shared complete for other-end.
The beneficial effect of the present embodiment comprises: obtain the information of resource to be shared of all terminals and current network connection type; According to described current network connection type with described in the information of resource to be shared, obtain the strategy of sharing of resource to be shared described in each will download; The described strategy of sharing is sent to described each terminal of wanting downloaded resources accordingly, share strategy described in the each terminal basis that will download resource to be shared to download.By to all statistical analyses of sharing resource and wanting download terminal, formulate the download policy of each terminal in network, thereby realize the object that improves the resource sharing speed in Wi-Fi Direct networking.And, in multi-to-multi network connection type, large file is carried out to burst, and correspondingly each burst is transferred to counterpart terminal, thereby the storage person of resource is increased, increase download channel, improve speed of download.
Embodiment tri-
A kind of method of resource transmission is provided in the embodiment of the present invention, in the present embodiment, has proposed one for the network connection type of one-to-many and shared strategy, to accelerate the speed of download of resource.In the present embodiment, for convenience of description, the terminal of initiating the connection of one-to-many network is called to first terminal.Referring to Fig. 5, method flow comprises:
301, trigger resource-sharing operation.
In the present embodiment, when in the network terminal of one-to-many, while having part terminal to have file to share, trigger the resource-sharing operation of one-to-many network.Wherein, resource-sharing operation can be initiated by arbitrary terminal in one-to-many network, in this present embodiment and be not specifically limited.
302, obtain the information of the resource to be shared of all terminals.
In the present embodiment, after resource-sharing operation is triggered, the information of the to be shared resource of first terminal to all terminals is added up, and wherein, the information of resource to be shared includes but not limited to: title and the size of described each resource etc. of the title of each resource, described each resource place terminal.
303, obtain current network connection type.
This step is similar with the step 203 in embodiment bis-, to repeating no more in this present embodiment.
304, according to described current network connection type with described in the information of resource to be shared, obtain resource to be shared described in each will download terminal share strategy.
In this step, for current one-to-many network connection type, calculate the strategy of sharing of each terminal of wanting downloaded resources.Preferably, in the time that described current network type is one-to-many network connection type, according to described current network connection type with described in the information of resource to be shared, obtain resource to be shared described in each will download terminal share strategy, comprising: the state that the current state of the terminal of resource to be shared described in all will download is updated to download; The terminal of resource to be shared described in described all will download is matched.
Before downloading, first terminal upgrades each state of wanting download terminal, and wherein, the state of terminal is divided into: download and the free time.In concrete implementation, the flag of SOT state of termination is set, available " 1 " marking terminal is in download state, and " 0 " marking terminal is in idle condition, in this present embodiment and be not specifically limited.Before not downloading, the initial condition of each terminal is " free time ".Optimize in order to reach the object of downloading, the terminal of each storage downloaded resources is matched, the principle of pairing comprises: match storing the terminal terminal minimum with storing resource to be shared that resource to be shared is maximum, make it be connected to each other downloaded resources, so just the download time of the average whole networking of energy.
305, the described strategy of sharing is sent to described each terminal of wanting downloaded resources accordingly.
In this step, statistics terminal is shared after strategy calculating, and sends to accordingly by sharing strategy the each terminal that will download resource to be shared, makes these terminals carry out resource downloading according to the strategy of sharing of its correspondence.
306, the terminal of wanting downloaded resources is shared after strategy receiving, and disconnects and being connected of first terminal, be connected with corresponding terminal according to the pairing result of its correspondence, and mutual downloaded resources.
In this step, the terminal of downloaded resources, current state is updated to " download ", and being connected of disconnection and first terminal, inquiry first terminal is sharing the pairing terminal for its appointment in strategy, and connects with its pairing terminal, carries out resource downloading.
What deserves to be explained is, in the time that a terminal will be given several terminals by a large sharing files, can first carry out burst to file, to accelerate transmission speed.Alternatively, for the difference of download terminal number, can specifically take following strategy:
1) when the size of resource described to be shared is greater than preset value, and described in described will download in the time that the number of terminals m that shares resource is even number, described in inciting somebody to action, resource to be shared is divided into m burst to be shared, and described each burst correspondence to be shared is transferred to a terminal in n terminal, make the terminal of the described burst of described each storage carry out resource downloading by the described strategy of sharing.
Wherein, after complete one of them burst of each terminal downloads in m terminal, this m terminal is carried out sharing of burst according to the strategy of sharing in step 304 again.
2) when the size of resource described to be shared is greater than preset value, and described in described will download in the time that the number of terminals m that shares resource is odd number, described in first inciting somebody to action, resource to be shared is divided into m-1 burst to be shared, and described each burst correspondence to be shared is transferred to a terminal in m-1 terminal, make the terminal of the described burst of described each storage carry out resource downloading by the described strategy of sharing; Then connect described m terminal, described in inciting somebody to action, resource to be shared is directly transferred to described m terminal.
Wherein, after complete one of them burst of each terminal downloads in m-1 terminal, this m-1 terminal is carried out sharing of burst according to the strategy of sharing in step 304 again.
307, want the terminal of downloaded resources after downloading, first terminal re-establishes with the described terminal of having downloaded resource accordingly to be shared the resource that is connected and upgrades active user's storage, and the user's that also will download state is updated to idle condition, again the terminal of resource to be shared described in will downloading is matched, until all users that will download have downloaded resource required to be shared.
In the present embodiment, exist multiple terminals all can share the situation of the resource in certain terminal, and the rule of above-mentioned pairing is to match between two, so after any two pairing terminal downloads, again connect with first terminal, download is completed to information to be notified to first terminal, first terminal upgrades the resource of current terminal storage, and the state of the terminal that also will download is updated to idle condition, return to step 304 and recalculate and share strategy, until each terminal has been downloaded required resource to be shared.For example, A, B, C, D, five terminals of E, A is first terminal, with B, C, D, E connects, B, C, D, E all needs the resource of sharing, and A adds up the resource to be shared in these terminals, and it is matched, B and D are matched, and C and E match, and after these two pairs of terminals are downloaded respectively, re-establish and are connected with A, A recalculates and shares strategy, and B and C are matched, and C also can share the resource on B like this, until all terminal downloads are to own required resource.Certainly first terminal A also can participate in resource sharing, such as A, and B, C, tetra-terminals of D, have respectively a, b, c, tetra-resources of d, size is a>b>c>d.After pairing, be AD so, BC, after having downloaded for the first time, terminal A and D have resource a and d, and terminal B and C have resource b and c; While download for the second time, AB, CD pairing, after having downloaded, terminal A, B, C, D be storage resources a, b, c and d.
The beneficial effect of the present embodiment comprises: obtain the information of resource to be shared of all terminals and current network connection type; According to described current network connection type with described in the information of resource to be shared, obtain the strategy of sharing of resource to be shared described in each will download; The described strategy of sharing is sent to described each terminal of wanting downloaded resources accordingly, share strategy described in the each terminal basis that will download resource to be shared to download.By to all statistical analyses of sharing resource and wanting download terminal, formulate the download policy of each terminal in network, thereby realize the object that improves the resource sharing speed in Wi-Fi Direct networking.And, in one-to-many network, by described in storage in resource to be shared at most the terminal of resources with store described in resource to be shared the terminal of minimum of resources match, average download time, improved speed of download.And, large file is carried out to burst, further improve speed of download.
Embodiment tetra-
Referring to Fig. 6 a, a kind of device of resource transmission is provided in the embodiment of the present invention, comprising: resource acquisition module 401, network connection type acquisition module 402, shares tactful acquisition module 403 and resource downloading module 404.
Resource acquisition module 401, for obtaining the information of resource to be shared of all terminals, described in the information of resource to be shared comprise: the title of each resource, the title of described each resource place terminal and the size of described each resource;
Network connection type acquisition module 402, for obtaining current network connection type;
Share tactful acquisition module 403, for according to described current network connection type with described in the information of resource to be shared, obtain resource to be shared described in each will download terminal share strategy;
Resource downloading module 404, for the described strategy of sharing is sent to described each terminal of wanting downloaded resources accordingly, makes to share strategy described in the described each terminal basis that will download resource to be shared and downloads.
In another embodiment, described network type includes but not limited to: multi-to-multi network connection type or one-to-many network connection type etc.
In another embodiment, in the time that described current network type is multi-to-multi network connection type, referring to Fig. 6 b, described in share tactful acquisition module 403, comprising:
The first acquiring unit 403a, for obtaining the first kind resource to be shared of resource to be shared of described all terminals, in described first kind resource to be shared, the size of resource is more than or equal to least unit;
Sharding unit 403b, for the resource each to be shared of described first kind resource to be shared is carried out to burst processing, obtains the burst multiple to be shared of described each resource to be shared, and the size of described each burst to be shared is greater than described least unit;
First shares tactful acquiring unit 403c, for setting i terminal will downloading described first kind resource to be shared, first corresponding i the burst of downloading in described first kind resource to be shared, and after described i burst downloaded, the terminal of described i the burst of notice storage, and then obtain the information of having descended the terminal of (i+1) %n burst, from described the end of complete (i+1) %n burst download described (i+1) %n burst, until all bursts in the complete described first kind of described i terminal downloads resource to be shared, wherein, n is all number of terminals that will download described first kind resource to be shared.
In another embodiment, described sharding unit 403b, comprising:
Burst acquiring size subelement, for by the resource each to be shared of described first kind resource to be shared divided by all number of terminals that will download described first kind resource to be shared, obtain the size of the burst to be shared of described each resource to be shared;
Burst subelement, for according to the size of the burst to be shared of described each resource to be shared, described each resource to be shared being carried out to burst, obtains the burst multiple to be shared of described each resource to be shared.
In another embodiment, referring to Fig. 6 b, described in share policy module 403 and also comprise:
Second acquisition unit 403d, for obtaining the Equations of The Second Kind resource to be shared of resource to be shared of described all terminals, in described Equations of The Second Kind resource to be shared, the size of resource is less than described least unit;
Second shares tactful acquiring unit 403e, will download the terminal of described Equations of The Second Kind resource to be shared directly directly download from the end of storing described Equations of The Second Kind resource to be shared for setting.
In another embodiment, referring to Fig. 6 c, in the time that described current network type is one-to-many network connection type, described in share tactful acquisition module 403, comprising:
Updating block 403e, for being updated to the current state of the terminal of resource to be shared described in all will download the state of download;
Pairing unit 403f, for the terminal of resource to be shared described in described all will download is matched, the terminal that makes resource to be shared described in described each will download is disconnecting with after local connection, is connected and downloads resource accordingly to be shared according to described pairing result with terminal accordingly.
In another embodiment, described updating block 403a is also for re-establishing and be connected with the described terminal of having downloaded resource accordingly to be shared, and described in upgrading, downloaded the resource of the terminal storage of resource accordingly to be shared;
Described pairing unit 403b is also for according to the resource of the described terminal storage of having downloaded resource accordingly to be shared, again the terminal of resource to be shared described in will downloading is matched, the complete required resource to be shared of the terminal downloads of resource to be shared described in will downloading until all.
The beneficial effect of the present embodiment comprises: obtain the information of resource to be shared of all terminals and current network connection type; According to described current network connection type with described in the information of resource to be shared, obtain the strategy of sharing of resource to be shared described in each will download; The described strategy of sharing is sent to described each terminal of wanting downloaded resources accordingly, share strategy described in the each terminal basis that will download resource to be shared to download.By to all statistical analyses of sharing resource and wanting download terminal, formulate the download policy of each terminal in network, thereby realize the object that improves the resource sharing speed in Wi-Fi Direct networking.
It should be noted that: the device of the resource transmission that above-described embodiment provides, only be illustrated with the division of above-mentioned each functional module, in practical application, can above-mentioned functions be distributed and completed by different functional modules as required, be divided into different functional modules by the internal structure of device, to complete all or part of function described above.
In addition, the device of the resource transmission that above-described embodiment provides and the embodiment of the method for resource transmission belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can carry out the hardware that instruction is relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (16)

1. a method for resource transmission, is characterized in that, described method comprises:
Obtain the information of the resource to be shared of all terminals, described in the information of resource to be shared comprise: the title of each resource, the title of described each resource place terminal and the size of described each resource;
Obtain current network connection type;
According to described current network connection type with described in the information of resource to be shared, obtain resource to be shared described in each will download terminal share strategy;
The described strategy of sharing is sent to described each terminal of wanting downloaded resources accordingly, make to share strategy described in the described each terminal basis that will download resource to be shared and download.
2. method according to claim 1, is characterized in that, described network type comprises: multi-to-multi network connection type or one-to-many network connection type.
3. method according to claim 2, it is characterized in that, in the time that described current network type is multi-to-multi network connection type, described according to described current network connection type with described in the information of resource to be shared, obtain resource to be shared described in each will download terminal share strategy, comprising:
Obtain the first kind resource to be shared in the resource to be shared of described all terminals, in described first kind resource to be shared, the size of resource is more than or equal to least unit;
Resource each to be shared in described first kind resource to be shared is carried out to burst processing, obtain the burst multiple to be shared of described each resource to be shared, the size of described each burst to be shared is greater than described least unit;
Setting will be downloaded i terminal of described first kind resource to be shared, first corresponding i the burst of downloading in described first kind resource to be shared, and after described i burst downloaded, the terminal of described i the burst of notice storage, and then obtain the information of having descended the terminal of (i+1) %n burst, from described the end of complete (i+1) %n burst download described (i+1) %n burst, until all bursts in the complete described first kind of described i terminal downloads resource to be shared, wherein, n is all number of terminals that will download described first kind resource to be shared.
4. method according to claim 3, is characterized in that, described resource each to be shared in described first kind resource to be shared is carried out to burst processing, obtains the burst multiple to be shared of described each resource to be shared, and comprising:
Resource each to be shared in resource to be shared the described first kind, divided by all number of terminals that will download described first kind resource to be shared, is obtained to the size of the burst to be shared of described each resource to be shared;
According to the size of the burst to be shared of described each resource to be shared, described each resource to be shared is carried out to burst, obtain the burst multiple to be shared of described each resource to be shared.
5. method according to claim 3, is characterized in that, described method also comprises:
Obtain the Equations of The Second Kind resource to be shared in the resource to be shared of described all terminals, in described Equations of The Second Kind resource to be shared, the size of resource is less than described least unit;
Setting will be downloaded the terminal of described Equations of The Second Kind resource to be shared and directly directly be downloaded from the end of storing described Equations of The Second Kind resource to be shared.
6. method according to claim 2, it is characterized in that, in the time that described current network type is one-to-many network connection type, described according to described current network connection type with described in the information of resource to be shared, obtain resource to be shared described in each will download terminal share strategy, comprising:
The current state of the terminal of resource to be shared described in all will download is updated to the state of download;
The terminal of resource to be shared described in described all will download is matched, the terminal that makes resource to be shared described in described each will download is disconnecting with after local connection, is connected and downloads resource accordingly to be shared according to described pairing result with terminal accordingly.
7. method according to claim 6, is characterized in that, described method also comprises:
Re-establish and be connected with the described terminal of having downloaded resource accordingly to be shared, and described in upgrading, downloaded the resource of the terminal storage of resource accordingly to be shared;
According to the resource of the described terminal storage of having downloaded resource accordingly to be shared, again the terminal of resource to be shared described in will downloading is matched, the complete required resource to be shared of the terminal downloads of resource to be shared described in will downloading until all.
8. method according to claim 6, is characterized in that, described by described share strategy send to accordingly described each terminal of wanting downloaded resources after, also comprise:
When the size of resource described to be shared is greater than preset value, and described in described will download in the time that the number of terminals m that shares resource is even number, described in inciting somebody to action, resource to be shared is divided into m burst to be shared, and described each burst correspondence to be shared is transferred to a terminal in n terminal, make the terminal of the described burst of described each storage carry out resource downloading by the described strategy of sharing.
9. method according to claim 6, is characterized in that, described by described share strategy send to accordingly described each terminal of wanting downloaded resources after, also comprise:
When the size of resource described to be shared is greater than preset value, and described in described will download in the time that the number of terminals m that shares resource is odd number, described in inciting somebody to action, resource to be shared is divided into m-1 burst to be shared, and described each burst correspondence to be shared is transferred to a terminal in m-1 terminal, make the terminal of the described burst of described each storage carry out resource downloading by the described strategy of sharing;
Connect described m terminal, described in inciting somebody to action, resource to be shared is directly transferred to described m terminal.
10. a device for resource transmission, is characterized in that, described device comprises:
Resource acquisition module, for obtaining the information of resource to be shared of all terminals, described in the information of resource to be shared comprise: the title of each resource, the title of described each resource place terminal and the size of described each resource;
Network connection type acquisition module, for obtaining current network connection type;
Share tactful acquisition module, for according to described current network connection type with described in the information of resource to be shared, obtain resource to be shared described in each will download terminal share strategy;
Resource downloading module, for the described strategy of sharing is sent to described each terminal of wanting downloaded resources accordingly, makes to share strategy described in the described each terminal basis that will download resource to be shared and downloads.
11. devices according to claim 10, is characterized in that, described network type comprises: multi-to-multi network connection type or one-to-many network connection type.
12. devices according to claim 11, is characterized in that, in the time that described current network type is multi-to-multi network connection type, described in share tactful acquisition module, comprising:
The first acquiring unit, for obtaining the first kind resource to be shared of resource to be shared of described all terminals, in described first kind resource to be shared, the size of resource is more than or equal to least unit;
Sharding unit, for the resource each to be shared of described first kind resource to be shared is carried out to burst processing, obtains the burst multiple to be shared of described each resource to be shared, and the size of described each burst to be shared is greater than described least unit;
First shares tactful acquiring unit, for setting i terminal will downloading described first kind resource to be shared, first corresponding i the burst of downloading in described first kind resource to be shared, and after described i burst downloaded, the terminal of described i the burst of notice storage, and then obtain the information of having descended the terminal of (i+1) %n burst, from described the end of complete (i+1) %n burst download described (i+1) %n burst, until all bursts in the complete described first kind of described i terminal downloads resource to be shared, wherein, n is all number of terminals that will download described first kind resource to be shared.
13. devices according to claim 12, is characterized in that, described sharding unit, comprising:
Burst acquiring size subelement, for by the resource each to be shared of described first kind resource to be shared divided by all number of terminals that will download described first kind resource to be shared, obtain the size of the burst to be shared of described each resource to be shared;
Burst subelement, for according to the size of the burst to be shared of described each resource to be shared, described each resource to be shared being carried out to burst, obtains the burst multiple to be shared of described each resource to be shared.
14. devices according to claim 12, is characterized in that, described in share policy module and also comprise:
Second acquisition unit, for obtaining the Equations of The Second Kind resource to be shared of resource to be shared of described all terminals, in described Equations of The Second Kind resource to be shared, the size of resource is less than described least unit;
Second shares tactful acquiring unit, will download the terminal of described Equations of The Second Kind resource to be shared directly directly download from the end of storing described Equations of The Second Kind resource to be shared for setting.
15. devices according to claim 11, is characterized in that, in the time that described current network type is one-to-many network connection type, described in share tactful acquisition module, comprising:
Updating block, for being updated to the current state of the terminal of resource to be shared described in all will download the state of download;
Pairing unit, for the terminal of resource to be shared described in described all will download is matched, the terminal that makes resource to be shared described in described each will download is disconnecting with after local connection, is connected and downloads resource accordingly to be shared according to described pairing result with terminal accordingly.
16. devices according to claim 11, is characterized in that,
Described updating block is also for re-establishing and be connected with the described terminal of having downloaded resource accordingly to be shared, and described in upgrading, downloaded the resource of the terminal storage of resource accordingly to be shared;
Described pairing unit is also for according to the resource of the described terminal storage of having downloaded resource accordingly to be shared, again the terminal of resource to be shared described in will downloading is matched, the complete required resource to be shared of the terminal downloads of resource to be shared described in will downloading until all.
CN201310196624.0A 2013-05-23 2013-05-23 The method and apparatus of resource transmission Active CN104184770B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310196624.0A CN104184770B (en) 2013-05-23 2013-05-23 The method and apparatus of resource transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310196624.0A CN104184770B (en) 2013-05-23 2013-05-23 The method and apparatus of resource transmission

Publications (2)

Publication Number Publication Date
CN104184770A true CN104184770A (en) 2014-12-03
CN104184770B CN104184770B (en) 2018-05-18

Family

ID=51965506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310196624.0A Active CN104184770B (en) 2013-05-23 2013-05-23 The method and apparatus of resource transmission

Country Status (1)

Country Link
CN (1) CN104184770B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101426019A (en) * 2007-10-30 2009-05-06 广州商机网络科技有限公司 Data file transmission method for mobile phone system
CN101861584A (en) * 2007-11-05 2010-10-13 聚焦网络公司 End to end data transfer
CN102711175A (en) * 2012-05-16 2012-10-03 中兴通讯股份有限公司南京分公司 Method and device for transmitting data
US20130050259A1 (en) * 2011-08-31 2013-02-28 Pantech Co., Ltd. Apparatus and method for sharing data using augmented reality (ar)
CN103067776A (en) * 2012-12-26 2013-04-24 Tcl集团股份有限公司 Program-pushing method and system, intelligent display device, cloud server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101426019A (en) * 2007-10-30 2009-05-06 广州商机网络科技有限公司 Data file transmission method for mobile phone system
CN101861584A (en) * 2007-11-05 2010-10-13 聚焦网络公司 End to end data transfer
US20130050259A1 (en) * 2011-08-31 2013-02-28 Pantech Co., Ltd. Apparatus and method for sharing data using augmented reality (ar)
CN102711175A (en) * 2012-05-16 2012-10-03 中兴通讯股份有限公司南京分公司 Method and device for transmitting data
CN103067776A (en) * 2012-12-26 2013-04-24 Tcl集团股份有限公司 Program-pushing method and system, intelligent display device, cloud server

Also Published As

Publication number Publication date
CN104184770B (en) 2018-05-18

Similar Documents

Publication Publication Date Title
JP7218447B2 (en) Policy control method, device and system
JP2022070887A (en) Method and device for moving between communication systems
EP3923549A1 (en) Data downloading method and related apparatus
EP4247039A1 (en) Computing-aware session management method and communication device
CN101807945A (en) Wireless data transmission system and data transmission method utilizing same
KR102329095B1 (en) Network access method, related devices and systems
CN110582998A (en) Group communication method and device, computer storage medium and computer equipment
JP2022507816A (en) V2X message transmission method, device, and system
CN104702634A (en) Method, device and system for processing data operation request
CN111130820B (en) Cluster management method and device and computer system
US20170180468A1 (en) Method, electronic device and non-transitory computer-readable storage medium for connecting P2P network node
CN102868989B (en) List generating method, system and equipment in Long Term Evolution pattern of fusion core net
CN206149319U (en) Internet video shared device
US8924474B2 (en) Device and method for controlling dissemination of data by transfer of sets of instructions between peers having wireless communication capacities
CN104270743B (en) A kind of method and device for the parameter information obtaining terminal
CN108173909B (en) Data synchronization method, mobile terminal and computer readable storage medium
CN111010323A (en) Network distribution method and system of intelligent equipment
KR102100529B1 (en) Connection information for inter-device wireless data communication
CN104184770A (en) Resource transmission method and device
CN105357238A (en) Point-to-point data transmission method and device
CN102932406B (en) Realize the method, apparatus and system surfed the Internet by WAP modes when flow unloading
JP2022016935A (en) Device, method and program for data processing
US10003657B2 (en) Data transmission processing method and apparatus
CN104683419A (en) Communicating method and system based on android system and m2m (machine to machine)
WO2023016398A1 (en) Computing session update method and device, terminal, and network function entity

Legal Events

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