[ns] Introducing error in LAN

2011-05-30 Thread Anup Dharangutti
Hello, All, I want to introduce error in LAN, tried like in following code but its giving error. set ns [new Simulator] #Define different colors for data flows (for NAM) $ns color 1 Blue $ns color 2 Red #Open the Trace files set file1 [open out.tr w] set winfile [open WinFile

[ns] Re: OLSR code in ns2

2011-05-30 Thread Velizar Dimitrov
On Mon, May 30, 2011 at 2:00 AM, ns-users-requ...@isi.edu wrote: Date: Sun, 29 May 2011 12:58:02 -0700 (PDT) From: umair shah meetuas...@yahoo.com Subject: [ns] OLSR code in ns2 To: ns-users@isi.edu Message-ID: 646970.13230...@web161801.mail.bf1.yahoo.com Content-Type: text/plain;

Re: [ns] OLSR code in ns2

2011-05-30 Thread ankur goyal
I am using NS-2.34 version and i just had to patch the NS-2.34 OLSR patch from the link mentioned by Velizar in his mail. After that used same AODV TCL file by just replacing AODV by OLSR as routing protocol and it worked perfectly fine for me. On Mon, May 30, 2011 at 2:16 PM, Velizar Dimitrov

[ns] port dmux _o31

2011-05-30 Thread Rosario Surace
Hello,I've a problem with ns-2 vers 2.34.When i run one experiment, i get this problem error when calling class Agent/SWARM: port-dmux _o31 Have you got an answer for this problem?? I'm getting mad :) ThanksRosario Surace

[ns] IFQ parameter of TCL script

2011-05-30 Thread kalpa sankara
hi all  I want to test  different services of WiMax like ugs, rtps, best effort  using Ns2 with the wiMax patch. In the TCL script, what does the parameter IFQ (interface queue )  specify ? set opt(ifq) Queue/DropTail/PriQueue;   The scheduling service is implemented  as part of the Wimax

[ns] Fwd: error in execution

2011-05-30 Thread divya singh
-- Forwarded message -- From: dae...@isi.edu Date: 30 May 2011 13:33 Subject: Re: error in execution To: divya12.si...@gmail.com Welcome to posting to the ns-users mailing list! We automatically send this message to every new person who sends mail to the list. You should only

[ns] how to isolate the selfish node from the network?

2011-05-30 Thread yogesh bansal
hi to all, once a selfish node is detected, how can we isolate it from the network?? any ideas?? where do i need to do the code?? plz help me. any ideas are appreciated yogesh

[ns] urgent help pls

2011-05-30 Thread tellajeera sushma
Hi . I need an urgent help. Actually, if there are two base stations such that a mobile node is moving from Base station to another, then how to know, under which BS, mobile node is connected ? How to know while writing in c++ in ns2. Thank You, Sushma.

Re: [ns] how to stop the simulation of all those nodes having energy 0.. plz plz help me...

2011-05-30 Thread yogesh bansal
with the help of hemang advice, i changed my code from this *// MY INCLUDED CODE if (energy_model_-energy() = 0) { fprintf(stdout,DEATH -t %f -n %d -e %.20f, s.clock(),address_, energy_model_-energy()); fprintf(stderr,DEATH -t %f -n %d -e %.20f, s.clock(),address_,

Re: [ns] how to stop the simulation of all those nodes having energy 0.. plz plz help me...

2011-05-30 Thread yogesh bansal
at line 195 in mobilenode.cc file, this line of code is written. * } else if (strcmp(argv[1], off) == 0) { energy_model()-node_on() = false;* here we are doing node_on()=false. to stop the simulation. i m actually modifying the code in this function MobileNode::log_energy(int flag)