文件名称:Router
介绍说明--下载内容均来自于网络,请自行研究使用
这是一个模仿路由算法的java程序。
实现关于路由器的简单功能。
实现距离矢量路由算法。
所实现的路由器模拟Internet上的IP路由器。它能确定网络的最短路由,并在这些利用上传输分组
实现功能简介
1) 编写一个称为“Router”的程序
2) 利用距离向量算法更新路由表
3) 该程序的多个实例(进程或线程)可以以运行在一台机器
4) 实例之间利用UDP交换路由表
5) 假设结点与其邻居结点的都为距离为1。
6) 为了指明实例及其邻居,程序启动时必须能接收以下参数:
7) router ID, myport, port1, port2, port3…
8) 程序必须能处理以下命令:
a) N-打印活动的邻居列表。
b) T-输出路由表。
c) 0,1,… 9-发送分组
9) 关于时间定时
a) 每个路由器每2秒钟发出它们的路由表
b) 每个路由器根据收到的路由表更新它们自己的路由表
c) 路由器必须具备检测邻居是否活动的能力。如果路由器在6秒钟没有收到邻居发来的更新,则认为邻居不可达
10) 关于拓扑结构
a) 路由器必须具备路由器故障和恢复的能力
b) 这里假设链路不会出现故障,分组不会丢失和出错
c) 如果路由器在给定时间内未运行,表示路由器故障。如果重启运行,则认为路由器故障恢复
d)当然,假设通信是双向的
-This is a parody routing algorithm java program.
Achieve a simple function on the router.
Implement distance vector routing algorithm.
Internet router simulation achieved the IP router. It can determine the shortest route network, and in these transmission packet utilization
Achieve Features
A) preparation of a group called "Router" program
2) the use of distance vector algorithm updates the routing table
3) multiple instances of the program (processes or threads) can be run on a single machine
4) between instances using UDP exchange routing table
5) Assuming that node and its neighbor nodes are distance of 1.
6) In order to specify the instance and its neighbors, the program must be able to start receiving the following parameters:
7) router ID, myport, port1, port2, port3 ...
8) program must be able to deal with the following command:
a) N-printing activities neighbor list.
b) T-output routing table.
c) 0,1, ... 9- to send the packet
9) About Time Timing
a) given eve
实现关于路由器的简单功能。
实现距离矢量路由算法。
所实现的路由器模拟Internet上的IP路由器。它能确定网络的最短路由,并在这些利用上传输分组
实现功能简介
1) 编写一个称为“Router”的程序
2) 利用距离向量算法更新路由表
3) 该程序的多个实例(进程或线程)可以以运行在一台机器
4) 实例之间利用UDP交换路由表
5) 假设结点与其邻居结点的都为距离为1。
6) 为了指明实例及其邻居,程序启动时必须能接收以下参数:
7) router ID, myport, port1, port2, port3…
8) 程序必须能处理以下命令:
a) N-打印活动的邻居列表。
b) T-输出路由表。
c) 0,1,… 9-发送分组
9) 关于时间定时
a) 每个路由器每2秒钟发出它们的路由表
b) 每个路由器根据收到的路由表更新它们自己的路由表
c) 路由器必须具备检测邻居是否活动的能力。如果路由器在6秒钟没有收到邻居发来的更新,则认为邻居不可达
10) 关于拓扑结构
a) 路由器必须具备路由器故障和恢复的能力
b) 这里假设链路不会出现故障,分组不会丢失和出错
c) 如果路由器在给定时间内未运行,表示路由器故障。如果重启运行,则认为路由器故障恢复
d)当然,假设通信是双向的
-This is a parody routing algorithm java program.
Achieve a simple function on the router.
Implement distance vector routing algorithm.
Internet router simulation achieved the IP router. It can determine the shortest route network, and in these transmission packet utilization
Achieve Features
A) preparation of a group called "Router" program
2) the use of distance vector algorithm updates the routing table
3) multiple instances of the program (processes or threads) can be run on a single machine
4) between instances using UDP exchange routing table
5) Assuming that node and its neighbor nodes are distance of 1.
6) In order to specify the instance and its neighbors, the program must be able to start receiving the following parameters:
7) router ID, myport, port1, port2, port3 ...
8) program must be able to deal with the following command:
a) N-printing activities neighbor list.
b) T-output routing table.
c) 0,1, ... 9- to send the packet
9) About Time Timing
a) given eve
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Router\.classpath
......\.project
......\.settings\org.eclipse.jdt.core.prefs
......\bin\Command.class
......\...\CommandThread.class
......\...\Packet.class
......\...\Router$AddNeighborTask.class
......\...\Router$CheckActiveTask.class
......\...\Router.class
......\...\RouterClient.class
......\...\RouterServer.class
......\...\RouterTable.class
......\...\RouterTest.class
......\...\RouterThread.class
......\...\sample1\Command.class
......\...\.......\CommandThread.class
......\...\.......\Packet.class
......\...\.......\Router.class
......\...\.......\RouterLocation.class
......\...\.......\RouterLocationEntry.class
......\...\.......\RouterThread.class
......\...\.......\RoutingTable.class
......\...\.......\Topology.class
......\...\.......\TopologyFileEntry.class
......\...\test\MyData.class
......\...\....\MyUDP.class
......\...\....\Q$TimerTestTask.class
......\...\....\Q.class
......\src\Command.java
......\...\CommandThread.java
......\...\Packet.java
......\...\Router.java
......\...\RouterClient.java
......\...\RouterServer.java
......\...\RouterTable.java
......\...\RouterTest.java
......\...\RouterThread.java
......\...\sample1\Command.java
......\...\.......\CommandThread.java
......\...\.......\Packet.java
......\...\.......\Router.java
......\...\.......\RouterLocation.java
......\...\.......\RouterLocationEntry.java
......\...\.......\RouterThread.java
......\...\.......\RoutingTable.java
......\...\.......\Topology.java
......\...\.......\TopologyFileEntry.java
......\...\test\MyData.class
......\...\....\MyData.java
......\...\....\MyUDP.java
......\...\....\Q.class
......\...\....\Q.java
......\bin\Sample
......\...\sample1
......\...\test
......\src\Sample
......\...\sample1
......\...\test
......\.settings
......\bin
......\src
Router