Question

In: Computer Science

In BitTorrent, consider peer A is connected to peers B, C, D and E. A asks...

In BitTorrent, consider peer A is connected to peers B, C, D and E. A asks the other peers for list of chunks that they have. B, C, D and E have the following chunks that are missing to A: B – C1, C3 C – C1, C3, C5 D – C3, C4, C5 E – C2, C4 Which is the chunk that A requests first, and from which peer?

Solutions

Expert Solution

Peers can be defined as the systems downloading the same data as the user. Now, simultaneously with downloading, uploading can also happen as the system uploads a part of the already downloaded data (we can notice it in the information tab as the upload speed).

From the given scenario we can conclude that peer A required five chunks of data. i.e. C1, C2, C3, C4 and C5.

The missing data chunks for peer B = C2, C3, C4 and C5.

The missing data chunks for peer C = C2, C4 and C5.

The missing data chunks for peer D = C1, C2 and C5.

The missing data chunks for peer E = C1, C3 and C5.

So, B will request peer E for C2.

C will request peer D for C4 (as C2 is already requested and the target is the best utilization of the bandwidth).

D will request peer B for C1.

E will request peer C for C1.

Now, in the beginning A has nothing to upload. So, it will request for the chunks which has less number of downloading request. So, it should request C3 first as no other peer has requested for it. Now, both the peers C and D have the chunk C3. So, A will request that specific peer to which the P2P connection is stronger.

So, A will request for C3 from either C or D.

Please comment in case of any doubt.
Please upvote if this helps.


Related Solutions

Consider the cross: A/a; b/b; C/c; D/d; E/e x A/a; B/b; c/c; D/d; e/e a) what...
Consider the cross: A/a; b/b; C/c; D/d; E/e x A/a; B/b; c/c; D/d; e/e a) what proportion of the progeny will phenotypically resemble the first parent? b) what proportion of the progeny will genotypically resemble neither parent?
Given the following knowledge base: a <- b^c. b <- d^e. b <- g^e. c <-...
Given the following knowledge base: a <- b^c. b <- d^e. b <- g^e. c <- e. d. e. ƒ <- a^g. Which of the following would be the trace of resolved atoms assuming a bottoms-up proof procedure? Select one: a. {a,b,c,e,g} b. {a,b,c,e,d} c. {g,e,b,e,c,a} d. None of these options Constraint Satisfaction Problem (CSP) is consists of a set of _________________. Select one: a. Variables, heuristics, and solutions b. Variables, domains, and backtracking c. Variables, domains, and constraints d....
Let A = {a, b, c, d} and B = {b, d, e}. Write out all...
Let A = {a, b, c, d} and B = {b, d, e}. Write out all of the elements of the following sets. (a) B ∩ ∅ (b) A ∪ B (c) (A ∩ B) × B (d) P(A\B) (e) {X ∈ P(A) | |X| ≤ 3}
Consider the relation R= {A, B, C, D, E, F, G, H} and the set of...
Consider the relation R= {A, B, C, D, E, F, G, H} and the set of functional dependencies: FD= {{B}—> {A}, {G}—> {D, H}, {C, H}—> {E}, {B, D}—> {F}, {D}—>{C}, {C}—> {G}} 1) Draw FD using the diagrammatic notation. 2) What are all candidate keys for R? 3) If delete {C}—>{G} and change {C, H}—> {E} to {C, H}—> {E, G}, what are all candidate keys for R
MIPS a) Consider the C statement: a = (b + d) + (b - c) +...
MIPS a) Consider the C statement: a = (b + d) + (b - c) + (c + d) Which of the following assembly instructions can be used to replicate all or part of this statement in MIPS, without changing or reducing the equation. Assume variables a, b, c, and d are assigned to registers $s0, $s1, $s2 and $s3 respectively. 1. sub $t0, $s2, $s3 2. sub $t0, $s0, $s3 3. sub $t1, $s1, $s2 4. sub $t2, $s1,...
Find the proof of the following ((a ∧ b) ∨ (c ∧ d)), (a → e),...
Find the proof of the following ((a ∧ b) ∨ (c ∧ d)), (a → e), (b → f), (c → f), (d → e) ⊢ e
Consider a finite population with five elements labeled A, B, C, D, and E. Ten possible...
Consider a finite population with five elements labeled A, B, C, D, and E. Ten possible simple random samples of size 2 can be selected. 1. List the 10 samples beginning with AB, AC, and so on. 2. Using simple random sampling, what is the probability that each sample of size 2 is selected? 3. Assume random number 1 corresponds to A, random number 2 corresponds to B, and so on. List the simple random sample of size 2 that...
Banzhaf Power Index Consider 5 voters, labeled A, B, C, D, and E, who are shareholders...
Banzhaf Power Index Consider 5 voters, labeled A, B, C, D, and E, who are shareholders on a company board. 1) If there are 11 votes total and a 2/3 majority is required to pass a motion, what is the quota? That is, how many votes are required to pass a motion? (Hint: the answer is a whole number between 0 and 11 that represents at least a 2/3 majority). 2) Suppose A has 5 votes, B has 3 votes,...
For the relation R(A,B,C,D,E) with the following Functional Dependencies: A → B, A → C, BC...
For the relation R(A,B,C,D,E) with the following Functional Dependencies: A → B, A → C, BC → D, AC → E, CE → A, list all non-trivial FDs following from the above.    Generate all possible keys for R. Check whether R is in 3NF. If it is in 3NF, explain the criteria you used. If it is not in 3NF, convert it into 3NF, showing the new relations and their FDs.
please i need the solve for A&B&C&D&E ESPECIALLY B&C&D&E Company Information Wood Work Ltd manufacture specialist...
please i need the solve for A&B&C&D&E ESPECIALLY B&C&D&E Company Information Wood Work Ltd manufacture specialist wood furniture and sell their products all over Saudi  Arabia. The company was established three  years ago in Jeddah and is performing well to date. Wood work Ltd have three main product lines; TV tables, dining table and chairs. The following financial information has been provided.   Financial Information TV tables dining Tables Chairs Selling Price per unit SAR 1,000 SAR 5,000 SAR 700 Direct Materials (wood...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT