Find Jobs
Hire Freelancers

communications between computers employing sockets

$30-250 USD

已取消
已发布超过 15 年前

$30-250 USD

货到付款
Scenario: Consider a server, running as a console application program, connected to a number of clients, also built as console applications, and consider that communication between computers follows the UDP communication protocol. Consider each computer-client to be on board a ship that patrols a specific area (think of the area as a square matrix of size, say, 5x5 square miles or 25 tiles) following movement instructions from the server (say, the ship moves 1 tile at a time that may be in one of 8 different directions: E,NE,N,NW,W,SW,S,SE). Ship movement directions are issued continuously by the server, by request of the client, until the whole designated area is patrolled. However, caution should be exercised as to the valid ship movements: a)the server issues movement instructions at 8 random directions, b)the server issues instructions coded according to a simple XOR cipher, using a specific key word (see [login to view URL]), c)the ship will decode the instruction, having knowledge of the encryption key, and d)will follow the instruction only if it takes it to a tile that has not been patrolled and it is within the designated patrol area. It is required: 1/One server - one client (ship) UDP connection: To count the number of requests that the ship has to make to the server until all tiles of the designated area (say, 5x5 tiles) have been patrolled. This should be repeated, say 100 times, a histogram of the number of ship requests should be plotted (using excel), and conclusions should be formed regarding the distribution of requests. 2/For 2,3,…,N clients: When many ships are connected concurrently to the same UDP-server. Here, you have to consider a)a large area of say 20x20 tiles, b)that each ship will have to patrol a separate but equal in size area; i.e. for the one-ship case, it will have to patrol a 20x20 area, for the 2-ships case, each ship will have to patrol a 10x20 area, and so on). Additionally, you will need to create a mechanism, whereby the server initiates communication with all connected ships simultaneously. It is required for you to assess the total time taken for a number of ships to patrol the designated area (using [login to view URL]()), each time considering a different number of ships connected, and to plot that time against the number of ships. An account should be written explaining the shape of the resulting curve (time Vs number of ships). 3/ Step 2 should be attempted on different computers connected to a LAN, for top marks. ----------------------------------- 1. Task 1: One Server connects to one ship-client that, in turn, requests one of 8 random directions (E,NE,N,NW,W,SW,S,SE) from server until it patrols a designated square area. Results to be stored in file. Plot of 100 attempts of the ship to patrol the whole area and comment on results 2. Task 2: Connect many ships to the server. Plot Time Vs No of ship-clients for patrolling the same square area (have to divide the area in as many sections as the number of ships engaged) and comment on the shape of the curve. 3. Task 3: Repeat 2 using an actual LAN ------------------------------------ Please make as small bids as possible! It is just an assignment that i have to give. Thank you
项目 ID: 348250

关于此项目

1条提案
远程项目
活跃15 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
1威客以均价$250 USD来参与此工作竞标
用户头像
Please see your PM.
$250 USD 在30天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED KINGDOM的国旗
london, United Kingdom
0.0
0
会员自11月 24, 2008起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。