Computers and Technology

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 22:00, lgary9462
Perform the following tasks: a. create a class named testclass that holds a single private integer field and a public constructor. the only statement in the constructor is one that displays the message “constructing”. write a main()function that instantiates one object of the testclass. save the file as testclass. cpp in the chapter 08 folder. run the program and observe the results. b. write another main()function that instantiates an array of 10 testclass objects. save the file as test class array. c . run this program and observe the results.
Answers: 1
image
Computers and Technology, 23.06.2019 09:50, tatumleigh04
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
image
Computers and Technology, 23.06.2019 15:30, jokerr6323
1. ask the user how many questions are in the quiz. 2. ask the user to enter the key (that is, the correct answers). there should be one answer for each question in the quiz, and each answer should be an integer. e. g., 34 7 13 100 81 3 9 10 321 12 might be the key for a 10-question quiz. you will need to store the key in an array. 3. ask the user to enter the answers for the quiz to be graded. there needs to be one answer for each question. note that these answers do not need to be stored; each answer can simply be compared to the key as it is entered. 4. when the user has entered all of the answers to be graded, print the number correct and the percent correct. 5. add a loop so that the user can grade any number of quizzes with a single key. after the results have been printed for each quiz, ask "grade another quiz? (y/n)." note: you only have one array (the key). you are not creating a new key for each set of quiz answers.
Answers: 3
image
Computers and Technology, 23.06.2019 17:00, chrisgaz14
The more powerful, 60 volt cables and the main power shut off on an hev are both colored orange
Answers: 1
Do you know the correct answer?
Objective of this assignment: To get you familiar with developing and implementing TCP or UDP socke...

Questions in other subjects:

Konu
History, 01.10.2019 00:30