ns2

    1熱度

    1回答

    我試圖DYMO路由協議添加到NS-2.34,但它沒有工作, 我正在追蹤這個政黨成員:https://khaledben.wordpress.com/2011/04/16/patching-dymo-um-in-ns-2/ 在另一方面,我無法找到dymo- 3.patch for ns-2.34(http://masimum.inf.um.es/?Software:DYMOUM不再可用)。 任何人都

    0熱度

    1回答

    for {set i 0} {$i < $num_nodes} {incr i} { for {set j 0} {$j < 10} {incr j} { $ns at [expr 7.2+[expr rand()*3.0]] "$n($i) send_message 10 1 {[expr round([expr rand()*100000])]:[expr round([e

    0熱度

    1回答

    當我想在Fedora的終端上運行我的模擬,我看到這個錯誤: invalid command name "Mac/802_11n" while executing "Mac/802_11n set basicRate_ 1Mb " (file "Test.tcl" line 3)

    -5熱度

    1回答

    我也有同樣的問題。 請爲我提供一個明確的解決方案... 以下錯誤是當我運行blackhole.tcl文件時獲得的。 ns: _o108 blackhole: (_o108 cmd line 1) invoked from within "_o108 cmd blackhole" invoked from within "catch "$self cmd $args

    0熱度

    1回答

    eval在以下代碼中的含義? proc poissontraffic { src dst interval starttime } { global ns_ node_ set udp($src) [new Agent/UDP] eval $ns_ attach-agent \$node_($src) \$udp($src) set null($dst) [

    0熱度

    2回答

    我正在使用VANET。爲此,我需要在我的fedora 24系統上安裝NS2。 NS 2版 - ns 2.34。在安裝過程中,我遵循ns 2.34的所有步驟並對各個文件進行了更改。但最後,我發現了一個像截圖中附帶的錯誤。 錯誤:在play.xbm內縮小了從'int'到'char'的252次轉換 我無法解決此錯誤。請爲我指導。 enter image description here

    0熱度

    1回答

    我在NS2.35中使用AODV路由協議運行一些簡單的模擬。但是,在某些情況下,我注意到,當我運行足夠長的模擬時,AODV REQUEST和REPLY消息不會被髮送出去並填充節點隊列。 在下面的.tcl示例中,我有3個節點生成要發送給PAN協調器的CBR流量。然而,在某些情況下,路由請求和回覆在節點2處於IFQ級別時不斷丟棄。 此外,如以下跟蹤代碼段所示,在仿真結束時(時間= 10000),節點2的

    1熱度

    1回答

    我試圖對齊我創建的網絡模擬器2中的圖片中的節點,但在我編寫的代碼中出現錯誤。如何將節點放置在這張圖片中? picture 代碼: set ns [new Simulator] set nf [open out.nam w] $ns namtrace-all $nf set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3

    0熱度

    1回答

    我是C++的新手,並試圖理解一些代碼(NS2中的數據包調度)。 在某些時候,數據包經過下面的代碼: void Scheduler::dispatch(Event* p, double t) { if ((t < clock_) && (p->uid_ != 0)) { fprintf(stderr, "ns: scheduler going ba

    1熱度

    1回答

    我想使用nam運行下面的代碼。 set ns [new Simulator] set nf [open lab1.nam w] $ns namtrace-all $nf set f [open lab1.tr w] proc record {} { global sink f set ns [Simulator instance] set time 0.12 set b