1:

procedure fetch-content (R)

2:

for each relay peer pr ∈ R do

3:

send the content url to the first relay peer in R

4:

if pr can get the content from server and relay to requesting peer ps then

5:

break

6:

else

7:

try the next relay peer in R

8:

end if

9:

end for

10:

end procedure