CN108156257A - A kind of information-pushing method and device - Google Patents

A kind of information-pushing method and device Download PDF

Info

Publication number
CN108156257A
CN108156257A CN201810042839.XA CN201810042839A CN108156257A CN 108156257 A CN108156257 A CN 108156257A CN 201810042839 A CN201810042839 A CN 201810042839A CN 108156257 A CN108156257 A CN 108156257A
Authority
CN
China
Prior art keywords
networks
resource file
seed node
pushed
ratio
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
CN201810042839.XA
Other languages
Chinese (zh)
Other versions
CN108156257B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810042839.XA priority Critical patent/CN108156257B/en
Publication of CN108156257A publication Critical patent/CN108156257A/en
Application granted granted Critical
Publication of CN108156257B publication Critical patent/CN108156257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms

Abstract

An embodiment of the present invention provides a kind of information-pushing method and device, this method includes:Determine resource file to be pushed;It obtains same network seed node of the resource file to be pushed in each P2P networks and returns to ratio;Wherein, same network seed node of the resource file in a P2P network returns to ratio, and seed node sum determines in the seed node quantity and response results by belonging to the P2P networks in the response results of inquiry request;Select the P2P networks that the seed node of the resource file to be pushed is rare;Each node into selected P2P networks pushes the information of the resource file to be pushed, so that each node downloads resource file to be pushed.Scheme is provided using the embodiment of the present invention and carries out information push, seed node being uniformly distributed between each P2P networks of resource file can be realized, so as to ensure the application of P2P technologies, to save bandwidth.

Description

A kind of information-pushing method and device
Technical field
The present invention relates to technical field of internet application, more particularly to a kind of information-pushing method and device.
Background technology
P2P (Peer-to-peer, peer-to-peer network) has broken traditional C/S (Client/Server, client/service Device) pattern, in P2P networks, each client or server are a nodes, and the status of node is all reciprocity, both may be used To provide service for other nodes, while the service of other nodes offer can also be enjoyed.The application of P2P technologies is based on a large amount of kinds Child node is uniformly distributed, and seed node possesses complete resource file, if a node when downloading resource file, can be with Sufficient seed node is found from the node connected with it, then the node can be by P2P networks, from these seed sections Point downloads its requested resource file, without arriving CDN (Content Delivery Network, content distributing network) On be downloaded, so as to save bandwidth.
For a resource file, in the prior art, generally by way of information push, ensure in P2P networks There are the seed nodes of this resource file abundance.Above- mentioned information push mode includes:Information Push Server obtains above-mentioned money The seed node quantity of source file, and judge whether the seed node of the resource file is rare according to seed node quantity, if should The seed node of resource file is rare, then in preset time period, for example, off-peak hours section, pushes above-mentioned to all clients Resource file.Client can be downloaded resource file according to the selection of user after pushed information is received, from into To possess the seed node of full resource file.Therefore, more seed nodes can be created using above- mentioned information push mode, Ensure the application of P2P technologies.
However, inventor has found in the implementation of the present invention, at least there are the following problems for the prior art:
When being pushed into row information, server is according to the sum of the seed node of resource file or the popular journey of resource file Degree, decides whether to all client push resource files.But this method not can determine that in the client for receiving push In, which client can download resource file according to the information of push, and therefore, it is difficult to realize the seed node of resource file each Being uniformly distributed between a P2P networks so as to influence the application of P2P technologies, leads to the waste of bandwidth.
Invention content
The embodiment of the present invention is designed to provide a kind of information-pushing method, is existed with the seed node for realizing resource file Being uniformly distributed between each P2P networks, so as to ensure the application of P2P technologies, to save bandwidth.
To solve the above problems, the embodiment of the present invention proposes a kind of information-pushing method, the method includes:
Determine resource file to be pushed;
Same network seed node of the resource file to be pushed described in acquisition in each P2P networks returns to ratio;Wherein, one Same network seed node of a resource file in a P2P network returns to ratio:By inquiring the money in the P2P networks Each inquiry request corresponding first of source file returns to the ratio of ratio-dependent, and an inquiry request corresponding first returns to ratio Example be:The ratio determined by the first quantity and the second quantity, the first quantity are:Belong to this in the response results of the inquiry request The seed node quantity of P2P networks, the second quantity are:Seed node sum in the response results;
Each same network seed node according to being obtained returns to ratio, the seed section of resource file to be pushed described in selection The rare P2P networks of point;
The information of resource file to be pushed described in each node push into selected P2P networks, so that each section Resource file to be pushed described in point download.
Preferably, returning to ratio according to each same network seed node obtained described, push money is treated described in selection Before the rare P2P networks of the seed node of source file, further include:
It is obtained respectively for inquiring the inquiry request quantity of the resource file to be pushed in every P2P networks, as every The third quantity of one P2P networks;
It is described that ratio, the kind of resource file to be pushed described in selection are returned to according to each same network seed node obtained The rare P2P networks of child node, including:
Each same network seed node according to being obtained returns to ratio and third quantity, resource text to be pushed described in selection The rare P2P networks of the seed node of part.
Preferably, described return to ratio and third quantity according to each same network seed node obtained, described in selection The rare P2P networks of the seed node of resource file to be pushed, including:
Selection returns to ratio with network seed node and is more than preset second less than preset first threshold and third quantity The P2P networks of threshold value, the rare P2P networks of seed node as the resource file to be pushed.
Preferably, described determine resource file to be pushed, including:
According to pouplarity and/or the seed node sum of resource file, resource file to be pushed is determined.
Preferably, each P2P networks are:The P2P networks determined according to network coverage region and/or operator.
The embodiment of the present invention also proposed a kind of information push-delivery apparatus, which is characterized in that described device includes:
File determining module, for determining resource file to be pushed;
Ratio acquisition module, for obtaining the same network seed section of the resource file to be pushed in each P2P networks Point return ratio;Wherein, same network seed node return ratio of the resource file in a P2P network is:By the P2P For inquiring the ratio that each inquiry request of the resource file corresponding first returns to ratio-dependent in network, an inquiry please The corresponding first return ratio is asked to be:The ratio determined by the first quantity and the second quantity, the first quantity are:The inquiry request Belong to the seed node quantity of the P2P networks in response results, the second quantity is:Seed node sum in the response results;
Network selection module for returning to ratio according to each same network seed node obtained, is waited to push away described in selection Send the P2P networks that the seed node of resource file is rare;
File push module, for resource file to be pushed described in each node push into selected P2P networks Information, so that resource file to be pushed described in the download of each node.
Preferably, before the network selection module, further include:
Quantity acquisition module is used to inquire looking into for the resource file to be pushed in every P2P networks for obtaining respectively Ask number of requests, the third quantity as every P2P networks;
The network selection module, specifically for returning to ratio and third according to each same network seed node obtained Quantity, the rare P2P networks of the seed node of resource file to be pushed described in selection.
Preferably, the network selection module, ratio is returned to less than preset specifically for selection with network seed node First threshold and third quantity are more than the P2P networks of preset second threshold, the seed section as the resource file to be pushed The rare P2P networks of point.
Preferably, the file determining module, specifically for the pouplarity and/or seed node according to resource file Sum determines resource file to be pushed.
Preferably, each P2P networks are:The P2P networks determined according to network coverage region and/or operator.
The embodiment of the present invention additionally provides a kind of electronic equipment, which is characterized in that including processor, communication interface, storage Device and communication bus, wherein, processor, communication interface, memory completes mutual communication by communication bus;
Memory, for storing computer program;
Processor during for performing the program stored on memory, realizes any method steps of claim 1-5 Suddenly.At the another aspect that the present invention is implemented, a kind of computer readable storage medium, the computer-readable storage medium are additionally provided Instruction is stored in matter, when run on a computer so that computer performs any of the above-described information-pushing method.
At the another aspect that the present invention is implemented, the embodiment of the present invention additionally provides a kind of computer program production comprising instruction Product, when run on a computer so that computer performs any of the above-described information-pushing method.
Pre-push method provided in an embodiment of the present invention and device, by obtaining resource file to be pushed in each P2P nets Same network seed node in network returns to ratio, and the degree of scarcity of the seed node in different P2P networks is analyzed, and selects The rare P2P networks of seed node, and all nodes into the P2P networks of selection push the information of resource file to be pushed, Due to application scheme provided in an embodiment of the present invention into row information push when, only the node into selected P2P networks pushes away The information of resource file to be pushed is sent, resource file to be pushed is pushed without the node into other non-selected P2P networks Information, therefore the user in selected P2P networks is enabled to download the possibility increase of resource file to be pushed, contribute to reality Existing seed node being uniformly distributed between each P2P networks so as to ensure the application of P2P technologies, saves bandwidth.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described.
Fig. 1 is a kind of structure diagram of information transmission system provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of information-pushing method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another information-pushing method provided in an embodiment of the present invention;
Fig. 4 is a kind of structure diagram of information push-delivery apparatus in the embodiment of the present invention;
Fig. 5 is the structure diagram of another information push-delivery apparatus in the embodiment of the present invention;
Fig. 6 is the structure chart of the electronic equipment provided in an embodiment of the present invention for being used to implement described information method for pushing.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes.
In order to solve seed node being unevenly distributed between each P2P networks of resource file in the prior art, from And the problem of influencing the application of P2P technologies, leading to the waste of bandwidth, the present invention propose a kind of information-pushing method and device.
Information-pushing method provided in an embodiment of the present invention is illustrated on the whole below.
As shown in Figure 1, for a kind of structure diagram of information transmission system provided in an embodiment of the present invention.
In system as shown in Figure 1, including:Tracker servers, push server and P2P networks, for a money For source file, the node in P2P networks can be divided into seed node and non-seed node.In addition, institute in above system Quantity comprising P2P networks is at least one.Below by taking any resource file A as an example, to the work of various pieces in above system It is illustrated as flow:
Initially, the node in P2P networks downloads resource file A from content distributing network, becomes the seed of resource file A Node.All seed nodes are all registered in Tracker servers, and resource is store in such Tracker servers The information of all seed nodes of file A;
Subsequently when the non-seed node of P2P resources in network files A has the download demand to resource file A, to Tracker servers send the inquiry request for resource file A, due to being stored with resource file A's in Tracker servers The information of seed node, so as to after above-mentioned inquiry request is received, be the node distribution resource text for sending inquiry request The seed node of part A;
In addition, Tracker servers can also collect its seed that each node returns into P2P networks during the work time The statistical information of node, for example, belonging to same with sending the node of request in the sum of the seed node returned, the node returned Quantity of the seed node of P2P networks etc., and these statistical informations are exported to push server;
After push server receives these statistical informations, according to certain rule, for example, according to preset time interval Above-mentioned statistical information is analyzed, determines resource file to be pushed, hereinafter referred to as resource file B, this resource file B May be above-mentioned resource file A, it is also possible to not be above-mentioned resource file A, and the seed node for selecting resource file B is rare The information of P2P networks, then all nodes push resource file B into these P2P networks, receives above-mentioned push clothes in this way The node of the information of the resource file B of business device push, can be downloaded resource file B, due to receiving push server The node of the information of the resource file B of push is:The rare P2P networks of the seed node of resource file B, therefore these nodes Download and be conducive to increase the seed node quantity in the above-mentioned P2P networks selected after resource file B, but due to not to other not The information of node push resource file B in the P2P networks of selection, so that the seed node of resource file B is in each P2P Distribution uniformity between network ensures the application of P2P technologies, saves bandwidth.
Based on the above situation, in a kind of realization method of the embodiment of the present invention, above- mentioned information method for pushing includes:
Determine resource file to be pushed;
It obtains same network seed node of the resource file to be pushed in each P2P networks and returns to ratio;Wherein, a money Same network seed node of the source file in a P2P network returns to ratio:By inquiring resource text in the P2P networks Each inquiry request corresponding first of part returns to the ratio of ratio-dependent, and an inquiry request corresponding first returns to ratio For:The ratio determined by the first quantity and the second quantity, the first quantity are:Belong to the P2P in the response results of the inquiry request The seed node quantity of network, the second quantity are:Seed node sum in the response results;
Each same network seed node according to being obtained returns to ratio, and the seed node for selecting resource file to be pushed is dilute Scarce P2P networks;
Each node into selected P2P networks pushes the information of resource file to be pushed, so that under each node Carry resource file to be pushed.
As seen from the above, using scheme provided in an embodiment of the present invention into row information push when, select dilute to seed node All nodes in scarce P2P networks push the information of resource file to be pushed, without into other non-selected P2P networks Node pushes the information of resource file to be pushed, so that the user in selected P2P networks downloads resource to be pushed The possibility increase of file, is conducive to increase the seed node quantity in selected P2P networks, exist so as to fulfill seed node Being uniformly distributed between each P2P networks ensures the application of P2P technologies, to save bandwidth.
Information-pushing method provided in an embodiment of the present invention will be described in detail by specific embodiment below.
As shown in Fig. 2, for a kind of flow diagram of information-pushing method provided in an embodiment of the present invention, including walking as follows Suddenly:
Step S201:Determine resource file to be pushed.
The executive agent of this programme can be understood as server, for example, service provider's is used to be responsible for what information pushed Server.As example, service provider is to provide a user more comprehensive service, may possess many resource files, Based on this, in this programme before pushing into row information, need to determine to treat from the resource file that service provider is possessed Push resource file.
In a kind of realization method, server can be total according to the pouplarity and/or seed node of resource file, really Surely resource file to be pushed.
Specifically, the pouplarity of resource file can determine to the inquiry request quantity of resource file according to each node Fixed, inquiry request quantity is more, illustrates that the resource file is more welcome, that is, pouplarity is higher;It can also be according to money The search temperature of source file in a network determines that search temperature is higher, illustrates that the resource file is more popular, also more welcome, Namely pouplarity is higher;It is not limited in the embodiment of the present invention.And the sum of resource file seed node can be with body Reveal the degree of scarcity of resource file totality, seed node sum is fewer, and resource file is more rare.
Based on the above situation, it will usually the resource file that pouplarity is high and/or seed node sum is few is selected, as Pushing files are treated, for example, pouplarity threshold value is set separately for the pouplarity of resource file and the quantity of seed node With seed node amount threshold, the one kind that can then proceed in following several situations determines resource file to be pushed:
The first situation, select pouplarity higher than above-mentioned pouplarity threshold value resource file as treat push provide Source file;
The second situation selects seed node sum less than the resource file of above-mentioned seed node amount threshold as waiting to push away Send resource file;
The third situation selects pouplarity higher than above-mentioned pouplarity threshold value and seed node quantity is less than above-mentioned The resource file of seed node amount threshold is used as resource file to be pushed.
Certainly, in addition to the pouplarity according to resource file and/or seed node sum, resource file to be pushed is determined Outside, it can also directly be randomly choosed in all resource files, selected resource file is resource file to be pushed. Treating the selection method of push resource file can determine that it is not limited in the embodiment of the present invention according to actual needs.
Specifically, above-mentioned resource file can be video file, audio file, news information etc..
Step S202:Same network seed node of the resource file to be pushed described in acquisition in each P2P networks returns to ratio Example.
Wherein, same network seed node return ratio of the resource file in a P2P network is:By the P2P nets It is used to inquire the ratio of the corresponding first return ratio-dependent of each inquiry request of the resource file, an inquiry request in network Corresponding first return ratio is:The ratio determined by the first quantity and the second quantity, the first quantity are:The sound of the inquiry request The seed node quantity for belonging to the P2P networks in result is answered, the second quantity is:Seed node sum in the response results.
That is, same network seed node of the resource file in a P2P network returns to ratio, reflect In one P2P network, the rare situation of the seed node of the resource file is lower with network seed node return ratio, explanation The quantity of the resource file seed node accounts for the ratio of the resource file seed node quantity in all P2P networks in the P2P networks Example is fewer, and the seed node of this resource file is more rare in this P2P network.
In a kind of realization method, the corresponding first return ratio of an inquiry request is determined according to the first quantity and the second quantity It is fixed.
Specifically, can using the first quantity than the ratio that upper second quantity obtains as above-mentioned first return ratio, certainly, It can also need to calculate the first quantity and the second quantity by other algorithms, obtain the first return ratio, as long as the One return ratio can reflect the ratio situation between the first quantity and the second quantity.
In another realization method, the multiple of resource file are looked into due to that may exist in a P2P network Request is ask, therefore, same network seed node of the resource file in a P2P network, which returns to ratio, to be:In the P2P In network, it is useful for inquiring the average value of the corresponding first return ratio of inquiry request of the resource file;
Can also be:The situation of the resource file is downloaded according to each node in the P2P networks, to the distribution of each node not Same weight, the corresponding first return ratio of inquiry request for being used to inquire the resource file to each node are weighted Obtained value;
It can also be:The inquiry request corresponding first for being useful for inquiring the resource file in the P2P networks returns In ratio, select numerical value it is minimum or it is highest one or selection median, as same network seed node return ratio value;
It should be noted that the embodiment of the present invention is only illustrated for above-mentioned, not to structure of the embodiment of the present invention Into restriction.
When server distributes seed node for client, if sending the client of inquiry request and distributing seed section Point belongs to same P2P networks, then and client directly can download resource file by P2P technologies from these seed nodes, It does not need to onto content distributing network be downloaded;If the client for sending inquiry request is not belonging to distributed seed node Same P2P networks, then client needs onto content distributing network to be downloaded when these seed nodes are downloaded, and causes The waste of bandwidth.Therefore when server is allocated, the client that can distribute and send first inquiry request belongs to same The seed node of a P2P networks.
Wherein, in one implementation, each P2P networks can refer to according to network coverage region and/or operator Determining different P2P networks.
In a kind of realization method, above-mentioned network coverage region can be province, for example, Hebei province, Anhui Province etc., may be used also To be districts and cities, for example, Beijing, Hefei City etc., it is, of course, also possible to be other situations, the embodiment of the present invention not to this into Row limits.
In a kind of realization method, above-mentioned operator can be unicom, movement, Netcom etc..
Based on the above situation, in a kind of realization method, the network that same operator provides in same province is same A P2P networks, such as the P2P networks that the P2P networks of Beijing movement offer, Hebei unicom provide.
In one implementation, server can periodically obtain resource file to be pushed in each P2P networks Same network seed node return ratio, can also be as needed, receive push instruction after obtain resource to be pushed again Same network seed node of the file in each P2P networks returns to ratio.It is not limited in the embodiment of the present invention.
Step S203:Each same network seed node according to being obtained returns to ratio, resource text to be pushed described in selection The rare P2P networks of the seed node of part.
It is reflected in a P2P network since same network seed node returns to ratio, the seed section of a resource file The rare situation of point, it is lower with network seed node return ratio, illustrate in the P2P networks, the seed section of the resource file Point quantity is fewer, and seed node is more rare.Therefore, a threshold value can be preset, same network seed node will be obtained and returned The ratio of returning is less than the P2P networks of the threshold value, the P2P networks as resource file to be pushed;It can also directly select and obtain together One or the preset quantity P2P networks that value is minimum in network seed node return ratio, as resource file to be pushed P2P networks, it is not limited in the embodiment of the present invention.
Step S204:Each node into selected P2P networks pushes the information of resource file to be pushed, so that respectively A node downloads resource file to be pushed.
In P2P networks, each client or server are a nodes, and the status of node is all reciprocity, both may be used To provide service for other nodes, while the service of other nodes offer can also be enjoyed, wherein, possess full resource file Node is seed node.
In a kind of realization method, it can include in the information of above-mentioned resource file to be pushed:The mark of resource to be pushed, under The information such as set address.
In one implementation, it in order to avoid causing network congestion, can select in off-peak period push resource text Part.
As seen from the above, using scheme provided in an embodiment of the present invention into row information push when, by obtain with network kind Child node returns to ratio, and all nodes into the rare P2P networks of seed node is selected to push the letter of resource file to be pushed Breath pushes the information of resource file to be pushed without the node into other non-selected P2P networks, so that selected P2P networks in user download resource file to be pushed possibility increase, be conducive to increase in selected P2P networks Seed node quantity, so as to fulfill seed node being uniformly distributed between each P2P networks, so as to ensure answering for P2P technologies With to save bandwidth.
As shown in figure 3, the flow diagram for another information-pushing method provided in an embodiment of the present invention, including as follows Step:
Step S301:Determine resource file to be pushed.
Step S302:Same network seed node of the resource file to be pushed described in acquisition in each P2P networks returns to ratio Example.
Wherein, same network seed node return ratio of the resource file in a P2P network is:By the P2P nets It is used to inquire the ratio of the corresponding first return ratio-dependent of each inquiry request of the resource file, an inquiry request in network Corresponding first return ratio is:The ratio determined by the first quantity and the second quantity, the first quantity are:The sound of the inquiry request The seed node quantity for belonging to the P2P networks in result is answered, the second quantity is:Seed node sum in the response results.
Step S303:The inquiry request number for being used for inquiring the resource file to be pushed in every P2P networks is obtained respectively Amount, the third quantity as every P2P networks.
Demand of the node to each resource file in different P2P networks is also not necessarily identical, in some instances it may even be possible to exist Very big difference, therefore, each P2P networks are also different to the desirability of resource file.And resource file is looked into The quantity of request is ask, the node in the P2P networks can be embodied to a certain extent to the desirability of the resource file, looked into Inquiry number of requests is more, and node is higher to the desirability of resource file.
Step S304:Each same network seed node according to being obtained returns to ratio and third quantity, is treated described in selection Push the rare P2P networks of the seed node of resource file.
Due in a P2P network, for a resource file, lower, the explanation that returns to ratio with network seed node The seed node of this resource file is more rare, and inquiry request quantity is more, illustrates this P2P network node to this money The desirability of source file is higher, therefore can return to ratio and third quantity according to each same network seed node of acquisition, The rare P2P networks of the seed node of resource file to be pushed described in selection.
In one implementation, same network seed node can be selected to return to ratio with preset first threshold value and second threshold Example is less than the P2P networks that first threshold and third quantity are more than second threshold, that is, select seed node to be pushed more rare and Node treats the higher P2P networks of desirability of push resource file, and the seed node as resource file to be pushed is rare P2P networks.
In another implementation, third quantity highest one or preset quantity P2P networks can also be first selected, And one minimum or preset quantity P2P networks of ratio is returned with network seed node, do Ei resource files to be pushed The rare P2P networks of seed node.
It is, of course, also possible to according to selecting in other way P2P networks, the embodiment of the present invention does not limit this It is fixed.
Step S305:The information of resource file to be pushed described in each node push into selected P2P networks, so that Obtain resource file to be pushed described in each node download.
Step S301 to step S302 and the step S201 of inventive embodiments shown in Fig. 2 identical, the step to step S202 S305 is identical with the step S204 of inventive embodiments shown in Fig. 2, no longer repeats one by one here.
As seen from the above, in scheme provided in an embodiment of the present invention, by obtain with network seed node return ratio and Third quantity selects all nodes in P2P networks rare to seed node and higher demand to push resource file to be pushed Information, the information of resource file to be pushed is pushed without the node into other non-selected P2P networks, further promotes letter Cease the efficiency and specific aim of push so that the user in the P2P networks downloads the possibility increase of resource file to be pushed, favorably In increasing the seed node quantity in selected P2P networks, so as to help to meet need of each P2P networks to seed node It asks, so as to ensure the application of P2P technologies, to save bandwidth.
Corresponding with above- mentioned information method for pushing, the embodiment of the present invention additionally provides a kind of information push-delivery apparatus.
As shown in figure 4, for the structure diagram of information push-delivery apparatus a kind of in the embodiment of the present invention, which includes:
File determining module 410, for determining resource file to be pushed.
Specifically, file determining module 410 is used for pouplarity and/or the seed node sum according to resource file, Determine resource file to be pushed.
Ratio acquisition module 420, for obtaining the same network seed of the resource file to be pushed in each P2P networks Node returns to ratio.
Wherein, same network seed node return ratio of the resource file in a P2P network is:By the P2P nets It is used to inquire the ratio of the corresponding first return ratio-dependent of each inquiry request of the resource file, an inquiry request in network Corresponding first return ratio is:The ratio determined by the first quantity and the second quantity, the first quantity are:The sound of the inquiry request The seed node quantity for belonging to the P2P networks in result is answered, the second quantity is:Seed node sum in the response results.
Network selection module 430 for returning to ratio according to each same network seed node obtained, is treated described in selection Push the rare P2P networks of the seed node of resource file.
File push module 440, for resource file to be pushed described in each node push into selected P2P networks Information so that each node download described in resource file to be pushed.
In one implementation, each P2P networks can refer to what is determined according to network coverage region and/or operator Different P2P networks.
As seen from the above, in scheme provided in an embodiment of the present invention, pass through network selection module 430 and file push module 440 select all nodes into the rare P2P networks of seed node to push the information of resource file to be pushed, without to other Node in non-selected P2P networks pushes the information of resource file to be pushed, so that the user in the P2P networks downloads The possibility increase of resource file to be pushed, is conducive to increase the seed node quantity in selected P2P networks, so as to fulfill Seed node being uniformly distributed between each P2P networks, so as to ensure the application of P2P technologies, to save bandwidth.
As shown in figure 5, the structure diagram for information push-delivery apparatus another in the embodiment of the present invention, the device include:
File determining module 510, for determining resource file to be pushed.
Ratio acquisition module 520, for obtaining the same network seed of the resource file to be pushed in each P2P networks Node returns to ratio.
Wherein, same network seed node return ratio of the resource file in a P2P network is:By the P2P nets It is used to inquire the ratio of the corresponding first return ratio-dependent of each inquiry request of the resource file, an inquiry request in network Corresponding first return ratio is:The ratio determined by the first quantity and the second quantity, the first quantity are:The sound of the inquiry request The seed node quantity for belonging to the P2P networks in result is answered, the second quantity is:Seed node sum in the response results.
Quantity acquisition module 530 is used to inquire the resource file to be pushed in every P2P networks for obtaining respectively Inquiry request quantity, the third quantity as every P2P networks.
Network selection module 540, for returning to ratio and third quantity according to each same network seed node obtained, The rare P2P networks of the seed node of resource file to be pushed described in selection.
Specifically, network selection module 540 returns to ratio for selection with network seed node is less than preset first threshold Value and third quantity are more than the P2P networks of preset second threshold, and the seed node as the resource file to be pushed is rare P2P networks.
File push module 550, for resource file to be pushed described in each node push into selected P2P networks Information so that each node download described in resource file to be pushed.
As seen from the above, in scheme provided in an embodiment of the present invention, pass through ratio acquisition module 520 and quantity acquisition module 530, it obtains same network seed node and returns to ratio and third quantity, pass through network selection module 430 and file push module 440, all nodes in P2P networks rare to seed node and higher demand is selected to push the letter of resource file to be pushed Breath, the information of resource file to be pushed is pushed without the node into other non-selected P2P networks, is further promoted information and is pushed away The efficiency and specific aim sent so that the user in the P2P networks downloads the possibility increase of resource file to be pushed, and is conducive to increase Add the seed node quantity in selected P2P networks, so as to help to meet the needs of each P2P networks are to seed node, Ensure the application of P2P technologies, to save bandwidth.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in fig. 6, including processor 601, communication interface 602, Memory 603 and communication bus 604, wherein, processor 601, communication interface 602, memory 603 is complete by communication bus 604 Into mutual communication,
Memory 603, for storing computer program;
Processor 601 during for performing the program stored on memory 603, realizes following steps:
Determine resource file to be pushed;
Same network seed node of the resource file to be pushed described in acquisition in each P2P networks returns to ratio;Wherein, one Same network seed node of a resource file in a P2P network returns to ratio:By inquiring the money in the P2P networks Each inquiry request corresponding first of source file returns to the ratio of ratio-dependent, and an inquiry request corresponding first returns to ratio Example be:The ratio determined by the first quantity and the second quantity, the first quantity are:Belong to this in the response results of the inquiry request The seed node quantity of P2P networks, the second quantity are:Seed node sum in the response results;
Each same network seed node according to being obtained returns to ratio, the seed section of resource file to be pushed described in selection The rare P2P networks of point;
The information of resource file to be pushed described in each node push into selected P2P networks, so that each section Resource file to be pushed described in point download.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..For just It is only represented in expression, figure with a thick line, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory can include random access memory (Random Access Memory, RAM), can also include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
As seen from the above, in scheme provided in an embodiment of the present invention, ratio, choosing are returned with network seed node by obtaining All nodes selected into the rare P2P networks of seed node push resource file to be pushed, without to other non-selected P2P Node in network pushes resource file to be pushed, so that the user in selected P2P networks, which downloads, treats push money The possibility increase of source file, is conducive to increase the seed node quantity in selected P2P networks, so as to fulfill seed node Being uniformly distributed between each P2P networks, so as to ensure the application of P2P technologies, to save bandwidth.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with instruction in storage medium, when run on a computer so that computer performs any institute in above-described embodiment The information-pushing method stated.
In another embodiment provided by the invention, a kind of computer program product for including instruction is additionally provided, when it When running on computers so that computer performs any information-pushing method in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its arbitrary combination real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and performing the computer program instructions, all or It partly generates according to the flow or function described in the embodiment of the present invention.The computer can be all-purpose computer, special meter Calculation machine, computer network or other programmable devices.The computer instruction can be stored in computer readable storage medium In or from a computer readable storage medium to another computer readable storage medium transmit, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is the data storage devices such as server, the data center integrated comprising one or more usable mediums.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state disk Solid State Disk (SSD)) etc..
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this practical relationship or sequence.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that Also there are other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is described using relevant mode, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for device, For electronic equipment, computer readable storage medium, computer program product embodiments, implement since it is substantially similar to method Example, so description is fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (11)

1. a kind of information-pushing method, which is characterized in that the method includes:
Determine resource file to be pushed;
Same network seed node of the resource file to be pushed described in acquisition in each P2P networks returns to ratio;Wherein, a money Same network seed node of the source file in a P2P network returns to ratio:By inquiring resource text in the P2P networks Each inquiry request corresponding first of part returns to the ratio of ratio-dependent, and an inquiry request corresponding first returns to ratio For:The ratio determined by the first quantity and the second quantity, the first quantity are:Belong to the P2P in the response results of the inquiry request The seed node quantity of network, the second quantity are:Seed node sum in the response results;
Each same network seed node according to being obtained returns to ratio, and the seed node of resource file to be pushed is dilute described in selection Scarce P2P networks;
The information of resource file to be pushed described in each node push into selected P2P networks, so that under each node Resource file to be pushed described in load.
2. according to the method described in claim 1, it is characterized in that, described according to each same network seed node obtained Return ratio before the rare P2P networks of the seed node of resource file to be pushed described in selection, further includes:
It is obtained respectively for inquiring the inquiry request quantity of the resource file to be pushed in every P2P networks, as every P2P The third quantity of network;
It is described that ratio, the seed section of resource file to be pushed described in selection are returned to according to each same network seed node obtained The rare P2P networks of point, including:
Each same network seed node according to being obtained returns to ratio and third quantity, resource file to be pushed described in selection The rare P2P networks of seed node.
3. according to the method described in claim 2, it is characterized in that, described return according to each same network seed node obtained Return ratio and third quantity, the rare P2P networks of the seed node of resource file to be pushed described in selection, including:
Selection returns to ratio with network seed node and is more than preset second threshold less than preset first threshold and third quantity P2P networks, the rare P2P networks of seed node as the resource file to be pushed.
4. according to the method described in claim 1, it is characterized in that, described determine resource file to be pushed, including:
According to pouplarity and/or the seed node sum of resource file, resource file to be pushed is determined.
5. according to the described method of any one of claim 1-4, which is characterized in that each P2P networks are:According to the network coverage The P2P networks that region and/or operator determine.
6. a kind of information push-delivery apparatus, which is characterized in that described device includes:
File determining module, for determining resource file to be pushed;
Ratio acquisition module returns for obtaining the same network seed node of the resource file to be pushed in each P2P networks The ratio of returning;Wherein, same network seed node return ratio of the resource file in a P2P network is:By the P2P networks In for inquire the resource file each inquiry request it is corresponding first return ratio-dependent ratio, an inquiry request pair The the first return ratio answered is:The ratio determined by the first quantity and the second quantity, the first quantity are:The response of the inquiry request As a result belong to the seed node quantity of the P2P networks in, the second quantity is:Seed node sum in the response results;
Network selection module for returning to ratio according to each same network seed node obtained, treats push money described in selection The rare P2P networks of the seed node of source file;
File push module, for into selected P2P networks each node push described in resource file to be pushed information, So that resource file to be pushed described in each node download.
7. device according to claim 6, which is characterized in that before the network selection module, further include:
Quantity acquisition module, please for inquiring the inquiry of the resource file to be pushed in every P2P networks for obtaining respectively Quantity is sought, the third quantity as every P2P networks;
The network selection module, specifically for returning to ratio and third number according to each same network seed node obtained Amount, the rare P2P networks of the seed node of resource file to be pushed described in selection.
8. device according to claim 7, it is characterised in that:
The network selection module, specifically for selection with network seed node return ratio be less than preset first threshold and Third quantity is more than the P2P networks of preset second threshold, the rare P2P of the seed node as the resource file to be pushed Network.
9. device according to claim 6, it is characterised in that:
The file determining module specifically for the pouplarity according to resource file and/or seed node sum, determines to treat Push resource file.
10. according to the device described in any one of claim 6-9, which is characterized in that each P2P networks are:It is covered according to network The P2P networks that lid region and/or operator determine.
11. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein, processing Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor during for performing the program stored on memory, realizes any method and steps of claim 1-5.
CN201810042839.XA 2018-01-17 2018-01-17 Information pushing method and device Active CN108156257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810042839.XA CN108156257B (en) 2018-01-17 2018-01-17 Information pushing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810042839.XA CN108156257B (en) 2018-01-17 2018-01-17 Information pushing method and device

Publications (2)

Publication Number Publication Date
CN108156257A true CN108156257A (en) 2018-06-12
CN108156257B CN108156257B (en) 2021-01-08

Family

ID=62461725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810042839.XA Active CN108156257B (en) 2018-01-17 2018-01-17 Information pushing method and device

Country Status (1)

Country Link
CN (1) CN108156257B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120669A (en) * 2018-07-03 2019-01-01 泰链(厦门)科技有限公司 Method, medium and system based on the internet P2P building block chain
CN110691143A (en) * 2019-10-21 2020-01-14 北京奇艺世纪科技有限公司 File pushing method and device, electronic equipment and medium
CN111064997A (en) * 2018-10-16 2020-04-24 深圳市云帆加速科技有限公司 Resource pre-distribution method and device
CN113364877A (en) * 2021-06-11 2021-09-07 北京百度网讯科技有限公司 Data processing method, device, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090100128A1 (en) * 2007-10-15 2009-04-16 General Electric Company Accelerating peer-to-peer content distribution
CN101631141A (en) * 2009-08-19 2010-01-20 腾讯科技(深圳)有限公司 P2P system and network resource management method in same
CN105027533A (en) * 2012-12-11 2015-11-04 微软技术许可有限责任公司 Improving peer-to-peer performance
CN105681370A (en) * 2014-11-17 2016-06-15 腾讯科技(成都)有限公司 File synchronizing method, server and client

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090100128A1 (en) * 2007-10-15 2009-04-16 General Electric Company Accelerating peer-to-peer content distribution
CN101631141A (en) * 2009-08-19 2010-01-20 腾讯科技(深圳)有限公司 P2P system and network resource management method in same
CN105027533A (en) * 2012-12-11 2015-11-04 微软技术许可有限责任公司 Improving peer-to-peer performance
CN105681370A (en) * 2014-11-17 2016-06-15 腾讯科技(成都)有限公司 File synchronizing method, server and client

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120669A (en) * 2018-07-03 2019-01-01 泰链(厦门)科技有限公司 Method, medium and system based on the internet P2P building block chain
CN109120669B (en) * 2018-07-03 2021-06-04 泰链(厦门)科技有限公司 Method, medium, and system for building block chain based on P2P internet
CN111064997A (en) * 2018-10-16 2020-04-24 深圳市云帆加速科技有限公司 Resource pre-distribution method and device
CN111064997B (en) * 2018-10-16 2021-11-16 深圳市云帆加速科技有限公司 Resource pre-distribution method and device
CN110691143A (en) * 2019-10-21 2020-01-14 北京奇艺世纪科技有限公司 File pushing method and device, electronic equipment and medium
CN110691143B (en) * 2019-10-21 2022-03-04 北京奇艺世纪科技有限公司 File pushing method and device, electronic equipment and medium
CN113364877A (en) * 2021-06-11 2021-09-07 北京百度网讯科技有限公司 Data processing method, device, electronic equipment and medium
CN113364877B (en) * 2021-06-11 2022-10-11 北京百度网讯科技有限公司 Data processing method, device, electronic equipment and medium

Also Published As

Publication number Publication date
CN108156257B (en) 2021-01-08

Similar Documents

Publication Publication Date Title
CN109660607B (en) Service request distribution method, service request receiving method, service request distribution device, service request receiving device and server cluster
CN106656800B (en) Path selection method and system, network acceleration node and network acceleration system
CN101136911B (en) Method to download files using P2P technique and P2P download system
CN108156257A (en) A kind of information-pushing method and device
US9037657B2 (en) Systems and methods for peer-to-peer bandwidth allocation
CN102523256B (en) Content management method, device and system
EP3439239B1 (en) Data transmission method and system based on peer-to-peer network
CN110519183B (en) Node speed limiting method and device, electronic equipment and storage medium
CN101068173B (en) Resource sharing method and system, and server
CN108173774A (en) The upgrade method and system of a kind of client
CN108683730B (en) Resource scheduling method, service server, client terminal, network system and medium
CN106330997A (en) Content distribution method and system for mobile terminal application
CN110620828A (en) File pushing method, system, device, electronic equipment and medium
CN102257792B (en) Method for content delivery involving a policy database
CN113676514A (en) File source returning method and device
CN109194993B (en) Media file distribution method and file distribution platform
CN106060114B (en) A kind of resource share method and device
CN105763616B (en) Resource downloading method and device
CN108616600B (en) Resource scheduling method, client server, node device, network system, and medium
CN103179191B (en) P2P network control device and P2P network managing and control system
CN109788326B (en) Video resource pre-pushing method, device and system
CN112019451A (en) Bandwidth allocation method, debugging network element, local cache server and computing equipment
CN110247983A (en) A kind of equally loaded method and system
CN113835905B (en) Message queue load balancing method and device, electronic equipment and medium
CN113810461A (en) Bandwidth control method, device, equipment and readable storage medium

Legal Events

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