Question: Question 2: 50 points When a request times out, the client described above simply gives up on that request and moves on to the next
Question 2: 50 points When a request times out, the client described above simply gives up on that request and moves on to the next request. In reality, a typical client will retry a timed-out request several times before giving up. 1. Update your client code so that every request is attempted NUM.TRIES times (a parameter that you will set) before giving up. What would you set NUM.TRIES to so that most requests get a response? 2. What is the minimum value of NUM.TRIES necessary to ensure that every ping message is responded to? How does this value change as MESSAGE DROP PERCENT changes? What to submit 1. Question 1. (a) Submit all the code that you wrote. Copy the code to two text files, Client.txt and Server.txt, and submit both. (b) A screenshot (as PDF) showing the program output. 2. Question 2. (a) Updated client code, submitted as a text file UpdatedClient.txt. (b) A report in PDF format describing the relationship between the minimum required value of NUM.TRIES and MESSAGE DROP PERCENT. Question 2: 50 points When a request times out, the client described above simply gives up on that request and moves on to the next request. In reality, a typical client will retry a timed-out request several times before giving up. 1. Update your client code so that every request is attempted NUM.TRIES times (a parameter that you will set) before giving up. What would you set NUM.TRIES to so that most requests get a response? 2. What is the minimum value of NUM.TRIES necessary to ensure that every ping message is responded to? How does this value change as MESSAGE DROP PERCENT changes? What to submit 1. Question 1. (a) Submit all the code that you wrote. Copy the code to two text files, Client.txt and Server.txt, and submit both. (b) A screenshot (as PDF) showing the program output. 2. Question 2. (a) Updated client code, submitted as a text file UpdatedClient.txt. (b) A report in PDF format describing the relationship between the minimum required value of NUM.TRIES and MESSAGE DROP PERCENT
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
