# ==================================================================
# Define options
# ===================================================================
set opt(chan) Channel/WirelessChannel /物理信道类型是无线信道
set opt(prop) Propagation/TwoRayGround/无线传输模型是woRayGround
set if) Phy/WirelessPh/网络借口类型是无线物理层
set opt(mac) Mac/802_11/
set opt(ifq) Queue/DropTail/PriQueue/接口队列类型是IFQ列队
set opt(ll) LL/逻辑链路层类型LL层
set opt(ant) Antenna/OmniAntenna/无线模型是全向天线
set opt(filters) GradientFilter ;# old name for twophasepull filter/ twophasepull过滤器
set opt(x) 670 ;# X dimension of the topography设定拓扑范围——长度,670M
set opt(y) 670 ;# Y dimension of the topography
set opt(ifqlen) 50 ;# max packet in ifq/网络接口队列的大小50
set opt(nn) 10 ;# number of nodes/节点数
set opt(sndr) 1 ;# no of senders/没有发送方
set opt(rcvr) 4 ;# no of recvrs/没有recvrs
set opt(seed)
set opt(stop) 100 ;# simulation time/仿真时间
set opt(tr) "" ;# trace file/跟踪文件
set opt(nam) "" ;# nam file/文件名
set opt(adhocRouting) Directed_Diffusion/路由协议
# ==================================================================
LL set mindelay_ 50us/设置mindelay时间
LL set delay_ 25us/设置延迟时间
LL set bandwidth_ 0 ;# not used/没有使用的带宽为0
Queue/DropTail/PriQueue set Prefer_Routing_Protocols 1
# unity gain, omni-directional antennas/单位增益,全向天线
# set up the antennas to be centered in the node and meters above it/天线设立在节
DD协议代码分析 来自淘豆网m.daumloan.com转载请标明出处.