[ns] TCL Commands

2009-02-17 Thread obaid abbasi
Hi, How can I find the complete list of TCL commands available in NS2? Regards, Ubaid

[ns] Throughput value difference in 802.11

2009-02-17 Thread Иван
Hi! I am using 802.11 Ext model and when I plot the througput in Xgraph it turns out to be different depending on how many traces (e.g. MAC trace, Agent trace, PHY trace) are turned ON. But the thoughput can't change. So the question is how can I know where there is a REAL throughput value?

[ns] FW: Query regarding nam

2009-02-17 Thread V K rathi
Respected members, I have installed ns-2.33 on cygwin on my vista home basic laptop. while running simple example programs, I get error, $ nam: no display name and no $DISPLAY environment variable. I tried set it with export DSIPLAY=:0.0 it gives error $ nam: couldn't connect

Re: [ns] Throughput value difference in 802.11

2009-02-17 Thread Remi VANNIER
Your plot script reads data in the trace files. Your script should sum the sizes of the packets at the AGT level. If the throughput changes, that must mean you don't specify the kind of lines you want to read in your plot script. I don't see any other explanation. Remi

[ns] Questions are never answered

2009-02-17 Thread Remi VANNIER
Hi all, Most questions on these mailing list are left unanswered. Either people answer directly to the authors, which is a pity, because these answers could be of some use to others or there are other places I don't know where you can actually get answers.

[ns] IP layer information NS-2

2009-02-17 Thread Syed Faraz Hasan
Hi everyone! How do I access IP layer in NS-2. In wireless simulations, I use MAC to declare AP and Transport Layer by defining TCP traffic across the network. Where and how do I specify IP Layer? I mean, is NS-2 using IP layer when I send packets from one node to another? Which version of IP

[ns] 0 throughput for FTP connection...

2009-02-17 Thread Salvo Danilo Giuffrida
Hello, I've tried, both in a wireless and wired scenario, to setup an FTP connection between two nodes. Everything works, except for the fact that, if during the simulation I try to print some statistics about the TCP or TCPSink agent, such as the values of variables... ndatapack_ ndatabytes_

Re: [ns] Questions are never answered

2009-02-17 Thread Mats Folke
Hi Remi, Remi VANNIER wrote: Hi all, Most questions on these mailing list are left unanswered. Either people answer directly to the authors, which is a pity, because these answers could be of some use to others or there are other places I don't know where you can actually get answers.

[ns] add library to configure.in or makefile

2009-02-17 Thread sarym binome
hi everybody i add a function in a AODV protocol, this function use a openssl library (cryptography library ) when i run ./configure and make , i have error cause it didn't recognize the code aodv/aodv.o: In function `AODV::AODV(int)': aodv.cc:(.text+0x266f): undefined reference to

[ns] node off doesn't work

2009-02-17 Thread Salvo Danilo Giuffrida
I'm trying to set-up a simulation of a wireless network, where nodes can go down during the course of an FTP transfer. To achieve this, I schedule the shutdown of a node with $ns_ at $time $node_($i) off The problem is that, when I run the simulation, this is the error message that NS-2 gives me

[ns] Error C++ forbids declaration

2009-02-17 Thread Diana Benitez
Hi everyone: When I compile I get the following error: ISO C++ forbids declaration of 'class_wdhdr' with no type Did someone know how to solve this error? 'class_wdhdr' is a new header I am trying to create. Thanks DIANA.

[ns] how to forward packets based on probability

2009-02-17 Thread Phenix
Hi guys, How to implement probabilistic-based flooding in NS-2 ? Say, upon receiving a packet, a mobile node will decide whether to forward it with a certain probability. I only know we can use the function below to send a packet in NS-2:

Re: [ns] Error C++ forbids declaration

2009-02-17 Thread Fernando Rocha
Hi Diana. Have you made some changes in NS source code? That might occur when you forgot to include the proper header file for the class_wdhdr class or when you have circular references in C++ header files (.h). For instance, when you have a header class like game.h including the header

Re: [ns] how to forward packets based on probability

2009-02-17 Thread Mubashir Rehmani
Hi Phenix, To forward a packet with certain probability, you need to include an if condition in the sendPkt() function. It should be something like this: If(probability 0.5) { Scheduler::instance().schedule(target_, p, delay); } in the SendPkt() function. Hope it helps Regards Mubashir