这是一篇来自澳洲的关于路由算法分配的编程代写作业
Your Task
Part 1 (DV algorithm)
You are to produce a program that:
- Reads information about a topology/updates to the topology from the standard input.
Handle bad input:
- Printing a reasonable error message and
- Terminating the program with exit code 1;
- Bad input should not cause your program to crash.
- Uses DV algorithm or DV with PR algorithm, as appropriate, to bring the simulated routers to convergence.
- Output the distance tables in the required format for each router at each step/round.
- Output the final routing tables in the required format once convergence is reached.
- Repeats the above steps until no further input is provided.
The DV algorithm program you are to provide should be named DistanceVector .
Part 2 (DV with PR algorithm)
You will need to modify/write a second version of the program that uses poisoned reverse/route poisoning.
The DV with PR algorithm program you are to provide should be named PoisonedReverse .
In Your Task
You will need to craft any internal data structures and design your program in such a way that it will reliably and correctly converge to the correct routing tables. We have deliberately not provided you with a code templates and this means that you will have more freedom in your design but that you will have to think about the problem and come up with a design.
You will need to record your progress and development cycle in a logbook as described in the ‘Before you Begin’ section above.
You may complete this assignment using the programming language of your choice, with the following restrictions:
For compiled languages (Java, C, C++ etc.) you must provide a Makefile.
Your software will be compiled with make (Please look at this resource on how to use Makefile build tool: https://makefiletutorial.com/ (https://makefiletutorial.com/) ) Pre-compiled programs will not be accepted.
Your implementation must work with the versions of programming languages installed on the Web Submission system, these are the same as those found in the labs and on the uss.cs server and include (but are not limited to):
C/C++: g++ (GCC) 4.8.5
Java: java version “1.8.0_201”
Python: python 2.7.5 or python 3.6.8
Your implementation may use any libraries/classes available on Web Submission system, but no external libraries/classes/modules.
…….
你的任务
第 1 部分(DV 算法)
你要制作一个程序:
从标准输入中读取有关拓扑结构/更新拓扑结构的信息。
处理错误输入:
打印合理的错误消息和
使用退出代码 1 终止程序;
错误的输入不应导致您的程序崩溃。
酌情使用 DV 算法或 DV 与 PR 算法,使模拟路由器收敛。
在每一步/每轮为每个路由器输出所需格式的距离表。
一旦达到收敛,就以所需的格式输出最终的路由表。
重复上述步骤,直到不再提供进一步的输入。
您提供的DV算法程序应命名为 DistanceVector 。
第 2 部分(带 PR 算法的 DV)
您将需要修改/编写使用中毒反向/路由中毒的程序的第二个版本。
您提供的带有PR算法程序的DV应命名为PoisonedReverse。
在你的任务中
您将需要精心设计任何内部数据结构,并以能够可靠且正确地收敛到正确路由表的方式设计您的程序。 我们特意没有为您提供代码模板,这意味着您在设计上将有更多的自由,但您将不得不考虑问题并提出设计。
您需要按照上文“开始之前”部分所述,在日志中记录您的进度和开发周期。
您可以使用您选择的编程语言完成此作业,但有以下限制:
对于编译语言(Java、C、C++ 等),您必须提供一个 Makefile。
您的软件将使用 make 进行编译(有关如何使用 Makefile 构建工具,请查看此资源:https://makefiletutorial.com/ (https://makefiletutorial.com/) )不接受预编译程序。
您的实施必须使用 Web 提交系统上安装的编程语言版本,这些版本与在实验室和 uss.cs 服务器上找到的相同,包括(但不限于):
C/C++:g++ (GCC) 4.8.5
Java:Java 版本“1.8.0_201”
Python:Python2.7.5或Python3.6.8
您的实施可以使用 Web 提交系统上可用的任何库/类,但不能使用外部库/类/模块。
…….
程序辅导定制C/C++/JAVA/安卓/PYTHON/留学生/PHP/APP开发/MATLAB

本网站支持 Alipay WeChatPay PayPal等支付方式
E-mail: vipdue@outlook.com 微信号:vipnxx
如果您使用手机请先保存二维码,微信识别。如果用电脑,直接掏出手机果断扫描。
