ns2

invalid command name “Queue/LTEQueue”

谁说我不能喝 提交于 2019-12-12 03:54:48
问题 I`ve installed lte in ns2.35 but it gives the folowing error: invalid command name "Queue/LTEQueue" while executing "Queue/LTEQueue set qos_ true " (file "lte.tcl" line 21) when i run lte.tcl please hepe meto solve it 回答1: Your error: You are using a (wrong) copy of 'ns' with no LTE, or you have a failed build. LTE, Howto .... $ tar xvf ns-allinone-2.35_gcc482.tar.gz https://drive.google.com/file/d/0B7S255p3kFXNSGJCZ2YzUGJDVk0 $ cd ns-allinone-2.35/ $ patch -p0 < LTE-ns235_2014-2.patch https:

Compilation error while adding mp-olsr on ns 2.34 (Jiazi YI ns 2.29)

痴心易碎 提交于 2019-12-12 03:53:22
问题 I'm trying to add the mp-olsr(ns 2.29) into ns 2.34 and I'm getting some errors while compiling it. Source code(Jiazi YI): http://www.jiaziyi.com/index.php/research-projects/mp-olsr Procedure: $ touch common/packet.cc $ make Result: mpolsr/MPOLSR.o: In function MPOLSR::MPOLSR(int)': MPOLSR.cc:(.text+0x1457): undefined reference to Agent::Agent(packet_t)' mpolsr/MPOLSR.o: In function MPOLSR::MPOLSR(int)': MPOLSR.cc:(.text+0x16f1): undefined reference to Agent::Agent(packet_t)' collect2: ld

Path Tcl and Bash

家住魔仙堡 提交于 2019-12-12 03:00:02
问题 i have a problem with path in a tcl file i tried to use source " /tmp/mob.tcl " and this path in bash file : /opt/ns-allinone-2.35/ns-2.35/indep-utils/cmu-scen-gen/setdest/setdest -v 1 -n $n -p 10 -M 64 -t 100 -x 250 -y 250 >> /tmp/mob.tcl but terminal give me this error : couldn't read file " /tmp/mob.tcl ": no such file or directory while executing "source.orig { /tmp/mob.tcl }" someone can help me please 回答1: Learn to believe the error messages you get ;-). couldn't read file " /tmp/mob

Arrange nodes in ns2

依然范特西╮ 提交于 2019-12-11 17:06:52
问题 I need to arrange 100 nodes in a hexagonal shape in my tcl script. My simulation is wireless (dsr protocol). How can I do this? Which is the best size of the grid? I thought 3000x3000. Thank you. 回答1: The simplest way is to build the network graphically .. you can use nsg tool to build the network and generate the tcl code very easily http://www.nsnam.com/2013/04/ns2-scenario-generator.html first you must determine the transition range of nodes, put required number of node-> get network size

VBFP doesnt work probably in aqua-sim

陌路散爱 提交于 2019-12-11 15:34:08
问题 I used VBF routing, in aqua-sim. However, i noticed that the source packet never reaches the sink! and consumed energy exceed the initial energy! what is the causes for that? Here is the tcl file set opt(chan) Channel/UnderwaterChannel set opt(prop) Propagation/UnderwaterPropagation set opt(netif) Phy/UnderwaterPhy set opt(mac) Mac/UnderwaterMac/BroadcastMac set opt(ifq) Queue/DropTail/PriQueue set opt(ll) LL set opt(energy) EnergyModel set opt(txpower) 2.0 set opt(rxpower) 0.75 set opt

HOW CAN I FIX THIS ERROR IN NS2?

↘锁芯ラ 提交于 2019-12-11 15:15:45
问题 While running my tcl script for new protocol in ns2 it shows error as: num_nodes is set 108 
> invalid command name “Agent/HEBM” while executing “Agent/HEBM set radius_2” (file “balance.tcl” line31) 来源: https://stackoverflow.com/questions/51834497/how-can-i-fix-this-error-in-ns2

Edit DSR routing protocol in ns2

时光总嘲笑我的痴心妄想 提交于 2019-12-11 14:42:22
问题 I have a simulation of a DSR routing protocol. I have 100 nodes (from 0 to 99) and the node 0 sends packets to node 99.But in this simulation I want to modify one of the nodes, for example node 50, the node at the center of topography. Basically this node has to cheat: every time it receives a route request to node 99, it has to say that it knows the direct route to node 99, without passing through other nodes. In this way, node 0 will usually choose node 50 to send a packet to node 99: this

child killed: segmentation violation

落爺英雄遲暮 提交于 2019-12-11 10:54:59
问题 I have installed ns2. Now on terminal, ns gives % and nam gives this error. (It is supposed to pop up an animation window). child killed: segmentation violation Also, when I did the last step i.e., ./validate, I found this at the end. validate overall report: some tests failed: How do I solve this? 回答1: The only nam version that causes 'Segmentation fault', is the nam package(s) you get from from Ubuntu or Debian : Bug report, March 2014 https://bugs.launchpad.net/ubuntu/+source/nam/+bug

How to change the delay of a link in NS2 simulation?

感情迁移 提交于 2019-12-11 05:49:09
问题 I need to run a NS2 simulation that the delay of a link will change during the runtime, and I use following procedure in tcl script: $ns delay $node3 $node4 $delay_time to change the delay in a link between $node3 and $node4. But it only works when it's set before the simulation starts. If I want to change the delay in a certain time, e.g. $ns at 1.0 "$ns delay $node3 $node4 10ms" It doesn't work.So how to change the delay of a link during runtime? Thanks for any help. 回答1: I have been

ns2 installation error on Ubuntu 12.10

无人久伴 提交于 2019-12-10 19:33:59
问题 I try to install ns-2.35 all-in-one package on my Ubuntu 12.10 I type "./configure" and then "make" in folder "tcl-8.5.10" and folder "tk8.5.10" There is no make error. But when I enter folder otcl-1.14 and type "./configure" it shows an error: dartkouth@dartkouth-P8010:/opt/ns-allinone-2.35/otcl$ sudo ./configure No .configure file found in current directory Continuing with default options... checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu