In: Computer Science
Consider distributing a file of F = X Gbits to N = 20 peers. The server has an upload rate of us = X*3 Mbps, and each peer has a download rate of di = X/2 Mbps and an upload rate of X/10.
The numeric value X is the position of the first letter of your last name in the alphabet. For example if your last name starts with A then X = 1 and F = 1 Gbits.
Find the distribution time for
1. Client-server distribution
2. Peer-to-peer distribution
1.) Client-Server Distribution
For calculating the minimum distribution time for client-server distribution, we use the following formula:
Let X=1. Therefore Here,
2. Peer-to-peer distribution :
For calculating the minimum distribution time for P2P distribution, we use the following formula:
Let X=1. Therefore Here,