Question

Consider the following simplified BitTorrent scenario. There is a swarm of 128peers and, during the time in question, no peers join or leave the swarm. It takes a peer 1 unit of time to upload...

Consider the following simplified BitTorrent scenario. There is a swarm of 128peers and, during the time in question, no peers join or leave the swarm. It takes a peer 1 unit of time to upload or download a piece, during which time it can only do one or the other. Initially, one peer has the whole file and the others have nothing. If the swarm’s target file consists of only 1 piece, what is the minimum time necessary for all the peers to obtain the file? Ignore all but upload/ download time.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Solution

Each and every peer will have the file after n time units

That means there is a swarm of 128 peers

Convert into 2 power

128=2 7

So

All the peers will have the file after 7 time units

During each time unit, each and every peer with the piece can transmit it to one peer without that piece

so number of peers with the piece doubles with each time unit

2 0 =1 at a time 0 unit

2 1=2 at a time 1 unit

2 2=4 at a time 2 unit

2 3=8 at a time 3 unit

2 4= 16 at a time 4 unit

2 5=32 at a time 5 unit

2 6=64 at a time 6 unit

up to

2 7=128 at a time 7 unit

--

all the best

Add a comment
Know the answer?
Add Answer to:
Consider the following simplified BitTorrent scenario. There is a swarm of 128peers and, during the time in question, no peers join or leave the swarm. It takes a peer 1 unit of time to upload...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Consider the following simplified BitTorrent scenario. There is a swarm of 128peers and, during the time...

    Consider the following simplified BitTorrent scenario. There is a swarm of 128peers and, during the time in question, no peers join or leave the swarm. It takes a peer 1 unit of time to upload or download a piece, during which time it can only do one or the other. Initially, one peer has the whole file and the others have nothing. If the swarm’s target file consists of only 1 piece, what is the minimum time necessary for all...

  • Using the book, write another paragraph or two: write 170 words: Q: Compare the assumptions of...

    Using the book, write another paragraph or two: write 170 words: Q: Compare the assumptions of physician-centered and collaborative communication. How is the caregiver’s role different in each model? How is the patient’s role different? Answer: Physical-centered communication involves the specialists taking control of the conversation. They decide on the topics of discussion and when to end the process. The patient responds to the issues raised by the caregiver and acts accordingly. On the other hand, Collaborative communication involves a...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT