The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
+1 vote

A datagram network allows routers to drop packets whenever they need to. The probability of a router discarding a packet is p. Consider the case of a source host connected to the source router, which is connected to the destination router, and then to the destination host. If either of the routers discards a packet, the source host eventually times out and tries again. If both host-router and router-router lines are counted as hops, what is the mean number of hops a packet makes per transmission?

  1. $p^2-3p+3$
  2. $p^2+3$
  3. $3p+3$
  4. $p+3$
asked in Computer Networks by Boss (17.2k points)
edited by | 217 views
Ans b?
Getting C as the answer
Can you send solutions?
First let me know whether it is correct or not
Correct answer is given to be A

2 Answers

+1 vote
Best answer
Each  packet  may make 1, 2 or 3 hops. For 1 hop,  the  first  router  drops it and the  probability  is p.  For 2 hops,  it goes  through first router but not the second and the probability is $(1-p)p$.  For 3 hops,  it goes through both routers and the  probability is $(1-p)(1-p)$.  
Mean hops  per transmission is given by

 $1*p + 2*(1-p)p + 3*(1-p)(1-p)$ which simplifies to $p^2 - 3p +3$

A is the correct option!
answered by Active (4.9k points)
selected by
+2 votes
answered by Boss (25.3k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,122 questions
53,241 answers
70,480 users