Re: [問題] 有關於ns2裡的tcl

看板Network_Sim作者 (深深體會沒有眼鏡的好...)時間15年前 (2009/07/28 17:30), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/4 (看更多)
抱歉沒仔細確認所po的內容~~ 我的protocol是修改原本的AODV 在無線網路下隨便灑50個node 設定一個source node id及多個destiantion node id 然後 建立multicast tree 我原本是用http://ms92.nttu.edu.tw/~u9212102/ll.tcl 可是它會出現下列錯誤訊息 ( 2) - 42 sending Route Request, dst: 9, tout 1.800000 ms 13027 [main] ns 5328 _cygtls::handle_exceptions: Error while dumping state (pobably corrupted stack) Segmentation fault (core dumped) 我想可能是設定CBR的時候不能直接設定從source到destination的虛擬link 所以我又嘗試了http://ms92.nttu.edu.tw/~u9212102/ll2.tcl 的寫法 這次就不會出現錯誤訊息 但是只會send Hello 關於這方面我還在找尋哪裡出錯~~ 還有我是看到http://ns2lab.pixnet.net/blog/post/5926884裡面的第一張圖 所以異想天開~~覺得應該可以這樣改XD ps.我的腳本是用NSG_beta 產生的 ※ 引述《jimnt ( )》之銘言: : 其實,我看不太懂問題,可能並非我所熟悉的方向。(譬如:調整CBR) : 無線節點嗎? relay node 不就是各種不同路由方式所決定的嗎? : 而路由方式像是AODV DSDV 不就是用 : $ns_ node-config -adhocRouting DSDV : 這類的指令來設定嗎? : 設定了之後,routing protocol 就會幫我們決定傳遞的節點 : 當然,要手動決定路由的路徑也是可以。 : : 請問是這個嗎? : : set udp0 [new Agent/UDP] : : $ns attach-agent $node_(42) : : $udp0set null0 [new Agent/Null] : 想請問 : $udp0set null0 [new Agent/AODV] : 這樣的寫法 是從哪參考到的? : : $ns attach-agent $node_(9) : : $null0$ns connect $udp0 $null0 : : $udp0 set fid_ 2 ;#在NAM中,UDP的連線會以紅色表示 : : set cbr0 [new Application/Traffic/CBR] ;#在UDP連線之上建立CBR應用程式 : : $cbr0 attach-agent $udp0 : : $cbr0 set type_ CBR : $cbr0 set packet_size_ 1000;#設定封包大小 : : $cbr0 set rate_ 512Kb ;#設定傳輸速率 : : $cbr0 set random_ false : : $ns at 0.0 "$cbr0 start" : : $ns at 9.0 "$cbr0 stop" : 其實,貼完之後,再檢查一下內文,可以方便有心想要幫忙的人閱讀, : 也是種負責的態度 : and 提供完整的 script hyperlink 下載,更可以方便大家一起幫忙找出問題:) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.114.71.232 ※ 編輯: sui623 來自: 140.114.71.232 (07/28 17:36)
文章代碼(AID): #1ARiKg8B (Network_Sim)
文章代碼(AID): #1ARiKg8B (Network_Sim)