freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

畢業(yè)設(shè)計(jì)-基于ns2的mimo擴(kuò)展設(shè)計(jì)與實(shí)現(xiàn)-文庫(kù)吧資料

2024-12-11 19:20本頁(yè)面
  

【正文】 $arptable_($i) reset } } Xx 理工大學(xué)畢業(yè)論文(設(shè)計(jì)) 14 對(duì) mobilenode.[cc,h], 的修改 前面我 們已經(jīng)修改了節(jié)點(diǎn)模型 TCL 的實(shí)現(xiàn),下面我們針對(duì)節(jié)點(diǎn)模型的 c++代碼進(jìn)行修改,關(guān)于 c++代碼的修改在后面還有路由協(xié)議的實(shí)現(xiàn), 將在第四部分介紹。 表 修改 addinterface 過(guò)程 Node/MobileNode instproc addinterface { channel pmodel lltype mactype qtype qlen iftype anttype topo inerrproc outerrproc fecproc } { …… Initialize ARP table only once. modified as follows set arptable_($t) [new ARPTable $self $mac] set arptable $arptable_($t) if {$imepflag != } { set drpT [$self mobilitytrace Drop IFQ] } else { set drpT [cmutrace Drop IFQ $self] } $arptable droptarget $drpT Xx 理工大學(xué)畢業(yè)論文(設(shè)計(jì)) 13 續(xù)表 if { $namfp != } { $drpT namattach $namfp } Link Layer $ll arptable $arptable …… } 修改初始化復(fù)位過(guò)程 由于上述的 ARP 表發(fā)生了改變,因此在初始化和復(fù)位時(shí)需要對(duì) ARP 表進(jìn)行修改,具體如表 與 所 示。 no IMEP $agent target $sndT } $sndT target [$self set ll_(0)] modified as follows: } else { 。首先調(diào)用getnumifs 過(guò)程取得接口數(shù), 具體如表 所示。 表 createwirelessnode過(guò)程 Simulator instproc createwirelessnode args { $self instvar routingAgent_ wiredRouting_ propInstance_ llType_ \ macType_ ifqType_ ifqlen_ phyType_ chan antType_ \ energyModel_ initialEnergy_ txPower_ rxPower_ \ idlePower_ sleepPower_ sleepTime_ transitionPower_ transitionTime_ \ topoInstance_ level1_ level2_ inerrProc_ outerrProc_ FECProc_ rtAgentFunction_ numifs_ …… Adding Interface original: $node addinterface $chan $propInstance_ $llType_ $macType_ \ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ \ $inerrProc_ $outerrProc_ $FECProc_ modified as follows if {[info exist numifs_]} { Xx 理工大學(xué)畢業(yè)論文(設(shè)計(jì)) 10 續(xù)表 for {set i 0} {$i $numifs_} {incr i} { $node addinterface $chan($i) $propInstance_ $llType_ $macType_ \ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ \ $inerrProc_ $outerrProc_ $FECProc_ } } else { $node addinterface $chan $propInstance_ $llType_ $macType_ \ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ \ $inerrProc_ $outerrProc_ $FECProc_ } …… } 對(duì) 的修改 修改 addtarget 過(guò)程 addtarget 過(guò)程用來(lái)給端口綁 定代理,在多接口的情況下需要為每個(gè)接口都綁定代理,在添加之前需先 調(diào)用 getnumifs 過(guò)程取得節(jié)點(diǎn)接口數(shù), 具體如表 所示。 表 ifNum過(guò)程 Simulator instproc getnumifs {} { $self instvar numifs_ if [ info exists numifs_ ] { return $numifs_ )eise( return } } 修改 nodeconfig 過(guò)程 nodeconfig 用來(lái)對(duì)節(jié) 點(diǎn)進(jìn)行配置,由于加入了新的接口參數(shù) chan($t),所以必須對(duì)其初始化, 在多接口的情況下其為一數(shù)組,具體如表 所示。 表 接口配置信道過(guò)程 Simulator instproc addchannel {indexch ch} { $self instvar chan set chan($indexch) $ch } 第三個(gè)過(guò)程 getnumifs 返回接口數(shù),具體如表 所示。 四個(gè)新增的過(guò)程 為了使每個(gè)節(jié)點(diǎn)可以有不同的接口數(shù)目,定義過(guò)程 changenumifs,具體如表 所示。 對(duì) 的修改 在節(jié)點(diǎn)配置時(shí)會(huì)調(diào)用 nodeconfig 過(guò)程,修改了后的節(jié)點(diǎn)模型具備了接口數(shù)這個(gè)參數(shù),因此 nodeconfig 過(guò)程必須修改。 Xx 理工大學(xué)畢業(yè)論文(設(shè)計(jì)) 6 圖 2 修改后的 mobilenode 結(jié)構(gòu) Xx 理工大學(xué)畢業(yè)論文(設(shè)計(jì)) 7 3 節(jié)點(diǎn)模型 的 修改 前面我們已經(jīng)從 宏觀上 分析了如何修改節(jié)點(diǎn)模型結(jié)構(gòu),本章我們將具體實(shí)現(xiàn)其修改。 Xx 理工大學(xué)畢業(yè)論文(設(shè)計(jì)) 5 傳播模型:用來(lái)計(jì)算每個(gè)分組在到達(dá)接收節(jié)點(diǎn)時(shí)的信 號(hào)能量功率。或者,從物理層的分類器異步接受數(shù)據(jù)包。 MAC 層: 處理從鏈路層接受的或?qū)⒁l(fā)往鏈路層的數(shù)據(jù)包。 PriQueu 是一個(gè)優(yōu)先級(jí)隊(duì)列。 連接到 LL 上的 ARP 模塊( ARP):地址解析協(xié)議( Address Resolution Protocol)的主要功能是將 IP 地址解析 為物理地址。 節(jié)點(diǎn)模型 要實(shí)現(xiàn)多信道多接口必須 對(duì)節(jié)點(diǎn)模型進(jìn)行修改, 本設(shè)計(jì)的節(jié)點(diǎn)模型要求主要有以下四點(diǎn): a. 信道數(shù)可變 b. 每個(gè)節(jié)點(diǎn)的接口數(shù)目可以不同 c. 每個(gè)節(jié)點(diǎn)可以連接不同的信道數(shù) d. 路由協(xié)議能夠適應(yīng)多信道多接口,并保持其向后兼容性 也就是說(shuō),擴(kuò)展多信道多接口必須修改現(xiàn)有的 MobileNode 模型,如圖 1 所示。原因是,節(jié)點(diǎn) A 需要在節(jié)點(diǎn) B 的接口已經(jīng)轉(zhuǎn)到相同的信道上時(shí)進(jìn)行等待,這個(gè)相同的信道就是之前節(jié)點(diǎn) A 用來(lái)向節(jié)點(diǎn) B 發(fā)送數(shù) 據(jù)包的信道,而采用多信道多接口則可以很好的解決這一問(wèn)題。 Xx 理工大學(xué)畢業(yè)論文(設(shè)計(jì)) 4 2 多信道多接口與節(jié)點(diǎn)模型 多信道多接口 IEEE 標(biāo)準(zhǔn)定義了在 GHz 和 5 GHz 頻段內(nèi)多個(gè)不重疊的信道。 本文主要研究工作 本設(shè)計(jì)中, 我會(huì)針對(duì) NS2 的機(jī)制對(duì) OTCL 與 C++代碼進(jìn)行修改。 在同一個(gè)環(huán)境中并不是每個(gè)節(jié)點(diǎn)都需要相同數(shù)目的接口 [5]; 其次 ,通過(guò)修改已有的路由協(xié)議或添加新的路由協(xié)議 , 使其具有多信道多接口能力 [6] [7] [8]。 本文的主要目的 之一就是提供一種簡(jiǎn)單有效的擴(kuò)展方式 , 使得在模擬的時(shí)候能夠方便更改設(shè)置 [3]。 Hyacinth 對(duì)接口的數(shù)量進(jìn)行了限制 , 并且只能是靜態(tài)的路由才能使用多接口多信道 。 前人已經(jīng)對(duì)這個(gè)問(wèn)題提出了多種方法 ,比較典型的如 TENS[1]、 Hyacinth[2]。Mobilenode。 關(guān)鍵詞: NS2; 多信道,多接口;移動(dòng)節(jié)點(diǎn); AODV協(xié)議 Xx 理工大學(xué)畢業(yè)論文(設(shè)計(jì)) 2 Abstract The IEEE standard defines multiple nonoverlapping channels at the physical layer in GHz and 5 GHz spectrums. However, most adhoc wireless works today are configured to operate under a single channel in order to ensure connectivity of all their nodes. Hence, the aggregate bandwidth provided by the radio spectrums is not fullyutilized. In order to meet the high throughput demand, it is essential to use all available spectrums. Several past research proposals have exploited multiple channels and multiple interfaces to increase the work capacity, by having multiple simultaneous transmissions without interference. In this project, we implement and evaluate the technique of multiple channels and multiple interfaces using the Network Simulator (ns2). This includes incorporating the multiple channel and multiple interface
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1