当前位置:天才代写 > JAVA代写,java代考-JAVA作业代写免费Moss检测 > 代写JAVA Network Programming编程网络计算代做题目:UDP/TCP transmission speed tester

代写JAVA Network Programming编程网络计算代做题目:UDP/TCP transmission speed tester

2018-01-06 08:00 星期六 所属: JAVA代写,java代考-JAVA作业代写免费Moss检测 浏览:652

   Network Programming

 

Final project dr inż. Radosław Wajman

 

UDP/TCP transmission speed tester

 

Aim of the work:

 

The aim of this work is to implement the client-server computer program for measuring the data transmission speed in unicast mode using two protocols: UDP and TCP. The example of this program may be find under this link.

 

Conditions:

 

In order to complete this project it is required to implement two parallel data transmissions. Both transmissions should be in unicast mode but in basis of two different network protocols i.e. TCP and UDP. In a frame of these transmissions from the client to the server module the same data set must be sent. Therefore, two separate applications have to be developed.

 

The server application:

immediately after start-up (or after an user request) asks about:

 

o the communication port number (the same for TCP and UDP protocols), and creates:

 

a thread #1 responsible for TCP listening on user defined port number waiting for the client connection requests,

 

o a thread #2 responsible for looped UDP messages listening on user defined port,

 

a thread #3 responsible for the multicast DISCOVERY requests listening, which right after receiving such request sends to the multicast group the response OFFER:PORT with the TCP/UDP listening port number,

   additionally:

 

the thread #1 is able to handle only one client in the same time, therefore after accepting the incoming connection with one client it sends to the others the BUSY command,

 

the thread #1 in a separate child-thread #4 starts (in a loop) waiting for the messages from the connected client and terminates the thread #4 after client disconnect,

the threads #1 and #2 create the data buffer of size agreed with the client; the client as a first message sends the command SIZE:xyz with the buffer size value given in bytes,

 

the threads #1 and #2 separately count the amount of data received from the client and prepare the

   report to show it in a form e.g.:

   Thread (TCP or UDP): received ???kb in time ???sec with the speed ???kb/sec

 

the transmission time is triggered with the first message (in both threads independently).

the thread #2 may have implemented the statistic mechanism for lost data analysis in comparison to the data pattern (e.g. the same method for data generation in both client and server modules) and

   should print the analysis results in a form:

   Thread UDP: the transmission error: ???%

 

the transmission (especially in case of the thread #2) should be stopped after the last command e.g. FINE,

 

the user should be allowed to stop all threads and to close application.

 

The client application:

after start-up:

 

o in order to find the server creates the thread #1 for sending in a multicast mode the DISCOVER command and waits for the OFFER:PORT response and finally prints the list of found servers,

   o provides to the user the possibility to manually input the server IP address and the TCP/UDP communication port number,

 

o asks the user about the size of the data set (in bytes),

 

o asks the user about including/excluding the Nagle algorithm:

 

for C# see (https://msdn.microsoft.com/pl-pl/library/system.net.sockets.socket.nodelay(v=vs.110).aspx),


   and then:

 

prepares the data to be sent as the n-elements array of bytes filled with any values (e.g. ascending order),

creates two threads:

   o (#2) for establishing the TCP connection and continuous data sending (in a loop), o (#3) for continuous data sending (in a loop) using UDP protocol,

 

additionally:

 

the data sending process within both threads (#2 and #3) should be performed as quick as possible without any additional delays (e.g. acceptable sleep(10) for better threads management),

o please do not forget initially to send the data size synchronization message for both transmissions,

the user should be allowed to stop data transmissions closing the TCP sockets and sending the final UDP message e.g. FINE, and next to close the application.

 

Both applications must be robust to the incorrect date provided by the user.

 

Please note that the project should be tested only between to computers (in addition connected to different LAN networks in order to enforce the network traffic through the router(s)). Only under this condition it is possible to obtain the differences in a transmission speed.

 

Other remarks

 

1. The project should meet all conditions mentioned above written with:

 

the black colour for assessment 3,

the blue colour for assessment 4,

the green colour for assessment 5;

   the functionality defined for assessments 4 and 5 may be considered alternate,

 

2. The errors and exceptions handling,

3. The readable and clean code.

 

References

 

1. C#: https://msdn.microsoft.com/pl-pl/library/tst0kwb1(v=vs.110).aspx

2. JAVA: https://docs.oracle.com/javase/tutorial/networking/datagrams/clientServer.html

代写计算机编程类/金融/高数/论文/英文


  u=199783060,2774173244&fm=58&s=188FA15AB1206D1108400056000040F6&bpow=121&bpoh=75.jpgalipay_pay_96px_533896_easyicon.net.pngpaypal_96px_533937_easyicon.net.pngchina_union_pay_96px_533911_easyicon.net.pngmastercard_pay_96px_533931_easyicon.net.pngasia_pay_96px_533902_easyicon.net.png

本网站支持淘宝 支付宝 微信支付  paypal等等交易。如果不放心可以用淘宝或者Upwork交易!

E-mail:850190831@qq.com   微信:BadGeniuscs  工作时间:无休息工作日-早上8点到凌晨3点


如果您用的手机请先保存二维码到手机里面,识别图中二维码。如果用电脑,直接掏出手机果断扫描。

qr.png

 

    关键字:

天才代写-代写联系方式