Consider N Peers ( user ) distribute F=15Gb A file of . The server has us=30Mbps Upload rate of , Download rate per peer di=2Mbps, The upload rate is u. Please target customers separately - Server distribution mode and P2P There are two cases of distribution mode , about N=10,100 and 1000 as well as u=500kbps,1Mbps and 2Mbps Each combination of , Chart minimum distribution time .( notes :k=10^3,M=10^6,G=10^9)

answer : For customers - Server distribution mode (C-S), Minimum distribution time and upload rate u irrelevant , And N of . The minimum distribution time in each case is shown in the table below , Below , The unit is seconds .

      N      C-S                        P2P
500kbps 1Mbps 2Mbps
10 7500 7500 7500 7500
100 50000 18750 11539 7500
1000 500000 28302 14563 7500

It can be seen that , about C-S pattern , Minimum distribution time with N And linear growth .

about P2P pattern , Minimum distribution time with N The growth rate of the two groups has been slowed down , close to log function . And the higher the upload rate of the client , The minimum distribution time is affected by N The smaller the impact , It can transfer files to more users in a short time .

 

The specific steps are as follows :

N

 

NF/us

F/min(di)

F/us

NF/(us+∑ui)

Minimum distribution time /s

10

C-S

5000

7500

 

 

7500

P2P

500kbps

 

7500

500

4286

7500

1Mbps

 

7500

500

3750

7500

2Mbps

 

7500

500

3000

7500

100

C-S

50000

7500

 

 

50000

P2P

500kbps

 

7500

500

18750

18750

1Mbps

 

7500

500

11539

11539

2Mbps

 

7500

500

6522

7500

1000

C-S

500000

7500

 

 

500000

P2P

500kbps

 

7500

500

28302

28302

1Mbps

 

7500

500

14563

14563

2Mbps

 

7500

500

7389

7500

Technology
©2019-2020 Toolsou All rights reserved,
1190 Reverses the substring between each pair of parentheses leetcodemysql Joint index details You don't know ——HarmonyOS Create data mysql Library process Character recognition technology of vehicle license plate based on Neural Network A guess number of small games , use JavaScript realization Talking about uni-app Page value transfer problem pytorch of ResNet18( Yes cifar10 The accuracy of data classification is achieved 94%)C++ Method of detecting memory leak One is called “ Asking for the train ” A small village Finally got the train