Implementing a Client Server Protocol and Threading in a Client Server P computer science homework help
ASSIGNMENT #1 – Application: Implementing a Client-Server Protocol
You can learn a lot about the design of client-server protocols by reviewing the implementation of one. And you can develop an even greater understanding by extending or updating that implementation.
For this Assignment, you will modify an existing client-server protocol to implement the Internet’s finger protocol.
To prepare:
- Download the existing program contained in Week6_Echo.zip. This file unzips into a NetBeans project that includes the source code for two Java programs, a client program, and a server program. The two programs implement the Internet’s echo protocol.
- Start up NetBeans. Open the Week6_Echo project you just downloaded and unzipped.
By Day 7, modify the client and the server so that they implement the Internet’s finger protocol. The response from the server does not need to reflect actual user data, but you must base the response on the name provided in the client’s request.
Save and submit your Assignment as a “.zip” file.
Retain your implementation, as you will be using it again in Week 7.
ASSIGNMENT #2 Application: Implementing Threading in a Client-Server Protocol
Server programs are rarely implemented as non-threaded applications, even though that is how you implemented your previous server application. Servers would not be able to provide the necessary throughput unless they used threading to allow for I/O to occur concurrently with servicing client requests.
For this Assignment, you will modify your finger server program from Week 6 to use threads. The server should activate a new thread to process each incoming client request, thus allowing client requests to be processed concurrently.
To prepare:
- Start up NetBeans.
- Open your implementation of the finger protocol from Week 6.
By Day 7, modify your finger server program to use threads. The server should activate a new thread to process each incoming client request, thus allowing client requests to be processed concurrently.
In addition, write a 6- to 7-page paper documenting the changes that you made and analyzing the impact the changes will have on the overall throughput and latency of the server.
Include in your paper responses to these questions:
- What other solutions might you consider in order to increase throughput and reduce latency?
- Which solution do you consider to have the better trade-off between performance and complexity?
- Which solution do you consider to have the better application of modularity, abstraction, hierarchy, and layering?
Remember to properly cite your sources according to APA guidelines.
Save your implementation of the threaded finger server in a “.zip” file. You will also submit your paper documenting the implementation and analysis of your server separately.
Submit your zip file to the Assignment 2 Part 1 – Week 7 submission link and your Word document to theAssignment 2 Part 2 Turnitin – Week 7 submission link.
Note: While both Part 1 and Part 2 submissions are required, you will only see your grade for this Assignment in the My Grades area for the Week 7 Assignment 2 Part 1.
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!
Use Discount Code "Newclient" for a 15% Discount!
NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.
