求助:使用Python,C ++或JAVA,编写一个程序来模拟至少有十五个节点的网络中的洪泛路由。

tianguoqiang2013 2018-04-11 01:43:09
Section B (60 marks available)
Using Python, C++, or JAVA, write a programme to simulate flood routing in a network with at least fifteen nodes. Each packet should contain a counter (n=10) that is decremented on each hop. When the counter gets to zero, the packet is discarded. Time is discrete, and each link can handle only one packet per time interval (i.e. only one packet in total may traverse the link in either direction). Nodes should include a buffer to queue any additional packets. Present your results in terms of the number of duplicate packets produced, and the congestion at each node, and suggest a possible solution for reducing this problem. You will be marked based on the following:
1、Production of a well written report with clear explanation of the problem, and your solution; (10 marks)
2、A clear description of the flooding algorithm implemented, and of the network topology used; (10 marks)
3、Graphical presentation of the results for each node; (10 marks)
4、Analysis and discussion of the results, and proposed solution for reducing the problem of duplicate packets; (20 marks)
5、Well-structured, working code. This should be submitted as a zip file alongside your report. (10 marks)


使用Python,C ++或JAVA,编写一个程序来模拟至少有十五个节点的网络中的洪泛路由。 每个数据包应包含一个计数器(n = 10),每跳一次计数器减少一次。 当计数器变为零时,数据包将被丢弃。 时间是离散的,并且每个链路在每个时间间隔只能处理一个数据包(即,总共只有一个数据包可以在任一方向上穿过链路)。 节点应该包含一个缓冲区来排队任何附加的数据包。 根据产生的重复数据包的数量以及每个节点的拥塞情况来呈现结果,并为减少此问题提出可能的解决方案。 您将基于以下标记进行评分:
1、制作一份写得很好的报告,清楚说明问题和解决方案; (10分)
2、对实施的泛洪算法以及所用网络拓扑的清晰描述; (10分)
3、图形显示每个节点的结果; (10分)
4、分析和讨论结果,并提出解决方案以减少重复数据包的问题; (20分)
5、结构良好的工作代码。 这应该作为一个zip文件与您的报告一起提交。 (10分)
...全文
1838 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq_34267299 2018-04-18
  • 打赏
  • 举报
回复
遍历吧,这个很简单的。

3,581

社区成员

发帖
与我相关
我的任务
社区描述
硬件使用 网络设计与维护
社区管理员
  • 网络设计与维护社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧