java router_Router 这是一个模仿路由算法的java程序 联合开发网 - pudn.com

Router

所属分类:TCP/IP协议栈

开发工具:Java

文件大小:72KB

下载次数:76

上传日期:2013-07-24 13:57:35

上 传 者:张天扬

说明:  这是一个模仿路由算法的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)

文件列表:[举报垃圾]

Router

......\.classpath,297,2012-11-20

......\.project,382,2012-11-20

......\bin

......\...\Command.class,3112,2013-05-07

......\...\CommandThread.class,1511,2013-05-07

......\...\Packet.class,1614,2013-05-07

......\...\Router$AddNeighborTask.class,1685,2013-05-07

......\...\Router$CheckActiveTask.class,2180,2013-05-07

......\...\Router.class,3423,2013-05-07

......\...\RouterClient.class,4069,2013-05-07

......\...\RouterServer.class,4864,2013-05-07

......\...\RouterTable.class,3946,2013-05-07

......\...\RouterTest.class,1200,2013-05-07

......\...\RouterThread.class,1960,2013-05-07

......\...\Sample

......\...\sample1

......\...\.......\Command.class,12875,2013-05-07

......\...\.......\CommandThread.class,2317,2013-05-07

......\...\.......\Packet.class,616,2013-05-07

......\...\.......\Router.class,8329,2013-05-07

......\...\.......\RouterLocation.class,4256,2013-05-07

......\...\.......\RouterLocationEntry.class,1470,2013-05-07

......\...\.......\RouterThread.class,2001,2013-05-07

......\...\.......\RoutingTable.class,6588,2013-05-07

......\...\.......\Topology.class,3083,2013-05-07

......\...\.......\TopologyFileEntry.class,1031,2013-05-07

......\...\test

......\...\....\MyData.class,938,2013-05-07

......\...\....\MyUDP.class,3500,2013-05-07

......\...\....\Q$TimerTestTask.class,634,2013-05-07

......\...\....\Q.class,889,2013-05-07

......\src

......\...\Command.java,2571,2012-12-11

......\...\CommandThread.java,1242,2012-12-11

......\...\Packet.java,1454,2012-12-11

......\...\Router.java,5306,2012-12-11

......\...\RouterClient.java,3889,2012-12-11

......\...\RouterServer.java,4909,2012-12-11

......\...\RouterTable.java,3934,2012-12-11

......\...\RouterTest.java,813,2012-12-11

......\...\RouterThread.java,1399,2012-12-11

......\...\Sample

......\...\sample1

......\...\.......\Command.java,22047,2012-11-24

......\...\.......\CommandThread.java,2310,2012-11-24

......\...\.......\Packet.java,1095,2012-11-24

......\...\.......\Router.java,10818,2012-11-24

......\...\.......\RouterLocation.java,5166,2012-11-24

......\...\.......\RouterLocationEntry.java,2070,2012-11-24

......\...\.......\RouterThread.java,2127,2012-11-24

......\...\.......\RoutingTable.java,11888,2012-11-24

......\...\.......\Topology.java,3287,2012-11-24

......\...\.......\TopologyFileEntry.java,1297,2012-11-24

......\...\test

......\...\....\MyData.class,781,2012-11-24

......\...\....\MyData.java,422,2012-11-24

......\...\....\MyUDP.java,2846,2012-11-24

......\...\....\Q.class,413,2012-11-24

......\...\....\Q.java,1110,2012-11-25

近期下载者:

相关文件:

收藏者:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值