4:

RI ← RI ∪ pr

5:

end for

6:

for i = (ζ ∗ α + 1) to ζ do

7:

select pr from online peer set randomly

8:

RII ← RII ∪ pr

9:

end for

10:

filter peers which experienced some content fetching failure in RI , RII , respectively

11:

filter peers whose workload exceed the threshold γ in RI , RII , respectively

12:

sort RI , RII in descending order of τi

13:

R ← RI ∪ RII

14:

return R

15:

end procedure