1 / 8
文档名称:

DD协议代码分析.doc

格式:doc   大小:25KB   页数:8页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

DD协议代码分析.doc

上传人:wxc6688 2019/9/8 文件大小:25 KB

下载得到文件列表

DD协议代码分析.doc

文档介绍

文档介绍:DD协议代码分析#==================================================================#Defineoptions#===================================================================setopt(chan)Channel/WirelessChannel/物理信道类型是无线信道setopt(prop)Propagation/TwoRayGround/if)Phy/WirelessPh/网络借口类型是无线物理层setopt(mac)Mac/802_11/(ifq)Queue/DropTail/PriQueue/接口队列类型是IFQ列队setopt(ll)LL/逻辑链路层类型LL层setopt(ant)Antenna/OmniAntenna/无线模型是全向天线setopt(filters)GradientFilter;#oldnamefortwophasepullfilter/twophasepull过滤器setopt(x)670;#Xdimensionofthetopography设定拓扑范围——长度,670Msetopt(y)670;#Ydimensionofthetopographysetopt(ifqlen)50;#maxpacketinifq/网络接口队列的大小50setopt(nn)10;#numberofnodes/节点数setopt(sndr)1;#noofsenders/没有发送方setopt(rcvr)4;#noofrecvrs/没有recvrssetopt(seed)(stop)100;#simulationtime/仿真时间setopt(tr)"";#tracefile/跟踪文件setopt(nam)"";#namfile/文件名setopt(adhocRouting)Directed_Diffusion/路由协议#==================================================================LLsetmindelay_50us/设置mindelay时间LLsetdelay_25us/设置延迟时间LLsetbandwidth_0;#notused/没有使用的带宽为0Queue/DropTail/PriQueuesetPrefer_Routing_Protocols1#unitygain,omni-directionalantennas/单位增益,全向天线#/OmniAntennasetX_0Antenna/OmniAntennasetY_0Antenna//#InitializetheSharedMediainterfacewithparameters