Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Programming Project using Socket

Using Java Language

Purpose: In this project, you are required to make a program to transfer the same file from client side to server side for one hundred times with TCP/UDP protocol. Every time as long as the file is transferred, compare with the stored standard file to see they are the same. If the received file is the same as the stored file, it means the file is transferred correctly, otherwise incorrectly. Count the transferring error rate (number of times incorrect file received at server side out of one hundred times) for TCP/UDP to see its (UDP or TCP) reliability. At the meantime, count the time in mili-second cost to transfer the same file for hundred times with TCP/UDP.

Detailed Requirements:

1. You need to make two programs including one client side (C), one server side (S).

2. You can finish either TCP or UDP code.

3. Please use Javalanguages. Using any other languages will result in zero of your project.

4. Your client and server side program must run in two different hosts, respectively. The two hosts must be two physical computers. The two hosts must connect through the Internet or local area network.

5. You client side program sends the same file (see the sample text format file) to the server side for one hundred times.

6. You server side program receives the file. Every time as long as the file is completely received, please compare with the sample file (stored at server side in advance) to see if they are the same. If the received file is different from the stored file, count one time incorrect transfer.

7. Use TCP/UDP to finish file transferring for one hundred times, count the number of time that incurs incorrect transfer, and count the average time used forone hundred times transferring.

8. You must test and explain your client and server side programs and demonstrate that your programs meet the requirements. In your demonstration, you must clearly show the IP addresses of the two machines/hosts (using ipconfig in windows and ifconfig in Unix or Linux), respectively. You also need to display the file in both sides

9. Zip your server and client side source code (no class code) and submit it through D2L dropbox. If you have special compiling and linking commands used, please attach a "readme.txt" file to let me know how to compile your source code. All the above files must be zipped into one submission file.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91988143

Have any Question?


Related Questions in Computer Engineering

A random sample of n data values is obtained from a process

A random sample of n data values is obtained from a process having an absolutely continuous cdf of unknown shape. The metallurgist wants to select the best fitting distribution among several candidate cdfs. She decides t ...

Imposing a tariff leads to the existence of two deadweight

Imposing a tariff leads to the existence of two deadweight triangles, which are the Consumption distortion and Production distortion losses. It is easy to understand why consumption distortion constitutes a loss for soci ...

How could legislation impact on operations within your

How could legislation impact on operations within your organisation in relation to innovation, project management, and operational planning? Briefly outline any relevant requirements (e.g. intellectual property, WHS).

Remote direct memory access rdma enables efficient memory

Remote Direct Memory Access (RDMA) enables efficient memory access from one computer to another. Read about it using Google Scholar, ACM Digital Library or any professional literature tools. Write a 150-200 words (refere ...

Stockholdingwrite a class stockholding the purpose of a

StockHolding Write a class StockHolding. The purpose of a StockHolding object is to represent a single stock in someone's investment portfolio. The StockHolding class has the following specification: instance variable of ...

When using todays digital cameras file sizes are often

When using today's digital cameras file sizes are often saved in a format that is well over 1 Megabyte. This may be great for high definition photo reproductions but is a disaster for uploading to the web. Images on your ...

Be sure to answer all partsphosgenenbspcocl2nbspis a toxic

Be sure to answer all parts. Phosgene (COCl 2 ) is a toxic substance that forms readily from carbon monoxide and chlorine at elevated temperatures: CO( g ) + Cl 2 ( g ) ? COCl 2 ( g ) If 0.490 mol of each reactant is pla ...

Discuss 5 of the most important sql server management

Discuss 5 of the most important SQL Server Management Studio (SSMS) features. Provide references - website link, book, article, etc.

Display the manager of the employee with the oldest project

Display the manager of the employee with the oldest project start date (start_date). (This query requires 3 nested queries, start by finding the min start_date from project, then find the emp_id from project where start_ ...

Assume that todayis your 25thnbspbirthday and have an

Assume that todayis your 25th birthday and have an annual salary of $60,000 (+ super). Your salary is expected to grow by 3% per year before reaching retirement age (your 65th birthday). You are currently doing some rese ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As