routing
所属分类:网络编程
开发工具:Others
文件大小:487KB
下载次数:34
上传日期:2010-12-24 20:47:06
上 传 者:
yangfafa1986
说明: omnet++平台的网络路由仿真,构建了特色消息类以实现自消息外的自消息定义
(omnet++ platform for network routing simulation, characteristics of the message type was constructed in order to achieve self-defined message news from outside the)
文件列表:
routing\app.cpp (2792, 2006-10-21)
routing\Makefile.vc (3599, 2006-10-21)
routing\net60.ned (7325, 2006-10-21)
routing\networks\fullgraph.ned (803, 2006-10-21)
routing\networks\mesh.ned (1153, 2006-10-21)
routing\networks\net60a.ned (7908, 2006-10-21)
routing\networks\omnetpp.ini (858, 2006-10-21)
routing\node.ned (1345, 2006-10-21)
routing\omnetpp.ini (96, 2006-10-21)
routing\packet.msg (386, 2006-10-21)
routing\routing.cpp (2880, 2006-10-21)
routing\routing.dsp (9713, 2008-07-27)
routing\routing.dsp.in (9607, 2006-10-21)
routing\routing.dsw (539, 2006-10-21)
routing\routing.exe (1654784, 2006-10-21)
routing\networks (0, 2008-07-27)
routing (0, 2008-07-27)
Routing
=======
Demonstrates static shortest-path routing. Routing tables are set up at the
beginning of the simulation using the cTopology class. The model is
intentionally kept simple to facilitate understanding.
The network topology is the one widely known as the "NTT backbone", and it was
contributed by Mudassar Farooq.
Every node queries the topology of the network independently, using a cTopology
object. Then it computes shortest paths to every other node, and stores the
first nodes of the paths in a next-hop table. (Actually the table contains
the port number to the next-hop node not the node address itself -- the table
thus provides dest-address -> next-hop-address mapping). All the above takes
place once, at the beginning of this simulation. The topology is static during
the simulation, and so there's no need for the nodes to do anything to keep
the tables up-to-date. There's no routing protocol in the model.
Once the routing tables are set up, nodes start sending packets at random
intervals. Every node gets a list of destination addresses in a parameter,
and for every packet it randomly chooses a destination from the list.
To keep the model simple, packet forwarding takes zero time in the model,
and so it is not necessary to queue the packets. In a realistic simulation
this also has to be changed.
The networks/ subdirectory contains further networks that can be tested with
the "routing" executable -- provided OMNeT++ was compiled with support for
dynamic loading of NED files (WITH_NETBUILDER option).
近期下载者:
相关文件:
收藏者: