|
|
Subject:
Urgent: Small problem on stop-and-wait protocol
Category: Computers > Wireless and Mobile Asked by: sean07-ga List Price: $5.00 |
Posted:
06 Oct 2004 11:59 PDT
Expires: 05 Nov 2004 10:59 PST Question ID: 411131 |
For stop-and-wait protocols,how many retransmissions on average are needed when packet loss is 20%. assume ack are not lost. ( X sends msg to Y; if ack not received by timeout, resend the message. Persist until the ack is received. Then go to next msg.) |
|
Subject:
Re: Urgent: Small problem on stop-and-wait protocol
Answered By: maniac-ga on 06 Oct 2004 16:17 PDT Rated: |
Hello Sean07, The short answer an average of 25% retransmissions. The explanation for the short answer begins with a brief look at the situation. I will refer to the packet loss rate as PLR which you say is 20% (or 0.2). The probability a message is sent in a single attempt is 80% (1-PLR). The probability a message is sent in two attempts is PLR*(1-PLR) - the first attempt failed and the second succeeded or 16%. You can solve for the power series but instead I did a quick table in Excel using the recursion formula for a dozen rows to get the answer posted above. The values in the table are what Excel calculated. attempts probability att x prob cum packets 1 0.800000 0.800000 0.800000 2 0.160000 0.320000 1.120000 3 0.032000 0.096000 1.216000 4 0.006400 0.025600 1.241600 5 0.001280 0.006400 1.248000 6 0.000256 0.001536 1.249536 7 0.000051 0.000358 1.249894 8 0.000010 0.000082 1.249976 9 0.000002 0.000018 1.249995 10 0.000000 0.000004 1.249999 11 0.000000 0.000001 1.250000 12 0.000000 0.000000 1.250000 Totals 1.000000 1.250000 (the last row is a cross check total probability = 1 - check total att x prob = last row of cum packets - check) So, the total "average" is 1.25 x (packets to send) or 25% retransmission rate. If some part of this answer is unclear or you need a more complete answer, please make a clarification request. --Maniac | |
| |
|
sean07-ga rated this answer: |
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |