1:

procedure relay-peer-selection(α, γ , ζ)

2:

for i = 0 to ζ ∗ α do

3:

select pr which has the same location and ISP with ps, from online peer set