EssayGhost Assignment代写,Essay代写,网课代修,Quiz代考

EssayGhost-Essay代写,作业代写,网课代修代上,cs代写代考

一站式网课代修,论文代写

高质量的Assignment代写、Paper代写、Report代写服务

EG1hao
网课代修代上,cs代写代考
Java代写
您的位置: 主页 > 编程案例 > Java代写 >
代写Java:Network Programming编程网络计算代做题目:UDP/TCP transmission - Java代写
发布时间:2021-07-25 10:04:02浏览次数:
Final project dr inż. Radosław WajmanUDP/TCP transmission speed testerAim 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 thislink.Conditions:In order to complete this project it is required to implement two parallel data transmissions. Both transmissions should be in unicastmode 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:0immediately after start-up (or after an user request) asks about:o the communication port number (the same for TCP and UDP protocols),and creates:oa 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,oa thread #3 responsible for the multicast DISCOVERYrequests listening, which right after receiving such request sends to the multicast group the response OFFER:PORTwith the TCP/UDP listening port number, additionally:0the 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 BUSYcommand,0the 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,0the threads #1 and #2 create the data buffer of size agreed with the client; the client as a first message sends the command SIZE:xyzwith the buffer size value given in bytes,0the 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/sec0the transmission time is triggered with the first message (in both threads independently).0the 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: ???%0the transmission (especially in case of the thread #2) should be stopped after the last command e.g. FINE,0the user should be allowed to stop all threads and to close application.The client application:0after start-up:o in order to find the server creates the thread #1 for sending in a multicast mode theDISCOVER command and waits for theOFFER:PORT response and finally prints the listof found servers, o provides to the user the possibility to manually input the server IP address and the TCP/UDPcommunication 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:0prepares the data to be sent as the n-elements array of bytes filled with any values (e.g. ascending order),0creates 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:0the 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 bothtransmissions,0the 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 onlybetween 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 remarks1.The project should meet all conditions mentioned above written with:0the black colour for assessment 3,0the blue colour for assessment 4,0the 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.References1.C#: https://msdn.microsoft.com/pl-pl/library/tst0kwb1(v=vs.110).aspx2.JAVA: https://docs.oracle.com/javase/tutorial/networking/datagrams/clientServer.html代写计算机编程类/金融/高数/论文/英文本网站支持淘宝 支付宝 微信支付 paypal等等交易。如果不放心可以用淘宝或者Upwork交易!E-mail:[email protected]微信:BadGeniuscs 工作时间:无休息工作日-早上8点到凌晨3点如果您用的手机请先保存二维码到手机里面,识别图中二维码。如果用电脑,直接掏出手机果断扫描。

所有的编程代写范围:essayghost为美国、加拿大、英国、澳洲的留学生提供C语言代写、代写C语言、C语言代做、代做C语言、数据库代写、代写数据库、数据库代做、代做数据库、Web作业代写、代写Web作业、Web作业代做、代做Web作业、Java代写、代写Java、Java代做、代做Java、Python代写、代写Python、Python代做、代做Python、C/C++代写、代写C/C++、C/C++代做、代做C/C++、数据结构代写、代写数据结构、数据结构代做、代做数据结构等留学生编程作业代写服务。