Question

In: Computer Science

Consider a simple application-level protocol built on top of UDP that allows a client to retrieve...

  • Consider a simple application-level protocol built on top of UDP that allows a client to retrieve a file from a remote server residing at a well-known address. The client first sends a request with a file name, and the server responds with a sequence of data packets containing different parts of the requested file. To ensure reliability and sequenced delivery, client and server use a stop-and-wait protocol. Ignoring the obvious performance issue, do you see a problem with this protocol? Think carefully about the possibility of processes crashing.

Solutions

Expert Solution

ANSWER:-

• Let consider a simple application-level protocol is build on the top of the UDP that allows a client to retrieve a file from a remote server exist in a well-known address. Here, UDP is User Datagram Protocol.

• The client first sends with a file name and the server responds with a sequence of data packets that contain the requested file.

•To ensure reliability and sequenced delivery,here the client and server are using the stop-and-wait protocol.

Problems occur with this protocol:-

  • The given statement makes the possibility for a client system to get the wrong file.
  • Let us assume that there are two clients A and B available, and the client A sends a request for a file
  • "F1" and then it gets crashed.
  • The client B sends same protocol to request some other file "F2";
  • In this case, the client B is running on the same machine of where the client A is running and then both files F1 and F2 are using the same IP addresses.
  • The client B binds its User Datagram Protocol socket to the same port of the client A was using previously.
  • In case the client B's request is lost when the server's reply for the client A arrive.
  • And also, client B receives it and assumes that it is a reply for its own request.
  • Hence, the client system gets the wrong file, when using this approach.

Related Solutions

Q # 1: Is it is possible for an application on top UDP to have a...
Q # 1: Is it is possible for an application on top UDP to have a reliable data transfer? explain? Q # 2: Suppose you open a startup company “foo” and want to set up your company network. Your network has the following servers: DNS server: “dns.foo.com” with IP as “140.111.30.40” Web server: “foo.com” with two IP as “140.111.30.55” and “140.111.30.52”. The web server also has a name as “www.foo.com”. Email server: “galaxy.foo.com” with IP as “140.111.30.6” Your company’s email...
Is the IRC protocol (application-level) protocol used in any connection in this trace. How to filter...
Is the IRC protocol (application-level) protocol used in any connection in this trace. How to filter packets for application-level in IRC protocol.
Consider a client-application that collects and computes the average of an integer (eg. stock price/value) collected...
Consider a client-application that collects and computes the average of an integer (eg. stock price/value) collected from a number (eg 20) remote servers. Question 1. Determine how long time it will take the client to deliver an answer to its user, assuming serial requests to each server, and 1) an average response time of 200 ms, 2) 10 ms, and  3) 1 ms. Question 2. Compare this to the situation where all values are present in the local memory of the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT