CN105471997A - Method for controlling flow in P2P file sharing network based on price mechanism - Google Patents

Method for controlling flow in P2P file sharing network based on price mechanism Download PDF

Info

Publication number
CN105471997A
CN105471997A CN201510881198.3A CN201510881198A CN105471997A CN 105471997 A CN105471997 A CN 105471997A CN 201510881198 A CN201510881198 A CN 201510881198A CN 105471997 A CN105471997 A CN 105471997A
Authority
CN
China
Prior art keywords
resource
price
requestor
resource requestor
resource provider
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
CN201510881198.3A
Other languages
Chinese (zh)
Other versions
CN105471997B (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 CN201510881198.3A priority Critical patent/CN105471997B/en
Publication of CN105471997A publication Critical patent/CN105471997A/en
Application granted granted Critical
Publication of CN105471997B publication Critical patent/CN105471997B/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
    • H04L67/1078Resource delivery mechanisms
    • H04L67/1085Resource delivery mechanisms involving dynamic management of active down- or uploading connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions

Abstract

The invention relates to a method for controlling flow in a P2P file sharing network based on a price mechanism, which comprises the following steps: the price charged by the initialization of the uploading link of the resource provider and the downloading link of the resource requester respectively; adjusting the price at the next moment according to the total flow passing through the link; the resource provider initializes a download rate for each resource requester; the resource requester obtains the price to be paid according to the total flow obtained by the resource requester; the resource provider adjusts the rate distributed for the resource requester at the next moment according to the price paid by the resource requester, the price charged by the download link of the resource requester and the price charged by the upload link of the resource provider; and the link end and the user end iterate according to the steps until an optimal point is reached, namely the optimal flow distribution strategy of each user. The invention has the advantages of reasonable flow distribution, simple and accurate algorithm and the like.

Description

A kind of based on flow control methods in the P2P file sharing network of price mechanism
Technical field
The present invention relates to technical field of the computer network, particularly relate to a kind of flow control methods of Peer-to-Peer Network P2P file shared network.
Background technology
In recent years, P2P network application obtained develop rapidly, had on the one hand enriched the content of the Internet, on the other hand its flow explosive growth and to without restriction the taking of bandwidth, bring enormous impact to the Internet infrastructure.According to statistics, P2P applied business accounts for more than 80% of all wideband data throughputs altogether, and this wherein to take network bandwidth situation with P2P content share system even more serious, common P2P content share system comprises file download system Bittorrent, eDonkey, Gnutella, search and retrieval Bearshare, contents distribution, the network storage and peer broadcast Peercasting etc.
These P2P content share systems are universal and development rapidly, they unrestrictedly consume the network bandwidth, take Internet resources, become the maximum consumption person of Internet resources, exceed the data traffic of Web, E-mail, FTP etc. to a great extent and become the main burden of network, even can cause network congestion, thus reduce and affect the performance of other business.Therefore, effective control and management must be carried out to P2P network traffics, thus realize the controlled of P2P network traffics and can manage, improve the network congestion problem that P2P flow brings.
At present, the traditional control method based on " blocking up " is mainly still adopted in P2P flow control, comprise the strategies such as speed limit, Differentiated Services, obstruction, although the applied business of some keys in enterprise network can be ensured to a certain extent, save certain Internet resources, but these strategies reduce the service quality of P2P application, make user satisfaction decline, have impact on some rational P2P application.In order to solve the problem, need to propose new flow control policy to flow control technique, P2P communication flows is controlled in Intranet as far as possible, thus reduce the pressure of provider backbone network, while the satisfaction of Logistics networks user, improve network performance.
Summary of the invention
The object of the invention is to provide that a kind of assignment of traffic is reasonable, method is simple and effective based on flow control methods in the P2P file sharing network of price mechanism.
For achieving the above object, have employed following technical scheme: the inventive method mainly comprises Peer-to-Peer Network P2P, resource requestor s and resource provider p.
In Peer-to-Peer Network P2P, the access link of each user is fixed a price, according to the traffic conditions dynamic conditioning link price on link, and resource provider p is when providing file download service for resource requestor s, the price that the price provided according to resource requestor s and access link are collected, the reasonable distribution of dynamic conditioning flow between each resource requestor, finally realizes optimum allocation and the control of network;
The step of described control method is as follows:
Step 1, in the shared file system of Peer-to-Peer Network P2P, resource provider p uploads the price μ that link initialization collects p(t), the price v that the download link initialization of resource requestor s is collected st (), resource provider p is each resource requestor s initialization downloading rate x sp(t);
Step 2, the total flow y that resource requestor s obtains according to it st () obtains its price λ paid s(t), and give its file provider by network notifications;
Step 3, the price λ that resource provider p pays according to resource requestor s st price v that the download link initialization of (), resource requestor s is collected st () and resource provider p upload the price μ that link initialization collects pt (), adjusts the speed x that it distributes for resource requestor s sp(t+1);
Step 4, the link of uploading of resource provider p upgrades it and new collects price μ p(t+1); Meanwhile, the download link of resource requestor s upgrades it and new collects price v s(t+1);
Step 5, resource provider p and resource requestor s according to above-mentioned steps iteration until reach optimum point, i.e. the optimal flow assignment strategy of each resource requestor s;
Step 6, if having new resource provider or resource requestor to add or original resource provider or resource requestor exit, so above-mentioned iterative process re-starts to reach new optimum point.
In step 2, the total flow y that obtains according to it of resource requestor s st () obtains its price λ paid s(t),
λ s ( t ) = w s m a x { ξ , y s α ( t ) } , y s ( t ) = Σ p : p ∈ P ( s ) x s p ( t )
In formula, p is resource provider; S is resource requestor; P is resource provider set; S is resource requestor set; y st () is the total flow that resource requestor s obtains; ξ is a positive number being greater than zero, and object guarantees as total flow y swhen () is too small t, price λ st () is unlikely to excessive; x spt () is resource provider p is the initialized downloading rate of each resource requestor s; w sit is the expense that resource requestor s is ready to pay; P (s) is for resource requestor s provides the resource provider set of file download service; Parameter alpha >0 is fairness index, if α=1, then realizes 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.
In step 3, resource provider p adjustresources requestor s distributes speed x sp(t+1) algorithm is as follows:
x s p ( t + 1 ) = ( ( 1 - θ ) x s p ( t ) + θ x ~ s p ( t ) + κx s p ( t ) ( λ s ( t ) - v s ( t ) - μ p ( t ) ) ) x s p ( t ) + ,
x ~ s p ( t + 1 ) = ( 1 - θ ) x ~ s p ( t ) + θx s p ( t )
In formula, x spt () is resource provider p is the initialized downloading rate of each resource requestor s; θ is the low-pass filtering factor, and 0< θ <1, effectively can eliminate the unique and algorithm fluctuation problem that causes of optimum point; to present rate x spthe valuation of (t); be to resource provider p be resource requestor s distribute speed x sp(t+1) valuation; κ is algorithm iteration step-length, and κ >0; λ st () is the total flow y that resource requestor s obtains according to it st () obtains its price paid; v st () is the price that the download link initialization of resource requestor s is collected; μ p(t) be resource provider p upload the price that link initialization collects;
x s p ( t + 1 ) = ( ( 1 - &theta; ) x s p ( t ) + &theta; x ~ s p ( t ) + &kappa;x s p ( t ) ( &lambda; s ( t ) - v s ( t ) - &mu; p ( t ) ) ) x s p ( t ) + Mean,
If x sp(t) >0, then x s p ( t + 1 ) = ( 1 - &theta; ) x s p ( t ) + &theta; x ~ s p ( t ) + &kappa;x s p ( t ) ( &lambda; s ( t ) - v s ( t ) - &mu; p ( t ) )
If x sp(t)=0, then x s p ( t + 1 ) = m a x { 0 , ( 1 - &theta; ) x s p ( t ) + &theta; x ~ s p ( t ) + &kappa;x s p ( t ) ( &lambda; s ( t ) - v s ( t ) - &mu; p ( t ) ) } .
In step 4, the following algorithm of link utilization of uploading of resource provider p upgrades its new price μ collected p(t+1)
&mu; p ( t + 1 ) = ( &mu; p ( t ) + &tau; ( z p ( t ) - C p u ) ) &mu; p ( t ) + , z p ( t ) = &Sigma; s : s &Element; S ( p ) x s p ( t )
In formula, p is resource provider; S is resource requestor; P is resource provider set; S is resource requestor set; μ p(t) be resource provider p upload the price that link initialization collects; x spt () is resource provider p is the initialized downloading rate of each resource requestor s; S (p) accepts the resource requestor set that resource provider p provides file download service; be resource provider p upload link bandwidth; z pt () is the link of uploading of resource provider p is the initialized total uploading rate of resource requestor; τ is algorithm iteration step-length, and τ >0;
&mu; p ( t + 1 ) = ( &mu; p ( t ) + &tau; ( z p ( t ) - C p u ) ) &mu; p ( t ) + Mean,
If μ p(t) >0, then &mu; p ( t + 1 ) = &mu; p ( t ) + &tau; ( z p ( t ) - C p u )
If μ p(t)=0, then &mu; p ( t + 1 ) = m a x { 0 , &mu; p ( t ) + &tau; ( z p ( t ) - C p u ) } .
The download link of resource requestor s utilizes following algorithm to upgrade its new price v collected s(t+1)
v s ( t + 1 ) = ( v s ( t ) + &tau; ( y s ( t ) - C s d ) ) v s ( t ) + , y s ( t ) = &Sigma; p : p &Element; P ( s ) x s p ( t )
In formula, p is resource provider; S is resource requestor; P is resource provider set; S is resource requestor set; x spt () is resource provider p is the initialized downloading rate of each resource requestor s; v st () is the price that the download link initialization of resource requestor s is collected; y st () is the total flow that resource requestor s obtains; P (s) is for resource requestor s provides the resource provider set of file download service; it is the download link bandwidth of resource requestor s;
v s ( t + 1 ) = ( v s ( t ) + &tau; ( y s ( t ) - C s d ) ) v s ( t ) + Mean,
If v s(t) >0, then v s ( t + 1 ) = v s ( t ) + &tau; ( y s ( t ) - C s d )
If v s(t)=0, then v s ( t + 1 ) = m a x { 0 , v s ( t ) + &tau; ( y s ( t ) - C s d ) } .
In step 5 and 6, the optimum point that algorithm iteration arrives is exactly the globe optimum of flow control Optimized model, and namely in peer-to-peer network, resource provider p is the optimal flux that each resource requestor s distributes.
Compared with prior art, tool of the present invention has the following advantages: assignment of traffic and control problem are summarized as network utility optimization problem, by by the reasonable distribution of the uploading bandwidth of resources in network supplier between resource requestor, while the satisfaction of Logistics networks service requester, realize reasonable distribution and the optimal control of flow between the network user, the pressure of final reduction provider backbone network, ensures that the health of network is run, improves P2P network performance.
Accompanying drawing explanation
Fig. 1 is 6 user network topology diagrams of the inventive method.
Fig. 2 is the optimal flux figure that in Fig. 1, resource requestor S1 obtains.
Fig. 3 is the optimal flux figure that in Fig. 1, resource requestor S2 obtains.
Fig. 4 is the optimal flux figure that in Fig. 1, resource requestor S3 obtains.
Fig. 5 is the optimal flux figure that in Fig. 1, resource requestor S4 obtains.
Fig. 6 is value of utility and the network polymerization value of utility of each resource requestor in Fig. 1.
Fig. 7 is the jitter conditions schematic diagram of each resource requestor in Fig. 1.
Fig. 8 is the optimal flux figure that in Fig. 1, under network fluctuation situation, resource requestor S1 obtains.
Fig. 9 is the optimal flux figure that in Fig. 1, under network fluctuation situation, resource requestor S2 obtains.
Figure 10 is the optimal flux figure that in Fig. 1, under network fluctuation situation, resource requestor S3 obtains.
Figure 11 is the optimal flux figure that in Fig. 1, under network fluctuation situation, resource requestor S4 obtains.
Drawing reference numeral: p1 is resource provider 1, p2 is resource provider 2, s1 is resource requestor 1, s2 is resource requestor 2, s3 is resource requestor 3, s4 is resource requestor 4.
Embodiment
Satisfaction when the present invention obtains service according to the network user chooses utility function, then set up flow control optimal model in P2P file sharing network, the flow control problems by P2P file sharing network is summed up as P2P file sharing network optimal utility model.The present invention designs a kind of flow control algorithm based on price mechanism, and this algorithm can converge to the optimum point of flow control model effectively, i.e. the optimal flow assignment of the network user.
Flow control problems describes:
In P2P network, each use is be connected to the Internet by access link per family.The technology such as optical fiber communication are taked due to backbone network in existing the Internet, it is generally acknowledged and extensive congestion phenomenon is less likely to occur, and so the access link of user has just become the bottleneck affecting user bandwidth, are also that network traffics are distributed and the key controlled.At present, what take during a lot of user Internet access is upload the situation that link and download link be separated, and as ADSL, and a user is when providing file download service, its uploading bandwidth is exactly resource for other network users, therefore will produce the competition of this resource between user.
In order to distinguish supplier and the requestor of file sharing network file, introduce resource provider set P and resource requestor S set.As long as a user provides file download service, so this user just belongs to P.And a user both can belong to P, also can belong to S, this depends on whether this user provides file service or demand file service.Being defined as resource requestor s ∈ S provides the resource provider set of file download service to be P (s); Resource provider p ∈ P provides all resource requestor set of download service to be S (p).Notice p ∈ P (s) and if only if s ∈ S (p).
If resource provider p for the downloading rate that resource requestor s provides be x sp, then because a user can download identical file from multiple resource provider, total speed that therefore resource requestor s obtains is and should not exceed the download bandwidth of this user namely meanwhile, a resource provider can also simultaneously for multiple user provides download service, and therefore the upper transfer rate of this resource provider p is and be no more than the uploading bandwidth of this user namely
User utility function:
The satisfaction of user when obtaining service can describe by utility function, selects following utility function for this reason,
U s ( y s ) = w s log y s , &alpha; = 1 w s y s 1 - &alpha; 1 - &alpha; , &alpha; &NotEqual; 1
Wherein, w sdescribe the expense that resource requestor s is ready to pay, and parameter alpha>=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.
Flow control model:
The flow control problems of P2P file sharing network can be summed up as following network utility optimization problem
max &Sigma; s : s &Element; S U s ( y s ) s u b j e c t t o &Sigma; p : p &Element; P ( s ) x s p = y s , s &Element; S &Sigma; p : p &Element; P ( s ) x s p &le; C s d , s &Element; S &Sigma; p : p &Element; P ( s ) x s p &le; C p u , p &Element; P o v e r x s p &GreaterEqual; 0 , s &Element; S , p &Element; P
Utilize Nonlinear Programming Theory, this Optimal Utility is convex optimization problem, to variable y sbe strictly concave function, there is globally optimal solution and be unique, but this problem is to variable x spbut not strict concave function, therefore optimal solution not unique.That is, total speed that each resource requestor obtains is unique, but owing to there is multiple resource provider, so multiple concrete assignment of traffic form can be there is.
Set up the Lagrangian of above-mentioned optimization problem
L ( x , y ; &lambda; , &mu; ) = &Sigma; s : s &Element; S ( U s ( y s ) + &lambda; s ( &Sigma; p : p &Element; P ( s ) x s p - y s ) + v s ( C s d - &Sigma; p : p &Element; P ( s ) x s p - &delta; s 2 ) ) + &Sigma; p : p &Element; P &mu; p ( C p u - &Sigma; s : s &Element; S ( p ) x s p - &epsiv; p 2 )
Wherein λ s>=0 is the price of unit bandwidth that resource requestor s pays, v s>=0 is the price of the unit bandwidth that the download link of resource requestor s is collected, μ p>=0 is the price uploading the unit bandwidth that link is collected of resource provider p, with be slack variable, represent the download link of resource requestor s and the remaining bandwidth uploading link of resource provider p respectively.
The inventive method mainly comprises Peer-to-Peer Network P2P, resource requestor r and resource provider p, in Peer-to-Peer Network P2P, the access link of each user is fixed a price, according to the traffic conditions dynamic conditioning link price on link, and resource provider p is when providing file download service for resource requestor s, the price that the price provided according to resource requestor s and access link are collected, the reasonable distribution of dynamic conditioning flow between each resource requestor, finally realizes optimum allocation and the control of network;
The step of described control method is as follows:
Step 1, in the shared file system of Peer-to-Peer Network P2P, resource provider p uploads the price μ that link initialization collects p(t), the price v that the download link initialization of resource requestor s is collected st (), resource provider p is each resource requestor s initialization downloading rate x sp(t);
Step 2, the total flow y that resource requestor s obtains according to it st () obtains its price λ paid s(t), and give its file provider by network notifications;
&lambda; s ( t ) = w s m a x { &xi; , y s &alpha; ( t ) } , y s ( t ) = &Sigma; p : p &Element; P ( s ) x s p ( t )
In formula, p is resource provider; S is resource requestor; P is resource provider set; S is resource requestor set; y st () is the total flow that resource requestor s obtains; ξ is a positive number being greater than zero, and object guarantees as total flow y swhen () is too small t, price λ st () is unlikely to excessive; x spt () is resource provider p is the initialized downloading rate of each resource requestor s; w sit is the expense being ready to pay; P (s) is for resource requestor s provides the resource provider set of file download service; Parameter alpha >0 is fairness index, if α=1, then realizes 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.
Step 3, the price λ that resource provider p pays according to resource requestor s st price v that the download link initialization of (), resource requestor s is collected st () and resource provider p upload the price μ that link initialization collects pt (), adjusts the speed x that it distributes for resource requestor s sp(t+1);
x s p ( t + 1 ) = ( ( 1 - &theta; ) x s p ( t ) + &theta; x ~ s p ( t ) + &kappa;x s p ( t ) ( &lambda; s ( t ) - v s ( t ) - &mu; p ( t ) ) ) x s p ( t ) + x ~ s p ( t + 1 ) = ( 1 - &theta; ) x ~ s p ( t ) + &theta;x s p ( t ) ,
In formula, x spt () is resource provider p is the initialized downloading rate of each resource requestor s; θ is the low-pass filtering factor, and 0< θ <1, effectively can eliminate the unique and algorithm fluctuation problem that causes of optimum point; to present rate x spthe valuation of (t); be to resource provider p be resource requestor s distribute speed x sp(t+1) valuation; κ is algorithm iteration step-length, and κ >0; λ st () is the total flow y that resource requestor s obtains according to it st () obtains its price paid; v st () is the price that the download link initialization of resource requestor s is collected; μ p(t) be resource provider p upload the price that link initialization collects;
x s p ( t + 1 ) = ( ( 1 - &theta; ) x s p ( t ) + &theta; x ~ s p ( t ) + &kappa;x s p ( t ) ( &lambda; s ( t ) - v s ( t ) - &mu; p ( t ) ) ) x s p ( t ) + Mean,
If x sp(t) >0, then x s p ( t + 1 ) = ( 1 - &theta; ) x s p ( t ) + &theta; x ~ s p ( t ) + &kappa;x s p ( t ) ( &lambda; s ( t ) - &nu; s ( t ) - &mu; p ( t ) )
If x sp(t)=0, then x s p ( t + 1 ) = m a x { 0 , ( 1 - &theta; ) x s p ( t ) + &theta; x ~ s p ( t ) + &kappa;x s p ( t ) ( &lambda; s ( t ) - v s ( t ) - &mu; p ( t ) ) } .
Step 4, the link of uploading of resource provider p upgrades it and new collects price μ p(t+1);
&mu; p ( t + 1 ) = ( &mu; p ( t ) + &tau; ( z p ( t ) - C p u ) ) &mu; p ( t ) + , z p ( t ) = &Sigma; s : s &Element; S ( p ) x s p ( t )
In formula, p is resource provider; S is resource requestor; P is resource provider set; S is resource requestor set; μ p(t) be resource provider p upload the price that link initialization collects; x spt () is resource provider p is the initialized downloading rate of each resource requestor s; S (p) accepts the resource requestor set that resource provider p provides file download service; be resource provider p upload link bandwidth; z pt () is the link of uploading of resource provider p is the initialized total uploading rate of resource requestor; τ is algorithm iteration step-length, and τ >0;
&mu; p ( t + 1 ) = ( &mu; p ( t ) + &tau; ( z p ( t ) - C p u ) ) &mu; p ( t ) + Mean,
If μ p(t) >0, then &mu; p ( t + 1 ) = &mu; p ( t ) + &tau; ( z p ( t ) - C p u )
If μ p(t)=0, then &mu; p ( t + 1 ) = m a x { 0 , &mu; p ( t ) + &tau; ( z p ( t ) - C p u ) } .
The download link of resource requestor s utilizes following algorithm to upgrade its new price v collected s(t+1)
v s ( t + 1 ) = ( v s ( t ) + &tau; ( y s ( t ) - C s d ) ) v s ( t ) + , y s ( t ) = &Sigma; p : p &Element; P ( s ) x s p ( t )
In formula, p is resource provider; S is resource requestor; P is resource provider set; S is resource requestor set; x spt () is resource provider p is the initialized downloading rate of each resource requestor s; v st () is the price that the download link initialization of resource requestor s is collected; y st () is the total flow that resource requestor s obtains; P (s) is for resource requestor s provides the resource provider set of file download service; it is the download link bandwidth of resource requestor s;
v s ( t + 1 ) = ( v s ( t ) + &tau; ( y s ( t ) - C s d ) ) v s ( t ) + Mean,
If v s(t) >0, then v s ( t + 1 ) = v s ( t ) + &tau; ( y s ( t ) - C s d )
If v s(t)=0, then v s ( t + 1 ) = m a x { 0 , v s ( t ) + &tau; ( y s ( t ) - C s d ) } .
Step 5, resource provider p and resource requestor s according to above-mentioned steps iteration until reach optimum point, i.e. the optimal flow assignment strategy of each resource requestor s;
Step 6, if having new resource provider or resource requestor to add or original resource provider or resource requestor exit, so above-mentioned iterative process re-starts to reach new optimum point.
Convergence:
Convergence is the important indicator of measure algorithm performance.Contemplated by the invention 2 file service suppliers, the situation of 4 file server requests persons, as shown in Figure 1.Wherein, the link bandwidth of uploading of resource provider is C u = ( C 1 u , C 2 u ) = ( 12 , 20 ) M b p s , The download link bandwidth of resource requestor is C d = ( C 1 d , C 2 d , C 3 d , C 4 d ) = ( 15 , 10 , 8 , 6 ) M b p s . The equitable proportion of uploading bandwidth between resource requestor that the present invention analyzes resource provider distributes (i.e. α=1), each simulation result is as shown in Fig. 2,3,4,5,6, as shown in Figure 2, the optimal flux that resource requestor 1 obtains from resource provider is therefore, algorithm effectively can converge to the optimum point of flow control model in limited iterations, realizes the reasonable distribution of flow between each user and control.The present invention considers P2P network jitter (Churn) to the impact of algorithm simultaneously, and jitter conditions as shown in Figure 7.Simulation result is as shown in Fig. 8,9,10,11, and as shown in Figure 8, stage 1:t=0 → 400, resources in network requestor only has user 1, and its optimal flux obtained is stage 2:t=401 → 800, resource requestor has user 1,2 and 3, and the optimal flux that now resource requestor 1 obtains is stage 3:t=801 → 1200, resource requestor has user 1,3 and 4, and the optimal flux that now resource requestor 1 obtains is even be not difficult to find out to there is the optimum point that fluctuation situation algorithm still effectively can converge to model.
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 flow control methods in the P2P file sharing network of price mechanism, mainly comprise Peer-to-Peer Network P2P, resource requestor s and resource provider p, it is characterized in that, in Peer-to-Peer Network P2P, the access link of each user is fixed a price, according to the traffic conditions dynamic conditioning link price on link, and resource provider p is when providing file download service for resource requestor s, the price that the price provided according to resource requestor s and access link are collected, the reasonable distribution of dynamic conditioning flow between each resource requestor, finally realize optimum allocation and the control of network,
The step of described control method is as follows:
Step 1, in the shared file system of Peer-to-Peer Network P2P, resource provider p uploads the price μ that link initialization collects p(t), the price v that the download link initialization of resource requestor s is collected st (), resource provider p is each resource requestor s initialization downloading rate x sp(t);
Step 2, the total flow y that resource requestor s obtains according to it st () obtains its price λ paid s(t), and give its file provider by network notifications;
Step 3, the price λ that resource provider p pays according to resource requestor s st price v that the download link initialization of (), resource requestor s is collected st () and resource provider p upload the price μ that link initialization collects pt (), adjusts the speed x that it distributes for resource requestor s sp(t+1);
Step 4, the link of uploading of resource provider p upgrades it and new collects price μ p(t+1); Meanwhile, the download link of resource requestor s upgrades it and new collects price v s(t+1);
Step 5, resource provider p and resource requestor s according to above-mentioned steps iteration until reach optimum point, i.e. the optimal flow assignment strategy of each resource requestor s;
Step 6, if having new resource provider or resource requestor to add or original resource provider or resource requestor exit, so above-mentioned iterative process re-starts to reach new optimum point.
2. according to claim 1 a kind of based on flow control methods in the P2P file sharing network of price mechanism, it is characterized in that: in step 2, the total flow y that resource requestor s obtains according to it st () obtains its price λ paid s(t),
&lambda; s ( t ) = w s m a x { &xi; , y s &alpha; ( t ) } , y s ( t ) = &Sigma; p : p &Element; P ( s ) x s p ( t )
In formula, p is resource provider; S is resource requestor; P is resource provider set; S is resource requestor set; y st () is the total flow that resource requestor s obtains; ξ is a positive number being greater than zero, and object guarantees as total flow y swhen () is too small t, price λ st () is unlikely to excessive; x spt () is resource provider p is the initialized downloading rate of each resource requestor s; w sit is the expense that resource requestor s is ready to pay; P (s) is for resource requestor s provides the resource provider set of file download service; Parameter alpha >0 is fairness index, if α=1, then realizes 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.
3. according to claim 1ly a kind ofly to it is characterized in that based on flow control methods in the P2P file sharing network of price mechanism, in step 3, resource provider p adjustresources requestor s distributes speed x sp(t+1) algorithm is as follows:
x s p ( t + 1 ) = ( ( 1 - &theta; ) x s p ( t ) + &theta; x ~ s p ( t ) + &kappa;x s p ( t ) ( &lambda; s ( t ) - v s ( t ) - &mu; p ( t ) ) ) x s p ( t ) + ,
x ~ s p ( t + 1 ) = ( 1 - &theta; ) x ~ s p ( t ) + &theta;x s p ( t )
In formula, x spt () is resource provider p is the initialized downloading rate of each resource requestor s; θ is the low-pass filtering factor, and 0< θ <1, effectively can eliminate the unique and algorithm fluctuation problem that causes of optimum point; to present rate x spthe valuation of (t); be to resource provider p be resource requestor s distribute speed x sp(t+1) valuation; κ is algorithm iteration step-length, and κ >0; λ st () is the total flow y that resource requestor s obtains according to it st () obtains its price paid; v st () is the price that the download link initialization of resource requestor s is collected; μ p(t) be resource provider p upload the price that link initialization collects;
x s p ( t + 1 ) = ( ( 1 - &theta; ) x s p ( t ) + &theta; x ~ s p ( t ) + &kappa;x s p ( t ) ( &lambda; s ( t ) - v s ( t ) - &mu; p ( t ) ) ) x s p ( t ) + Mean,
If x sp(t) >0, then x s p ( t + 1 ) = ( 1 - &theta; ) x s p ( t ) + &theta; x ~ s p ( t ) + &kappa;x s p ( t ) ( &lambda; s ( t ) - v s ( t ) - &mu; p ( t ) )
If x sp(t)=0, then x s p ( t + 1 ) = m a x { 0 , ( 1 - &theta; ) x s p ( t ) + &theta; x ~ s p ( t ) + &kappa;x s p ( t ) ( &lambda; s ( t ) - v s ( t ) - &mu; p ( t ) ) } .
4. according to claim 1ly a kind ofly to it is characterized in that: in step 4 based on flow control methods in the P2P file sharing network of price mechanism, the following algorithm of link utilization of uploading of resource provider p upgrades its new price μ collected p(t+1)
&mu; p ( t + 1 ) = ( &mu; p ( t ) + &tau; ( z p ( t ) - C p u ) ) &mu; p ( t ) + , z p ( t ) = &Sigma; s : s &Element; S ( p ) x s p ( t )
In formula, p is resource provider; S is resource requestor; P is resource provider set; S is resource requestor set; μ p(t) be resource provider p upload the price that link initialization collects; x spt () is resource provider p is the initialized downloading rate of each resource requestor s; S (p) accepts the resource requestor set that resource provider p provides file download service; be resource provider p upload link bandwidth; z pt () is the link of uploading of resource provider p is the initialized total uploading rate of resource requestor; τ is algorithm iteration step-length, and τ >0;
&mu; p ( t + 1 ) = ( &mu; p ( t ) + &tau; ( z p ( t ) - C p u ) ) &mu; p ( t ) + Mean,
If μ p(t) >0, then &mu; p ( t + 1 ) = &mu; p ( t ) + &tau; ( z p ( t ) - C p u )
If μ p(t)=0, then &mu; p ( t + 1 ) = m a x { 0 , &mu; p ( t ) + &tau; ( z p ( t ) - C p u ) } .
The download link of resource requestor s utilizes following algorithm to upgrade its new price v collected s(t+1)
v s ( t + 1 ) = ( v s ( t ) + &tau; ( y s ( t ) - C s d ) ) v s ( t ) + , y s ( t ) = &Sigma; p : p &Element; P ( s ) x s p ( t )
In formula, p is resource provider; S is resource requestor; P is resource provider set; S is resource requestor set; x spt () is resource provider p is the initialized downloading rate of each resource requestor s; v st () is the price that the download link initialization of resource requestor s is collected; y st () is the total flow that resource requestor s obtains; P (s) is for resource requestor s provides the resource provider set of file download service; it is the download link bandwidth of resource requestor s;
v s ( t + 1 ) = ( v s ( t ) + &tau; ( y s ( t ) - C s d ) ) v s ( t ) + Mean,
If v s(t) >0, then v s ( t + 1 ) = v s ( t ) + &tau; ( y s ( t ) - C s d )
If v s(t)=0, then v s ( t + 1 ) = m a x { 0 , v s ( t ) + &tau; ( y s ( t ) - C s d ) } .
5. according to claim 1 a kind of based on flow control methods in the P2P file sharing network of price mechanism, it is characterized in that: in step 5 and 6, the optimum point that algorithm iteration arrives is exactly the globe optimum of flow control Optimized model, and namely in peer-to-peer network, resource provider p is the optimal flux that each resource requestor s distributes.
CN201510881198.3A 2015-12-04 2015-12-04 Method for controlling flow in P2P file sharing network based on price mechanism Active CN105471997B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510881198.3A CN105471997B (en) 2015-12-04 2015-12-04 Method for controlling flow in P2P file sharing network based on price mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510881198.3A CN105471997B (en) 2015-12-04 2015-12-04 Method for controlling flow in P2P file sharing network based on price mechanism

Publications (2)

Publication Number Publication Date
CN105471997A true CN105471997A (en) 2016-04-06
CN105471997B CN105471997B (en) 2019-02-22

Family

ID=55609260

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510881198.3A Active CN105471997B (en) 2015-12-04 2015-12-04 Method for controlling flow in P2P file sharing network based on price mechanism

Country Status (1)

Country Link
CN (1) CN105471997B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105721573A (en) * 2016-02-04 2016-06-29 燕山大学 P2P file sharing network bandwidth fairness allocation algorithm based on utility optimization
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
CN110096337A (en) * 2019-05-06 2019-08-06 燕山大学 A kind of enterprise applies the cloud data center resource allocation methods and system of cloud deployment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577670A (en) * 2008-05-07 2009-11-11 华为技术有限公司 Method, device and system for bandwidth allocation
CN101895580A (en) * 2010-07-15 2010-11-24 上海大学 Bandwidth allocation method for scalable video streaming in multi-overlay network based on auction
CN102202344A (en) * 2011-05-25 2011-09-28 重庆邮电大学 Cross-layer congestion control method based on game theory in wireless Mesh network
WO2012149748A1 (en) * 2011-09-19 2012-11-08 华为技术有限公司 Network optimization traffic control method, device and system
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
CN101577670A (en) * 2008-05-07 2009-11-11 华为技术有限公司 Method, device and system for bandwidth allocation
CN101895580A (en) * 2010-07-15 2010-11-24 上海大学 Bandwidth allocation method for scalable video streaming in multi-overlay network based on auction
CN102202344A (en) * 2011-05-25 2011-09-28 重庆邮电大学 Cross-layer congestion control method based on game theory in wireless Mesh network
WO2012149748A1 (en) * 2011-09-19 2012-11-08 华为技术有限公司 Network optimization traffic control method, device and system
CN104159128A (en) * 2014-01-02 2014-11-19 上海大学 Auction-based bandwidth allocation method of video streaming in P2P overlay network

Non-Patent Citations (2)

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

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105721573A (en) * 2016-02-04 2016-06-29 燕山大学 P2P file sharing network bandwidth fairness allocation algorithm based on utility optimization
CN105721573B (en) * 2016-02-04 2019-06-25 燕山大学 P2P file sharing network fair bandwidth sharing method based on optimization utility
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
CN110096365A (en) * 2019-05-06 2019-08-06 燕山大学 A kind of resources of virtual machine fair allocat system and method for cloud data center
CN110096337A (en) * 2019-05-06 2019-08-06 燕山大学 A kind of enterprise applies the cloud data center resource allocation methods and system of cloud deployment

Also Published As

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

Similar Documents

Publication Publication Date Title
Basar et al. Revenue-maximizing pricing and capacity expansion in a many-users regime
CN105471997A (en) Method for controlling flow in P2P file sharing network based on price mechanism
CN107948083A (en) A kind of SDN data centers jamming control method based on enhancing study
Li et al. A mechanism for resource pricing and fairness in peer-to-peer networks
Liu et al. Resource allocation for video transcoding and delivery based on mobile edge computing and blockchain
CN105450738B (en) Bandwidth allocation method in P2P file sharing network based on price mechanism
Li et al. A novel bandwidth allocation scheme for elastic and inelastic services in peer-to-peer networks
CN105721573B (en) P2P file sharing network fair bandwidth sharing method based on optimization utility
Analoui et al. Microeconomics-based resource allocation in overlay networks by using non-strategic behavior modeling
CN107172125A (en) Cross-layer P2P resource sharing network bandwidth fair allocation algorithm
Eger et al. Resource pricing in peer-to-peer networks
Marchal et al. Optimal bandwidth sharing in grid environments
Li et al. Utility optimization-based bandwidth allocation for elastic and inelastic services in peer-to-peer networks
Yu et al. Energy-efficient, qos-aware packet scheduling in high-speed networks
Ou et al. Two-Tier Resource Allocation for Multi-Tenant Network Slicing: A Federated Deep Reinforcement Learning Approach
Paganini et al. PDE models for population and residual work applied to peer-to-peer networks
Li et al. A novel framework for analysis of global network neutrality based on packet loss rate
CN111082978A (en) SDN-oriented utility bandwidth allocation method
Yang et al. On tradeoffs between cross-ISP P2P traffic and P2P streaming performance
Nishi et al. Impact of locality-awareness on tit-for-tat-based p2p file distribution
Ellouze et al. A bidirectional network collaboration interface for CDNs and Clouds services traffic optimization
CN117155792B (en) Inter-core communication dynamic bandwidth adjustment method and system
Carlsson et al. Modeling priority-based incentive policies for peer-assisted content delivery systems
CN106209631A (en) The system of selection of the route in real time of end-to-end communication network
Sani et al. A bio-inspired managed video delivery service using HTTP-based adaptive streaming

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: 20220523

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