文件名称:ns2_static_routing.tar
-
所属分类:
- 标签属性:
- 上传时间:2015-09-27
-
文件大小:36.6kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
Static routing is very simple. Each node has a routing table where each entry has the destination and the next node. On receiving a packet, a node find the entry corresponding to the packet s destination, and forwards it to the next node. If there is no entry, the node drops the packet. That s it.
While writing the static routing protocol in ns2 is easy, we have to set a routing tables at every node. This can be done by writing an external program. For example, when you generate a topology, you can set up routing table with the shortest path metric.
Source codes
In this project, we are going to write new source codes (static_routing_pkt.h, static_routing.h, and static_routing.cc) and new scr ipt (static.tcl), and modify existing codes (packet.h, queue.cc, ns-lib.tcl, ns-mobilenode.tcl, and ns-packet.tcl)
The source codes of this project is available here.
While writing the static routing protocol in ns2 is easy, we have to set a routing tables at every node. This can be done by writing an external program. For example, when you generate a topology, you can set up routing table with the shortest path metric.
Source codes
In this project, we are going to write new source codes (static_routing_pkt.h, static_routing.h, and static_routing.cc) and new scr ipt (static.tcl), and modify existing codes (packet.h, queue.cc, ns-lib.tcl, ns-mobilenode.tcl, and ns-packet.tcl)
The source codes of this project is available here.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ns2_static_routing/
ns2_static_routing/ns2/
ns2_static_routing/script/
ns2_static_routing/script/static.tcl
ns2_static_routing/script/topo1.txt
ns2_static_routing/ns2/common/
ns2_static_routing/ns2/queue/
ns2_static_routing/ns2/static_routing/
ns2_static_routing/ns2/tcl_lib/
ns2_static_routing/ns2/tcl_lib/ns-lib.tcl
ns2_static_routing/ns2/tcl_lib/ns-mobilenode.tcl
ns2_static_routing/ns2/tcl_lib/ns-packet.tcl
ns2_static_routing/ns2/static_routing/static_routing.cc
ns2_static_routing/ns2/static_routing/static_routing.h
ns2_static_routing/ns2/static_routing/static_routing_pkt.h
ns2_static_routing/ns2/queue/priqueue.cc
ns2_static_routing/ns2/common/packet.h
ns2_static_routing/ns2/
ns2_static_routing/script/
ns2_static_routing/script/static.tcl
ns2_static_routing/script/topo1.txt
ns2_static_routing/ns2/common/
ns2_static_routing/ns2/queue/
ns2_static_routing/ns2/static_routing/
ns2_static_routing/ns2/tcl_lib/
ns2_static_routing/ns2/tcl_lib/ns-lib.tcl
ns2_static_routing/ns2/tcl_lib/ns-mobilenode.tcl
ns2_static_routing/ns2/tcl_lib/ns-packet.tcl
ns2_static_routing/ns2/static_routing/static_routing.cc
ns2_static_routing/ns2/static_routing/static_routing.h
ns2_static_routing/ns2/static_routing/static_routing_pkt.h
ns2_static_routing/ns2/queue/priqueue.cc
ns2_static_routing/ns2/common/packet.h
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.