subject

Objective of this assignment: To get you familiar with developing and implementing TCP or UDP sockets.
What you need to do:
1. Implement a simple TCP Client-Server application
2. Implement a simple UDP Client-Server application
3. Collect and analyze round trip time measurements for each of the above applications.
Objective:
The objective is to implement a client-server application using a safe method: start from a simple working code for the client and the server. You must slowly and carefully bend (modify) little by little the client and server alternatively until you achieve your ultimate goal. You must bend and expand each piece alternatively like the way a black-smith forges iron. From time to time save your working client and server such that you can roll-back to the latest working code in case of problems.
For this programming assignment, you are advised to start from the simple echo client and serve rver to implement a very simple application.
Part I: TCP "Capitalize" Client-Server
Implement the following Client-Server application that will use two programs: a client program myFirstTCPClient. java and myFirst TCPServer. java
a) Client: myFirstTC PClient. java
This program must take two arguments: a hostname H and a port number P. The hostname h is a name or a decimal dotted-quad IP address of the server Sv. The port number P is any valid port number where the server Sv is binds to.
This program must
1) Create a TCP client socket connected with the server Sv running on the machine with hostname (or IP address) h bound to Port number P.
2) Repeatedly perform the following actions:
i) Prompt the user to enter a sentence S
ii) Send the sentence S to the server Sv
iii) Receive the response from the server
iv) Measure the duration between the time when the sentence S was sent and the time a response was received.
v) Display the following information: the message received and the
vi) Collect the round trip time.
expressed in milliseconds. time To implement the client myFirstTCPClient. java, you should consider start with the program TCPEchoClientjava (provided on Canvas with this programming assignment). Do not forget to change the name of the class inside the program TCPEchoClient. java
b) Server: myFirstTC PServer. java
This program must take one argument: a port number P. The port number P is any valid port number.
This program must D Create a TCP server socket
1) Create a TCP server socket
2) Wait for a client to connect, receive a message, display it with the IP address and port # of the client, capitalize the message, display the message, and echo back the "capitalized" message.
To implement the server myFirstTCPServer. java, you should consider start with the program TCPEchoServerjava (provided on Canvas with this programming assignment). Do not forget to change the name of the class inside the proeram TCPEchoServerjava.
Part II: UDP "Capitalize" Client-Server Repeat Part I using UDP sockets. Call the client and server programs myFirstUDPClient. java and myFirstUDPServer. java, respectively
To implement the server (respectively, client) myFirstUDPServer. java (respectively, myFirstUDPC lient. java), you should consider start with the program UDPEchoServer. java (respectively, UDPEchoClienTimeoutjava) (provided on Canvas with this programming assignment). Do not forget to change the name of the class inside the program.
Data collection and analysis
For each application (UPD and TCP), report separately the min, average, and max round trip time.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 06:00, hilarydodard7099
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
image
Computers and Technology, 24.06.2019 00:00, amy7233
Afashion designer wants to increase awareness about her brand. which network can she use and why she can use the blank to blank her products online. answers for the first blank: internet, extranet, or intranet answers for the second blank: market, design, and export
Answers: 1
image
Computers and Technology, 24.06.2019 01:30, shonnybenskin8
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
image
Computers and Technology, 24.06.2019 05:30, MegRasmussen31
Hey i really need some solving this problem: 1. encrypt this binary string into cipher text: 110000. include in your answer the formula the decoder would use to decrypt your cipher text in the format (coded answer) x n mod (m) = y & 2. decrypt this cipher text into a binary string: 106 you.
Answers: 2
You know the right answer?
Objective of this assignment: To get you familiar with developing and implementing TCP or UDP socke...

Questions in other subjects:

Konu
Mathematics, 04.12.2021 06:30
Konu
Mathematics, 04.12.2021 06:30
Konu
Mathematics, 04.12.2021 06:30
Konu
Mathematics, 04.12.2021 06:30