Implementing a Client-Server Protocol and Threading in a Client-Server P, computer science homework help

Anonymous
timer Asked: Sep 24th, 2016
account_balance_wallet $5

Question Description

 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.



Tutor Answer

njonjo
School: University of Maryland

Hello. I trust you are well. Attached is a zipped folder containing two folders (week6 and week7), a word document explaining the answers. In each of the two folders, please find some screenshots of the running program together with the source codes of the program.In case you need any clarification, kindly let me know. It was great working with you. Cheers! 
Hi.Attached please find a word document with the requested changes.kindly check and i'm glad to work on your assignment.Thank you for trusting me and I promise quality answers always.In case you require any help in computer science and programming please feel free to ask me and I will be of great of help.

Implementing a Client-Server Protocol

Solutions might be considered in order to increase throughput and reduce latency
Network latency is the term given to the delay that occurs during the synchronizations of
requests from the sender to the recipient. Low latency is the term given to shorter time delays
while longer time delays are referred to us high network latency.
Latency is a major factor when it comes to client server communication over the network. The
delay between the action and response over the network, application or individual packets can
accumulate to cause huge delays that a user cannot be able to withstand because each
communication element in the distribution chain is linked together.
Network performance depends on a number of factors such bandwidth, throughput and latency.
The delay between sending and receiving of the messages can be impacted by distance between
the communicating signals and the time taken to process the request by the channels along the
request route.
Though performance is affected by the signal itself, hardware is also directly involved and can
affect the performance. Network performance can be increased by modifying the hardware
involved by adding network cards which will help redistribute network traffic and improve the
type of hubs involved to work with more intelligent switches and upgrading the cables to able to
shield interferences.
A better technique is to hide latency from the users by using techniques such as multi-tasking
which allows the communicating elements continue handling other tasks as transmission and
computation run on the background. (Deb Shinder, 2014)
Asynchronous development is an essential technique when used in improving throughput and
reducing latency as functionalities are separated and handled in different approaches. When the

Implementing a Client-Server Protocol
logic to handle server requests is separated from the functionality to keep checking network
connectivity and traffic, then delay time is reduced and each component concentrates on a
specific role which is performed perfectly.
Another technique to reduce latency and improved throughput is reducing the number of trips an
application makes in order to perform a specific operation such as opening a file, edit or even
closing a file.
Performance over the network may be controlled by simple task such as ensuring that the
available resources are not fully consumed by competing processes. A good example is
scheduling tasks that consume more bandwidth when few people are connected on the network
and there is limited competition on the available resource.
Though this techniques promise great improvement in latency reduction, great benefits will be
enjoyed if proper WAN optimization is installed in organizations because a well optimized
WAN works generically irrespective of the application being used. (Lawto, 2012)
In order to achieve greater throughput and reduce latency in client server implementations, the
tier architecture is implemented. There are a verity of the tier architecture i.e 2-tier, 3-tier and
multi-tier.

The solution that has the better trade-off between performance and complexity
To better understand the trade-off in the client server model, we will base our augment on the tier
architecture which aims at handling multiple requests while forgoing the arising complexity of
the entire architecture.

Implementing a Client-Server Protocol
The 2-tier architecture is used where the implementation does not require other application to
provide resources to the server during communicati...

flag Report DMCA
Review

Anonymous
Top quality work from this guy! I'll be back!

Similar Questions
Hot Questions
Related Tags
Study Guides

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors