[SOLVED] CS3093D Assignment 3

30.00 $

Category: Tags: ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon ASS3-zlryax.zip (1072.8 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
Rate this product

 

1. Implementation of basic Client Server program using both TCP and UDP Socket.

Write a client/server program with the socket interface. The server has the list of five fruits ‘apple’, ‘mango’, ‘banana’, ‘chikoo’ and ‘papaya’ available along with their count stored in a buffer. The user presses “Fruits” and the server responds with “Enter the name of the fruit”. The user then responds with the fruit name and the count. The server decreases the count of the entered fruit value from its buffer. If the count of the fruit the user needs is more than the available count, the server responds with “Not available”. Once someone keys in “SendInventory”, the server will send a message which includes all the fruit names along with their count.

2.

a)

b) c)

Upload Instructions

1) The source codes should be written in C language.
2) Both the client/server codes and the screenshots may be included in separate folders and

compressed. Use filename <FirstName_RollNo.gz> 3) Date of Submission: 06, Feb.’21 (11:59 pm)

*****

Date: 25, Jan.’22

Write a client/server program with the socket interface. The client program may send out the words to the server once the user presses “Enter” and the server will respond to these words with any meaningless terms. However, the server will close the connection once it receives the word “Bye”. Also, once someone keys in “GivemeyourVideo”, the server will immediately send out a

50 MB data file with message size of 500 bytes.

Calculate and record the data transmission rate every 0.1 second for a 50 MB data

transmission with message size of 500 bytes.

Use xgraph and gnuplot to display the results [Hint: Use timer and handler functions].

Create a socket that implements stop and wait ARQ protocol and analyze the RTT for varying

message sizes.

  • ASS3-zlryax.zip