CN105450738A - Price mechanism-based bandwidth allocation algorithm in P2P file sharing network - Google Patents

Price mechanism-based bandwidth allocation algorithm in P2P file sharing network Download PDF

Info

Publication number
CN105450738A
CN105450738A CN201510778746.XA CN201510778746A CN105450738A CN 105450738 A CN105450738 A CN 105450738A CN 201510778746 A CN201510778746 A CN 201510778746A CN 105450738 A CN105450738 A CN 105450738A
Authority
CN
China
Prior art keywords
resource
bandwidth
rsqb
lsqb
requestor
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
CN201510778746.XA
Other languages
Chinese (zh)
Other versions
CN105450738B (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.)
Zhairenqiao Nanjing Network Technology Co ltd
Original Assignee
Yanshan University
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 Yanshan University filed Critical Yanshan University
Priority to CN201510778746.XA priority Critical patent/CN105450738B/en
Publication of CN105450738A publication Critical patent/CN105450738A/en
Application granted granted Critical
Publication of CN105450738B publication Critical patent/CN105450738B/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/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)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Price mechanism-based bandwidth allocation algorithm in P2P file sharing network, and specific algorithmIt is each resource requestor r that initializes the price λ it can offerr[t](ii) a Resource provider p initializes allocated bandwidth x for each resource requesterpr[t](ii) a The resource provider p uploads the bandwidth C according to the resource provider ppBandwidth allocation x initialized for each resource requester rpr[t]And the price lambda provided by each resource requester rr[t]To obtain the expected price Costp[t](ii) a Resource provider p costs Cost according to expected pricep[t]And the price λ provided by the resource requester rr[t]Adjust its allocated bandwidth x for resource requestor rpr[t+1](ii) a Resource requester r adjusts its paid price lambda according to the obtained bandwidthr[t+1](ii) a Each resource provider p iteratively reaches a balance point according to the steps, namely the optimal allocation of the uploading bandwidth of the resource provider; the resource provider and the resource requester complete data transmission according to the optimal bandwidth allocation; if a new node is added or the original node is withdrawn, the iteration process is carried out again until a new balance point is reached. The invention has the advantages of fair distribution, simple calculation and the like.

Description

A kind of based on bandwidth allocation algorithm in the P2P file sharing network of price mechanism
Technical field
The present invention relates to technical field of the computer network, especially a kind of P2P file sharing network bandwidth allocation algorithm based on price mechanism.
Background technology
Peer-to-peer network (Peer-to-Peer, P2P) is a kind of and the opposed network architecture of client/server (Client/Server, C/S) network.In a peer-to-peer network, the role of centralized servers is weakened even to cancel, each client node both can serve as server for other clients and provide services on the Internet, and can be again that common client obtains service, the such as service such as file download, video request program from other client node.Formed the overlay network (overlaynetwork) of a logic between node by the mode of self-organizing, work in coordination with the functions such as storage, index, calculating, Data dissemination together.Relative to the network of client/server structure, peer-to-peer network has that decentralization, self-organizing, extensibility and robustness are high, high without single point failure, cost performance, secret protection and the feature such as load-balancing performance is good.
Peer-to-peer network is emphasized playing an active part in of user and is shared cooperation achievement, has greatly transferred the enthusiasm of user's dedicate resources and service.All peer-to-peer network user applications are no longer only simple consumers as in legacy network environment, but act as the dual role of consumer and the producer simultaneously.Server ad hoc in traditional network application is the unable resources contribution person colony contending with so vast obviously, therefore the quality and quantity of internet content obtains considerable leap, it directly affects is exactly nowadays yield unusually brilliant results based on the application of peer-to-peer network: the file-sharing provided from initial peer-to-peer network and download service, representative is exactly that far-reaching file download tool BitTorrent (is called for short BT, be commonly called as BT to download), to employing IP network transferring voice significantly to reduce the networking telephone (VoIP of communications cost, VoiceoverIP), representative is exactly Skype, the flow medium live system of multimedia interaction application by now again, representative is exactly PPLive.The release of each new opplication of peer-to-peer network, federation causes the extensive concern of warmly pursuing of users and industry.
Due to the form that peer-to-peer network is a kind of self-organizing, therefore the management of Internet resources just becomes particularly important.At present, resource allocation mechanism in peer-to-peer network is mostly utilize incentives strategy, comparatively typical strategy comprises mechanism based on micropayments (as PPAY agreement, WhoPay agreement), based on directly reciprocal mechanism (as tit-for-tat method), based on the mechanism of prestige (as PeerTrust, SuperTrust method) etc., thus impel each user to share the resource of oneself, for other users provide services on the Internet.But these methods are mostly promote that the social utility realizing peer-to-peer network system maximizes, and seldom consider that resource obtains the fair allocat between the user of service in request.Unjust if there is Resourse Distribute, the use fairness of user certainly will be caused to be affected.Such as: when Internet resources price is too low, Internet resources are just easily consumed excessively, occur " Public Goods tragedy "; If but price is too high, although it is cold network to be avoided to a certain extent to gather around, this will cause Internet resources to can not get effective use, make network resource utilization too low, most of burden for users does not play the cost of use of Internet resources simultaneously, and the fairness of user be can not be guaranteed.
In sum, user is sought after a kind ofly carrying out the algorithm that rationally effectively distributes for peer network resources, and the user satisfaction of the network service that makes to call request reaches optimum.
Summary of the invention
The object of the invention be to provide a kind of fairness in distribution rationally, calculate simple efficient, can avoid user with too low or extravagent price use Internet resources based on bandwidth allocation algorithm in the P2P file sharing network of price mechanism.
For achieving the above object, have employed following technical scheme: algorithm of the present invention mainly comprises Peer-to-Peer Network P2P, resource requestor r and resource provider p, in Peer-to-Peer Network P2P, resource requestor r download file needs the uploading bandwidth obtaining resource provider p, the expected price of the price that resource provider p provides according to each resource requestor r and resource provider p self is the bandwidth of resource requestor r Resources allocation supplier p oneself;
Described algorithm steps is as follows:
Step 1, in the shared file system of Peer-to-Peer Network P2P, each wants its price λ that can provide of resource requestor r initialization obtaining file download service r[t];
Step 2, provides the resource provider p of download service to carry out allocated bandwidth, is the bandwidth x that each resource requestor r initialization distributes pr[t];
Step 3, if the now bandwidth x that is assigned with of resource requestor r pr[t] and the price λ provided r[t] is all balance point, then algorithm terminates, and resource provider and resource requestor complete transfer of data;
If the now bandwidth x that is assigned with of resource requestor r pr[t] and the price λ provided r[t] is not balance point, then carry out step 4 downwards;
Step 4, resource provider p is according to the uploading bandwidth C of oneself p, resource provider p is the initialized allocated bandwidth x of each resource requestor r prthe price λ that [t] and each resource requestor r provide r[t], obtains the expected price Cost of resource provider p p[t];
Step 5, resource provider p is according to the expected price Cost of oneself pthe price λ that [t] and resource requestor r provide r[t], the bandwidth x of adjustment Resources allocation requestor r pr[t+1];
Step 6, resource requestor r is according to the new bandwidth x obtained pr[t+1] redistributes its price λ paid of adjustment r[t+1];
Step 7, each resource provider p to go directly balance point, the i.e. optimum allocation of resource provider uploading bandwidth according to above-mentioned steps iteration;
Step 8, resource provider p and resource requestor r completes transfer of data according to optimal bandwidth allocation;
Step 9, if having new resource provider or resource requestor to add or original resource provider or resource requestor exit, then above-mentioned iterative process re-starts until reach new balance point.
In step 3, being analyzed as follows of balance point:
Suppose that the balance point of algorithm is (x *, λ *), then
Then Σ p : p ∈ P C p = Σ p : p ∈ P Σ s : s ∈ R ( p ) x p s * λ s * 1 α λ r * 1 α = 1 λ r * 1 α Σ s : s ∈ R Σ p : p ∈ P ( s ) x p s * λ s * 1 α = y r * w r 1 α Σ s : s ∈ R λ s * 1 α Σ p : p ∈ P ( s ) x p s * = y r * w r 1 α Σ s : s ∈ R w s 1 α
Wherein, P is all resource provider set; R is all resource requestor set; C pit is the uploading bandwidth of resource provider p; w rit is the expense that resource requestor r is ready to pay; it is the optimum total bandwidth that resource requestor r obtains; it is the best price that resource requestor r pays; w sit is the expense that resource requestor s is ready to pay; it is the best price that resource requestor s pays; optimum bandwidth that resource requestor s distributes that to be resource provider p be; α >0 is fairness index;
Therefore
y r * = w r 1 α Σ p : p ∈ P C p Σ s : s ∈ R w s 1 α , λ r * = λ s * = ( Σ s : s ∈ R w r 1 / α Σ p : p ∈ P C p ) α
Can find, this balance point is exactly the optimum point of resource allocator model.
In step 4, the expected price Cost of resource provider p p[t] is drawn by following formula:
Cost p [ t ] = Σ s : s ∈ R ( p ) x p s [ t ] λ s 1 α [ t ] C p
In formula, C pit is the uploading bandwidth of resource provider p; x pr[t] is resource provider p is the bandwidth that resource requestor r distributes; α >0 is fairness index, for realizing α-fairness that bandwidth is distributed between resource requestor, during as α=1, then realizes proportional fairness; be resource provider p be the α-fairness realizing Resourse Distribute, the fairness price that the resource requestor s obtained provides; R (p) is then all requestor's set that resource provider p provides service, and then illustrate the expected revenus of resource provider p.
In steps of 5, according to following formula adjustresources supplier p be resource requestor r distribute bandwidth x pr[t+1];
x p r [ t + 1 ] = ( x p r [ t ] + θx p r [ t ] ( λ r 1 α [ t ] - Cost p [ t ] ) ) x p r [ t ] +
In formula, x pr[t] is t resource provider p is the bandwidth that resource requestor r distributes; θ >0 is algorithm step-size; α >0 is fairness index; it is the fairness price that resource requestor r provides; Cost p[t] is the expected price of resource provider p;
x p r [ t + 1 ] = ( x p r [ t ] + θx p r [ t ] ( λ r 1 α [ t ] - Cost p [ t ] ) ) x p r [ t ] + Mean,
If x pr[t] >0, then x p r [ t + 1 ] = x p r [ t ] + θx p r [ t ] ( λ r 1 α [ t ] - Cost p [ t ] ) ;
If x pr[t]=0, then x p r [ t + 1 ] = m a x { 0 , x p r [ t ] + θx p r [ t ] ( λ r 1 α [ t ] - cost p [ t ] ) } .
In step 6, resource requestor r adjusts its price λ paid according to obtaining allocated bandwidth r[t+1]
λ r [ t + 1 ] = w r y r α [ t + 1 ] , y r [ t + 1 ] = Σ p : p ∈ P ( r ) x p r [ t + 1 ]
In formula, λ r[t+1] is the price that t+1 moment resource requestor r pays; y r[t+1] is the total bandwidth that t+1 moment resource requestor r obtains; x pr[t+1] is t+1 moment resource provider p is the bandwidth that resource requestor r distributes; P (r) is for resource requestor r provides the resource provider set of service; w rit is the expense that resource requestor r is ready to pay; α >0 is fairness index.
Compared with prior art, tool of the present invention has the following advantages:
1, algorithm of the present invention effectively can converge to the optimum point of allocated bandwidth, realizes the fair allocat of uploading bandwidth between network resource request person of resource provider.
2, change Resource Allocation in Networks target the satisfaction of the network user that optimization request is served into by the optimizing user behavior that encourages, realize Resourse Distribute target that is service-oriented, customer-centric, more pressed close to the actual demand of user.
Accompanying drawing explanation
Fig. 1 is the flow chart of steps of algorithm of the present invention.
Fig. 2 is 6 user network topology diagrams of algorithm of the present invention.
Fig. 3 is the optimal bandwidth allocation figure that in Fig. 2, resource requestor r1 obtains.
Fig. 4 is the optimal bandwidth allocation figure that in Fig. 2, resource requestor r2 obtains.
Fig. 5 is the optimal bandwidth allocation figure that in Fig. 2, resource requestor r3 obtains.
Fig. 6 is the optimal bandwidth allocation figure that in Fig. 2, resource requestor r4 obtains.
Fig. 7 is the graph of a relation of convergence of algorithm speed of the present invention and iteration step length.
Embodiment
Below in conjunction with accompanying drawing, the present invention will be further described:
Algorithm of the present invention mainly comprises Peer-to-Peer Network P2P, resource requestor r and resource provider p, in Peer-to-Peer Network P2P, resource requestor r download file needs the uploading bandwidth obtaining resource provider p, the expected price of the price that resource provider p provides according to each resource requestor r and resource provider p self is the bandwidth of resource requestor r Resources allocation supplier p oneself;
As shown in Figure 1, described algorithm steps is as follows:
Step 1, in the shared file system of Peer-to-Peer Network P2P, each wants its price λ that can provide of resource requestor r initialization obtaining file download service r[t];
Step 2, provides the resource provider p of download service to carry out allocated bandwidth, is the bandwidth x that each resource requestor r initialization distributes pr[t];
Step 3, if the now bandwidth x that is assigned with of resource requestor r pr[t] and the price λ provided r[t] is all balance point, then algorithm terminates, and resource provider and resource requestor complete transfer of data;
If the now bandwidth x that is assigned with of resource requestor r pr[t] and the price λ provided r[t] is not balance point, then carry out step 4 downwards;
Step 4, resource provider p is according to the uploading bandwidth C of oneself p, resource provider p is the initialized allocated bandwidth x of each resource requestor r prthe price λ that [t] and each resource requestor r provide r[t], obtains the expected price Cost of resource provider p p[t];
Cost p [ t ] = Σ s : s ∈ R ( p ) x p s [ t ] λ s 1 α [ t ] C p
In formula, C pit is the uploading bandwidth of resource provider p; x pr[t] is resource provider p is the bandwidth that resource requestor r distributes; α >0 is fairness index, for realizing α-fairness that bandwidth is distributed between resource requestor, during as α=1, then realizes proportional fairness; be resource provider p be the α-fairness realizing Resourse Distribute, the fairness price that the resource requestor s obtained provides; R (p) is then all requestor's set that resource provider p provides service, and then illustrate the expected revenus of resource provider p.
Step 5, resource provider p is according to the expected price Cost of oneself pthe price λ that [t] and resource requestor r provide r[t], the bandwidth x of adjustment Resources allocation requestor r pr[t+1];
x p r [ t + 1 ] = ( x p r [ t ] + θx p r [ t ] ( λ r 1 α [ t ] - Cost p [ t ] ) ) x p r [ t ] +
In formula, x pr[t] is t resource provider p is the bandwidth that resource requestor r distributes; θ >0 is algorithm step-size; α >0 is fairness index; it is the fairness price that resource requestor r provides; Cost p[t] is the expected price of resource provider p;
x p r [ t + 1 ] = ( x p r [ t ] + θx p r [ t ] ( λ r 1 α [ t ] - Cost p [ t ] ) ) x p r [ t ] + Mean,
If x pr[t] >0, then x p r [ t + 1 ] = x p r [ t ] + θx p r [ t ] ( λ r 1 α [ t ] - cost p [ t ] ) ;
If x pr[t]=0, then x p r [ t + 1 ] = m a x { 0 , x p r [ t ] + θx p r [ t ] ( λ r 1 α [ t ] - cost p [ t ] ) } .
Step 6, resource requestor r is according to the new bandwidth x obtained pr[t+1] redistributes its price λ paid of adjustment r[t+1];
λ r [ t + 1 ] = w r y r α [ t + 1 ] , y r [ t + 1 ] = Σ p : p ∈ P ( r ) x p r [ t + 1 ]
In formula, λ r[t+1] is the price that t+1 moment resource requestor r pays; y r[t+1] is the total bandwidth that t+1 moment resource requestor r obtains; x pr[t+1] is t+1 moment resource provider p is the bandwidth that resource requestor r distributes; P (r) is for resource requestor r provides the resource provider set of service; w rit is the expense that resource requestor r is ready to pay; α >0 is fairness index.
Step 7, each resource provider p to go directly balance point, the i.e. optimum allocation of resource provider uploading bandwidth according to above-mentioned steps iteration;
Step 8, resource provider p and resource requestor r completes transfer of data according to optimal bandwidth allocation;
Step 9, if having new resource provider or resource requestor to add or original resource provider or resource requestor exit, then above-mentioned iterative process re-starts until reach new balance point.
Peer network resources is distributed the satisfaction of target by encouraging user's shared resource to change the network user that optimization request is served into by the present invention, realizes Resourse Distribute target that is service-oriented, customer-centric, is more close to the users to the actual demand of network service.Setting up the optimization utility model of bandwidth resource allocation, realizing bandwidth fair allocat between resource requestor by choosing suitable utility function.The present invention devises a kind of distribution type and width resource allocation algorithm based on price mechanism, effectively can converge to the optimum point of optimization utility model, i.e. the optimal bandwidth allocation of the uploading bandwidth of resource provider between resource requestor.
Wherein, resource allocator model:
m a x Σ r : r ∈ R U r ( y r )
s u b j e c t t o Σ p : p ∈ P ( r ) x p r = y r , r ∈ R
Σ r : r ∈ R ( p ) x p r = C p , p ∈ P
overx pr≥0,r∈R,p∈P
In formula, r is resource requestor; P is resource provider; R is the set of resource requestor; P is the set of resource provider; P (r) is for resource requestor r provides the resource provider set of download service; R (p) is the set that resource provider p provides all resource requestor of download service; x prthe bandwidth that resource requestor r obtains from resource provider p, total then resource requestor r obtain bandwidth be exactly y r, meanwhile, resource provider p is no more than the uploading bandwidth C of himself for bandwidth sum that all resource requestor provide p; U r(y r) be utility function.
Utility function U r(y r) describe resource requestor r acquisition download bandwidth y rafter satisfaction, and in order to realize resource fair allocat between requestor, choose following utility function
U r ( y r ) = w r log y r , α = 1 w r y r 1 - α 1 - α , α ≠ 1
Wherein, w rdescribe the expense that resource requestor r is ready to pay, and α>=0 describes fairness index, if α=1, then realize the proportional fairness of Resourse Distribute between user, if α=2, then realize the harmonic average fairness of Resourse Distribute between user, if α → ∞, then realize the max-min fairness of Resourse Distribute between user.
Utilize the resources configuration optimization problem that Lagrangian method process is above-mentioned, each resource requestor r can be obtained and can obtain optimal bandwidth allocation value
y r = w r 1 / α Σ p : p ∈ P C p Σ r : r ∈ R w r 1 / α
As can be seen here, the optimal bandwidth allocation that each resource requestor r obtains is only relevant with fairness index α, and the expense paid with this user accounts for the ratio of the summation of all user's defrayments relevant, during as α=1, achieve resource proportional fairness between users.
Being analyzed as follows of balance point:
Suppose that the balance point of algorithm is (x *, λ *), then
Then Σ p : p ∈ P C p = Σ p : p ∈ P Σ s : s ∈ R ( p ) x p s * λ s * 1 α λ r * 1 α = 1 λ r * 1 α Σ s : s ∈ R Σ p : p ∈ P ( s ) x p s * λ s * 1 α = y r * w r 1 α Σ s : s ∈ R λ s * 1 α Σ p : p ∈ P ( s ) x p s * = y r * w r 1 α Σ s : s ∈ R w s 1 α
Wherein, P is all resource provider set; R is all resource requestor set; C pit is the uploading bandwidth of resource provider p; w rit is the expense that resource requestor r is ready to pay; it is the optimum total bandwidth that resource requestor r obtains; it is the best price that resource requestor r pays; w sit is the expense that resource requestor s is ready to pay; it is the best price that resource requestor s pays; optimum bandwidth that resource requestor s distributes that to be resource provider p be; α >0 is fairness index.
Therefore
y r * = w r 1 α Σ p : p ∈ P C p Σ s : s ∈ R w s 1 α , λ r * = λ s * = ( Σ s : s ∈ R w r 1 / α Σ p : p ∈ P C p ) α
Can find, this balance point is exactly the optimum point of resource allocator model.
Utilize Lyapunov stability theory, can prove to obtain, this algorithm can global convergence to its point of safes
y r * = w r 1 / α Σ p : p ∈ P C p Σ r : r ∈ R w r 1 / α , λ r * = λ s * = ( Σ r : r ∈ R w r 1 / α Σ p : p ∈ P C p ) α , r , s ∈ R
And this point of safes is exactly the optimum point of resource allocator model, i.e. the optimal resource allocation of resource requestor, simultaneously, the price paid in each resource requestor of point of safes place is all identical, as when α=1, namely achieve the proportional fairness of Resourse Distribute between users y r * = w r Σ p : p ∈ P C p / Σ r : r ∈ R w r , λ r * = Σ r : r ∈ R w r / Σ p : p ∈ P C p .
Convergence
Convergence is the important indicator of measure algorithm performance.Contemplated by the invention 2 resource providers p1, p2, the situation of 4 resource requestor r1, r2, r3, r4, as shown in Figure 2, the uploading bandwidth of resource provider p1, p2 is respectively 20Mbps, 30Mbps.
The present invention analyzes the mediation fair allocat (i.e. α=2) of uploading bandwidth between resource requestor of resource provider, each simulation result is as shown in Fig. 3,4,5,6, such as in figure 3, when iterations is only 40 times, algorithm has just converged to optimum point, now resource provider p1 is the optimum bandwidth that resource requestor r1 distributes is 2.7522Mbps, resource provider p2 is the optimum bandwidth that resource requestor r1 distributes is 5.3828Mbps, and the optimum total bandwidth that resource requestor r1 obtains is 8.1350Mbps.Therefore, algorithm effectively can converge to balance point in limited iterations, and this balance point is exactly the optimum point of resource allocator model.Convergence of algorithm speed depends primarily on the iteration step length θ of algorithm, and as shown in Figure 7, when θ is larger, algorithm the convergence speed is very fast, but θ again can not be too large, otherwise algorithm there will be fluctuation near balance point.
Above-described embodiment is only be described the preferred embodiment of the present invention; not scope of the present invention is limited; under not departing from the present invention and designing the prerequisite of spirit; the various distortion that those of ordinary skill in the art make technical scheme of the present invention and improvement, all should fall in protection range that claims of the present invention determines.

Claims (5)

1. one kind based on bandwidth allocation algorithm in the P2P file sharing network of price mechanism, mainly comprise Peer-to-Peer Network P2P, resource requestor r and resource provider p, it is characterized in that, in Peer-to-Peer Network P2P, resource requestor r download file needs the uploading bandwidth obtaining resource provider p, the expected price of the price that resource provider p provides according to each resource requestor r and resource provider p self is the bandwidth of resource requestor r Resources allocation supplier p oneself;
Described algorithm steps is as follows:
Step 1, in the shared file system of Peer-to-Peer Network P2P, each wants its price λ that can provide of resource requestor r initialization obtaining file download service r[t];
Step 2, provides the resource provider p of download service to carry out allocated bandwidth, is the bandwidth x that each resource requestor r initialization distributes pr[t];
Step 3, if the now bandwidth x that is assigned with of resource requestor r pr[t] and the price λ provided r[t] is all balance point, then algorithm terminates, and resource provider and resource requestor complete transfer of data;
If the now bandwidth x that is assigned with of resource requestor r pr[t] and the price λ provided r[t] is not balance point, then carry out step 4 downwards;
Step 4, resource provider p is according to the uploading bandwidth C of oneself p, resource provider p is the initialized allocated bandwidth x of each resource requestor r prthe price λ that [t] and each resource requestor r provide r[t], obtains the expected price Cost of resource provider p p[t];
Step 5, resource provider p is according to the expected price Cost of oneself pthe price λ that [t] and resource requestor r provide r[t], the bandwidth x of adjustment Resources allocation requestor r pr[t+1];
Step 6, resource requestor r is according to the new bandwidth x obtained pr[t+1] redistributes its price λ paid of adjustment r[t+1];
Step 7, each resource provider p to go directly balance point, the i.e. optimum allocation of resource provider uploading bandwidth according to above-mentioned steps iteration;
Step 8, resource provider p and resource requestor r completes transfer of data according to optimal bandwidth allocation;
Step 9, if having new resource provider or resource requestor to add or original resource provider or resource requestor exit, then above-mentioned iterative process re-starts until reach new balance point.
2. according to claim 1ly a kind ofly to it is characterized in that based on bandwidth allocation algorithm in the P2P file sharing network of price mechanism, in step 3, being analyzed as follows of balance point:
Suppose that the balance point of algorithm is (x *, λ *), then λ r * 1 α = Σ s : s ∈ R ( p ) x p s * λ s * 1 α C p
Then Σ p : p ∈ P C p = Σ p : p ∈ P Σ s : s ∈ R ( p ) x p s * λ s * 1 α λ r * 1 α = 1 λ r * 1 α Σ s : s ∈ R Σ p : p ∈ P ( s ) x p s * λ s * 1 α = y r * w r 1 α Σ s : s ∈ R λ s * 1 α Σ p : p ∈ P ( s ) x p s * = y r * w r 1 α Σ s : s ∈ R w s 1 α
Wherein, P is all resource provider set; R is all resource requestor set; C pit is the uploading bandwidth of resource provider p; w rit is the expense that resource requestor r is ready to pay; it is the optimum total bandwidth that resource requestor r obtains; it is the best price that resource requestor r pays; w sit is the expense that resource requestor s is ready to pay; it is the best price that resource requestor s pays; optimum bandwidth that resource requestor s distributes that to be resource provider p be; α >0 is fairness index;
Therefore
y r * = w r 1 α Σ p : p ∈ P C p Σ s : s ∈ R w s 1 α , λ r * = λ s * = ( Σ s : s ∈ R w r 1 / α Σ p : p ∈ P C p ) α
Can find, this balance point is exactly the optimum point of resource allocator model.
3. according to claim 1ly a kind ofly to it is characterized in that based on bandwidth allocation algorithm in the P2P file sharing network of price mechanism, in step 4, the expected price Cost of resource provider p p[t] is drawn by following formula:
Cost p [ t ] = Σ s : s ∈ R ( p ) x p s [ t ] λ s 1 α [ t ] C p
In formula, C pit is the uploading bandwidth of resource provider p; x pr[t] is resource provider p is the bandwidth that resource requestor r distributes; α >0 is fairness index, for realizing α-fairness that bandwidth is distributed between resource requestor, during as α=1, then realizes proportional fairness; be resource provider p be the α-fairness realizing Resourse Distribute, the fairness price that the resource requestor s obtained provides; R (p) is then all requestor's set that resource provider p provides service, and then illustrate the expected revenus of resource provider p.
4. according to claim 1ly a kind ofly it is characterized in that: in steps of 5 based on bandwidth allocation algorithm in the P2P file sharing network of price mechanism, is the bandwidth x that resource requestor r distributes according to following formula adjustresources supplier p pr[t+1];
x p r [ t + 1 ] = ( x p r [ t ] + θx p r [ t ] ( λ r 1 α [ t ] - Cost p [ t ] ) ) x p r [ t ] +
In formula, x pr[t] is t resource provider p is the bandwidth that resource requestor r distributes; θ >0 is algorithm step-size; α >0 is fairness index; it is the fairness price that resource requestor r provides; Cost p[t] is the expected price of resource provider p;
x p r [ t + 1 ] = ( x p r [ t ] + θx p r [ t ] ( λ r 1 α [ t ] - Cost p [ t ] ) ) x p r [ t ] + Mean,
If x pr[t] >0, then x p r [ t + 1 ] = x p r [ t ] + θx p r [ t ] ( λ r 1 α [ t ] - Cost p [ t ] ) ;
If x pr[t]=0, then x p r [ t + 1 ] = m a x { 0 , x p r [ t ] + θx p r [ t ] ( λ r 1 α [ t ] - Cost p [ t ] ) } .
5. according to claim 1ly a kind ofly to it is characterized in that: in step 6 based on bandwidth allocation algorithm in the P2P file sharing network of price mechanism, resource requestor r adjusts its price λ paid according to obtaining allocated bandwidth r[t+1]
λ r [ t + 1 ] = w r y r α [ t + 1 ] , y r [ t + 1 ] = Σ p : p ∈ P ( r ) x p r [ t + 1 ]
In formula, λ r[t+1] is the price that t+1 moment resource requestor r pays; y r[t+1] is the total bandwidth that t+1 moment resource requestor r obtains; x pr[t+1] is t+1 moment resource provider p is the bandwidth that resource requestor r distributes; P (r) is for resource requestor r provides the resource provider set of service; w rit is the expense that resource requestor r is ready to pay; α >0 is fairness index.
CN201510778746.XA 2015-11-13 2015-11-13 Bandwidth allocation method in P2P file sharing network based on price mechanism Active CN105450738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510778746.XA CN105450738B (en) 2015-11-13 2015-11-13 Bandwidth allocation method in P2P file sharing network based on price mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510778746.XA CN105450738B (en) 2015-11-13 2015-11-13 Bandwidth allocation method in P2P file sharing network based on price mechanism

Publications (2)

Publication Number Publication Date
CN105450738A true CN105450738A (en) 2016-03-30
CN105450738B CN105450738B (en) 2019-02-22

Family

ID=55560504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510778746.XA Active CN105450738B (en) 2015-11-13 2015-11-13 Bandwidth allocation method in P2P file sharing network based on price mechanism

Country Status (1)

Country Link
CN (1) CN105450738B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107172125A (en) * 2017-04-21 2017-09-15 燕山大学 Cross-layer P2P resource sharing network bandwidth fair allocation algorithm
CN110096365A (en) * 2019-05-06 2019-08-06 燕山大学 A kind of resources of virtual machine fair allocat system and method for cloud data center
US11481142B2 (en) 2017-12-22 2022-10-25 Alibaba Group Holding Limited Method and device for downloading resources

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895580A (en) * 2010-07-15 2010-11-24 上海大学 Bandwidth allocation method for scalable video streaming in multi-overlay network based on auction
US20120089439A1 (en) * 2009-03-06 2012-04-12 Microsoft Corporation Market design for a resource exchange system
CN103415074A (en) * 2013-07-12 2013-11-27 南京邮电大学 Auction theory-based wireless cooperative relaying network relaying bandwidth resource allocation method
CN104023277A (en) * 2014-06-10 2014-09-03 上海大学 Method of bandwidth allocation of video stream in P2P (Peer to Peer) overlay network based on Nash bargaining solution
CN104159128A (en) * 2014-01-02 2014-11-19 上海大学 Auction-based bandwidth allocation method of video streaming in P2P overlay network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120089439A1 (en) * 2009-03-06 2012-04-12 Microsoft Corporation Market design for a resource exchange system
CN101895580A (en) * 2010-07-15 2010-11-24 上海大学 Bandwidth allocation method for scalable video streaming in multi-overlay network based on auction
CN103415074A (en) * 2013-07-12 2013-11-27 南京邮电大学 Auction theory-based wireless cooperative relaying network relaying bandwidth resource allocation method
CN104159128A (en) * 2014-01-02 2014-11-19 上海大学 Auction-based bandwidth allocation method of video streaming in P2P overlay network
CN104023277A (en) * 2014-06-10 2014-09-03 上海大学 Method of bandwidth allocation of video stream in P2P (Peer to Peer) overlay network based on Nash bargaining solution

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李世勇等: "《基于效用最优化的多路径网络资源公平分配》", 《计算机学报》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107172125A (en) * 2017-04-21 2017-09-15 燕山大学 Cross-layer P2P resource sharing network bandwidth fair allocation algorithm
CN107172125B (en) * 2017-04-21 2020-07-28 燕山大学 Cross-layer P2P resource sharing network bandwidth fair allocation algorithm
US11481142B2 (en) 2017-12-22 2022-10-25 Alibaba Group Holding Limited Method and device for downloading resources
CN110096365A (en) * 2019-05-06 2019-08-06 燕山大学 A kind of resources of virtual machine fair allocat system and method for cloud data center

Also Published As

Publication number Publication date
CN105450738B (en) 2019-02-22

Similar Documents

Publication Publication Date Title
Ma et al. Incentive and service differentiation in P2P networks: A game theoretic approach
Ma et al. A game theoretic approach to provide incentive and service differentiation in P2P networks
Park et al. A game theoretic analysis of incentives in content production and sharing over peer-to-peer networks
CN105450738A (en) Price mechanism-based bandwidth allocation algorithm in P2P file sharing network
Li et al. A mechanism for resource pricing and fairness in peer-to-peer networks
Mostafavi et al. Game theoretic bandwidth procurement mechanisms in live P2P streaming systems
Mostafavi et al. A stochastic approximation resource allocation approach for HD live streaming
Freedman et al. Prices are right: managing resources and incentives in peer-assisted content distribution.
Koutsopoulos et al. A framework for distributed bandwidth allocation in peer-to-peer networks
Oechsner et al. Pushing the performance of biased neighbor selection through biased unchoking
CN105471997A (en) Method for controlling flow in P2P file sharing network based on price mechanism
Yin et al. Analysis of admission control in P2P-based media delivery network based on POMDP
Raman et al. Consume local: Towards carbon free content delivery
Lingjun et al. Improving file distribution performance by grouping in peer-to-peer networks
CN107800567B (en) Method for establishing P2P streaming media network topology model of mixed mode
Yamazaki et al. Cat: A cost-aware bittorrent
Yin et al. Modeling and analysis for the P2P-based media delivery network
Deltouzos et al. Distributed energy-efficient peer-to-peer vod system
Yang et al. An ISP-friendly inter-overlay coordination framework for multiple coexisting P2P systems
Zhou et al. Game theoretical bandwidth request allocation strategy in P2P streaming systems
Koutsopoulos et al. Client–server games and their equilibria in peer-to-peer networks
Efthymiopoulou et al. Scalable control of bandwidth resources in P2P live streaming
Deltouzos et al. Tackling energy and battery issues in mobile P2P VoD systems
Zhang et al. Stability and efficiency of unstructured file sharing networks
Singha et al. Resource allocation in Peer-to-Peer Networks: A Control-Theoretical Perspective

Legal Events

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

Effective date of registration: 20220526

Address after: No. 9, Jiqing Road, Dingshan street, Jiangbei new district, Nanjing, Jiangsu 210000

Patentee after: Zhairenqiao (Nanjing) Network Technology Co.,Ltd.

Address before: 066004 No. 438 west section of Hebei Avenue, seaport District, Hebei, Qinhuangdao

Patentee before: Yanshan University