CN105208084B - Method and device for determining resources to be deployed - Google Patents

Method and device for determining resources to be deployed Download PDF

Info

Publication number
CN105208084B
CN105208084B CN201510502408.3A CN201510502408A CN105208084B CN 105208084 B CN105208084 B CN 105208084B CN 201510502408 A CN201510502408 A CN 201510502408A CN 105208084 B CN105208084 B CN 105208084B
Authority
CN
China
Prior art keywords
resource
disposed
sharing
amount
information
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
CN201510502408.3A
Other languages
Chinese (zh)
Other versions
CN105208084A (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.)
Shenzhen Taile Culture Technology Co ltd
Original Assignee
Beijing Yinzhibang Culture 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 Beijing Yinzhibang Culture Technology Co ltd filed Critical Beijing Yinzhibang Culture Technology Co ltd
Priority to CN201510502408.3A priority Critical patent/CN105208084B/en
Publication of CN105208084A publication Critical patent/CN105208084A/en
Priority to PCT/CN2016/094847 priority patent/WO2017028744A1/en
Application granted granted Critical
Publication of CN105208084B publication Critical patent/CN105208084B/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
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention aims to provide a method and a device for determining resources to be deployed. The method according to the invention comprises the following steps: respectively determining the deployment priority of each resource to be deployed in one or more resources to be deployed based on the requested quantity and the shared quantity of the one or more resources to be deployed; and selecting at least one resource to be deployed for deployment at an active terminal based on the deployment priority of each resource to be deployed in the one or more resources to be deployed, wherein the active terminal comprises a terminal with a larger resource sharing amount.

Description

A kind of method and apparatus for determining resource to be disposed
Technical field
The present invention relates to field of computer technology, more particularly, to determine the method and apparatus of resource to be disposed.
Background technique
Many companies provide the broadcasting of the resources such as audio-video or download service by way of P2P, are carrying out resource deployment When, generally the new biggish resource of resource or demand is deployed in advance in active terminal, to guarantee that these resources have There is higher speed of download.However it is based on which, in fact it could happen that active user is bigger to the demand of certain resources but total It enjoys the number of terminals of these resources less situation, i.e. the current shared amount of these resources demand that is unable to satisfy user, causes Terminal where user can not obtain higher speed of download when downloading such resource by way of P2P.Also, being based on should Mode, the resource for being deployed to active terminals in advance may be that some shared amounts are enough without being disposed again Resource, thus cause the waste of the memory space of these terminals.
Summary of the invention
The object of the present invention is to provide a kind of method and apparatus for determining resource to be disposed.
According to an aspect of the invention, there is provided a kind of method for determining resource to be disposed, wherein the method The following steps are included:
The requested amount of resource to be disposed determines one or more of respectively with by the amount of sharing based on one or more Wait dispose the deployment priority of each resource to be disposed in resource;
Based on one or more of deployment priority wait dispose each resource to be disposed in resource, selection is used for portion Affix one's name at least one resource to be disposed in active terminals, wherein the active terminals include the more terminal of resource sharing amount.
According to an aspect of the present invention, a kind of resource determining device for determining resource to be disposed is additionally provided, In, the resource determining device includes:
For resource to be disposed based on one or more requested amount with by the amount of sharing, determine respectively it is one or more A device wait dispose the deployment priority of each resource to be disposed in resource;
For based on one or more of deployment priority wait dispose each resource to be disposed in resource, selection to be used for It is deployed in the device of at least one resource to be disposed of active terminals, wherein the active terminals include that resource sharing amount is more Terminal.
Compared with prior art, the invention has the following advantages that shared terminal is less and user demand amount is larger Resource deployment to active terminals, the sharing rate of such resource is improved, to guarantee the P2P with higher downloading of such resource Speed makes user enjoy preferably downloading or the experience of playing resource, and saves the broadband cost of server-side;Also, According to the solution of the present invention, it can also be sufficient under user by being filtered out from multiple resources to be disposed by sharing amount Load demand or the resource that can not be normally downloaded, to avoid disposing memory space caused by these resources in active terminals Waste;Also, by will resource deployment be disposed arrive more active terminal, further ensure resource to be disposed with compared with High P2P speed of download, moreover, can also limit according to the solution of the present invention in deployment the deployment behavior of each terminal System, avoids excessively frequently disposing resource and has an impact to terminal to the normal operation of the terminal.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other Feature, objects and advantages will become more apparent upon:
Fig. 1 illustrates according to the present invention a kind of for determining resource allocation method flow chart to be disposed;
Fig. 2 illustrate it is according to the present invention it is a kind of with determine resource to be disposed in resource determining device structural representation Figure.
The same or similar appended drawing reference represents the same or similar component in attached drawing.
Specific embodiment
Present invention is further described in detail with reference to the accompanying drawing.
Fig. 1 illustrates according to the present invention a kind of for determining resource allocation method flow chart to be disposed.It is according to the present invention Method includes step S1 and step S2.
Wherein, it is realized according to the method for the present invention by the inclusion of the resource determining device in computer equipment.It is described Computer equipment includes that one kind can be automatic to carry out numerical value calculating and/or information processing according to the instruction for being previously set or storing Electronic equipment, hardware include but is not limited to microprocessor, specific integrated circuit (ASIC), programmable gate array (FPGA), Digital processing unit (DSP), embedded device etc..The computer equipment includes the network equipment and/or user equipment.Wherein, institute The network equipment is stated to include but is not limited to single network server, the server group of multiple network servers composition or be based on cloud computing The cloud being made of a large amount of hosts or network server of (Cloud Computing), wherein cloud computing is the one of distributed computing Kind, a super virtual computer consisting of a loosely coupled set of computers.The user equipment includes but is not limited to Any one can carry out the electricity of human-computer interaction with user by modes such as keyboard, mouse, remote controler, touch tablet or voice-operated devices Sub- product, for example, personal computer, tablet computer, smart phone, PDA, game machine or IPTV etc..Wherein, the user sets Network locating for the standby and network equipment includes but is not limited to internet, wide area network, Metropolitan Area Network (MAN), local area network, VPN network etc..
Preferably, the network according to the invention is P2P (Peer to Peer) network.
It should be noted that the user equipment, the network equipment and network are only for example, other are existing or from now on may be used Can occur user equipment, the network equipment and network be such as applicable to the present invention, should also be included in the scope of the present invention with It is interior, and be incorporated herein by reference.
Referring to Fig.1, in step sl, resource determining device based on one or more the requested amount of resource to be disposed and by Sharing amount determines one or more of deployment priority wait dispose each resource to be disposed in resource respectively.
Wherein, the deployment priority of the resource to be disposed is used to indicate whether to need preferentially to be deployed in active terminals In.
Preferably, a possibility that deployment priority is higher, is deployed in active terminals is higher.Wherein it is determined that active whole The mode at end will be described in detail subsequent, and details are not described herein again.
Specifically, resource determining device based on one or more distinguish with by the amount of sharing by the requested amount of resource to be disposed Determine one or more of modes wait dispose the deployment priority of each resource to be disposed in resource include but is not limited to Under it is any:
1) be directly based upon requested amount and/or by sharing amount come determine it is one or more of wait dispose in resource it is each to Dispose the deployment priority of resource;
For example, being measured ascending sequence by sharing to each wait dispose money according to each resource to be disposed obtained Source is ranked up, and determine the more forward resource to be disposed of ranking deployment priority it is higher, thus preferentially to by sharing amount compared with Few resource to be disposed is disposed.
Preferably, resource determining device can be used for based on the requested amount of each resource to be disposed with by the amount of sharing to calculate Indicate the weight information of deployment priority, the deployment priority of the bigger resource to be disposed of weight is higher.
For example, the weighted value that the corresponding weight calculation rule of resource determining device includes: each resource to be disposed is equal to it The numerical value of requested amount divided by it by the numerical value of sharing amount, thus preferentially more to requested amount and measured by sharing less to portion Administration's resource is disposed.
2) based on the requested number with described to be shared the ratio between number one or more of wait dispose in resource to determine The deployment priority of each resource to be disposed.
Preferably, when the requested number of a resource to be disposed is bigger than by the ratio of sharing number, should resource be disposed portion It is higher to affix one's name to priority.
Continue to be illustrated foregoing First example, resource determining device is by each resource to be disposed obtained according to it Requested number with the ratio for being shared number is descending is ranked up, and determine that the deployment of the more forward resource to be disposed of ranking is excellent First grade is higher.
Preferably, the step S1 further includes step S101 (not shown) and step S102 (not shown).
In step s101, resource determining device to one or more of wait dispose each resource to be disposed in resource, Judge whether it meets first threshold condition by sharing amount respectively.
Wherein, whether what the first threshold condition was used to judge each resource to be disposed is less than predetermined threshold by sharing amount Value.
Preferably, the first threshold condition is also used to judge whether being not zero by sharing amount for each resource to be disposed.
Then, in step s 102, resource determining device is expired wait dispose in resource by sharing amount to one or more of Each resource to be disposed of sufficient first threshold condition determines that it disposes priority respectively.
For example, it is not less than 5 and not 0 that the corresponding first threshold condition of resource determining device, which includes: by sharing amount, then resource Whether what determining device judged each resource to be disposed is met the first threshold condition by sharing number, and to meeting the first threshold Those of condition resource to be disposed determine respectively its dispose priority to be disposed, and no longer to remaining resource to be disposed into Row deployment.
Then, in step s 2, resource determining device is based on one or more of each wait dispose in resource wait dispose The deployment priority of resource selects at least one resource to be disposed for being deployed in active terminals.
Wherein, the active terminals include the more terminal of resource sharing amount.
Specifically, resource determining device is based on one or more of deployment wait dispose each resource to be disposed in resource Priority selects predetermined number, the deployment higher resource to be disposed of priority, for being deployed in active terminals.
Continue to be illustrated foregoing First example, portion of the resource determining device based on identified each resource to be disposed Priority is affixed one's name to, preceding 10 resources to be disposed of highest priority is selected to be deployed in active terminals.
Preferably, resource determining device can also by each resource to be disposed according to its requested amount with by the ratio of the amount of sharing It is descending to be ranked up, and corresponding long-tail model schematic is obtained accordingly, then based on the analysis to the schematic diagram, selection Amount is requested in the schematic diagram with the resource to be disposed of predetermined threshold is greater than by the ratio of the amount of sharing to be deployed in active end End.
Preferably, before executing abovementioned steps S1 and step S2, (figure is not by executing step S3 for resource determining device Show) come determine the requested amounts of one or more resources to be disposed with by the amount of sharing.
In step s3, log information of the resource determining device based on each terminal, come determine it is one or more of to Dispose resource requested amount with by the amount of sharing.
Wherein, the resource to be disposed is used to indicate the resource for needing to be disposed in advance.
Wherein, the log information of each terminal includes the resource that downloading is requested when each terminal is downloaded every time Identification information with the resource requested by the amount of sharing.
Preferably, resource determining device carries out the first screening to the log information by executing step S4 (not shown) Operation.
In step s 4, at least one dimensional information of resource determining device based on log information, to the log information The first screening operation is carried out, it is one or more to determine with based on one or more log informations after the first screening operation The requested amount of a resource to be disposed with by the amount of sharing.
Wherein, at least one described dimensional information is based respectively on log properties information to determine.
Preferably, the log properties information includes but is not limited to following at least any one information:
1) geography information of the affiliated terminal of log;
2) the operator domain information of the affiliated terminal of log;
3) temporal information of log recording.
Specifically, at least one dimensional information of resource determining device based on log information, and at least one is tieed up with this The corresponding one or more dimension condition information of information are spent, are filtered out from the log information and the one or more dimension One or more log informations that conditional information matches, with based on one or more log informations after screening, to determine State the requested amounts of one or more resources to be disposed with by the amount of sharing.
Preferably, the dimension condition information can be based on pre-seting or user's operation determines.For example, being based on user The time interval of selection, the dimension condition information etc. as time dimension.
First example according to the present invention, resource determining device are contained in the service of the website of an offer audio download services In device, also, predetermined log information is screened based on temporal information and geographical location information the two dimensions.Resource determines The dimension condition information that device obtains includes: that time dimension condition " in nearest one hour " and geography dimensionality condition " are located at area Domain area_1 ".Then in step s 4, resource determining device is based on the time dimension condition and geography dimensionality condition, to storage Log information in the server is screened from temporal information and geographical location information the two dimensions, to be pass by Each terminal recorded in one hour, in the regional scope log information, and by with the log information after screening Corresponding, each terminal requests each audio of downloading as resource to be disposed, thus based on the log information after screening Come determine the requested amount of corresponding each resource to be disposed with by the amount of sharing.
According to the method for the present invention, by by user demand amount it is larger and the less resource deployment of shared terminal to it is active eventually End, improves the sharing rate of such resource, to guarantee such resource P2P speed of download with higher, enjoys user Preferably downloading or the experience of playing resource, and save the broadband cost of server-side.Also, by to be disposed multiple The resource that is sufficient for the downloading demand of user by sharing amount or can not normally be downloaded is filtered out in resource, to avoid Active terminals dispose these unnecessary wastes for carrying out memory space caused by deployment resource.
According to a preferred embodiment of the invention, the method also includes step S5 (not shown) and step S6 (figure Do not show).
In step s 5, resource determining device determines one or more based on the resource sharing status information of each terminal Active terminals.
Wherein, the active terminals are used to indicate resource sharing and more have frequently and in resource sharing compared with dominance The terminal of energy.
Preferably, the sharing status information includes but is not limited to following at least any one:
1) the resource sharing amount of terminal;The resource sharing amount includes that each terminal uploads or download within a predetermined period of time money The quantity in source.For example, being more than the terminal of predetermined threshold as active whole using the number that resource was uploaded or downloaded in past 1 hour End.
2) online hours of terminal, for example, being more than the terminal of predetermined threshold as active terminals using online hours;
3) the remaining cache space of terminal, for example, remaining cache space is greater than the terminal of predetermined threshold as active whole End.
In step s 6, at least one identified described resource to be disposed is deployed in described one by resource determining device In a or multiple active terminals.
Specifically, resource determining device is by least one identified described resource deployment to be disposed in one or more Mode in a active terminals includes but is not limited to any of the following:
1) by it is identified need to be disposed resource be respectively deployed in one or more of active terminals;
2) determining each resource to be disposed is divided into multiple groups resource to be disposed, and respectively by each group Resources Department to be disposed It affixes one's name in one or more active terminals of all active terminals.
For example, resource to be disposed determined by resource determining device has 7, identified active terminals have 3, then resource Determining device can from this 7 wait dispose in resource randomly choose 3 be deployed to either one or two of 3 active terminals, then again from Remaining 4 are deployed to either one or two of remaining 2 active terminals wait dispose random selection 2 in resource, and by remaining 2 Resource deployment to be disposed is to remaining active terminals.
Alternatively, resource determining device can select priority higher 4 based on the deployment priority of 7 resources to be disposed It is a to be deployed in 3 active terminals, and by remaining 3 resource deployment to be disposed to any two in 3 active terminals On.
Preferably, the step S6 further includes step S601 (not shown).
In step s 601, resource determining device is based on the respective sharing of one or more of active terminals and limits letter Breath, at least one identified described resource to be disposed is respectively deployed in one or more of active terminals at least In one active terminals.
Wherein, the sharing prescribed information includes the various information that can be limited the behavior in terminal disposition resource. For example, the information limited in the number that each active terminals are disposed predetermined amount of time.In another example being carried out to each The information etc. that the resource number to be disposed of deployment is limited.
Continue to be illustrated foregoing First example, the corresponding sharing prescribed information of resource determining device includes: each end End can at most be disposed twice daily;Deployment can at most dispose 5 resources to be disposed every time.Resource determining device is in step S5 It is middle obtain its corresponding all terminal in the past two hours in resource upload amount and download, and wherein will upload or download money Source number is more than 5 terminal peer_1 to peer_5 as active terminals.
Then, resource determining device disposes the information of resource respectively based on its that 5 active terminals report to judge it Whether meet the sharing prescribed information, and determines that wherein the active terminals peer_3 same day is disposed twice, and then determine not It is disposed on terminal peer_3.Then, resource determining device selects deployment wait dispose from identified 10 in resource Preceding 5 resources to be disposed of highest priority come be deployed in active terminals peer_1, peer_2, peer_4 and peer_5 appoint On 3, and 5 resource deployments to be disposed of priority rearward will be disposed in remaining two active terminals.
According to the method for this preferred embodiment, by will resource deployment be disposed to more active terminal, further It ensure that the P2P speed of download with higher of resource to be disposed, and the deployment behavior of each terminal carried out in deployment Limitation, avoids excessively frequently disposing resource and has an impact to terminal to the normal operation of the terminal.
Fig. 2 illustrate it is according to the present invention it is a kind of with determine resource to be disposed in resource determining device structural representation Figure.Resource determining device according to the present invention include for resource to be disposed based on one or more requested amount with shared Amount determines one or more of device (following letters wait dispose the deployment priority of each resource to be disposed in resource respectively Claim " the first determining device 1 "), and for excellent based on one or more of deployment wait dispose each resource to be disposed in resource First grade selects the device (hereinafter referred to as " selection device 2 ") for being deployed at least one resource to be disposed of active terminals.
Referring to Fig. 2, the first determining device 1 based on one or more divide with by the amount of sharing by the requested amount of resource to be disposed One or more of deployment priority wait dispose each resource to be disposed in resource are not determined.
Wherein, the deployment priority of the resource to be disposed is used to indicate whether to need preferentially to be deployed in active terminals In.
Preferably, a possibility that deployment priority is higher, is deployed in active terminals is higher.Wherein it is determined that active whole The mode at end will be described in detail subsequent, and details are not described herein again.
Specifically, the first determining device 1 based on one or more distinguish with by the amount of sharing by the requested amount of resource to be disposed Determine one or more of modes wait dispose the deployment priority of each resource to be disposed in resource include but is not limited to Under it is any:
1) be directly based upon requested amount and/or by sharing amount come determine it is one or more of wait dispose in resource it is each to Dispose the deployment priority of resource;
For example, being measured ascending sequence by sharing to each wait dispose money according to each resource to be disposed obtained Source is ranked up, and determine the more forward resource to be disposed of ranking deployment priority it is higher, thus preferentially to by sharing amount compared with Few resource to be disposed is disposed.
Preferably, the first determining device 1 can calculate use with by the amount of sharing based on the requested amount of each resource to be disposed In the weight information for indicating deployment priority, the deployment priority of the bigger resource to be disposed of weight is higher.
For example, the weighted value that the corresponding weight calculation rule of resource determining device includes: each resource to be disposed is equal to it The numerical value of requested amount divided by it by the numerical value of sharing amount, thus preferentially more to requested amount and measured by sharing less to portion Administration's resource is disposed.
2) based on the requested number with described to be shared the ratio between number one or more of wait dispose in resource to determine The deployment priority of each resource to be disposed.
Preferably, when the requested number of a resource to be disposed is bigger than by the ratio of sharing number, should resource be disposed portion It is higher to affix one's name to priority.
Continue to be illustrated foregoing First example, resource determining device is by each resource to be disposed obtained according to it Requested number with the ratio for being shared number is descending is ranked up, and determine that the deployment of the more forward resource to be disposed of ranking is excellent First grade is higher.
Preferably, first determining device 1 further include for it is one or more of wait dispose in resource it is each to Dispose resource, judge respectively its whether met by sharing amount the device of first threshold condition (it is not shown, hereinafter referred to as " judgement dress Set "), with for it is one or more of wait dispose in resource by the amount of sharing meet first threshold condition it is each wait dispose money Source determines that it disposes the device (not shown, hereinafter referred to as " sub- determining device ") of priority respectively.
Judgment means, wait dispose each resource to be disposed in resource, judge that it is measured by sharing to one or more of respectively Whether first threshold condition is met.
Wherein, whether what the first threshold condition was used to judge each resource to be disposed is less than predetermined threshold by sharing amount Value.
Preferably, the first threshold condition is also used to judge whether being not zero by sharing amount for each resource to be disposed.
Then, sub- determining device meets first threshold condition by sharing amount wait dispose in resource to one or more of Each resource to be disposed determines that it disposes priority respectively.
For example, it is not less than 5 and not 0 that the corresponding first threshold condition of resource determining device, which includes: by sharing amount, then judge Whether what device judged each resource to be disposed is met the first threshold condition by sharing number, sub- determining device to meet this first Those of threshold condition resource to be disposed determines that it disposes priority to be disposed respectively, and no longer waits remaining disposing money Source is disposed.
Then, selection device 2 is preferential based on one or more of deployment wait dispose each resource to be disposed in resource Grade, selects at least one resource to be disposed for being deployed in active terminals.
Wherein, the active terminals include the more terminal of resource sharing amount.
Specifically, selection device 2 is excellent based on one or more of deployment wait dispose each resource to be disposed in resource First grade selects predetermined number, the deployment higher resource to be disposed of priority, for being deployed in active terminals.
Continue to be illustrated foregoing First example, deployment of the selection device 2 based on identified each resource to be disposed Priority selects preceding 10 resources to be disposed of highest priority to be deployed in active terminals.
Preferably, selection device 2 can also by each resource to be disposed according to its requested amount with by the ratio of the amount of sharing by Arrive greatly it is small be ranked up, and obtain corresponding long-tail model schematic accordingly, then based on the analysis to the schematic diagram, select position Amount is requested in the schematic diagram with the resource to be disposed of predetermined threshold is greater than by the ratio of the amount of sharing to be deployed in active terminals.
Preferably, the resource determining device include for the log information based on each terminal, it is one to determine Or the requested amount of multiple resources to be disposed with by the device (not shown, hereinafter referred to as " the second determining device ") of the amount of sharing.
Log information of second determining device based on each terminal, to determine the quilt of one or more of resources to be disposed Request amount with by the amount of sharing.
Wherein, the resource to be disposed is used to indicate the resource for needing to be disposed in advance.
Wherein, the log information of each terminal includes the resource that downloading is requested when each terminal is downloaded every time Identification information with the resource requested by the amount of sharing.
Preferably, resource determining device includes at least one dimensional information based on log information, to the log Information carries out the device (not shown, hereinafter referred to as " screening plant ") of the first screening operation.
At least one dimensional information of screening plant based on log information carries out the first screening to the log information and grasps Make, with based on one or more log informations after the first screening operation, to determine one or more of resources to be disposed Requested amount with by the amount of sharing.
Wherein, at least one described dimensional information is based respectively on log properties information to determine.
Preferably, the log properties information includes but is not limited to following at least any one information:
1) geography information of the affiliated terminal of log;
2) the operator domain information of the affiliated terminal of log;
3) temporal information of log recording.
Specifically, at least one dimensional information of screening plant based on log information, and believe at least one dimension The corresponding one or more dimension condition information of manner of breathing, filter out and the one or more dimension condition from the log information One or more log informations that information matches, with based on one or more log informations after screening, to determine described one The requested amount of a or multiple resources to be disposed with by the amount of sharing.
Preferably, the dimension condition information can be based on pre-seting or user's operation determines.For example, being based on user The time interval of selection, the dimension condition information etc. as time dimension.
First example according to the present invention, resource determining device are contained in the service of the website of an offer audio download services In device, also, predetermined log information is screened based on temporal information and geographical location information the two dimensions.Resource determines The dimension condition information that device obtains includes: that time dimension condition " in nearest one hour " and geography dimensionality condition " are located at area Domain area_1 ".Then screening plant is based on the time dimension condition and geography dimensionality condition, come to the day being stored in the server Will information is screened from temporal information and geographical location information the two dimensions, thus obtain over it is recording in one hour, Each terminal in the regional scope log information, and by end corresponding with the log information after screening, each End requests each audio of downloading as resource to be disposed, to be determined based on the log information after screening corresponding each The requested amount of resource to be disposed with by the amount of sharing.
According to the solution of the present invention, by by user demand amount it is larger and the less resource deployment of shared terminal to it is active eventually End, improves the sharing rate of such resource, to guarantee such resource P2P speed of download with higher, enjoys user Preferably downloading or the experience of playing resource, and save the broadband cost of server-side.Also, by to be disposed multiple The resource that is sufficient for the downloading demand of user by sharing amount or can not normally be downloaded is filtered out in resource, to avoid Active terminals dispose the waste of memory space caused by these resources.
According to a preferred embodiment of the invention, the resource determining device further includes for based on each terminal Resource sharing status information come determine one or more active terminals device (it is not shown, hereinafter referred to as " terminal determine dress Set "), and for being deployed at least one identified described resource to be disposed in one or more of active terminals Device (not shown, hereinafter referred to as " deployment device ").
Terminal determining device determines one or more active terminals based on the resource sharing status information of each terminal.
Wherein, the active terminals are used to indicate resource sharing and more have frequently and in resource sharing compared with dominance The terminal of energy.
Preferably, the sharing status information includes but is not limited to following at least any one:
1) the resource sharing amount of terminal;The resource sharing amount includes that each terminal uploads or download within a predetermined period of time money The quantity in source.For example, being more than the terminal of predetermined threshold as active whole using the number that resource was uploaded or downloaded in past 1 hour End.
2) online hours of terminal, for example, being more than the terminal of predetermined threshold as active terminals using online hours;
3) the remaining cache space of terminal, for example, remaining cache space is greater than the terminal of predetermined threshold as active whole End.
Device is disposed by least one identified described resource to be disposed, is deployed in one or more of active terminals On.
Specifically, deployment device is by least one identified described resource deployment to be disposed in one or more of work Mode in jump terminal includes but is not limited to any of the following:
1) by it is identified need to be disposed resource be respectively deployed in one or more of active terminals;
2) determining each resource to be disposed is divided into multiple groups resource to be disposed, and respectively by each group Resources Department to be disposed It affixes one's name in one or more active terminals of all active terminals.
For example, resource to be disposed determined by resource determining device has 7, identified active terminals have 3, then dispose Device can be deployed to either one or two of 3 active terminals from this wait dispose random selection 3 in resource, then again from remaining 4 are deployed to either one or two of remaining 2 active terminals wait dispose random selection 2 in resource, and by remaining 2 wait dispose Resource deployment is to remaining active terminals.
Alternatively, deployment device can select higher 4 portions of priority based on the deployment priority of 7 resources to be disposed It affixes one's name in 3 active terminals, and will be in remaining 3 resource deployment to be disposed to any two in 3 active terminals.
Preferably, the deployment device further includes for being limited based on the respective sharing of one or more of active terminals At least one identified described resource to be disposed is respectively deployed in one or more of active terminals extremely by information Device (not shown, hereinafter referred to as " sub-portion administration device ") in few active terminals.
Sub-portion affixes one's name to device and is based on the respective sharing prescribed information of one or more of active terminals, will be identified described At least one resource to be disposed is respectively deployed at least one active terminals in one or more of active terminals.
Wherein, the sharing prescribed information includes the various information that can be limited the behavior in terminal disposition resource. For example, the information limited in the number that each active terminals are disposed predetermined amount of time.In another example being carried out to each The information etc. that the resource number to be disposed of deployment is limited.
Continue to be illustrated foregoing First example, the corresponding sharing prescribed information of resource determining device includes: each end End can at most be disposed twice daily;Deployment can at most dispose 5 resources to be disposed every time.It is right that terminal determining device obtains its All terminals answered in the past two hours in resource upload amount and download, and wherein will upload or download number of resources is more than 5 A terminal peer_1 to peer_5 is as active terminals.
Then, sub-portion administration device, which disposes the information of resource respectively based on its that 5 active terminals report to judge it, is It is no to meet the sharing prescribed information, and determine that wherein the active terminals peer_3 same day is disposed twice, and then determination does not exist It is disposed on terminal peer_3.Then, it is preferential wait dispose selection deployment in resource from identified 10 to affix one's name to device for sub-portion Grade highest preceding 5 resources to be disposed are deployed in wantonly 3 in active terminals peer_1, peer_2, peer_4 and peer_5 On, and 5 resource deployments to be disposed of priority rearward will be disposed in remaining two active terminals.
According to this preferred embodiment, by will resource deployment be disposed to more active terminal, further ensure The P2P speed of download with higher of resource to be disposed, and the deployment behavior of each terminal is limited in deployment, it keeps away Exempt from excessively frequently to dispose resource and the normal operation of the terminal is had an impact to terminal.
Software program of the invention can be executed to implement the above steps or functions by processor.Similarly, originally The software program (including relevant data structure) of invention can be stored in computer readable recording medium, for example, RAM is deposited Reservoir, magnetic or optical driver or floppy disc and similar devices.In addition, hardware can be used in fact in some steps of the invention or function It is existing, for example, as the circuit cooperated with processor thereby executing each function or step.
In addition, a part of the invention can be applied to computer program product, such as computer program instructions, when its quilt When computer executes, by the operation of the computer, it can call or provide according to the method for the present invention and/or technical solution. And the program instruction of method of the invention is called, it is possibly stored in fixed or moveable recording medium, and/or pass through Broadcast or the data flow in other signal-bearing mediums and transmitted, and/or be stored according to described program instruction operation In the working storage of computer equipment.Here, according to one embodiment of present invention including a device, which includes using Memory in storage computer program instructions and processor for executing program instructions, wherein when the computer program refers to When enabling by processor execution, method and/or skill of the device operation based on aforementioned multiple embodiments according to the present invention are triggered Art scheme.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included in the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.That states in system claims is multiple Unit or device can also be implemented through software or hardware by a unit or device.The first, the second equal words are used to table Show title, and does not indicate any particular order.
Although front is specifically shown and describes exemplary embodiment, it will be understood to those of skill in the art that It is that without departing substantially from the spirit and scope of claims, can be varied in terms of its form and details.Here Sought protection illustrates in the dependent claims.These of each embodiment are defined in following number clause In terms of other:
1. a kind of method for determining resource to be disposed, wherein the described method comprises the following steps:
The requested amount of resource to be disposed determines one or more of respectively with by the amount of sharing based on one or more Wait dispose the deployment priority of each resource to be disposed in resource;
Based on one or more of deployment priority wait dispose each resource to be disposed in resource, selection is used for portion Affix one's name at least one resource to be disposed in active terminals, wherein the active terminals include the more terminal of resource sharing amount.
2. according to method described in clause 1, wherein the method also includes following steps:
Based on the log information of each terminal, come determine one or more of resources to be disposed requested amount and by Sharing amount.
3. according to method described in clause 2, wherein the method also includes following steps:
It is based at least one dimensional information, the first screening operation is carried out to the log information, based on the first screening behaviour One or more log informations after work, come determine the requested amounts of one or more of resources to be disposed with by the amount of sharing.
4. according to method described in clause 3, wherein at least one described dimensional information is based respectively on log properties information It determines, wherein the log properties information includes following at least any one information:
The geography information of the affiliated terminal of log;
The operator domain information of the affiliated terminal of log;
The temporal information of log recording.
5. the method according to any one of clause 1 to 4, wherein the resource to be disposed based on one or more It is requested to measure and by the amount of sharing, determine that one or more of deployment wait dispose each resource to be disposed in resource are preferential respectively The step of grade, is further comprising the steps of:
To one or more of wait dispose each resource to be disposed in resource, judge whether it is full by sharing amount respectively Sufficient first threshold condition;
The each wait dispose money of first threshold condition is met by sharing amount wait dispose in resource to one or more of Source determines that it disposes priority respectively.
6. the method according to any one of clause 1 to 5, wherein the method also includes following steps:
One or more active terminals are determined based on the resource sharing amount of each terminal.
At least one identified described resource to be disposed is deployed in one or more of active terminals.
7. according to method described in clause 6, wherein described by least one identified described resource to be disposed, deployment It is further comprising the steps of in the step in one or more of active terminals:
Be based on the respective sharing prescribed information of one or more of active terminals, will it is identified described at least one Resource to be disposed is respectively deployed at least one active terminals in one or more of active terminals.
8. the method according to any one of clause 1 to 7, wherein the deployment priority is based on the requested amount It is determined with described by the ratio between the amount of sharing.
9. the method according to any one of clause 1 to 8, wherein divided when the requested amount of a resource to be disposed compares The ratio for the amount of enjoying is bigger, and the deployment priority for being somebody's turn to do resource to be disposed is higher.
10. a kind of for determining the resource determining device of resource to be disposed, wherein the resource determining device includes:
For resource to be disposed based on one or more requested amount with by the amount of sharing, determine respectively it is one or more A device wait dispose the deployment priority of each resource to be disposed in resource;
For based on one or more of deployment priority wait dispose each resource to be disposed in resource, selection to be used for It is deployed in the device of at least one resource to be disposed of active terminals, wherein the active terminals include that resource sharing amount is more Terminal.
11. according to resource determining device described in clause 10, wherein the resource determining device further include:
For the log information based on each terminal, come determine one or more of resources to be disposed requested amount and By the device of sharing amount.
12. according to resource determining device described in clause 11, wherein the resource determining device further include:
For being based at least one dimensional information, the first screening operation is carried out to the log information, based on the first sieve One or more log informations after selection operation, come determine the requested amounts of one or more of resources to be disposed with shared The device of amount.
13. according to resource determining device described in clause 12, wherein at least one described dimensional information is based respectively on log Attribute information determines, wherein the log properties information includes following any one of at least information:
The geography information of the affiliated terminal of log;
The operator domain information of the affiliated terminal of log;
The temporal information of log recording.
14. the resource determining device according to any one of clause 10 to 13, wherein described for being based on one or more The requested amount of a resource to be disposed with by the amount of sharing, determine respectively it is one or more of each wait dispose in resource wait dispose The device of the deployment priority of resource further include:
For, wait dispose each resource to be disposed in resource, judge respectively one or more of its by sharing amount whether Meet the device of first threshold condition;
For meeting each wait dispose of first threshold condition by sharing amount wait dispose in resource to one or more of Resource determines that it disposes the device of priority respectively.
15. the resource determining device according to any one of clause 10 to 14, wherein the resource determining device is also wrapped It includes:
For determining the device of one or more active terminals based on the resource sharing amount of each terminal.
For being deployed at least one identified described resource to be disposed in one or more of active terminals Device.
16. according to resource determining device described in clause 15, wherein it is described for by it is identified it is described at least one wait for Dispose resource, the device being deployed in one or more of active terminals further include:
For being based on the respective sharing prescribed information of one or more of active terminals, by identified described at least one A resource to be disposed, the device being respectively deployed at least one active terminals in one or more of active terminals.
17. the resource determining device according to any one of clause 10 to 16, wherein the deployment priority is based on institute Requested amount is stated to be determined with described by the ratio between the amount of sharing.
18. the resource determining device according to any one of clause 10 to 17, wherein when being asked for a resource to be disposed The amount of asking is bigger than by the ratio of sharing amount, and the deployment priority for being somebody's turn to do resource to be disposed is higher.

Claims (16)

1. a kind of method for determining resource to be disposed, wherein the described method comprises the following steps:
Based on one or more the requested amount of resource to be disposed with by the amount of sharing, determine respectively it is one or more of to portion Affix one's name to the deployment priority of each resource to be disposed in resource;
Based on one or more of deployment priority wait dispose each resource to be disposed in resource, select for being deployed in At least one of active terminals resource to be disposed, wherein the active terminals include the more terminal of resource sharing amount;
Wherein, the method also includes following steps:
One or more active terminals are determined based on the sharing status information of each terminal;
Wherein, the sharing status information includes:
The resource sharing amount of terminal;
The online hours of terminal;
The remaining cache space of terminal;
At least one identified described resource to be disposed is deployed in one or more of active terminals;
Wherein, the active terminals be used to indicate resource sharing it is more frequent and in resource sharing with compared with dominance can Terminal.
2. according to the method described in claim 1, wherein, the method also includes following steps:
Based on the log information of each terminal, come determine the requested amounts of one or more of resources to be disposed with shared Amount.
3. according to the method described in claim 2, wherein, the method also includes following steps:
It is based at least one dimensional information, the first screening operation is carried out to the log information, based on after the first screening operation One or more log informations, come determine the requested amounts of one or more of resources to be disposed with by the amount of sharing.
4. according to the method described in claim 3, wherein, at least one described dimensional information is based respectively on log properties information It determines, wherein the log properties information includes following at least any one information:
The geography information of the affiliated terminal of log;
The operator domain information of the affiliated terminal of log;
The temporal information of log recording.
5. method according to claim 1 to 4, wherein the resource to be disposed based on one or more It is requested to measure and by the amount of sharing, determine that one or more of deployment wait dispose each resource to be disposed in resource are preferential respectively The step of grade, is further comprising the steps of:
It is one or more of wait dispose each resource to be disposed in resource, judge whether it meets first by sharing amount respectively Threshold condition;
To one or more of wait dispose in resource each resource to be disposed for being met first threshold condition by sharing amount, point Do not determine that it disposes priority.
6. described by least one identified described resource to be disposed, deployment according to the method described in claim 1, wherein It is further comprising the steps of in the step in one or more of active terminals:
Be based on the respective sharing prescribed information of one or more of active terminals, by it is identified it is described at least one wait for portion Resource is affixed one's name to, is respectively deployed at least one active terminals in one or more of active terminals.
7. method according to any one of claim 1 to 6, wherein the deployment priority is based on the requested amount It is determined with described by the ratio between the amount of sharing.
8. method according to any one of claim 1 to 7, wherein divided when the requested amount of a resource to be disposed compares The ratio for the amount of enjoying is bigger, and the deployment priority for being somebody's turn to do resource to be disposed is higher.
9. a kind of for determining the resource determining device of resource to be disposed, wherein the determining device includes:
For resource to be disposed based on one or more requested amount with by the amount of sharing, determine respectively it is one or more of to Dispose the device of the deployment priority of each resource to be disposed in resource;
For selecting for disposing based on one or more of deployment priority wait dispose each resource to be disposed in resource In the device of at least one resource to be disposed of active terminals, wherein the active terminals include resource sharing amount more end End;
Wherein, the resource determining device further include:
For determining the device of one or more active terminals based on the resource sharing amount of each terminal;
Wherein, the sharing status information includes:
The resource sharing amount of terminal;
The online hours of terminal;
The remaining cache space of terminal;
For by least one identified described resource to be disposed, the dress being deployed in one or more of active terminals It sets;
Wherein, the active terminals be used to indicate resource sharing it is more frequent and in resource sharing with compared with dominance can Terminal.
10. resource determining device according to claim 9, wherein the resource determining device further include:
For the log information based on each terminal, to determine the requested amount of one or more of resources to be disposed and be divided The device for the amount of enjoying.
11. resource determining device according to claim 10, wherein the resource determining device further include:
For being based at least one dimensional information, the first screening operation is carried out to the log information, based on the first screening behaviour One or more log informations after work, come determine the requested amounts of one or more of resources to be disposed with by the amount of sharing Device.
12. resource determining device according to claim 11, wherein at least one described dimensional information is based respectively on log Attribute information determines, wherein the log properties information includes following any one of at least information:
The geography information of the affiliated terminal of log;
The operator domain information of the affiliated terminal of log;
The temporal information of log recording.
13. the resource determining device according to any one of claim 9 to 12, wherein described for being based on one or more The requested amount of a resource to be disposed with by the amount of sharing, determine respectively it is one or more of each wait dispose in resource wait dispose The device of the deployment priority of resource further include:
For one or more of wait dispose each resource to be disposed in resource, judge whether it meets by sharing amount respectively The device of one threshold condition;
For to one or more of wait dispose in resource each resource to be disposed for being met first threshold condition by sharing amount, Determine that it disposes the device of priority respectively.
14. resource determining device according to claim 9, wherein it is described for by it is identified it is described at least one wait for Dispose resource, the device being deployed in one or more of active terminals further include:
For be based on the respective sharing prescribed information of one or more of active terminals, by it is identified it is described at least one wait for Dispose resource, the device being respectively deployed at least one active terminals in one or more of active terminals.
15. the resource determining device according to any one of claim 9 to 14, wherein the deployment priority is based on institute Requested amount is stated to be determined with described by the ratio between the amount of sharing.
16. resource determining device according to any one of claims 9 to 15, wherein when being asked for a resource to be disposed The amount of asking is bigger than by the ratio of sharing amount, and the deployment priority for being somebody's turn to do resource to be disposed is higher.
CN201510502408.3A 2015-08-14 2015-08-14 Method and device for determining resources to be deployed Active CN105208084B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510502408.3A CN105208084B (en) 2015-08-14 2015-08-14 Method and device for determining resources to be deployed
PCT/CN2016/094847 WO2017028744A1 (en) 2015-08-14 2016-08-12 Method and device for determining to-be-deployed resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510502408.3A CN105208084B (en) 2015-08-14 2015-08-14 Method and device for determining resources to be deployed

Publications (2)

Publication Number Publication Date
CN105208084A CN105208084A (en) 2015-12-30
CN105208084B true CN105208084B (en) 2019-07-09

Family

ID=54955509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510502408.3A Active CN105208084B (en) 2015-08-14 2015-08-14 Method and device for determining resources to be deployed

Country Status (2)

Country Link
CN (1) CN105208084B (en)
WO (1) WO2017028744A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208084B (en) * 2015-08-14 2019-07-09 北京音之邦文化科技有限公司 Method and device for determining resources to be deployed
CN106775850A (en) * 2016-12-02 2017-05-31 海马云(天津)信息技术有限公司 The installation calculating of instance system application and installation method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413155A (en) * 2010-09-21 2012-04-11 腾讯科技(深圳)有限公司 Data transmission method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020198929A1 (en) * 2001-06-25 2002-12-26 International Business Machines Corporation Method and apparatus to encourage client into a distributed peer to peer sharing technology
US7802065B1 (en) * 2004-05-03 2010-09-21 Crimson Corporation Peer to peer based cache management
CN101841556B (en) * 2010-02-23 2013-01-30 中国科学院计算技术研究所 Method and system for placing resources replication in CDN-P2P (Content Distribution Network-Peer-to-Peer) network
CN102299905A (en) * 2010-06-23 2011-12-28 中国移动通信集团公司 P2P streaming media resource adjusting method, apparatus thereof and system thereof
CN105208084B (en) * 2015-08-14 2019-07-09 北京音之邦文化科技有限公司 Method and device for determining resources to be deployed

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102413155A (en) * 2010-09-21 2012-04-11 腾讯科技(深圳)有限公司 Data transmission method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种高效的对等网络流媒体数据调度算法;任浩等;《西安交通大学学报》;20110630;第45卷(第6期);摘要,正文3.1节 *

Also Published As

Publication number Publication date
CN105208084A (en) 2015-12-30
WO2017028744A1 (en) 2017-02-23

Similar Documents

Publication Publication Date Title
CN104967607B (en) A kind of information processing method, terminal and server
EP2999527B1 (en) Game availability in a remote gaming environment
US20140344457A1 (en) Resource allocation to game titles in a remote gaming environment
WO2014194695A1 (en) Method and server for pvp team matching in computer games
JP2013507718A5 (en)
CN106888381B (en) A kind of data resource storage method and device
KR20140101697A (en) Automatic detection of fraudulent ratings/comments related to an application store
CN108112038B (en) Method and device for controlling access flow
CN103686237A (en) Method and system for recommending video resource
CN103647800A (en) Method and system of recommending application resources
CN109242573A (en) Evaluation method, device, equipment and the storage medium of APP
CN109428910B (en) Data processing method, device and system
US20170185454A1 (en) Method and Electronic Device for Determining Resource Consumption of Task
US9325761B1 (en) Content provider selection system
CN107391108B (en) Notification bar information correction method and device and electronic equipment
CN111209067A (en) Multimedia resource processing method and device, storage medium and computing equipment
CN104133825A (en) Method and device for matching client user
CN104980417B (en) A kind of UGC document distribution method and equipment
US9778737B1 (en) Game recommendations based on gesture type
US20170187822A1 (en) Content prefetching and cache management
CN103916702A (en) Method and terminal for intercepting advertisements
CN105610869B (en) Method and device for scheduling streaming media
CN112734498A (en) Task reward acquisition method, device, terminal and storage medium
CN105208084B (en) Method and device for determining resources to be deployed
JP2013109548A (en) Information processing system, information processing method, program and information storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160329

Address after: 100027 Haidian District, Qinghe Qinghe East Road, No. 23, building two, floor 2108, No., No. 18

Applicant after: BEIJING YINZHIBANG CULTURE TECHNOLOGY Co.,Ltd.

Address before: 100085 Beijing, Haidian District, No. ten on the street Baidu building, No. 10

Applicant before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220510

Address after: 518057 3305, floor 3, building 1, aerospace building, No. 51, Gaoxin South ninth Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong

Patentee after: Shenzhen Taile Culture Technology Co.,Ltd.

Address before: 2108, floor 2, building 23, No. 18, anningzhuang East Road, Qinghe, Haidian District, Beijing 100027

Patentee before: BEIJING YINZHIBANG CULTURE TECHNOLOGY Co.,Ltd.